From 6a0e0109826098d5b770afd398dd7bc733b630c0 Mon Sep 17 00:00:00 2001 From: Heng Lu <79895375+ms-henglu@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:46:07 +0800 Subject: [PATCH] update aztft to v0.3.1-0.20240628052037-ea373ea89d48 (#125) --- go.mod | 19 +- go.sum | 51 +- .../azure-sdk-for-go/sdk/azcore/CHANGELOG.md | 20 + .../sdk/azcore/internal/exported/request.go | 86 +- .../sdk/azcore/internal/shared/constants.go | 4 +- .../sdk/azcore/internal/shared/shared.go | 62 +- .../sdk/azcore/runtime/request.go | 6 +- .../sdk/internal/exported/exported.go | 5 + .../armappcontainers/v3/CHANGELOG.md | 398 + .../armappcontainers/v3}/LICENSE.txt | 0 .../armappcontainers/v3/README.md | 92 + .../v3/appresiliency_client.go | 383 + .../armappcontainers/v3/autorest.md | 13 + .../v3/availableworkloadprofiles_client.go | 104 + .../v3/billingmeters_client.go | 103 + .../armappcontainers/v3/build.go | 7 + .../v3/buildauthtoken_client.go | 113 + .../armappcontainers/v3/builders_client.go | 460 + .../armappcontainers/v3/builds_client.go | 280 + .../v3/buildsbybuilderresource_client.go | 109 + .../v3/certificates_client.go | 385 + .../appcontainers/armappcontainers/v3/ci.yml | 28 + .../armappcontainers/v3/client_factory.go | 316 + .../v3/connectedenvironments_client.go | 516 + ...onnectedenvironmentscertificates_client.go | 389 + ...nectedenvironmentsdaprcomponents_client.go | 383 + .../connectedenvironmentsstorages_client.go | 313 + .../armappcontainers/v3/constants.go | 872 + .../v3/containerapps_client.go | 812 + .../v3/containerappsapi_client.go | 169 + .../v3/containerappsauthconfigs_client.go | 313 + .../v3/containerappsdiagnostics_client.go | 382 + .../containerappsrevisionreplicas_client.go | 189 + .../v3/containerappsrevisions_client.go | 362 + .../v3/containerappssourcecontrols_client.go | 345 + .../daprcomponentresiliencypolicies_client.go | 333 + .../v3/daprcomponents_client.go | 380 + .../v3/daprsubscriptions_client.go | 312 + .../v3/dotnetcomponents_client.go | 431 + .../v3/javacomponents_client.go | 430 + .../armappcontainers/v3/jobs_client.go | 961 + .../v3/jobsexecutions_client.go | 111 + .../v3/managedcertificates_client.go | 400 + .../managedenvironmentdiagnostics_client.go | 179 + .../v3/managedenvironments_client.go | 589 + .../managedenvironmentsdiagnostics_client.go | 109 + .../v3/managedenvironmentsstorages_client.go | 313 + .../v3/managedenvironmentusages_client.go | 109 + .../armappcontainers/v3/models.go | 3723 +++ .../armappcontainers/v3/models_serde.go | 9883 +++++++ .../armappcontainers/v3/namespaces_client.go | 113 + .../armappcontainers/v3/operations_client.go | 88 + .../armappcontainers/v3/options.go | 815 + .../armappcontainers/v3/responses.go | 811 + .../armappcontainers/v3/time_rfc3339.go | 110 + .../armappcontainers/v3/usages_client.go | 104 + .../compute/armcompute/CHANGELOG.md | 7980 ------ .../compute/armcompute/autorest.md | 12 - .../compute/armcompute/v5/CHANGELOG.md | 421 + .../armcompute/v5}/LICENSE.txt | 0 .../compute/armcompute/{ => v5}/README.md | 43 +- .../compute/armcompute/v5/assets.json | 6 + .../compute/armcompute/v5/autorest.md | 13 + .../availabilitysets_client.go} | 239 +- .../compute/armcompute/{ => v5}/build.go | 2 +- .../capacityreservationgroups_client.go} | 237 +- .../capacityreservations_client.go} | 239 +- .../compute/armcompute/{ => v5}/ci.yml | 4 +- .../compute/armcompute/v5/client_factory.go | 429 + .../cloudserviceoperatingsystems_client.go} | 157 +- .../cloudserviceroleinstances_client.go} | 315 +- .../cloudserviceroles_client.go} | 89 +- .../cloudservices_client.go} | 569 +- .../cloudservicesupdatedomain_client.go} | 158 +- .../communitygalleries_client.go} | 55 +- .../v5/communitygalleryimages_client.go | 180 + .../communitygalleryimageversions_client.go | 192 + .../constants.go} | 723 +- .../dedicatedhostgroups_client.go} | 224 +- .../dedicatedhosts_client.go} | 447 +- .../diskaccesses_client.go} | 488 +- .../diskencryptionsets_client.go} | 316 +- .../diskrestorepoint_client.go} | 193 +- .../disks_client.go} | 361 +- .../galleries_client.go} | 264 +- .../galleryapplications_client.go} | 245 +- .../galleryapplicationversions_client.go} | 259 +- .../galleryimages_client.go} | 243 +- .../galleryimageversions_client.go} | 257 +- .../gallerysharingprofile_client.go} | 75 +- .../images_client.go} | 257 +- .../loganalytics_client.go} | 117 +- .../{zz_generated_models.go => v5/models.go} | 7303 +++--- .../compute/armcompute/v5/models_serde.go | 19966 ++++++++++++++ .../operations_client.go} | 37 +- .../compute/armcompute/v5/options.go | 1986 ++ .../proximityplacementgroups_client.go} | 226 +- .../resourceskus_client.go} | 56 +- .../responses.go} | 644 +- .../restorepointcollections_client.go} | 240 +- .../restorepoints_client.go} | 150 +- .../sharedgalleries_client.go} | 89 +- .../sharedgalleryimages_client.go} | 94 +- .../sharedgalleryimageversions_client.go} | 104 +- .../snapshots_client.go} | 365 +- .../sshpublickeys_client.go} | 254 +- .../compute/armcompute/v5/time_rfc3339.go | 110 + .../usage_client.go} | 60 +- .../virtualmachineextensionimages_client.go} | 117 +- .../virtualmachineextensions_client.go} | 232 +- .../virtualmachineimages_client.go} | 258 +- .../virtualmachineimagesedgezone_client.go} | 203 +- .../virtualmachineruncommands_client.go} | 304 +- .../virtualmachines_client.go} | 1097 +- ...irtualmachinescalesetextensions_client.go} | 239 +- ...lmachinescalesetrollingupgrades_client.go} | 180 +- .../virtualmachinescalesets_client.go} | 1161 +- ...tualmachinescalesetvmextensions_client.go} | 242 +- ...ualmachinescalesetvmruncommands_client.go} | 249 +- .../virtualmachinescalesetvms_client.go} | 859 +- .../virtualmachinesizes_client.go} | 45 +- ...generated_communitygalleryimages_client.go | 118 - ...ed_communitygalleryimageversions_client.go | 125 - .../armcompute/zz_generated_models_serde.go | 3416 --- .../armcompute/zz_generated_time_rfc3339.go | 86 - .../datafactory/armdatafactory/CHANGELOG.md | 89 - .../datafactory/armdatafactory/autorest.md | 13 - .../armdatafactory/time_rfc3339.go | 87 - .../armdatafactory/v7/CHANGELOG.md | 550 + .../datafactory/armdatafactory/v7/LICENSE.txt | 21 + .../armdatafactory/{ => v7}/README.md | 30 +- .../{ => v7}/activityruns_client.go | 61 +- .../datafactory/armdatafactory/v7/assets.json | 6 + .../datafactory/armdatafactory/v7/autorest.md | 13 + .../armdatafactory/{ => v7}/build.go | 2 +- .../v7/changedatacapture_client.go | 506 + .../armdatafactory/{ => v7}/ci.yml | 4 +- .../armdatafactory/v7/client_factory.go | 220 + .../armdatafactory/{ => v7}/constants.go | 617 +- .../v7/credentialoperations_client.go | 319 + .../{ => v7}/dataflowdebugsession_client.go | 206 +- .../{ => v7}/dataflows_client.go | 146 +- .../{ => v7}/datasets_client.go | 144 +- .../{ => v7}/exposurecontrol_client.go | 123 +- .../{ => v7}/factories_client.go | 294 +- .../{ => v7}/globalparameters_client.go | 143 +- .../integrationruntimenodes_client.go | 150 +- ...integrationruntimeobjectmetadata_client.go | 96 +- .../{ => v7}/integrationruntimes_client.go | 550 +- .../armdatafactory/v7/interfaces.go | 385 + .../{ => v7}/linkedservices_client.go | 147 +- .../managedprivateendpoints_client.go | 159 +- .../{ => v7}/managedvirtualnetworks_client.go | 126 +- .../armdatafactory/{ => v7}/models.go | 21789 +++++++++------- .../armdatafactory/{ => v7}/models_serde.go | 15840 ++++++----- .../{ => v7}/operations_client.go | 51 +- .../datafactory/armdatafactory/v7/options.go | 642 + .../{ => v7}/pipelineruns_client.go | 110 +- .../{ => v7}/pipelines_client.go | 183 +- .../{ => v7}/polymorphic_helpers.go | 284 +- .../privateendpointconnection_client.go | 116 +- .../privateendpointconnections_client.go | 59 +- .../{ => v7}/privatelinkresources_client.go | 52 +- .../{response_types.go => v7/responses.go} | 181 +- .../armdatafactory/v7/time_rfc3339.go | 110 + .../{ => v7}/triggerruns_client.go | 109 +- .../{ => v7}/triggers_client.go | 347 +- vendor/github.com/google/uuid/CHANGELOG.md | 18 + vendor/github.com/google/uuid/CONTRIBUTING.md | 2 +- vendor/github.com/google/uuid/time.go | 21 +- vendor/github.com/google/uuid/uuid.go | 79 +- vendor/github.com/google/uuid/version6.go | 56 + vendor/github.com/google/uuid/version7.go | 75 + .../magodo/aztft/internal/client/client.go | 37 +- .../aztft/internal/populate/populate.go | 2 + .../populate/populate_container_app_env.go | 38 + .../aztft/internal/populate/populate_lb.go | 51 + .../magodo/aztft/internal/resmap/map.json | 274 + .../magodo/aztft/internal/resmap/map_gen.json | 265 +- .../magodo/aztft/internal/resolve/resolve.go | 6 + .../resolve_data_factory_credential.go | 43 + .../resolve/resolve_data_factory_dataflow.go | 2 +- .../resolve/resolve_data_factory_dataset.go | 2 +- ...esolve_data_factory_integration_runtime.go | 2 +- .../resolve_data_factory_linkedservice.go | 2 +- .../resolve/resolve_data_factory_trigger.go | 2 +- ...resolve_data_protection_backup_instance.go | 5 +- ...resolve_data_protection_backup_policies.go | 3 + .../resolve/resolve_virtual_machine.go | 2 +- .../resolve_virtual_machine_data_disk.go | 66 + .../resolve_virtual_machine_scale_set.go | 2 +- .../tfid/build_automation_job_schedule.go | 51 + .../magodo/aztft/internal/tfid/tfid.go | 10 + vendor/golang.org/x/net/context/go17.go | 1 - vendor/golang.org/x/net/context/go19.go | 1 - vendor/golang.org/x/net/context/pre_go17.go | 1 - vendor/golang.org/x/net/context/pre_go19.go | 1 - vendor/golang.org/x/net/http2/databuffer.go | 59 +- vendor/golang.org/x/net/http2/frame.go | 11 +- vendor/golang.org/x/net/http2/go111.go | 30 - vendor/golang.org/x/net/http2/go115.go | 27 - vendor/golang.org/x/net/http2/go118.go | 17 - vendor/golang.org/x/net/http2/not_go111.go | 21 - vendor/golang.org/x/net/http2/not_go115.go | 31 - vendor/golang.org/x/net/http2/not_go118.go | 17 - vendor/golang.org/x/net/http2/server.go | 24 +- vendor/golang.org/x/net/http2/transport.go | 42 +- vendor/golang.org/x/net/idna/go118.go | 1 - vendor/golang.org/x/net/idna/idna10.0.0.go | 1 - vendor/golang.org/x/net/idna/idna9.0.0.go | 1 - vendor/golang.org/x/net/idna/pre_go118.go | 1 - vendor/golang.org/x/net/idna/tables10.0.0.go | 1 - vendor/golang.org/x/net/idna/tables11.0.0.go | 1 - vendor/golang.org/x/net/idna/tables12.0.0.go | 1 - vendor/golang.org/x/net/idna/tables13.0.0.go | 1 - vendor/golang.org/x/net/idna/tables15.0.0.go | 1 - vendor/golang.org/x/net/idna/tables9.0.0.go | 1 - vendor/golang.org/x/net/idna/trie12.0.0.go | 1 - vendor/golang.org/x/net/idna/trie13.0.0.go | 1 - vendor/golang.org/x/sys/unix/aliases.go | 2 +- vendor/golang.org/x/sys/unix/mkerrors.sh | 39 +- .../x/sys/unix/syscall_darwin_libSystem.go | 2 +- .../golang.org/x/sys/unix/syscall_freebsd.go | 12 +- vendor/golang.org/x/sys/unix/syscall_linux.go | 99 + vendor/golang.org/x/sys/unix/zerrors_linux.go | 90 +- .../x/sys/unix/zerrors_linux_386.go | 3 + .../x/sys/unix/zerrors_linux_amd64.go | 3 + .../x/sys/unix/zerrors_linux_arm.go | 3 + .../x/sys/unix/zerrors_linux_arm64.go | 3 + .../x/sys/unix/zerrors_linux_loong64.go | 3 + .../x/sys/unix/zerrors_linux_mips.go | 3 + .../x/sys/unix/zerrors_linux_mips64.go | 3 + .../x/sys/unix/zerrors_linux_mips64le.go | 3 + .../x/sys/unix/zerrors_linux_mipsle.go | 3 + .../x/sys/unix/zerrors_linux_ppc.go | 3 + .../x/sys/unix/zerrors_linux_ppc64.go | 3 + .../x/sys/unix/zerrors_linux_ppc64le.go | 3 + .../x/sys/unix/zerrors_linux_riscv64.go | 3 + .../x/sys/unix/zerrors_linux_s390x.go | 3 + .../x/sys/unix/zerrors_linux_sparc64.go | 3 + .../golang.org/x/sys/unix/zsyscall_linux.go | 10 + .../x/sys/unix/zsyscall_openbsd_386.go | 2 - .../x/sys/unix/zsyscall_openbsd_amd64.go | 2 - .../x/sys/unix/zsyscall_openbsd_arm.go | 2 - .../x/sys/unix/zsyscall_openbsd_arm64.go | 2 - .../x/sys/unix/zsyscall_openbsd_mips64.go | 2 - .../x/sys/unix/zsyscall_openbsd_ppc64.go | 2 - .../x/sys/unix/zsyscall_openbsd_riscv64.go | 2 - .../x/sys/unix/zsysnum_linux_386.go | 4 + .../x/sys/unix/zsysnum_linux_amd64.go | 3 + .../x/sys/unix/zsysnum_linux_arm.go | 4 + .../x/sys/unix/zsysnum_linux_arm64.go | 4 + .../x/sys/unix/zsysnum_linux_loong64.go | 4 + .../x/sys/unix/zsysnum_linux_mips.go | 4 + .../x/sys/unix/zsysnum_linux_mips64.go | 4 + .../x/sys/unix/zsysnum_linux_mips64le.go | 4 + .../x/sys/unix/zsysnum_linux_mipsle.go | 4 + .../x/sys/unix/zsysnum_linux_ppc.go | 4 + .../x/sys/unix/zsysnum_linux_ppc64.go | 4 + .../x/sys/unix/zsysnum_linux_ppc64le.go | 4 + .../x/sys/unix/zsysnum_linux_riscv64.go | 4 + .../x/sys/unix/zsysnum_linux_s390x.go | 4 + .../x/sys/unix/zsysnum_linux_sparc64.go | 4 + vendor/golang.org/x/sys/unix/ztypes_linux.go | 185 +- .../golang.org/x/sys/windows/env_windows.go | 17 +- .../x/sys/windows/syscall_windows.go | 4 +- .../x/sys/windows/zsyscall_windows.go | 9 + vendor/modules.txt | 27 +- 268 files changed, 91924 insertions(+), 39998 deletions(-) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/CHANGELOG.md rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/{compute/armcompute => appcontainers/armappcontainers/v3}/LICENSE.txt (100%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/README.md create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/appresiliency_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/autorest.md create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/availableworkloadprofiles_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/billingmeters_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/build.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildauthtoken_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builders_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builds_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildsbybuilderresource_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/certificates_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/ci.yml create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/client_factory.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironments_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentscertificates_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsdaprcomponents_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsstorages_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/constants.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerapps_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsapi_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsauthconfigs_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsdiagnostics_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisionreplicas_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisions_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappssourcecontrols_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponentresiliencypolicies_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponents_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprsubscriptions_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/dotnetcomponents_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/javacomponents_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobs_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobsexecutions_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedcertificates_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentdiagnostics_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironments_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsdiagnostics_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsstorages_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentusages_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models_serde.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/namespaces_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/operations_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/options.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/responses.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/time_rfc3339.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/usages_client.go delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/CHANGELOG.md delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/autorest.md create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/{datafactory/armdatafactory => compute/armcompute/v5}/LICENSE.txt (100%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{ => v5}/README.md (60%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_availabilitysets_client.go => v5/availabilitysets_client.go} (72%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{ => v5}/build.go (59%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_capacityreservationgroups_client.go => v5/capacityreservationgroups_client.go} (71%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_capacityreservations_client.go => v5/capacityreservations_client.go} (70%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{ => v5}/ci.yml (87%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/client_factory.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_cloudserviceoperatingsystems_client.go => v5/cloudserviceoperatingsystems_client.go} (74%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_cloudserviceroleinstances_client.go => v5/cloudserviceroleinstances_client.go} (70%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_cloudserviceroles_client.go => v5/cloudserviceroles_client.go} (73%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_cloudservices_client.go => v5/cloudservices_client.go} (63%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_cloudservicesupdatedomain_client.go => v5/cloudservicesupdatedomain_client.go} (64%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_communitygalleries_client.go => v5/communitygalleries_client.go} (69%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimages_client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimageversions_client.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_constants.go => v5/constants.go} (80%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_dedicatedhostgroups_client.go => v5/dedicatedhostgroups_client.go} (71%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_dedicatedhosts_client.go => v5/dedicatedhosts_client.go} (50%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_diskaccesses_client.go => v5/diskaccesses_client.go} (65%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_diskencryptionsets_client.go => v5/diskencryptionsets_client.go} (66%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_diskrestorepoint_client.go => v5/diskrestorepoint_client.go} (69%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_disks_client.go => v5/disks_client.go} (62%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_galleries_client.go => v5/galleries_client.go} (65%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_galleryapplications_client.go => v5/galleryapplications_client.go} (65%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_galleryapplicationversions_client.go => v5/galleryapplicationversions_client.go} (67%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_galleryimages_client.go => v5/galleryimages_client.go} (65%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_galleryimageversions_client.go => v5/galleryimageversions_client.go} (66%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_gallerysharingprofile_client.go => v5/gallerysharingprofile_client.go} (63%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_images_client.go => v5/images_client.go} (66%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_loganalytics_client.go => v5/loganalytics_client.go} (63%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_models.go => v5/models.go} (50%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_operations_client.go => v5/operations_client.go} (72%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_proximityplacementgroups_client.go => v5/proximityplacementgroups_client.go} (71%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_resourceskus_client.go => v5/resourceskus_client.go} (67%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_response_types.go => v5/responses.go} (65%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_restorepointcollections_client.go => v5/restorepointcollections_client.go} (71%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_restorepoints_client.go => v5/restorepoints_client.go} (68%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_sharedgalleries_client.go => v5/sharedgalleries_client.go} (70%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_sharedgalleryimages_client.go => v5/sharedgalleryimages_client.go} (71%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_sharedgalleryimageversions_client.go => v5/sharedgalleryimageversions_client.go} (70%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_snapshots_client.go => v5/snapshots_client.go} (62%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_sshpublickeys_client.go => v5/sshpublickeys_client.go} (70%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/time_rfc3339.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_usage_client.go => v5/usage_client.go} (64%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachineextensionimages_client.go => v5/virtualmachineextensionimages_client.go} (75%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachineextensions_client.go => v5/virtualmachineextensions_client.go} (66%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachineimages_client.go => v5/virtualmachineimages_client.go} (61%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachineimagesedgezone_client.go => v5/virtualmachineimagesedgezone_client.go} (74%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachineruncommands_client.go => v5/virtualmachineruncommands_client.go} (68%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachines_client.go => v5/virtualmachines_client.go} (63%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachinescalesetextensions_client.go => v5/virtualmachinescalesetextensions_client.go} (67%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachinescalesetrollingupgrades_client.go => v5/virtualmachinescalesetrollingupgrades_client.go} (68%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachinescalesets_client.go => v5/virtualmachinescalesets_client.go} (62%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachinescalesetvmextensions_client.go => v5/virtualmachinescalesetvmextensions_client.go} (69%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachinescalesetvmruncommands_client.go => v5/virtualmachinescalesetvmruncommands_client.go} (69%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachinescalesetvms_client.go => v5/virtualmachinescalesetvms_client.go} (60%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/{zz_generated_virtualmachinesizes_client.go => v5/virtualmachinesizes_client.go} (73%) delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimages_client.go delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimageversions_client.go delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models_serde.go delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_time_rfc3339.go delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/autorest.md delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/CHANGELOG.md create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/LICENSE.txt rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/README.md (67%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/activityruns_client.go (72%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/assets.json create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/autorest.md rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/build.go (74%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/changedatacapture_client.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/ci.yml (88%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/client_factory.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/constants.go (80%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/credentialoperations_client.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/dataflowdebugsession_client.go (70%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/dataflows_client.go (74%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/datasets_client.go (74%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/exposurecontrol_client.go (72%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/factories_client.go (72%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/globalparameters_client.go (74%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/integrationruntimenodes_client.go (74%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/integrationruntimeobjectmetadata_client.go (72%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/integrationruntimes_client.go (74%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/interfaces.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/linkedservices_client.go (74%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/managedprivateendpoints_client.go (76%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/managedvirtualnetworks_client.go (75%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/models.go (67%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/models_serde.go (80%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/operations_client.go (65%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/options.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/pipelineruns_client.go (73%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/pipelines_client.go (75%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/polymorphic_helpers.go (85%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/privateendpointconnection_client.go (75%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/privateendpointconnections_client.go (70%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/privatelinkresources_client.go (73%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{response_types.go => v7/responses.go} (72%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/time_rfc3339.go rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/triggerruns_client.go (73%) rename vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/{ => v7}/triggers_client.go (72%) create mode 100644 vendor/github.com/google/uuid/version6.go create mode 100644 vendor/github.com/google/uuid/version7.go create mode 100644 vendor/github.com/magodo/aztft/internal/populate/populate_container_app_env.go create mode 100644 vendor/github.com/magodo/aztft/internal/populate/populate_lb.go create mode 100644 vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_credential.go create mode 100644 vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_data_disk.go create mode 100644 vendor/github.com/magodo/aztft/internal/tfid/build_automation_job_schedule.go delete mode 100644 vendor/golang.org/x/net/http2/go111.go delete mode 100644 vendor/golang.org/x/net/http2/go115.go delete mode 100644 vendor/golang.org/x/net/http2/go118.go delete mode 100644 vendor/golang.org/x/net/http2/not_go111.go delete mode 100644 vendor/golang.org/x/net/http2/not_go115.go delete mode 100644 vendor/golang.org/x/net/http2/not_go118.go diff --git a/go.mod b/go.mod index eba3de79..321034f2 100644 --- a/go.mod +++ b/go.mod @@ -9,26 +9,27 @@ require ( github.com/hashicorp/terraform-exec v0.18.1 github.com/hashicorp/terraform-json v0.17.1 github.com/hashicorp/terraform-plugin-sdk/v2 v2.27.0 - github.com/magodo/aztft v0.3.1-0.20240422020901-86b6f1d0d407 + github.com/magodo/aztft v0.3.1-0.20240628052037-ea373ea89d48 github.com/magodo/tfadd v0.10.1-0.20230512075749-9c0bab46fdb8 github.com/mitchellh/cli v1.1.5 github.com/zclconf/go-cty v1.13.2 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.6.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement v0.8.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement v1.1.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3 v3.0.0-beta.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights v1.1.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform v1.1.0-beta.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice v1.0.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation v0.8.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice v1.1.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn v1.1.1 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2 v2.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory v1.3.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7 v7.0.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection v1.0.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datashare/armdatashare v1.1.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization v1.0.0 // indirect @@ -69,7 +70,7 @@ require ( github.com/fatih/color v1.15.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/google/uuid v1.3.1 // indirect + github.com/google/uuid v1.5.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect @@ -96,10 +97,10 @@ require ( github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - golang.org/x/crypto v0.17.0 // indirect + golang.org/x/crypto v0.21.0 // indirect golang.org/x/mod v0.11.0 // indirect - golang.org/x/net v0.17.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/net v0.22.0 // indirect + golang.org/x/sys v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.31.0 // indirect diff --git a/go.sum b/go.sum index 98d3f59b..c8409421 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,14 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0 h1:fb8kj/Dh4CSwgsOzHeZY4Xh68cFVbzXx+ONXGMY//4w= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0/go.mod h1:uReU2sSxZExRPBAg3qKzmAucSi51+SP1OhohieR821Q= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.4.0 h1:BMAjVKJM0U/CYF27gA0ZMmXGkOcvfFtD0oHVZ1TIPRI= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0 h1:d81/ng9rET2YqdVkVwkb6EXeRrLJIwyGnJcAlAWKwhs= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0/go.mod h1:s4kgfzA0covAXNicZHDMN58jExvcng2mC/DepXiF1EI= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2 h1:c4k2FIYIh4xtwqrQwV0Ct1v5+ehlNXj5NI/MWVsiTkQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2/go.mod h1:5FDJtLEO/GxwNgUxbwrY3LP0pEoThTQJtk2oysdXHxM= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1 h1:sO0/P7g68FrryJzljemN+6GTssUXdANk6aJ7T1ZxnsQ= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.6.0 h1:sUFnFjzDUie80h24I7mrKtwCKgLY9L8h5Tp2x9+TWqk= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.6.0/go.mod h1:52JbnQTp15qg5mRkMBHwp0j0ZFwHJ42Sx3zVV5RE9p0= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement v0.8.1 h1:QbJTRu1VHZZpWdXZk4VR03i2HJMTjYGuyNeR0zrFQrw= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement v0.8.1/go.mod h1:aD/gQwtViumQKZqC0Bg8Tk6BbniwVMdFF+R2pUjpdkU= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement v1.1.1 h1:jCkNVNpsEevyic4bmjgVjzVA4tMGSJpXNGirf+S+mDI= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement v1.1.1/go.mod h1:a0Ug1l73Il7EhrCJEEt2dGjlNjvphppZq5KqJdgnwuw= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3 v3.0.0-beta.1 h1:5hCJnujXzlQvFMzmVFqBcA78iV5w+vsKL2vrrjqdW2A= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3 v3.0.0-beta.1/go.mod h1:Ro3jxA16UFXEpIhlUdrX12kSrOceSrV8rMcmnc0FYI8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights v1.1.1 h1:hBrFatNIiVAwDb5GzMLjpkQ6l2/waFSvBWMBWZRH8WI= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights v1.1.1/go.mod h1:uxknLoFj+nBXpfGngz0B4ciNur04Y0EX4AREpy2GIvk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform v1.1.0-beta.1 h1:hQJe8H6ZruSIWEzoNCB/GH9gGa7ntRDqaebxj8UeguI= @@ -19,12 +21,12 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice v github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice v1.1.1/go.mod h1:ojs9TglxCeuWMnDYKzvkpye1rT3w6NKoNcuo4TqzaD4= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn v1.1.1 h1:CtE6GCP9YEDF6DjpFxl7xQBqklqfyCC/xkBKUGa/IAc= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn v1.1.1/go.mod h1:b9yk+8vyxSsBsiEjk9kzrwxgyn+7+J4HzDOYUPznES4= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0 h1:/Di3vB4sNeQ+7A8efjUVENvyB945Wruvstucqp7ZArg= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0/go.mod h1:gM3K25LQlsET3QR+4V74zxCsFAy0r6xMNN9n80SZn+4= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 h1:LkHbJbgF3YyvC53aqYGR+wWQDn2Rdp9AQdGndf9QvY4= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0/go.mod h1:QyiQdW4f4/BIfB8ZutZ2s+28RAgfa/pT+zS++ZHyM1I= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2 v2.0.0 h1:xHWCrCQT1TUlDZ5yJ2kOilHx1FNSb0Y4vpPDL6EXfmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2 v2.0.0/go.mod h1:x3FsIReHYfFFH5ICfUMpF8Fc2PJmnY9AaLCYm4wUU34= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory v1.3.0 h1:pmKRJksZidUYbOMQ2wtVm4L9q0BadVfBsF/fPKUUnjg= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory v1.3.0/go.mod h1:CmZkcUHLqzY7I+io4fQda7G1ZJ/4R0b3/iPFzEWWl7E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7 v7.0.0 h1:0kFVoHWNRGJE5N8dAaSkMaFGp1UhO43ICeZJFcLxHJI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7 v7.0.0/go.mod h1:7HeBNl53VshGDi84AM31jBKzkTyS6tVzYQ0mdrnQib0= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection v1.0.0 h1:VFqjVi532z3gdltbAkYrPl9Ez0czn3ZPM+bjmvLq6fk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection v1.0.0/go.mod h1:CmZQSRwBPP7KNjDA+PHaoR2m8wgOsbTd9ncqZgSzgHA= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datashare/armdatashare v1.1.0 h1:/76O+KjBwyPVu2IiC1bhkvuWyj9cQSpalJJb63dHjNg= @@ -42,6 +44,7 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor v1. github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hdinsight/armhdinsight v1.1.1 h1:6ghFnaAk11vxyGn801zsqguqy+RH4Iz3F66dmzMcggY= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hdinsight/armhdinsight v1.1.1/go.mod h1:u6bw9rYVrSELFGelW3WlH6+LvxvPhgAKOLqpqI2hv6k= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iothub/armiothub v1.1.1 h1:Dh8SxVXcSyQN76LI4IseKyrnqyTUsx336Axg8zDYSMs= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iothub/armiothub v1.1.1/go.mod h1:fqmmortNEICbosf7BfNVO3wWs6Cz/pkxYfExJC97Vy8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault v1.2.0 h1:8d4U82r7ItT1Es91x3eUcAQweih36KWvUha8AZ9X0Rs= @@ -69,7 +72,7 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecove github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery v1.1.0/go.mod h1:woN5JsidpzBh+hOMpof6vqutskFi/WtbT4ESGLx2wSo= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts v1.0.0 h1:qd/BfXBy0s/cPn/hVVX+Ps0HolpC1NsHE2p+L2zB4C4= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts v1.0.0/go.mod h1:P1SgXux7JvaLh0fwpYwtY2csL+RYAc033mNha1Txlm8= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.1.1 h1:7CBQ+Ei8SP2c6ydQTGCCrS35bDxgTMfoP2miAwK++OU= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securityinsights/armsecurityinsights/v2 v2.0.0-beta.3 h1:2VnWKecWDUPWV0n28Eyg4njrILLxAE879/uRkxISBtg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securityinsights/armsecurityinsights/v2 v2.0.0-beta.3/go.mod h1:ASXmyoagGzY2vkPZCbrGYjB0wZAMjha3owBXoeVO1rs= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.3.0 h1:LcJtQjCXJUm1s7JpUHZvu+bpgURhCatxVNbGADXniX0= @@ -88,7 +91,7 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/timeseriesinsights/armtime github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights v1.1.0/go.mod h1:Ae4+zKkPmzlcgVwNIvAfbh9J2pgXqHBG9bdrHYkjr6o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads v1.1.0 h1:kW9b3n/hV4/JgghAPinYHolJtocM/gPNCaeuqLqXzpc= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads v1.1.0/go.mod h1:G2hOQegwo7b7uqWaKRfqt6GG3x/eOnUA3qhT49fQRwA= -github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1 h1:WpB/QDNLpMw72xHJc34BNNykqSOeEJDAWkhf0u12/Jk= +github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1 h1:DzHpqpoJVaCgOUdVHxE8QB52S6NiVdDQvGlny1qvPqA= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= @@ -128,7 +131,7 @@ github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8 github.com/go-git/go-git/v5 v5.6.1 h1:q4ZRqQl4pR/ZJHc1L5CFjGA1a10u76aV1iC+nh+bHsk= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= -github.com/golang-jwt/jwt/v5 v5.0.0 h1:1n1XNM9hk7O9mnQoNBGolZvzebBQ7p93ULHRc28XJUE= +github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -140,8 +143,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -193,8 +196,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/magodo/armid v0.0.0-20230511151020-27880e5961c3 h1:ob6vk6PlChZvutcxcLnmPH/VNmJEuwz+TmCYCVtJqeA= github.com/magodo/armid v0.0.0-20230511151020-27880e5961c3/go.mod h1:rR8E7zfGMbmfnSQvrkFiWYdhrfTqsVSltelnZB09BwA= -github.com/magodo/aztft v0.3.1-0.20240422020901-86b6f1d0d407 h1:fyTXRbvxOFZMcDwH+Zc44M4XbY/5NWB2jjyqqU5K+Jk= -github.com/magodo/aztft v0.3.1-0.20240422020901-86b6f1d0d407/go.mod h1:hqk4M4qig7+LTNKeHCNgi+hZfJBndnx4oSNAvP5KT0Y= +github.com/magodo/aztft v0.3.1-0.20240628052037-ea373ea89d48 h1:5gqzLISv6i2zbmBNPxASDb1tm19ZrLcq2LcYQW3qD1E= +github.com/magodo/aztft v0.3.1-0.20240628052037-ea373ea89d48/go.mod h1:CHeYYR+/RTjUry+0bpkI49PvQ/1sTe7itA+9BqKE1/8= github.com/magodo/tfadd v0.10.1-0.20230512075749-9c0bab46fdb8 h1:GWxGiCXPxOpekP5dBrPMQTfF7KdmwQ7EPlBeohJlPgo= github.com/magodo/tfadd v0.10.1-0.20230512075749-9c0bab46fdb8/go.mod h1:DbJnYhmAkyjNnVt819cytTfJMtv5DpqV9MkHuUbyv3c= github.com/magodo/tfpluginschema v0.0.0-20220905090502-2d6a05ebaefd h1:L0kTduNwpx60EdBPYOVF9oUY7jdfZHIncvQN490qWd4= @@ -227,7 +230,7 @@ github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= 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/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= @@ -248,7 +251,7 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -266,8 +269,8 @@ golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU= golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= @@ -277,8 +280,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= +golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -296,8 +299,8 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md index aa30abf3..7a0a524e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 1.9.2 (2024-02-06) + +### Bugs Fixed + +* `runtime.MarshalAsByteArray` and `runtime.MarshalAsJSON` will preserve the preexisting value of the `Content-Type` header. + +### Other Changes + +* Update to latest version of `internal`. + +## 1.9.1 (2023-12-11) + +### Bugs Fixed + +* The `retry-after-ms` and `x-ms-retry-after-ms` headers weren't being checked during retries. + +### Other Changes + +* Update dependencies. + ## 1.9.0 (2023-11-06) ### Breaking Changes diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/request.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/request.go index 659f2a7d..8d1ae213 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/request.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/request.go @@ -125,46 +125,11 @@ func (req *Request) OperationValue(value interface{}) bool { // SetBody sets the specified ReadSeekCloser as the HTTP request body, and sets Content-Type and Content-Length // accordingly. If the ReadSeekCloser is nil or empty, Content-Length won't be set. If contentType is "", -// Content-Type won't be set. +// Content-Type won't be set, and if it was set, will be deleted. // Use streaming.NopCloser to turn an io.ReadSeeker into an io.ReadSeekCloser. func (req *Request) SetBody(body io.ReadSeekCloser, contentType string) error { - var err error - var size int64 - if body != nil { - size, err = body.Seek(0, io.SeekEnd) // Seek to the end to get the stream's size - if err != nil { - return err - } - } - if size == 0 { - // treat an empty stream the same as a nil one: assign req a nil body - body = nil - // RFC 9110 specifies a client shouldn't set Content-Length on a request containing no content - // (Del is a no-op when the header has no value) - req.req.Header.Del(shared.HeaderContentLength) - } else { - _, err = body.Seek(0, io.SeekStart) - if err != nil { - return err - } - req.req.Header.Set(shared.HeaderContentLength, strconv.FormatInt(size, 10)) - req.Raw().GetBody = func() (io.ReadCloser, error) { - _, err := body.Seek(0, io.SeekStart) // Seek back to the beginning of the stream - return body, err - } - } - // keep a copy of the body argument. this is to handle cases - // where req.Body is replaced, e.g. httputil.DumpRequest and friends. - req.body = body - req.req.Body = body - req.req.ContentLength = size - if contentType == "" { - // Del is a no-op when the header has no value - req.req.Header.Del(shared.HeaderContentType) - } else { - req.req.Header.Set(shared.HeaderContentType, contentType) - } - return nil + // clobber the existing Content-Type to preserve behavior + return SetBody(req, body, contentType, true) } // RewindBody seeks the request's Body stream back to the beginning so it can be resent when retrying an operation. @@ -211,3 +176,48 @@ type PolicyFunc func(*Request) (*http.Response, error) func (pf PolicyFunc) Do(req *Request) (*http.Response, error) { return pf(req) } + +// SetBody sets the specified ReadSeekCloser as the HTTP request body, and sets Content-Type and Content-Length accordingly. +// - req is the request to modify +// - body is the request body; if nil or empty, Content-Length won't be set +// - contentType is the value for the Content-Type header; if empty, Content-Type will be deleted +// - clobberContentType when true, will overwrite the existing value of Content-Type with contentType +func SetBody(req *Request, body io.ReadSeekCloser, contentType string, clobberContentType bool) error { + var err error + var size int64 + if body != nil { + size, err = body.Seek(0, io.SeekEnd) // Seek to the end to get the stream's size + if err != nil { + return err + } + } + if size == 0 { + // treat an empty stream the same as a nil one: assign req a nil body + body = nil + // RFC 9110 specifies a client shouldn't set Content-Length on a request containing no content + // (Del is a no-op when the header has no value) + req.req.Header.Del(shared.HeaderContentLength) + } else { + _, err = body.Seek(0, io.SeekStart) + if err != nil { + return err + } + req.req.Header.Set(shared.HeaderContentLength, strconv.FormatInt(size, 10)) + req.Raw().GetBody = func() (io.ReadCloser, error) { + _, err := body.Seek(0, io.SeekStart) // Seek back to the beginning of the stream + return body, err + } + } + // keep a copy of the body argument. this is to handle cases + // where req.Body is replaced, e.g. httputil.DumpRequest and friends. + req.body = body + req.req.Body = body + req.req.ContentLength = size + if contentType == "" { + // Del is a no-op when the header has no value + req.req.Header.Del(shared.HeaderContentType) + } else if req.req.Header.Get(shared.HeaderContentType) == "" || clobberContentType { + req.req.Header.Set(shared.HeaderContentType, contentType) + } + return nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go index 272f0615..8f749f48 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go @@ -22,11 +22,13 @@ const ( HeaderLocation = "Location" HeaderOperationLocation = "Operation-Location" HeaderRetryAfter = "Retry-After" + HeaderRetryAfterMS = "Retry-After-Ms" HeaderUserAgent = "User-Agent" HeaderWWWAuthenticate = "WWW-Authenticate" HeaderXMSClientRequestID = "x-ms-client-request-id" HeaderXMSRequestID = "x-ms-request-id" HeaderXMSErrorCode = "x-ms-error-code" + HeaderXMSRetryAfterMS = "x-ms-retry-after-ms" ) const BearerTokenPrefix = "Bearer " @@ -38,5 +40,5 @@ const ( Module = "azcore" // Version is the semantic version (see http://semver.org) of this module. - Version = "v1.9.0" + Version = "v1.9.2" ) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/shared.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/shared.go index 16bc105f..d3da2c5f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/shared.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/shared.go @@ -44,22 +44,64 @@ func Delay(ctx context.Context, delay time.Duration) error { } } -// RetryAfter returns non-zero if the response contains a Retry-After header value. +// RetryAfter returns non-zero if the response contains one of the headers with a "retry after" value. +// Headers are checked in the following order: retry-after-ms, x-ms-retry-after-ms, retry-after func RetryAfter(resp *http.Response) time.Duration { if resp == nil { return 0 } - ra := resp.Header.Get(HeaderRetryAfter) - if ra == "" { - return 0 + + type retryData struct { + header string + units time.Duration + + // custom is used when the regular algorithm failed and is optional. + // the returned duration is used verbatim (units is not applied). + custom func(string) time.Duration } - // retry-after values are expressed in either number of - // seconds or an HTTP-date indicating when to try again - if retryAfter, _ := strconv.Atoi(ra); retryAfter > 0 { - return time.Duration(retryAfter) * time.Second - } else if t, err := time.Parse(time.RFC1123, ra); err == nil { - return time.Until(t) + + nop := func(string) time.Duration { return 0 } + + // the headers are listed in order of preference + retries := []retryData{ + { + header: HeaderRetryAfterMS, + units: time.Millisecond, + custom: nop, + }, + { + header: HeaderXMSRetryAfterMS, + units: time.Millisecond, + custom: nop, + }, + { + header: HeaderRetryAfter, + units: time.Second, + + // retry-after values are expressed in either number of + // seconds or an HTTP-date indicating when to try again + custom: func(ra string) time.Duration { + t, err := time.Parse(time.RFC1123, ra) + if err != nil { + return 0 + } + return time.Until(t) + }, + }, } + + for _, retry := range retries { + v := resp.Header.Get(retry.header) + if v == "" { + continue + } + if retryAfter, _ := strconv.Atoi(v); retryAfter > 0 { + return time.Duration(retryAfter) * retry.units + } else if d := retry.custom(v); d > 0 { + return d + } + } + return 0 } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/request.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/request.go index e97223da..5d1569c8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/request.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/request.go @@ -97,7 +97,8 @@ func EncodeByteArray(v []byte, format Base64Encoding) string { func MarshalAsByteArray(req *policy.Request, v []byte, format Base64Encoding) error { // send as a JSON string encode := fmt.Sprintf("\"%s\"", EncodeByteArray(v, format)) - return req.SetBody(exported.NopCloser(strings.NewReader(encode)), shared.ContentTypeAppJSON) + // tsp generated code can set Content-Type so we must prefer that + return exported.SetBody(req, exported.NopCloser(strings.NewReader(encode)), shared.ContentTypeAppJSON, false) } // MarshalAsJSON calls json.Marshal() to get the JSON encoding of v then calls SetBody. @@ -106,7 +107,8 @@ func MarshalAsJSON(req *policy.Request, v interface{}) error { if err != nil { return fmt.Errorf("error marshalling type %T: %s", v, err) } - return req.SetBody(exported.NopCloser(bytes.NewReader(b)), shared.ContentTypeAppJSON) + // tsp generated code can set Content-Type so we must prefer that + return exported.SetBody(req, exported.NopCloser(bytes.NewReader(b)), shared.ContentTypeAppJSON, false) } // MarshalAsXML calls xml.Marshal() to get the XML encoding of v then calls SetBody. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/exported/exported.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/exported/exported.go index d4ed6ccc..9948f604 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/exported/exported.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/exported/exported.go @@ -39,6 +39,11 @@ type PayloadOptions struct { // Subsequent reads will access the cached value. // Exported as runtime.Payload() WITHOUT the opts parameter. func Payload(resp *http.Response, opts *PayloadOptions) ([]byte, error) { + if resp.Body == nil { + // this shouldn't happen in real-world scenarios as a + // response with no body should set it to http.NoBody + return nil, nil + } modifyBytes := func(b []byte) []byte { return b } if opts != nil && opts.BytesModifier != nil { modifyBytes = opts.BytesModifier diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/CHANGELOG.md new file mode 100644 index 00000000..20f5fda4 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/CHANGELOG.md @@ -0,0 +1,398 @@ +# Release History + +## 3.0.0-beta.1 (2024-03-22) +### Breaking Changes + +- Field `EndTime`, `StartTime`, `Status`, `Template` of struct `JobExecution` has been removed + +### Features Added + +- New value `StorageTypeNfsAzureFile` added to enum type `StorageType` +- New enum type `BuildProvisioningState` with values `BuildProvisioningStateCanceled`, `BuildProvisioningStateCreating`, `BuildProvisioningStateDeleting`, `BuildProvisioningStateFailed`, `BuildProvisioningStateSucceeded`, `BuildProvisioningStateUpdating` +- New enum type `BuildStatus` with values `BuildStatusCanceled`, `BuildStatusFailed`, `BuildStatusInProgress`, `BuildStatusNotStarted`, `BuildStatusSucceeded` +- New enum type `BuilderProvisioningState` with values `BuilderProvisioningStateCanceled`, `BuilderProvisioningStateCreating`, `BuilderProvisioningStateDeleting`, `BuilderProvisioningStateFailed`, `BuilderProvisioningStateSucceeded`, `BuilderProvisioningStateUpdating` +- New enum type `CertificateType` with values `CertificateTypeImagePullTrustedCA`, `CertificateTypeServerSSLCertificate` +- New enum type `DotNetComponentProvisioningState` with values `DotNetComponentProvisioningStateCanceled`, `DotNetComponentProvisioningStateDeleting`, `DotNetComponentProvisioningStateFailed`, `DotNetComponentProvisioningStateInProgress`, `DotNetComponentProvisioningStateSucceeded` +- New enum type `DotNetComponentType` with values `DotNetComponentTypeAspireDashboard`, `DotNetComponentTypeAspireResourceServerAPI` +- New enum type `IngressTargetPortHTTPScheme` with values `IngressTargetPortHTTPSchemeHTTP`, `IngressTargetPortHTTPSchemeHTTPS` +- New enum type `JavaComponentProvisioningState` with values `JavaComponentProvisioningStateCanceled`, `JavaComponentProvisioningStateDeleting`, `JavaComponentProvisioningStateFailed`, `JavaComponentProvisioningStateInProgress`, `JavaComponentProvisioningStateSucceeded` +- New enum type `JavaComponentType` with values `JavaComponentTypeSpringBootAdmin`, `JavaComponentTypeSpringCloudConfig`, `JavaComponentTypeSpringCloudEureka` +- New function `NewAppResiliencyClient(string, azcore.TokenCredential, *arm.ClientOptions) (*AppResiliencyClient, error)` +- New function `*AppResiliencyClient.CreateOrUpdate(context.Context, string, string, string, AppResiliency, *AppResiliencyClientCreateOrUpdateOptions) (AppResiliencyClientCreateOrUpdateResponse, error)` +- New function `*AppResiliencyClient.Delete(context.Context, string, string, string, *AppResiliencyClientDeleteOptions) (AppResiliencyClientDeleteResponse, error)` +- New function `*AppResiliencyClient.Get(context.Context, string, string, string, *AppResiliencyClientGetOptions) (AppResiliencyClientGetResponse, error)` +- New function `*AppResiliencyClient.NewListPager(string, string, *AppResiliencyClientListOptions) *runtime.Pager[AppResiliencyClientListResponse]` +- New function `*AppResiliencyClient.Update(context.Context, string, string, string, AppResiliency, *AppResiliencyClientUpdateOptions) (AppResiliencyClientUpdateResponse, error)` +- New function `NewBuildAuthTokenClient(string, azcore.TokenCredential, *arm.ClientOptions) (*BuildAuthTokenClient, error)` +- New function `*BuildAuthTokenClient.List(context.Context, string, string, string, *BuildAuthTokenClientListOptions) (BuildAuthTokenClientListResponse, error)` +- New function `NewBuildersClient(string, azcore.TokenCredential, *arm.ClientOptions) (*BuildersClient, error)` +- New function `*BuildersClient.BeginCreateOrUpdate(context.Context, string, string, BuilderResource, *BuildersClientBeginCreateOrUpdateOptions) (*runtime.Poller[BuildersClientCreateOrUpdateResponse], error)` +- New function `*BuildersClient.BeginDelete(context.Context, string, string, *BuildersClientBeginDeleteOptions) (*runtime.Poller[BuildersClientDeleteResponse], error)` +- New function `*BuildersClient.Get(context.Context, string, string, *BuildersClientGetOptions) (BuildersClientGetResponse, error)` +- New function `*BuildersClient.NewListByResourceGroupPager(string, *BuildersClientListByResourceGroupOptions) *runtime.Pager[BuildersClientListByResourceGroupResponse]` +- New function `*BuildersClient.NewListBySubscriptionPager(*BuildersClientListBySubscriptionOptions) *runtime.Pager[BuildersClientListBySubscriptionResponse]` +- New function `*BuildersClient.BeginUpdate(context.Context, string, string, BuilderResourceUpdate, *BuildersClientBeginUpdateOptions) (*runtime.Poller[BuildersClientUpdateResponse], error)` +- New function `NewBuildsByBuilderResourceClient(string, azcore.TokenCredential, *arm.ClientOptions) (*BuildsByBuilderResourceClient, error)` +- New function `*BuildsByBuilderResourceClient.NewListPager(string, string, *BuildsByBuilderResourceClientListOptions) *runtime.Pager[BuildsByBuilderResourceClientListResponse]` +- New function `NewBuildsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*BuildsClient, error)` +- New function `*BuildsClient.BeginCreateOrUpdate(context.Context, string, string, string, BuildResource, *BuildsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BuildsClientCreateOrUpdateResponse], error)` +- New function `*BuildsClient.BeginDelete(context.Context, string, string, string, *BuildsClientBeginDeleteOptions) (*runtime.Poller[BuildsClientDeleteResponse], error)` +- New function `*BuildsClient.Get(context.Context, string, string, string, *BuildsClientGetOptions) (BuildsClientGetResponse, error)` +- New function `*ClientFactory.NewAppResiliencyClient() *AppResiliencyClient` +- New function `*ClientFactory.NewBuildAuthTokenClient() *BuildAuthTokenClient` +- New function `*ClientFactory.NewBuildersClient() *BuildersClient` +- New function `*ClientFactory.NewBuildsByBuilderResourceClient() *BuildsByBuilderResourceClient` +- New function `*ClientFactory.NewBuildsClient() *BuildsClient` +- New function `*ClientFactory.NewDaprComponentResiliencyPoliciesClient() *DaprComponentResiliencyPoliciesClient` +- New function `*ClientFactory.NewDaprSubscriptionsClient() *DaprSubscriptionsClient` +- New function `*ClientFactory.NewDotNetComponentsClient() *DotNetComponentsClient` +- New function `*ClientFactory.NewJavaComponentsClient() *JavaComponentsClient` +- New function `*ClientFactory.NewManagedEnvironmentUsagesClient() *ManagedEnvironmentUsagesClient` +- New function `*ClientFactory.NewUsagesClient() *UsagesClient` +- New function `*ContainerAppsAPIClient.GetCustomDomainVerificationID(context.Context, *ContainerAppsAPIClientGetCustomDomainVerificationIDOptions) (ContainerAppsAPIClientGetCustomDomainVerificationIDResponse, error)` +- New function `NewDaprComponentResiliencyPoliciesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DaprComponentResiliencyPoliciesClient, error)` +- New function `*DaprComponentResiliencyPoliciesClient.CreateOrUpdate(context.Context, string, string, string, string, DaprComponentResiliencyPolicy, *DaprComponentResiliencyPoliciesClientCreateOrUpdateOptions) (DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse, error)` +- New function `*DaprComponentResiliencyPoliciesClient.Delete(context.Context, string, string, string, string, *DaprComponentResiliencyPoliciesClientDeleteOptions) (DaprComponentResiliencyPoliciesClientDeleteResponse, error)` +- New function `*DaprComponentResiliencyPoliciesClient.Get(context.Context, string, string, string, string, *DaprComponentResiliencyPoliciesClientGetOptions) (DaprComponentResiliencyPoliciesClientGetResponse, error)` +- New function `*DaprComponentResiliencyPoliciesClient.NewListPager(string, string, string, *DaprComponentResiliencyPoliciesClientListOptions) *runtime.Pager[DaprComponentResiliencyPoliciesClientListResponse]` +- New function `NewDaprSubscriptionsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DaprSubscriptionsClient, error)` +- New function `*DaprSubscriptionsClient.CreateOrUpdate(context.Context, string, string, string, DaprSubscription, *DaprSubscriptionsClientCreateOrUpdateOptions) (DaprSubscriptionsClientCreateOrUpdateResponse, error)` +- New function `*DaprSubscriptionsClient.Delete(context.Context, string, string, string, *DaprSubscriptionsClientDeleteOptions) (DaprSubscriptionsClientDeleteResponse, error)` +- New function `*DaprSubscriptionsClient.Get(context.Context, string, string, string, *DaprSubscriptionsClientGetOptions) (DaprSubscriptionsClientGetResponse, error)` +- New function `*DaprSubscriptionsClient.NewListPager(string, string, *DaprSubscriptionsClientListOptions) *runtime.Pager[DaprSubscriptionsClientListResponse]` +- New function `NewDotNetComponentsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DotNetComponentsClient, error)` +- New function `*DotNetComponentsClient.BeginCreateOrUpdate(context.Context, string, string, string, DotNetComponent, *DotNetComponentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DotNetComponentsClientCreateOrUpdateResponse], error)` +- New function `*DotNetComponentsClient.BeginDelete(context.Context, string, string, string, *DotNetComponentsClientBeginDeleteOptions) (*runtime.Poller[DotNetComponentsClientDeleteResponse], error)` +- New function `*DotNetComponentsClient.Get(context.Context, string, string, string, *DotNetComponentsClientGetOptions) (DotNetComponentsClientGetResponse, error)` +- New function `*DotNetComponentsClient.NewListPager(string, string, *DotNetComponentsClientListOptions) *runtime.Pager[DotNetComponentsClientListResponse]` +- New function `*DotNetComponentsClient.BeginUpdate(context.Context, string, string, string, DotNetComponent, *DotNetComponentsClientBeginUpdateOptions) (*runtime.Poller[DotNetComponentsClientUpdateResponse], error)` +- New function `NewJavaComponentsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*JavaComponentsClient, error)` +- New function `*JavaComponentsClient.BeginCreateOrUpdate(context.Context, string, string, string, JavaComponent, *JavaComponentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[JavaComponentsClientCreateOrUpdateResponse], error)` +- New function `*JavaComponentsClient.BeginDelete(context.Context, string, string, string, *JavaComponentsClientBeginDeleteOptions) (*runtime.Poller[JavaComponentsClientDeleteResponse], error)` +- New function `*JavaComponentsClient.Get(context.Context, string, string, string, *JavaComponentsClientGetOptions) (JavaComponentsClientGetResponse, error)` +- New function `*JavaComponentsClient.NewListPager(string, string, *JavaComponentsClientListOptions) *runtime.Pager[JavaComponentsClientListResponse]` +- New function `*JavaComponentsClient.BeginUpdate(context.Context, string, string, string, JavaComponent, *JavaComponentsClientBeginUpdateOptions) (*runtime.Poller[JavaComponentsClientUpdateResponse], error)` +- New function `*JobsClient.GetDetector(context.Context, string, string, string, *JobsClientGetDetectorOptions) (JobsClientGetDetectorResponse, error)` +- New function `*JobsClient.ListDetectors(context.Context, string, string, *JobsClientListDetectorsOptions) (JobsClientListDetectorsResponse, error)` +- New function `*JobsClient.ProxyGet(context.Context, string, string, *JobsClientProxyGetOptions) (JobsClientProxyGetResponse, error)` +- New function `NewManagedEnvironmentUsagesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ManagedEnvironmentUsagesClient, error)` +- New function `*ManagedEnvironmentUsagesClient.NewListPager(string, string, *ManagedEnvironmentUsagesClientListOptions) *runtime.Pager[ManagedEnvironmentUsagesClientListResponse]` +- New function `NewUsagesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*UsagesClient, error)` +- New function `*UsagesClient.NewListPager(string, *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse]` +- New struct `AppInsightsConfiguration` +- New struct `AppResiliency` +- New struct `AppResiliencyCollection` +- New struct `AppResiliencyProperties` +- New struct `BlobStorageTokenStore` +- New struct `BuildCollection` +- New struct `BuildConfiguration` +- New struct `BuildProperties` +- New struct `BuildResource` +- New struct `BuildToken` +- New struct `BuilderCollection` +- New struct `BuilderProperties` +- New struct `BuilderResource` +- New struct `BuilderResourceUpdate` +- New struct `BuilderResourceUpdateProperties` +- New struct `CertificateKeyVaultProperties` +- New struct `CircuitBreakerPolicy` +- New struct `ContainerRegistry` +- New struct `ContainerRegistryWithCustomImage` +- New struct `DaprComponentResiliencyPoliciesCollection` +- New struct `DaprComponentResiliencyPolicy` +- New struct `DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration` +- New struct `DaprComponentResiliencyPolicyConfiguration` +- New struct `DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration` +- New struct `DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration` +- New struct `DaprComponentResiliencyPolicyProperties` +- New struct `DaprComponentResiliencyPolicyTimeoutPolicyConfiguration` +- New struct `DaprComponentServiceBinding` +- New struct `DaprServiceBindMetadata` +- New struct `DaprSubscription` +- New struct `DaprSubscriptionBulkSubscribeOptions` +- New struct `DaprSubscriptionProperties` +- New struct `DaprSubscriptionRouteRule` +- New struct `DaprSubscriptionRoutes` +- New struct `DaprSubscriptionsCollection` +- New struct `DataDogConfiguration` +- New struct `DestinationsConfiguration` +- New struct `DotNetComponent` +- New struct `DotNetComponentConfigurationProperty` +- New struct `DotNetComponentProperties` +- New struct `DotNetComponentServiceBind` +- New struct `DotNetComponentsCollection` +- New struct `EncryptionSettings` +- New struct `EnvironmentVariable` +- New struct `HTTPConnectionPool` +- New struct `HTTPGet` +- New struct `HTTPRetryPolicy` +- New struct `HTTPRetryPolicyMatches` +- New struct `HTTPRetryPolicyRetryBackOff` +- New struct `Header` +- New struct `HeaderMatch` +- New struct `HeaderMatchMatch` +- New struct `IngressPortMapping` +- New struct `JavaComponent` +- New struct `JavaComponentConfigurationProperty` +- New struct `JavaComponentProperties` +- New struct `JavaComponentServiceBind` +- New struct `JavaComponentsCollection` +- New struct `JobExecutionProperties` +- New struct `ListUsagesResult` +- New struct `LogsConfiguration` +- New struct `MetricsConfiguration` +- New struct `NfsAzureFileProperties` +- New struct `OpenTelemetryConfiguration` +- New struct `OtlpConfiguration` +- New struct `PreBuildStep` +- New struct `TCPConnectionPool` +- New struct `TCPRetryPolicy` +- New struct `TimeoutPolicy` +- New struct `TokenStore` +- New struct `TracesConfiguration` +- New struct `Usage` +- New struct `UsageName` +- New field `EncryptionSettings` in struct `AuthConfigProperties` +- New field `Gpus` in struct `AvailableWorkloadProfileProperties` +- New field `CertificateKeyVaultProperties`, `CertificateType` in struct `CertificateProperties` +- New field `CertificateKeyVaultProperties` in struct `CustomDomainConfiguration` +- New field `ServiceComponentBind` in struct `DaprComponentProperties` +- New field `BuildEnvironmentVariables` in struct `GithubActionConfiguration` +- New field `AdditionalPortMappings`, `TargetPortHTTPScheme` in struct `Ingress` +- New field `ExtendedLocation` in struct `Job` +- New field `Properties` in struct `JobExecution` +- New field `ExtendedLocation` in struct `JobPatchProperties` +- New field `DynamicJSONColumns` in struct `LogAnalyticsConfiguration` +- New field `TokenStore` in struct `Login` +- New field `Identity` in struct `ManagedEnvironment` +- New field `AppInsightsConfiguration`, `OpenTelemetryConfiguration` in struct `ManagedEnvironmentProperties` +- New field `NfsAzureFile` in struct `ManagedEnvironmentStorageProperties` +- New field `ClientType`, `CustomizedKeys` in struct `ServiceBind` + + +## 2.1.0 (2023-11-24) +### Features Added + +- Support for test fakes and OpenTelemetry trace spans. + + +## 2.0.0 (2023-08-25) +### Breaking Changes + +- Type of `DaprSecretsCollection.Value` has been changed from `[]*Secret` to `[]*DaprSecret` +- Struct `CustomHostnameAnalysisResultProperties` has been removed +- Field `ID`, `Name`, `Properties`, `SystemData`, `Type` of struct `CustomHostnameAnalysisResult` has been removed +- Field `RuntimeSubnetID` of struct `VnetConfiguration` has been removed + +### Features Added + +- New value `ContainerAppProvisioningStateDeleting` added to enum type `ContainerAppProvisioningState` +- New value `IngressTransportMethodTCP` added to enum type `IngressTransportMethod` +- New value `StorageTypeSecret` added to enum type `StorageType` +- New enum type `Action` with values `ActionAllow`, `ActionDeny` +- New enum type `Affinity` with values `AffinityNone`, `AffinitySticky` +- New enum type `Applicability` with values `ApplicabilityCustom`, `ApplicabilityLocationDefault` +- New enum type `ConnectedEnvironmentProvisioningState` with values `ConnectedEnvironmentProvisioningStateCanceled`, `ConnectedEnvironmentProvisioningStateFailed`, `ConnectedEnvironmentProvisioningStateInfrastructureSetupComplete`, `ConnectedEnvironmentProvisioningStateInfrastructureSetupInProgress`, `ConnectedEnvironmentProvisioningStateInitializationInProgress`, `ConnectedEnvironmentProvisioningStateScheduledForDelete`, `ConnectedEnvironmentProvisioningStateSucceeded`, `ConnectedEnvironmentProvisioningStateWaiting` +- New enum type `ContainerAppContainerRunningState` with values `ContainerAppContainerRunningStateRunning`, `ContainerAppContainerRunningStateTerminated`, `ContainerAppContainerRunningStateWaiting` +- New enum type `ContainerAppReplicaRunningState` with values `ContainerAppReplicaRunningStateNotRunning`, `ContainerAppReplicaRunningStateRunning`, `ContainerAppReplicaRunningStateUnknown` +- New enum type `ExtendedLocationTypes` with values `ExtendedLocationTypesCustomLocation` +- New enum type `IngressClientCertificateMode` with values `IngressClientCertificateModeAccept`, `IngressClientCertificateModeIgnore`, `IngressClientCertificateModeRequire` +- New enum type `JobExecutionRunningState` with values `JobExecutionRunningStateDegraded`, `JobExecutionRunningStateFailed`, `JobExecutionRunningStateProcessing`, `JobExecutionRunningStateRunning`, `JobExecutionRunningStateStopped`, `JobExecutionRunningStateSucceeded`, `JobExecutionRunningStateUnknown` +- New enum type `JobProvisioningState` with values `JobProvisioningStateCanceled`, `JobProvisioningStateDeleting`, `JobProvisioningStateFailed`, `JobProvisioningStateInProgress`, `JobProvisioningStateSucceeded` +- New enum type `LogLevel` with values `LogLevelDebug`, `LogLevelError`, `LogLevelInfo`, `LogLevelWarn` +- New enum type `ManagedCertificateDomainControlValidation` with values `ManagedCertificateDomainControlValidationCNAME`, `ManagedCertificateDomainControlValidationHTTP`, `ManagedCertificateDomainControlValidationTXT` +- New enum type `RevisionRunningState` with values `RevisionRunningStateDegraded`, `RevisionRunningStateFailed`, `RevisionRunningStateProcessing`, `RevisionRunningStateRunning`, `RevisionRunningStateStopped`, `RevisionRunningStateUnknown` +- New enum type `TriggerType` with values `TriggerTypeEvent`, `TriggerTypeManual`, `TriggerTypeSchedule` +- New function `NewAvailableWorkloadProfilesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*AvailableWorkloadProfilesClient, error)` +- New function `*AvailableWorkloadProfilesClient.NewGetPager(string, *AvailableWorkloadProfilesClientGetOptions) *runtime.Pager[AvailableWorkloadProfilesClientGetResponse]` +- New function `NewBillingMetersClient(string, azcore.TokenCredential, *arm.ClientOptions) (*BillingMetersClient, error)` +- New function `*BillingMetersClient.Get(context.Context, string, *BillingMetersClientGetOptions) (BillingMetersClientGetResponse, error)` +- New function `*ClientFactory.NewAvailableWorkloadProfilesClient() *AvailableWorkloadProfilesClient` +- New function `*ClientFactory.NewBillingMetersClient() *BillingMetersClient` +- New function `*ClientFactory.NewConnectedEnvironmentsCertificatesClient() *ConnectedEnvironmentsCertificatesClient` +- New function `*ClientFactory.NewConnectedEnvironmentsClient() *ConnectedEnvironmentsClient` +- New function `*ClientFactory.NewConnectedEnvironmentsDaprComponentsClient() *ConnectedEnvironmentsDaprComponentsClient` +- New function `*ClientFactory.NewConnectedEnvironmentsStoragesClient() *ConnectedEnvironmentsStoragesClient` +- New function `*ClientFactory.NewContainerAppsAPIClient() *ContainerAppsAPIClient` +- New function `*ClientFactory.NewContainerAppsDiagnosticsClient() *ContainerAppsDiagnosticsClient` +- New function `*ClientFactory.NewJobsClient() *JobsClient` +- New function `*ClientFactory.NewJobsExecutionsClient() *JobsExecutionsClient` +- New function `*ClientFactory.NewManagedCertificatesClient() *ManagedCertificatesClient` +- New function `*ClientFactory.NewManagedEnvironmentDiagnosticsClient() *ManagedEnvironmentDiagnosticsClient` +- New function `*ClientFactory.NewManagedEnvironmentsDiagnosticsClient() *ManagedEnvironmentsDiagnosticsClient` +- New function `NewConnectedEnvironmentsCertificatesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ConnectedEnvironmentsCertificatesClient, error)` +- New function `*ConnectedEnvironmentsCertificatesClient.CreateOrUpdate(context.Context, string, string, string, *ConnectedEnvironmentsCertificatesClientCreateOrUpdateOptions) (ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse, error)` +- New function `*ConnectedEnvironmentsCertificatesClient.Delete(context.Context, string, string, string, *ConnectedEnvironmentsCertificatesClientDeleteOptions) (ConnectedEnvironmentsCertificatesClientDeleteResponse, error)` +- New function `*ConnectedEnvironmentsCertificatesClient.Get(context.Context, string, string, string, *ConnectedEnvironmentsCertificatesClientGetOptions) (ConnectedEnvironmentsCertificatesClientGetResponse, error)` +- New function `*ConnectedEnvironmentsCertificatesClient.NewListPager(string, string, *ConnectedEnvironmentsCertificatesClientListOptions) *runtime.Pager[ConnectedEnvironmentsCertificatesClientListResponse]` +- New function `*ConnectedEnvironmentsCertificatesClient.Update(context.Context, string, string, string, CertificatePatch, *ConnectedEnvironmentsCertificatesClientUpdateOptions) (ConnectedEnvironmentsCertificatesClientUpdateResponse, error)` +- New function `NewConnectedEnvironmentsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ConnectedEnvironmentsClient, error)` +- New function `*ConnectedEnvironmentsClient.CheckNameAvailability(context.Context, string, string, CheckNameAvailabilityRequest, *ConnectedEnvironmentsClientCheckNameAvailabilityOptions) (ConnectedEnvironmentsClientCheckNameAvailabilityResponse, error)` +- New function `*ConnectedEnvironmentsClient.BeginCreateOrUpdate(context.Context, string, string, ConnectedEnvironment, *ConnectedEnvironmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ConnectedEnvironmentsClientCreateOrUpdateResponse], error)` +- New function `*ConnectedEnvironmentsClient.BeginDelete(context.Context, string, string, *ConnectedEnvironmentsClientBeginDeleteOptions) (*runtime.Poller[ConnectedEnvironmentsClientDeleteResponse], error)` +- New function `*ConnectedEnvironmentsClient.Get(context.Context, string, string, *ConnectedEnvironmentsClientGetOptions) (ConnectedEnvironmentsClientGetResponse, error)` +- New function `*ConnectedEnvironmentsClient.NewListByResourceGroupPager(string, *ConnectedEnvironmentsClientListByResourceGroupOptions) *runtime.Pager[ConnectedEnvironmentsClientListByResourceGroupResponse]` +- New function `*ConnectedEnvironmentsClient.NewListBySubscriptionPager(*ConnectedEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[ConnectedEnvironmentsClientListBySubscriptionResponse]` +- New function `*ConnectedEnvironmentsClient.Update(context.Context, string, string, *ConnectedEnvironmentsClientUpdateOptions) (ConnectedEnvironmentsClientUpdateResponse, error)` +- New function `NewConnectedEnvironmentsDaprComponentsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ConnectedEnvironmentsDaprComponentsClient, error)` +- New function `*ConnectedEnvironmentsDaprComponentsClient.CreateOrUpdate(context.Context, string, string, string, DaprComponent, *ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateOptions) (ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse, error)` +- New function `*ConnectedEnvironmentsDaprComponentsClient.Delete(context.Context, string, string, string, *ConnectedEnvironmentsDaprComponentsClientDeleteOptions) (ConnectedEnvironmentsDaprComponentsClientDeleteResponse, error)` +- New function `*ConnectedEnvironmentsDaprComponentsClient.Get(context.Context, string, string, string, *ConnectedEnvironmentsDaprComponentsClientGetOptions) (ConnectedEnvironmentsDaprComponentsClientGetResponse, error)` +- New function `*ConnectedEnvironmentsDaprComponentsClient.NewListPager(string, string, *ConnectedEnvironmentsDaprComponentsClientListOptions) *runtime.Pager[ConnectedEnvironmentsDaprComponentsClientListResponse]` +- New function `*ConnectedEnvironmentsDaprComponentsClient.ListSecrets(context.Context, string, string, string, *ConnectedEnvironmentsDaprComponentsClientListSecretsOptions) (ConnectedEnvironmentsDaprComponentsClientListSecretsResponse, error)` +- New function `NewConnectedEnvironmentsStoragesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ConnectedEnvironmentsStoragesClient, error)` +- New function `*ConnectedEnvironmentsStoragesClient.CreateOrUpdate(context.Context, string, string, string, ConnectedEnvironmentStorage, *ConnectedEnvironmentsStoragesClientCreateOrUpdateOptions) (ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse, error)` +- New function `*ConnectedEnvironmentsStoragesClient.Delete(context.Context, string, string, string, *ConnectedEnvironmentsStoragesClientDeleteOptions) (ConnectedEnvironmentsStoragesClientDeleteResponse, error)` +- New function `*ConnectedEnvironmentsStoragesClient.Get(context.Context, string, string, string, *ConnectedEnvironmentsStoragesClientGetOptions) (ConnectedEnvironmentsStoragesClientGetResponse, error)` +- New function `*ConnectedEnvironmentsStoragesClient.List(context.Context, string, string, *ConnectedEnvironmentsStoragesClientListOptions) (ConnectedEnvironmentsStoragesClientListResponse, error)` +- New function `NewContainerAppsAPIClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ContainerAppsAPIClient, error)` +- New function `*ContainerAppsAPIClient.JobExecution(context.Context, string, string, string, *ContainerAppsAPIClientJobExecutionOptions) (ContainerAppsAPIClientJobExecutionResponse, error)` +- New function `*ContainerAppsClient.GetAuthToken(context.Context, string, string, *ContainerAppsClientGetAuthTokenOptions) (ContainerAppsClientGetAuthTokenResponse, error)` +- New function `*ContainerAppsClient.BeginStart(context.Context, string, string, *ContainerAppsClientBeginStartOptions) (*runtime.Poller[ContainerAppsClientStartResponse], error)` +- New function `*ContainerAppsClient.BeginStop(context.Context, string, string, *ContainerAppsClientBeginStopOptions) (*runtime.Poller[ContainerAppsClientStopResponse], error)` +- New function `NewContainerAppsDiagnosticsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ContainerAppsDiagnosticsClient, error)` +- New function `*ContainerAppsDiagnosticsClient.GetDetector(context.Context, string, string, string, *ContainerAppsDiagnosticsClientGetDetectorOptions) (ContainerAppsDiagnosticsClientGetDetectorResponse, error)` +- New function `*ContainerAppsDiagnosticsClient.GetRevision(context.Context, string, string, string, *ContainerAppsDiagnosticsClientGetRevisionOptions) (ContainerAppsDiagnosticsClientGetRevisionResponse, error)` +- New function `*ContainerAppsDiagnosticsClient.GetRoot(context.Context, string, string, *ContainerAppsDiagnosticsClientGetRootOptions) (ContainerAppsDiagnosticsClientGetRootResponse, error)` +- New function `*ContainerAppsDiagnosticsClient.NewListDetectorsPager(string, string, *ContainerAppsDiagnosticsClientListDetectorsOptions) *runtime.Pager[ContainerAppsDiagnosticsClientListDetectorsResponse]` +- New function `*ContainerAppsDiagnosticsClient.NewListRevisionsPager(string, string, *ContainerAppsDiagnosticsClientListRevisionsOptions) *runtime.Pager[ContainerAppsDiagnosticsClientListRevisionsResponse]` +- New function `NewJobsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*JobsClient, error)` +- New function `*JobsClient.BeginCreateOrUpdate(context.Context, string, string, Job, *JobsClientBeginCreateOrUpdateOptions) (*runtime.Poller[JobsClientCreateOrUpdateResponse], error)` +- New function `*JobsClient.BeginDelete(context.Context, string, string, *JobsClientBeginDeleteOptions) (*runtime.Poller[JobsClientDeleteResponse], error)` +- New function `*JobsClient.Get(context.Context, string, string, *JobsClientGetOptions) (JobsClientGetResponse, error)` +- New function `*JobsClient.NewListByResourceGroupPager(string, *JobsClientListByResourceGroupOptions) *runtime.Pager[JobsClientListByResourceGroupResponse]` +- New function `*JobsClient.NewListBySubscriptionPager(*JobsClientListBySubscriptionOptions) *runtime.Pager[JobsClientListBySubscriptionResponse]` +- New function `*JobsClient.ListSecrets(context.Context, string, string, *JobsClientListSecretsOptions) (JobsClientListSecretsResponse, error)` +- New function `*JobsClient.BeginStart(context.Context, string, string, *JobsClientBeginStartOptions) (*runtime.Poller[JobsClientStartResponse], error)` +- New function `*JobsClient.BeginStopExecution(context.Context, string, string, string, *JobsClientBeginStopExecutionOptions) (*runtime.Poller[JobsClientStopExecutionResponse], error)` +- New function `*JobsClient.BeginStopMultipleExecutions(context.Context, string, string, *JobsClientBeginStopMultipleExecutionsOptions) (*runtime.Poller[JobsClientStopMultipleExecutionsResponse], error)` +- New function `*JobsClient.BeginUpdate(context.Context, string, string, JobPatchProperties, *JobsClientBeginUpdateOptions) (*runtime.Poller[JobsClientUpdateResponse], error)` +- New function `NewJobsExecutionsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*JobsExecutionsClient, error)` +- New function `*JobsExecutionsClient.NewListPager(string, string, *JobsExecutionsClientListOptions) *runtime.Pager[JobsExecutionsClientListResponse]` +- New function `NewManagedCertificatesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ManagedCertificatesClient, error)` +- New function `*ManagedCertificatesClient.BeginCreateOrUpdate(context.Context, string, string, string, *ManagedCertificatesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ManagedCertificatesClientCreateOrUpdateResponse], error)` +- New function `*ManagedCertificatesClient.Delete(context.Context, string, string, string, *ManagedCertificatesClientDeleteOptions) (ManagedCertificatesClientDeleteResponse, error)` +- New function `*ManagedCertificatesClient.Get(context.Context, string, string, string, *ManagedCertificatesClientGetOptions) (ManagedCertificatesClientGetResponse, error)` +- New function `*ManagedCertificatesClient.NewListPager(string, string, *ManagedCertificatesClientListOptions) *runtime.Pager[ManagedCertificatesClientListResponse]` +- New function `*ManagedCertificatesClient.Update(context.Context, string, string, string, ManagedCertificatePatch, *ManagedCertificatesClientUpdateOptions) (ManagedCertificatesClientUpdateResponse, error)` +- New function `NewManagedEnvironmentDiagnosticsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ManagedEnvironmentDiagnosticsClient, error)` +- New function `*ManagedEnvironmentDiagnosticsClient.GetDetector(context.Context, string, string, string, *ManagedEnvironmentDiagnosticsClientGetDetectorOptions) (ManagedEnvironmentDiagnosticsClientGetDetectorResponse, error)` +- New function `*ManagedEnvironmentDiagnosticsClient.ListDetectors(context.Context, string, string, *ManagedEnvironmentDiagnosticsClientListDetectorsOptions) (ManagedEnvironmentDiagnosticsClientListDetectorsResponse, error)` +- New function `*ManagedEnvironmentsClient.GetAuthToken(context.Context, string, string, *ManagedEnvironmentsClientGetAuthTokenOptions) (ManagedEnvironmentsClientGetAuthTokenResponse, error)` +- New function `*ManagedEnvironmentsClient.NewListWorkloadProfileStatesPager(string, string, *ManagedEnvironmentsClientListWorkloadProfileStatesOptions) *runtime.Pager[ManagedEnvironmentsClientListWorkloadProfileStatesResponse]` +- New function `NewManagedEnvironmentsDiagnosticsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ManagedEnvironmentsDiagnosticsClient, error)` +- New function `*ManagedEnvironmentsDiagnosticsClient.GetRoot(context.Context, string, string, *ManagedEnvironmentsDiagnosticsClientGetRootOptions) (ManagedEnvironmentsDiagnosticsClientGetRootResponse, error)` +- New struct `AvailableWorkloadProfile` +- New struct `AvailableWorkloadProfileProperties` +- New struct `AvailableWorkloadProfilesCollection` +- New struct `BaseContainer` +- New struct `BillingMeter` +- New struct `BillingMeterCollection` +- New struct `BillingMeterProperties` +- New struct `ConnectedEnvironment` +- New struct `ConnectedEnvironmentCollection` +- New struct `ConnectedEnvironmentProperties` +- New struct `ConnectedEnvironmentStorage` +- New struct `ConnectedEnvironmentStorageProperties` +- New struct `ConnectedEnvironmentStoragesCollection` +- New struct `ContainerAppAuthToken` +- New struct `ContainerAppAuthTokenProperties` +- New struct `ContainerAppJobExecutions` +- New struct `CorsPolicy` +- New struct `CustomDomainConfiguration` +- New struct `CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo` +- New struct `CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem` +- New struct `DaprConfiguration` +- New struct `DaprSecret` +- New struct `DiagnosticDataProviderMetadata` +- New struct `DiagnosticDataProviderMetadataPropertyBagItem` +- New struct `DiagnosticDataTableResponseColumn` +- New struct `DiagnosticDataTableResponseObject` +- New struct `DiagnosticRendering` +- New struct `DiagnosticSupportTopic` +- New struct `Diagnostics` +- New struct `DiagnosticsCollection` +- New struct `DiagnosticsDataAPIResponse` +- New struct `DiagnosticsDefinition` +- New struct `DiagnosticsProperties` +- New struct `DiagnosticsStatus` +- New struct `EnvironmentAuthToken` +- New struct `EnvironmentAuthTokenProperties` +- New struct `ErrorAdditionalInfo` +- New struct `ErrorDetail` +- New struct `ErrorResponse` +- New struct `ExtendedLocation` +- New struct `IPSecurityRestrictionRule` +- New struct `IngressStickySessions` +- New struct `InitContainer` +- New struct `Job` +- New struct `JobConfiguration` +- New struct `JobConfigurationEventTriggerConfig` +- New struct `JobConfigurationManualTriggerConfig` +- New struct `JobConfigurationScheduleTriggerConfig` +- New struct `JobExecution` +- New struct `JobExecutionBase` +- New struct `JobExecutionContainer` +- New struct `JobExecutionNamesCollection` +- New struct `JobExecutionTemplate` +- New struct `JobPatchProperties` +- New struct `JobPatchPropertiesProperties` +- New struct `JobProperties` +- New struct `JobScale` +- New struct `JobScaleRule` +- New struct `JobSecretsCollection` +- New struct `JobTemplate` +- New struct `JobsCollection` +- New struct `KedaConfiguration` +- New struct `ManagedCertificate` +- New struct `ManagedCertificateCollection` +- New struct `ManagedCertificatePatch` +- New struct `ManagedCertificateProperties` +- New struct `ManagedEnvironmentPropertiesPeerAuthentication` +- New struct `Mtls` +- New struct `SecretVolumeItem` +- New struct `Service` +- New struct `ServiceBind` +- New struct `TCPScaleRule` +- New struct `WorkloadProfile` +- New struct `WorkloadProfileStates` +- New struct `WorkloadProfileStatesCollection` +- New struct `WorkloadProfileStatesProperties` +- New field `Kind` in struct `AzureCredentials` +- New field `SubjectAlternativeNames` in struct `CertificateProperties` +- New field `MaxInactiveRevisions`, `Service` in struct `Configuration` +- New field `ExtendedLocation`, `ManagedBy` in struct `ContainerApp` +- New field `EnvironmentID`, `EventStreamEndpoint`, `LatestReadyRevisionName`, `WorkloadProfileName` in struct `ContainerAppProperties` +- New field `Identity`, `KeyVaultURL` in struct `ContainerAppSecret` +- New anonymous field `ContainerApp` in struct `ContainerAppsClientUpdateResponse` +- New field `ARecords`, `AlternateCNameRecords`, `AlternateTxtRecords`, `CNameRecords`, `ConflictWithEnvironmentCustomDomain`, `ConflictingContainerAppResourceID`, `CustomDomainVerificationFailureInfo`, `CustomDomainVerificationTest`, `HasConflictOnManagedEnvironment`, `HostName`, `IsHostnameAlreadyVerified`, `TxtRecords` in struct `CustomHostnameAnalysisResult` +- New field `EnableAPILogging`, `HTTPMaxRequestSize`, `HTTPReadBufferSize`, `LogLevel` in struct `Dapr` +- New field `SecretStoreComponent` in struct `DaprComponentProperties` +- New field `GithubPersonalAccessToken` in struct `GithubActionConfiguration` +- New field `ClientCertificateMode`, `CorsPolicy`, `ExposedPort`, `IPSecurityRestrictions`, `StickySessions` in struct `Ingress` +- New field `Kind` in struct `ManagedEnvironment` +- New field `CustomDomainConfiguration`, `DaprConfiguration`, `EventStreamEndpoint`, `InfrastructureResourceGroup`, `KedaConfiguration`, `PeerAuthentication`, `WorkloadProfiles` in struct `ManagedEnvironmentProperties` +- New anonymous field `ManagedEnvironment` in struct `ManagedEnvironmentsClientUpdateResponse` +- New field `ExecEndpoint`, `LogStreamEndpoint`, `RunningState`, `RunningStateDetails` in struct `ReplicaContainer` +- New field `InitContainers`, `RunningState`, `RunningStateDetails` in struct `ReplicaProperties` +- New field `LastActiveTime`, `RunningState` in struct `RevisionProperties` +- New field `TCP` in struct `ScaleRule` +- New field `Identity`, `KeyVaultURL` in struct `Secret` +- New field `InitContainers`, `ServiceBinds`, `TerminationGracePeriodSeconds` in struct `Template` +- New field `MountOptions`, `Secrets` in struct `Volume` +- New field `SubPath` in struct `VolumeMount` + + +## 1.1.0 (2023-04-07) +### Features Added + +- New struct `ClientFactory` which is a client factory used to create any client in this module + + +## 1.0.0 (2022-05-25) + +The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes. + +To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/azsdk/go/mgmt/migration). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/LICENSE.txt b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/LICENSE.txt similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/LICENSE.txt rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/LICENSE.txt diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/README.md new file mode 100644 index 00000000..3da8922b --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/README.md @@ -0,0 +1,92 @@ +# Azure Container Apps Module for Go + +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3) + +The `armappcontainers` module provides operations for working with Azure Container Apps. + +[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/appcontainers/armappcontainers) + +# Getting started + +## Prerequisites + +- an [Azure subscription](https://azure.microsoft.com/free/) +- Go 1.18 or above (You could download and install the latest version of Go from [here](https://go.dev/doc/install). It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this [doc](https://go.dev/doc/manage-install).) + +## Install the package + +This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management. + +Install the Azure Container Apps module: + +```sh +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3 +``` + +## Authorization + +When creating a client, you will need to provide a credential for authenticating with Azure Container Apps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. + +```go +cred, err := azidentity.NewDefaultAzureCredential(nil) +``` + +For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). + +## Client Factory + +Azure Container Apps module consists of one or more clients. We provide a client factory which could be used to create any client in this module. + +```go +clientFactory, err := armappcontainers.NewClientFactory(, cred, nil) +``` + +You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). + +```go +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, +} +clientFactory, err := armappcontainers.NewClientFactory(, cred, &options) +``` + +## Clients + +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. + +```go +client := clientFactory.NewAppResiliencyClient() +``` + +## Fakes + +The fake package contains types used for constructing in-memory fake servers used in unit tests. +This allows writing tests to cover various success/error conditions without the need for connecting to a live service. + +Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. + +## Provide Feedback + +If you encounter bugs or have suggestions, please +[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Container Apps` label. + +# Contributing + +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. +For details, visit [https://cla.microsoft.com](https://cla.microsoft.com). + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only +need to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information, see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/appresiliency_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/appresiliency_client.go new file mode 100644 index 00000000..93601eb2 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/appresiliency_client.go @@ -0,0 +1,383 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// AppResiliencyClient contains the methods for the AppResiliency group. +// Don't use this type directly, use NewAppResiliencyClient() instead. +type AppResiliencyClient struct { + internal *arm.Client + subscriptionID string +} + +// NewAppResiliencyClient creates a new instance of AppResiliencyClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewAppResiliencyClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AppResiliencyClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &AppResiliencyClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Create or update container app resiliency policy. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - appName - Name of the Container App. +// - name - Name of the resiliency policy. +// - resiliencyEnvelope - The resiliency policy to create or update. +// - options - AppResiliencyClientCreateOrUpdateOptions contains the optional parameters for the AppResiliencyClient.CreateOrUpdate +// method. +func (client *AppResiliencyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, appName string, name string, resiliencyEnvelope AppResiliency, options *AppResiliencyClientCreateOrUpdateOptions) (AppResiliencyClientCreateOrUpdateResponse, error) { + var err error + const operationName = "AppResiliencyClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, appName, name, resiliencyEnvelope, options) + if err != nil { + return AppResiliencyClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return AppResiliencyClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return AppResiliencyClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *AppResiliencyClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, appName string, name string, resiliencyEnvelope AppResiliency, options *AppResiliencyClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if appName == "" { + return nil, errors.New("parameter appName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{appName}", url.PathEscape(appName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, resiliencyEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *AppResiliencyClient) createOrUpdateHandleResponse(resp *http.Response) (AppResiliencyClientCreateOrUpdateResponse, error) { + result := AppResiliencyClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppResiliency); err != nil { + return AppResiliencyClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete container app resiliency policy. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - appName - Name of the Container App. +// - name - Name of the resiliency policy. +// - options - AppResiliencyClientDeleteOptions contains the optional parameters for the AppResiliencyClient.Delete method. +func (client *AppResiliencyClient) Delete(ctx context.Context, resourceGroupName string, appName string, name string, options *AppResiliencyClientDeleteOptions) (AppResiliencyClientDeleteResponse, error) { + var err error + const operationName = "AppResiliencyClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, appName, name, options) + if err != nil { + return AppResiliencyClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return AppResiliencyClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return AppResiliencyClientDeleteResponse{}, err + } + return AppResiliencyClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *AppResiliencyClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, appName string, name string, options *AppResiliencyClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if appName == "" { + return nil, errors.New("parameter appName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{appName}", url.PathEscape(appName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get container app resiliency policy. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - appName - Name of the Container App. +// - name - Name of the resiliency policy. +// - options - AppResiliencyClientGetOptions contains the optional parameters for the AppResiliencyClient.Get method. +func (client *AppResiliencyClient) Get(ctx context.Context, resourceGroupName string, appName string, name string, options *AppResiliencyClientGetOptions) (AppResiliencyClientGetResponse, error) { + var err error + const operationName = "AppResiliencyClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, appName, name, options) + if err != nil { + return AppResiliencyClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return AppResiliencyClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppResiliencyClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *AppResiliencyClient) getCreateRequest(ctx context.Context, resourceGroupName string, appName string, name string, options *AppResiliencyClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if appName == "" { + return nil, errors.New("parameter appName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{appName}", url.PathEscape(appName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *AppResiliencyClient) getHandleResponse(resp *http.Response) (AppResiliencyClientGetResponse, error) { + result := AppResiliencyClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppResiliency); err != nil { + return AppResiliencyClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - List container app resiliency policies. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - appName - Name of the Container App. +// - options - AppResiliencyClientListOptions contains the optional parameters for the AppResiliencyClient.NewListPager method. +func (client *AppResiliencyClient) NewListPager(resourceGroupName string, appName string, options *AppResiliencyClientListOptions) *runtime.Pager[AppResiliencyClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[AppResiliencyClientListResponse]{ + More: func(page AppResiliencyClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *AppResiliencyClientListResponse) (AppResiliencyClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "AppResiliencyClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, appName, options) + }, nil) + if err != nil { + return AppResiliencyClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *AppResiliencyClient) listCreateRequest(ctx context.Context, resourceGroupName string, appName string, options *AppResiliencyClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if appName == "" { + return nil, errors.New("parameter appName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{appName}", url.PathEscape(appName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *AppResiliencyClient) listHandleResponse(resp *http.Response) (AppResiliencyClientListResponse, error) { + result := AppResiliencyClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppResiliencyCollection); err != nil { + return AppResiliencyClientListResponse{}, err + } + return result, nil +} + +// Update - Update container app resiliency policy. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - appName - Name of the Container App. +// - name - Name of the resiliency policy. +// - resiliencyEnvelope - The resiliency policy to update. +// - options - AppResiliencyClientUpdateOptions contains the optional parameters for the AppResiliencyClient.Update method. +func (client *AppResiliencyClient) Update(ctx context.Context, resourceGroupName string, appName string, name string, resiliencyEnvelope AppResiliency, options *AppResiliencyClientUpdateOptions) (AppResiliencyClientUpdateResponse, error) { + var err error + const operationName = "AppResiliencyClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, appName, name, resiliencyEnvelope, options) + if err != nil { + return AppResiliencyClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return AppResiliencyClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppResiliencyClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *AppResiliencyClient) updateCreateRequest(ctx context.Context, resourceGroupName string, appName string, name string, resiliencyEnvelope AppResiliency, options *AppResiliencyClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if appName == "" { + return nil, errors.New("parameter appName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{appName}", url.PathEscape(appName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, resiliencyEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *AppResiliencyClient) updateHandleResponse(resp *http.Response) (AppResiliencyClientUpdateResponse, error) { + result := AppResiliencyClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppResiliency); err != nil { + return AppResiliencyClientUpdateResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/autorest.md new file mode 100644 index 00000000..bccbeaf9 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/autorest.md @@ -0,0 +1,13 @@ +### AutoRest Configuration + +> see https://aka.ms/autorest + +``` yaml +azure-arm: true +require: +- https://github.com/Azure/azure-rest-api-specs/blob/d74afb775446d7f0bc1810fdc5a128c56289e854/specification/app/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/d74afb775446d7f0bc1810fdc5a128c56289e854/specification/app/resource-manager/readme.go.md +license-header: MICROSOFT_MIT_NO_VERSION +module-version: 3.0.0-beta.1 +tag: package-preview-2023-11 +``` \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/availableworkloadprofiles_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/availableworkloadprofiles_client.go new file mode 100644 index 00000000..821ae2a7 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/availableworkloadprofiles_client.go @@ -0,0 +1,104 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// AvailableWorkloadProfilesClient contains the methods for the AvailableWorkloadProfiles group. +// Don't use this type directly, use NewAvailableWorkloadProfilesClient() instead. +type AvailableWorkloadProfilesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewAvailableWorkloadProfilesClient creates a new instance of AvailableWorkloadProfilesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewAvailableWorkloadProfilesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailableWorkloadProfilesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &AvailableWorkloadProfilesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// NewGetPager - Get all available workload profiles for a location. +// +// Generated from API version 2023-11-02-preview +// - location - The name of Azure region. +// - options - AvailableWorkloadProfilesClientGetOptions contains the optional parameters for the AvailableWorkloadProfilesClient.NewGetPager +// method. +func (client *AvailableWorkloadProfilesClient) NewGetPager(location string, options *AvailableWorkloadProfilesClientGetOptions) *runtime.Pager[AvailableWorkloadProfilesClientGetResponse] { + return runtime.NewPager(runtime.PagingHandler[AvailableWorkloadProfilesClientGetResponse]{ + More: func(page AvailableWorkloadProfilesClientGetResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *AvailableWorkloadProfilesClientGetResponse) (AvailableWorkloadProfilesClientGetResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "AvailableWorkloadProfilesClient.NewGetPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.getCreateRequest(ctx, location, options) + }, nil) + if err != nil { + return AvailableWorkloadProfilesClientGetResponse{}, err + } + return client.getHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// getCreateRequest creates the Get request. +func (client *AvailableWorkloadProfilesClient) getCreateRequest(ctx context.Context, location string, options *AvailableWorkloadProfilesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *AvailableWorkloadProfilesClient) getHandleResponse(resp *http.Response) (AvailableWorkloadProfilesClientGetResponse, error) { + result := AvailableWorkloadProfilesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AvailableWorkloadProfilesCollection); err != nil { + return AvailableWorkloadProfilesClientGetResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/billingmeters_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/billingmeters_client.go new file mode 100644 index 00000000..732cea83 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/billingmeters_client.go @@ -0,0 +1,103 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// BillingMetersClient contains the methods for the BillingMeters group. +// Don't use this type directly, use NewBillingMetersClient() instead. +type BillingMetersClient struct { + internal *arm.Client + subscriptionID string +} + +// NewBillingMetersClient creates a new instance of BillingMetersClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewBillingMetersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BillingMetersClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &BillingMetersClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// Get - Get all billingMeters for a location. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - location - The name of Azure region. +// - options - BillingMetersClientGetOptions contains the optional parameters for the BillingMetersClient.Get method. +func (client *BillingMetersClient) Get(ctx context.Context, location string, options *BillingMetersClientGetOptions) (BillingMetersClientGetResponse, error) { + var err error + const operationName = "BillingMetersClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, location, options) + if err != nil { + return BillingMetersClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return BillingMetersClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return BillingMetersClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *BillingMetersClient) getCreateRequest(ctx context.Context, location string, options *BillingMetersClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *BillingMetersClient) getHandleResponse(resp *http.Response) (BillingMetersClientGetResponse, error) { + result := BillingMetersClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.BillingMeterCollection); err != nil { + return BillingMetersClientGetResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/build.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/build.go new file mode 100644 index 00000000..df75e973 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/build.go @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +// This file enables 'go generate' to regenerate this specific SDK +//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/appcontainers/armappcontainers + +package armappcontainers diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildauthtoken_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildauthtoken_client.go new file mode 100644 index 00000000..4a6b7152 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildauthtoken_client.go @@ -0,0 +1,113 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// BuildAuthTokenClient contains the methods for the BuildAuthToken group. +// Don't use this type directly, use NewBuildAuthTokenClient() instead. +type BuildAuthTokenClient struct { + internal *arm.Client + subscriptionID string +} + +// NewBuildAuthTokenClient creates a new instance of BuildAuthTokenClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewBuildAuthTokenClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildAuthTokenClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &BuildAuthTokenClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// List - Gets the token used to connect to the endpoint where source code can be uploaded for a build. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - buildName - The name of a build. +// - options - BuildAuthTokenClientListOptions contains the optional parameters for the BuildAuthTokenClient.List method. +func (client *BuildAuthTokenClient) List(ctx context.Context, resourceGroupName string, builderName string, buildName string, options *BuildAuthTokenClientListOptions) (BuildAuthTokenClientListResponse, error) { + var err error + const operationName = "BuildAuthTokenClient.List" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listCreateRequest(ctx, resourceGroupName, builderName, buildName, options) + if err != nil { + return BuildAuthTokenClientListResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return BuildAuthTokenClientListResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return BuildAuthTokenClientListResponse{}, err + } + resp, err := client.listHandleResponse(httpResp) + return resp, err +} + +// listCreateRequest creates the List request. +func (client *BuildAuthTokenClient) listCreateRequest(ctx context.Context, resourceGroupName string, builderName string, buildName string, options *BuildAuthTokenClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}/listAuthToken" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + if buildName == "" { + return nil, errors.New("parameter buildName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{buildName}", url.PathEscape(buildName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *BuildAuthTokenClient) listHandleResponse(resp *http.Response) (BuildAuthTokenClientListResponse, error) { + result := BuildAuthTokenClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.BuildToken); err != nil { + return BuildAuthTokenClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builders_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builders_client.go new file mode 100644 index 00000000..0f374fa5 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builders_client.go @@ -0,0 +1,460 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// BuildersClient contains the methods for the Builders group. +// Don't use this type directly, use NewBuildersClient() instead. +type BuildersClient struct { + internal *arm.Client + subscriptionID string +} + +// NewBuildersClient creates a new instance of BuildersClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewBuildersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildersClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &BuildersClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create or update a BuilderResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - builderEnvelope - Resource create parameters. +// - options - BuildersClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildersClient.BeginCreateOrUpdate +// method. +func (client *BuildersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, builderName string, builderEnvelope BuilderResource, options *BuildersClientBeginCreateOrUpdateOptions) (*runtime.Poller[BuildersClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, builderName, builderEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[BuildersClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[BuildersClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or update a BuilderResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *BuildersClient) createOrUpdate(ctx context.Context, resourceGroupName string, builderName string, builderEnvelope BuilderResource, options *BuildersClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "BuildersClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, builderName, builderEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *BuildersClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, builderName string, builderEnvelope BuilderResource, options *BuildersClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, builderEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a BuilderResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - options - BuildersClientBeginDeleteOptions contains the optional parameters for the BuildersClient.BeginDelete method. +func (client *BuildersClient) BeginDelete(ctx context.Context, resourceGroupName string, builderName string, options *BuildersClientBeginDeleteOptions) (*runtime.Poller[BuildersClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, builderName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[BuildersClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[BuildersClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a BuilderResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *BuildersClient) deleteOperation(ctx context.Context, resourceGroupName string, builderName string, options *BuildersClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "BuildersClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, builderName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *BuildersClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, builderName string, options *BuildersClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a BuilderResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - options - BuildersClientGetOptions contains the optional parameters for the BuildersClient.Get method. +func (client *BuildersClient) Get(ctx context.Context, resourceGroupName string, builderName string, options *BuildersClientGetOptions) (BuildersClientGetResponse, error) { + var err error + const operationName = "BuildersClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, builderName, options) + if err != nil { + return BuildersClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return BuildersClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return BuildersClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *BuildersClient) getCreateRequest(ctx context.Context, resourceGroupName string, builderName string, options *BuildersClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *BuildersClient) getHandleResponse(resp *http.Response) (BuildersClientGetResponse, error) { + result := BuildersClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.BuilderResource); err != nil { + return BuildersClientGetResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - List BuilderResource resources by resource group +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - BuildersClientListByResourceGroupOptions contains the optional parameters for the BuildersClient.NewListByResourceGroupPager +// method. +func (client *BuildersClient) NewListByResourceGroupPager(resourceGroupName string, options *BuildersClientListByResourceGroupOptions) *runtime.Pager[BuildersClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[BuildersClientListByResourceGroupResponse]{ + More: func(page BuildersClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *BuildersClientListByResourceGroupResponse) (BuildersClientListByResourceGroupResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "BuildersClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) + if err != nil { + return BuildersClientListByResourceGroupResponse{}, err + } + return client.listByResourceGroupHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *BuildersClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *BuildersClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *BuildersClient) listByResourceGroupHandleResponse(resp *http.Response) (BuildersClientListByResourceGroupResponse, error) { + result := BuildersClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.BuilderCollection); err != nil { + return BuildersClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - List BuilderResource resources by subscription ID +// +// Generated from API version 2023-11-02-preview +// - options - BuildersClientListBySubscriptionOptions contains the optional parameters for the BuildersClient.NewListBySubscriptionPager +// method. +func (client *BuildersClient) NewListBySubscriptionPager(options *BuildersClientListBySubscriptionOptions) *runtime.Pager[BuildersClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[BuildersClientListBySubscriptionResponse]{ + More: func(page BuildersClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *BuildersClientListBySubscriptionResponse) (BuildersClientListBySubscriptionResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "BuildersClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) + if err != nil { + return BuildersClientListBySubscriptionResponse{}, err + } + return client.listBySubscriptionHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *BuildersClient) listBySubscriptionCreateRequest(ctx context.Context, options *BuildersClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/builders" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *BuildersClient) listBySubscriptionHandleResponse(resp *http.Response) (BuildersClientListBySubscriptionResponse, error) { + result := BuildersClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.BuilderCollection); err != nil { + return BuildersClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// BeginUpdate - Update a BuilderResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - builderEnvelope - The resource properties to be updated. +// - options - BuildersClientBeginUpdateOptions contains the optional parameters for the BuildersClient.BeginUpdate method. +func (client *BuildersClient) BeginUpdate(ctx context.Context, resourceGroupName string, builderName string, builderEnvelope BuilderResourceUpdate, options *BuildersClientBeginUpdateOptions) (*runtime.Poller[BuildersClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, builderName, builderEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[BuildersClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[BuildersClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Update - Update a BuilderResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *BuildersClient) update(ctx context.Context, resourceGroupName string, builderName string, builderEnvelope BuilderResourceUpdate, options *BuildersClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "BuildersClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, builderName, builderEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// updateCreateRequest creates the Update request. +func (client *BuildersClient) updateCreateRequest(ctx context.Context, resourceGroupName string, builderName string, builderEnvelope BuilderResourceUpdate, options *BuildersClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, builderEnvelope); err != nil { + return nil, err + } + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builds_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builds_client.go new file mode 100644 index 00000000..12131257 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/builds_client.go @@ -0,0 +1,280 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// BuildsClient contains the methods for the Builds group. +// Don't use this type directly, use NewBuildsClient() instead. +type BuildsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewBuildsClient creates a new instance of BuildsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewBuildsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &BuildsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create a BuildResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - buildName - The name of a build. +// - buildEnvelope - Resource create or update parameters. +// - options - BuildsClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildsClient.BeginCreateOrUpdate +// method. +func (client *BuildsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, builderName string, buildName string, buildEnvelope BuildResource, options *BuildsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BuildsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, builderName, buildName, buildEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[BuildsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[BuildsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create a BuildResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *BuildsClient) createOrUpdate(ctx context.Context, resourceGroupName string, builderName string, buildName string, buildEnvelope BuildResource, options *BuildsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "BuildsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, builderName, buildName, buildEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *BuildsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, builderName string, buildName string, buildEnvelope BuildResource, options *BuildsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + if buildName == "" { + return nil, errors.New("parameter buildName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{buildName}", url.PathEscape(buildName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, buildEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a BuildResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - buildName - The name of a build. +// - options - BuildsClientBeginDeleteOptions contains the optional parameters for the BuildsClient.BeginDelete method. +func (client *BuildsClient) BeginDelete(ctx context.Context, resourceGroupName string, builderName string, buildName string, options *BuildsClientBeginDeleteOptions) (*runtime.Poller[BuildsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, builderName, buildName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[BuildsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[BuildsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a BuildResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *BuildsClient) deleteOperation(ctx context.Context, resourceGroupName string, builderName string, buildName string, options *BuildsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "BuildsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, builderName, buildName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *BuildsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, builderName string, buildName string, options *BuildsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + if buildName == "" { + return nil, errors.New("parameter buildName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{buildName}", url.PathEscape(buildName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a BuildResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - buildName - The name of a build. +// - options - BuildsClientGetOptions contains the optional parameters for the BuildsClient.Get method. +func (client *BuildsClient) Get(ctx context.Context, resourceGroupName string, builderName string, buildName string, options *BuildsClientGetOptions) (BuildsClientGetResponse, error) { + var err error + const operationName = "BuildsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, builderName, buildName, options) + if err != nil { + return BuildsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return BuildsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return BuildsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *BuildsClient) getCreateRequest(ctx context.Context, resourceGroupName string, builderName string, buildName string, options *BuildsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + if buildName == "" { + return nil, errors.New("parameter buildName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{buildName}", url.PathEscape(buildName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *BuildsClient) getHandleResponse(resp *http.Response) (BuildsClientGetResponse, error) { + result := BuildsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.BuildResource); err != nil { + return BuildsClientGetResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildsbybuilderresource_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildsbybuilderresource_client.go new file mode 100644 index 00000000..447c0825 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/buildsbybuilderresource_client.go @@ -0,0 +1,109 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// BuildsByBuilderResourceClient contains the methods for the BuildsByBuilderResource group. +// Don't use this type directly, use NewBuildsByBuilderResourceClient() instead. +type BuildsByBuilderResourceClient struct { + internal *arm.Client + subscriptionID string +} + +// NewBuildsByBuilderResourceClient creates a new instance of BuildsByBuilderResourceClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewBuildsByBuilderResourceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BuildsByBuilderResourceClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &BuildsByBuilderResourceClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// NewListPager - List BuildResource resources by BuilderResource +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - builderName - The name of the builder. +// - options - BuildsByBuilderResourceClientListOptions contains the optional parameters for the BuildsByBuilderResourceClient.NewListPager +// method. +func (client *BuildsByBuilderResourceClient) NewListPager(resourceGroupName string, builderName string, options *BuildsByBuilderResourceClientListOptions) *runtime.Pager[BuildsByBuilderResourceClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[BuildsByBuilderResourceClientListResponse]{ + More: func(page BuildsByBuilderResourceClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *BuildsByBuilderResourceClientListResponse) (BuildsByBuilderResourceClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "BuildsByBuilderResourceClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, builderName, options) + }, nil) + if err != nil { + return BuildsByBuilderResourceClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *BuildsByBuilderResourceClient) listCreateRequest(ctx context.Context, resourceGroupName string, builderName string, options *BuildsByBuilderResourceClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if builderName == "" { + return nil, errors.New("parameter builderName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{builderName}", url.PathEscape(builderName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *BuildsByBuilderResourceClient) listHandleResponse(resp *http.Response) (BuildsByBuilderResourceClientListResponse, error) { + result := BuildsByBuilderResourceClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.BuildCollection); err != nil { + return BuildsByBuilderResourceClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/certificates_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/certificates_client.go new file mode 100644 index 00000000..daf30ea0 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/certificates_client.go @@ -0,0 +1,385 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CertificatesClient contains the methods for the Certificates group. +// Don't use this type directly, use NewCertificatesClient() instead. +type CertificatesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewCertificatesClient creates a new instance of CertificatesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificatesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &CertificatesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Create or Update a Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - certificateName - Name of the Certificate. +// - options - CertificatesClientCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.CreateOrUpdate +// method. +func (client *CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, options *CertificatesClientCreateOrUpdateOptions) (CertificatesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "CertificatesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, certificateName, options) + if err != nil { + return CertificatesClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CertificatesClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CertificatesClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *CertificatesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, options *CertificatesClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.CertificateEnvelope != nil { + if err := runtime.MarshalAsJSON(req, *options.CertificateEnvelope); err != nil { + return nil, err + } + return req, nil + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *CertificatesClient) createOrUpdateHandleResponse(resp *http.Response) (CertificatesClientCreateOrUpdateResponse, error) { + result := CertificatesClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Certificate); err != nil { + return CertificatesClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Deletes the specified Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - certificateName - Name of the Certificate. +// - options - CertificatesClientDeleteOptions contains the optional parameters for the CertificatesClient.Delete method. +func (client *CertificatesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, options *CertificatesClientDeleteOptions) (CertificatesClientDeleteResponse, error) { + var err error + const operationName = "CertificatesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, certificateName, options) + if err != nil { + return CertificatesClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CertificatesClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return CertificatesClientDeleteResponse{}, err + } + return CertificatesClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, options *CertificatesClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get the specified Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - certificateName - Name of the Certificate. +// - options - CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method. +func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, options *CertificatesClientGetOptions) (CertificatesClientGetResponse, error) { + var err error + const operationName = "CertificatesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, certificateName, options) + if err != nil { + return CertificatesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CertificatesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CertificatesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *CertificatesClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, options *CertificatesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CertificatesClient) getHandleResponse(resp *http.Response) (CertificatesClientGetResponse, error) { + result := CertificatesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Certificate); err != nil { + return CertificatesClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the Certificates in a given managed environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - CertificatesClientListOptions contains the optional parameters for the CertificatesClient.NewListPager method. +func (client *CertificatesClient) NewListPager(resourceGroupName string, environmentName string, options *CertificatesClientListOptions) *runtime.Pager[CertificatesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[CertificatesClientListResponse]{ + More: func(page CertificatesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CertificatesClientListResponse) (CertificatesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CertificatesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return CertificatesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *CertificatesClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *CertificatesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *CertificatesClient) listHandleResponse(resp *http.Response) (CertificatesClientListResponse, error) { + result := CertificatesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CertificateCollection); err != nil { + return CertificatesClientListResponse{}, err + } + return result, nil +} + +// Update - Patches a certificate. Currently only patching of tags is supported +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - certificateName - Name of the Certificate. +// - certificateEnvelope - Properties of a certificate that need to be updated +// - options - CertificatesClientUpdateOptions contains the optional parameters for the CertificatesClient.Update method. +func (client *CertificatesClient) Update(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, certificateEnvelope CertificatePatch, options *CertificatesClientUpdateOptions) (CertificatesClientUpdateResponse, error) { + var err error + const operationName = "CertificatesClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, environmentName, certificateName, certificateEnvelope, options) + if err != nil { + return CertificatesClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CertificatesClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CertificatesClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *CertificatesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, certificateName string, certificateEnvelope CertificatePatch, options *CertificatesClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *CertificatesClient) updateHandleResponse(resp *http.Response) (CertificatesClientUpdateResponse, error) { + result := CertificatesClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Certificate); err != nil { + return CertificatesClientUpdateResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/ci.yml b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/ci.yml new file mode 100644 index 00000000..7f14759f --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/ci.yml @@ -0,0 +1,28 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/appcontainers/armappcontainers/ + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/appcontainers/armappcontainers/ + +extends: + template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + IncludeRelease: true + ServiceDirectory: 'resourcemanager/appcontainers/armappcontainers' diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/client_factory.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/client_factory.go new file mode 100644 index 00000000..2588a2e5 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/client_factory.go @@ -0,0 +1,316 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" +) + +// ClientFactory is a client factory used to create any client in this module. +// Don't use this type directly, use NewClientFactory instead. +type ClientFactory struct { + subscriptionID string + internal *arm.Client +} + +// NewClientFactory creates a new instance of ClientFactory with the specified values. +// The parameter values will be propagated to any client created from this factory. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { + internal, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + return &ClientFactory{ + subscriptionID: subscriptionID, + internal: internal, + }, nil +} + +// NewAppResiliencyClient creates a new instance of AppResiliencyClient. +func (c *ClientFactory) NewAppResiliencyClient() *AppResiliencyClient { + return &AppResiliencyClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewAvailableWorkloadProfilesClient creates a new instance of AvailableWorkloadProfilesClient. +func (c *ClientFactory) NewAvailableWorkloadProfilesClient() *AvailableWorkloadProfilesClient { + return &AvailableWorkloadProfilesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewBillingMetersClient creates a new instance of BillingMetersClient. +func (c *ClientFactory) NewBillingMetersClient() *BillingMetersClient { + return &BillingMetersClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewBuildAuthTokenClient creates a new instance of BuildAuthTokenClient. +func (c *ClientFactory) NewBuildAuthTokenClient() *BuildAuthTokenClient { + return &BuildAuthTokenClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewBuildersClient creates a new instance of BuildersClient. +func (c *ClientFactory) NewBuildersClient() *BuildersClient { + return &BuildersClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewBuildsByBuilderResourceClient creates a new instance of BuildsByBuilderResourceClient. +func (c *ClientFactory) NewBuildsByBuilderResourceClient() *BuildsByBuilderResourceClient { + return &BuildsByBuilderResourceClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewBuildsClient creates a new instance of BuildsClient. +func (c *ClientFactory) NewBuildsClient() *BuildsClient { + return &BuildsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCertificatesClient creates a new instance of CertificatesClient. +func (c *ClientFactory) NewCertificatesClient() *CertificatesClient { + return &CertificatesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewConnectedEnvironmentsCertificatesClient creates a new instance of ConnectedEnvironmentsCertificatesClient. +func (c *ClientFactory) NewConnectedEnvironmentsCertificatesClient() *ConnectedEnvironmentsCertificatesClient { + return &ConnectedEnvironmentsCertificatesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewConnectedEnvironmentsClient creates a new instance of ConnectedEnvironmentsClient. +func (c *ClientFactory) NewConnectedEnvironmentsClient() *ConnectedEnvironmentsClient { + return &ConnectedEnvironmentsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewConnectedEnvironmentsDaprComponentsClient creates a new instance of ConnectedEnvironmentsDaprComponentsClient. +func (c *ClientFactory) NewConnectedEnvironmentsDaprComponentsClient() *ConnectedEnvironmentsDaprComponentsClient { + return &ConnectedEnvironmentsDaprComponentsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewConnectedEnvironmentsStoragesClient creates a new instance of ConnectedEnvironmentsStoragesClient. +func (c *ClientFactory) NewConnectedEnvironmentsStoragesClient() *ConnectedEnvironmentsStoragesClient { + return &ConnectedEnvironmentsStoragesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewContainerAppsAPIClient creates a new instance of ContainerAppsAPIClient. +func (c *ClientFactory) NewContainerAppsAPIClient() *ContainerAppsAPIClient { + return &ContainerAppsAPIClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewContainerAppsAuthConfigsClient creates a new instance of ContainerAppsAuthConfigsClient. +func (c *ClientFactory) NewContainerAppsAuthConfigsClient() *ContainerAppsAuthConfigsClient { + return &ContainerAppsAuthConfigsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewContainerAppsClient creates a new instance of ContainerAppsClient. +func (c *ClientFactory) NewContainerAppsClient() *ContainerAppsClient { + return &ContainerAppsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewContainerAppsDiagnosticsClient creates a new instance of ContainerAppsDiagnosticsClient. +func (c *ClientFactory) NewContainerAppsDiagnosticsClient() *ContainerAppsDiagnosticsClient { + return &ContainerAppsDiagnosticsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewContainerAppsRevisionReplicasClient creates a new instance of ContainerAppsRevisionReplicasClient. +func (c *ClientFactory) NewContainerAppsRevisionReplicasClient() *ContainerAppsRevisionReplicasClient { + return &ContainerAppsRevisionReplicasClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewContainerAppsRevisionsClient creates a new instance of ContainerAppsRevisionsClient. +func (c *ClientFactory) NewContainerAppsRevisionsClient() *ContainerAppsRevisionsClient { + return &ContainerAppsRevisionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewContainerAppsSourceControlsClient creates a new instance of ContainerAppsSourceControlsClient. +func (c *ClientFactory) NewContainerAppsSourceControlsClient() *ContainerAppsSourceControlsClient { + return &ContainerAppsSourceControlsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDaprComponentResiliencyPoliciesClient creates a new instance of DaprComponentResiliencyPoliciesClient. +func (c *ClientFactory) NewDaprComponentResiliencyPoliciesClient() *DaprComponentResiliencyPoliciesClient { + return &DaprComponentResiliencyPoliciesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDaprComponentsClient creates a new instance of DaprComponentsClient. +func (c *ClientFactory) NewDaprComponentsClient() *DaprComponentsClient { + return &DaprComponentsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDaprSubscriptionsClient creates a new instance of DaprSubscriptionsClient. +func (c *ClientFactory) NewDaprSubscriptionsClient() *DaprSubscriptionsClient { + return &DaprSubscriptionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDotNetComponentsClient creates a new instance of DotNetComponentsClient. +func (c *ClientFactory) NewDotNetComponentsClient() *DotNetComponentsClient { + return &DotNetComponentsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewJavaComponentsClient creates a new instance of JavaComponentsClient. +func (c *ClientFactory) NewJavaComponentsClient() *JavaComponentsClient { + return &JavaComponentsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewJobsClient creates a new instance of JobsClient. +func (c *ClientFactory) NewJobsClient() *JobsClient { + return &JobsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewJobsExecutionsClient creates a new instance of JobsExecutionsClient. +func (c *ClientFactory) NewJobsExecutionsClient() *JobsExecutionsClient { + return &JobsExecutionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedCertificatesClient creates a new instance of ManagedCertificatesClient. +func (c *ClientFactory) NewManagedCertificatesClient() *ManagedCertificatesClient { + return &ManagedCertificatesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedEnvironmentDiagnosticsClient creates a new instance of ManagedEnvironmentDiagnosticsClient. +func (c *ClientFactory) NewManagedEnvironmentDiagnosticsClient() *ManagedEnvironmentDiagnosticsClient { + return &ManagedEnvironmentDiagnosticsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedEnvironmentUsagesClient creates a new instance of ManagedEnvironmentUsagesClient. +func (c *ClientFactory) NewManagedEnvironmentUsagesClient() *ManagedEnvironmentUsagesClient { + return &ManagedEnvironmentUsagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedEnvironmentsClient creates a new instance of ManagedEnvironmentsClient. +func (c *ClientFactory) NewManagedEnvironmentsClient() *ManagedEnvironmentsClient { + return &ManagedEnvironmentsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedEnvironmentsDiagnosticsClient creates a new instance of ManagedEnvironmentsDiagnosticsClient. +func (c *ClientFactory) NewManagedEnvironmentsDiagnosticsClient() *ManagedEnvironmentsDiagnosticsClient { + return &ManagedEnvironmentsDiagnosticsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedEnvironmentsStoragesClient creates a new instance of ManagedEnvironmentsStoragesClient. +func (c *ClientFactory) NewManagedEnvironmentsStoragesClient() *ManagedEnvironmentsStoragesClient { + return &ManagedEnvironmentsStoragesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewNamespacesClient creates a new instance of NamespacesClient. +func (c *ClientFactory) NewNamespacesClient() *NamespacesClient { + return &NamespacesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewOperationsClient creates a new instance of OperationsClient. +func (c *ClientFactory) NewOperationsClient() *OperationsClient { + return &OperationsClient{ + internal: c.internal, + } +} + +// NewUsagesClient creates a new instance of UsagesClient. +func (c *ClientFactory) NewUsagesClient() *UsagesClient { + return &UsagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironments_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironments_client.go new file mode 100644 index 00000000..b4308fc6 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironments_client.go @@ -0,0 +1,516 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ConnectedEnvironmentsClient contains the methods for the ConnectedEnvironments group. +// Don't use this type directly, use NewConnectedEnvironmentsClient() instead. +type ConnectedEnvironmentsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewConnectedEnvironmentsClient creates a new instance of ConnectedEnvironmentsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewConnectedEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectedEnvironmentsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ConnectedEnvironmentsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CheckNameAvailability - Checks if resource connectedEnvironmentName is available. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Managed Environment. +// - checkNameAvailabilityRequest - The check connectedEnvironmentName availability request. +// - options - ConnectedEnvironmentsClientCheckNameAvailabilityOptions contains the optional parameters for the ConnectedEnvironmentsClient.CheckNameAvailability +// method. +func (client *ConnectedEnvironmentsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, checkNameAvailabilityRequest CheckNameAvailabilityRequest, options *ConnectedEnvironmentsClientCheckNameAvailabilityOptions) (ConnectedEnvironmentsClientCheckNameAvailabilityResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsClient.CheckNameAvailability" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, checkNameAvailabilityRequest, options) + if err != nil { + return ConnectedEnvironmentsClientCheckNameAvailabilityResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsClientCheckNameAvailabilityResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsClientCheckNameAvailabilityResponse{}, err + } + resp, err := client.checkNameAvailabilityHandleResponse(httpResp) + return resp, err +} + +// checkNameAvailabilityCreateRequest creates the CheckNameAvailability request. +func (client *ConnectedEnvironmentsClient) checkNameAvailabilityCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, checkNameAvailabilityRequest CheckNameAvailabilityRequest, options *ConnectedEnvironmentsClientCheckNameAvailabilityOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/checkNameAvailability" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, checkNameAvailabilityRequest); err != nil { + return nil, err + } + return req, nil +} + +// checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. +func (client *ConnectedEnvironmentsClient) checkNameAvailabilityHandleResponse(resp *http.Response) (ConnectedEnvironmentsClientCheckNameAvailabilityResponse, error) { + result := ConnectedEnvironmentsClientCheckNameAvailabilityResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResponse); err != nil { + return ConnectedEnvironmentsClientCheckNameAvailabilityResponse{}, err + } + return result, nil +} + +// BeginCreateOrUpdate - Creates or updates an connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connectedEnvironment. +// - environmentEnvelope - Configuration details of the connectedEnvironment. +// - options - ConnectedEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsClient.BeginCreateOrUpdate +// method. +func (client *ConnectedEnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, environmentEnvelope ConnectedEnvironment, options *ConnectedEnvironmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ConnectedEnvironmentsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, connectedEnvironmentName, environmentEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ConnectedEnvironmentsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ConnectedEnvironmentsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Creates or updates an connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ConnectedEnvironmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, environmentEnvelope ConnectedEnvironment, options *ConnectedEnvironmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ConnectedEnvironmentsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, environmentEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ConnectedEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, environmentEnvelope ConnectedEnvironment, options *ConnectedEnvironmentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, environmentEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete an connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connectedEnvironment. +// - options - ConnectedEnvironmentsClientBeginDeleteOptions contains the optional parameters for the ConnectedEnvironmentsClient.BeginDelete +// method. +func (client *ConnectedEnvironmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsClientBeginDeleteOptions) (*runtime.Poller[ConnectedEnvironmentsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, connectedEnvironmentName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ConnectedEnvironmentsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ConnectedEnvironmentsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete an connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ConnectedEnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "ConnectedEnvironmentsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ConnectedEnvironmentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get the properties of an connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connectedEnvironment. +// - options - ConnectedEnvironmentsClientGetOptions contains the optional parameters for the ConnectedEnvironmentsClient.Get +// method. +func (client *ConnectedEnvironmentsClient) Get(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsClientGetOptions) (ConnectedEnvironmentsClientGetResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, options) + if err != nil { + return ConnectedEnvironmentsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ConnectedEnvironmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ConnectedEnvironmentsClient) getHandleResponse(resp *http.Response) (ConnectedEnvironmentsClientGetResponse, error) { + result := ConnectedEnvironmentsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ConnectedEnvironment); err != nil { + return ConnectedEnvironmentsClientGetResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - Get all connectedEnvironments in a resource group. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ConnectedEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the ConnectedEnvironmentsClient.NewListByResourceGroupPager +// method. +func (client *ConnectedEnvironmentsClient) NewListByResourceGroupPager(resourceGroupName string, options *ConnectedEnvironmentsClientListByResourceGroupOptions) *runtime.Pager[ConnectedEnvironmentsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[ConnectedEnvironmentsClientListByResourceGroupResponse]{ + More: func(page ConnectedEnvironmentsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ConnectedEnvironmentsClientListByResourceGroupResponse) (ConnectedEnvironmentsClientListByResourceGroupResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ConnectedEnvironmentsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) + if err != nil { + return ConnectedEnvironmentsClientListByResourceGroupResponse{}, err + } + return client.listByResourceGroupHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *ConnectedEnvironmentsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ConnectedEnvironmentsClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *ConnectedEnvironmentsClient) listByResourceGroupHandleResponse(resp *http.Response) (ConnectedEnvironmentsClientListByResourceGroupResponse, error) { + result := ConnectedEnvironmentsClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ConnectedEnvironmentCollection); err != nil { + return ConnectedEnvironmentsClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - Get all connectedEnvironments for a subscription. +// +// Generated from API version 2023-11-02-preview +// - options - ConnectedEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the ConnectedEnvironmentsClient.NewListBySubscriptionPager +// method. +func (client *ConnectedEnvironmentsClient) NewListBySubscriptionPager(options *ConnectedEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[ConnectedEnvironmentsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[ConnectedEnvironmentsClientListBySubscriptionResponse]{ + More: func(page ConnectedEnvironmentsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ConnectedEnvironmentsClientListBySubscriptionResponse) (ConnectedEnvironmentsClientListBySubscriptionResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ConnectedEnvironmentsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) + if err != nil { + return ConnectedEnvironmentsClientListBySubscriptionResponse{}, err + } + return client.listBySubscriptionHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *ConnectedEnvironmentsClient) listBySubscriptionCreateRequest(ctx context.Context, options *ConnectedEnvironmentsClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *ConnectedEnvironmentsClient) listBySubscriptionHandleResponse(resp *http.Response) (ConnectedEnvironmentsClientListBySubscriptionResponse, error) { + result := ConnectedEnvironmentsClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ConnectedEnvironmentCollection); err != nil { + return ConnectedEnvironmentsClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// Update - Patches a Managed Environment. Only patching of tags is supported currently +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connectedEnvironment. +// - options - ConnectedEnvironmentsClientUpdateOptions contains the optional parameters for the ConnectedEnvironmentsClient.Update +// method. +func (client *ConnectedEnvironmentsClient) Update(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsClientUpdateOptions) (ConnectedEnvironmentsClientUpdateResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, options) + if err != nil { + return ConnectedEnvironmentsClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *ConnectedEnvironmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *ConnectedEnvironmentsClient) updateHandleResponse(resp *http.Response) (ConnectedEnvironmentsClientUpdateResponse, error) { + result := ConnectedEnvironmentsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ConnectedEnvironment); err != nil { + return ConnectedEnvironmentsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentscertificates_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentscertificates_client.go new file mode 100644 index 00000000..a36d54ae --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentscertificates_client.go @@ -0,0 +1,389 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ConnectedEnvironmentsCertificatesClient contains the methods for the ConnectedEnvironmentsCertificates group. +// Don't use this type directly, use NewConnectedEnvironmentsCertificatesClient() instead. +type ConnectedEnvironmentsCertificatesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewConnectedEnvironmentsCertificatesClient creates a new instance of ConnectedEnvironmentsCertificatesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewConnectedEnvironmentsCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectedEnvironmentsCertificatesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ConnectedEnvironmentsCertificatesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Create or Update a Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Connected Environment. +// - certificateName - Name of the Certificate. +// - options - ConnectedEnvironmentsCertificatesClientCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.CreateOrUpdate +// method. +func (client *ConnectedEnvironmentsCertificatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, options *ConnectedEnvironmentsCertificatesClientCreateOrUpdateOptions) (ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsCertificatesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, certificateName, options) + if err != nil { + return ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ConnectedEnvironmentsCertificatesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, options *ConnectedEnvironmentsCertificatesClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.CertificateEnvelope != nil { + if err := runtime.MarshalAsJSON(req, *options.CertificateEnvelope); err != nil { + return nil, err + } + return req, nil + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *ConnectedEnvironmentsCertificatesClient) createOrUpdateHandleResponse(resp *http.Response) (ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse, error) { + result := ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Certificate); err != nil { + return ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Deletes the specified Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Connected Environment. +// - certificateName - Name of the Certificate. +// - options - ConnectedEnvironmentsCertificatesClientDeleteOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.Delete +// method. +func (client *ConnectedEnvironmentsCertificatesClient) Delete(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, options *ConnectedEnvironmentsCertificatesClientDeleteOptions) (ConnectedEnvironmentsCertificatesClientDeleteResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsCertificatesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, certificateName, options) + if err != nil { + return ConnectedEnvironmentsCertificatesClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsCertificatesClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsCertificatesClientDeleteResponse{}, err + } + return ConnectedEnvironmentsCertificatesClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ConnectedEnvironmentsCertificatesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, options *ConnectedEnvironmentsCertificatesClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get the specified Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Connected Environment. +// - certificateName - Name of the Certificate. +// - options - ConnectedEnvironmentsCertificatesClientGetOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.Get +// method. +func (client *ConnectedEnvironmentsCertificatesClient) Get(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, options *ConnectedEnvironmentsCertificatesClientGetOptions) (ConnectedEnvironmentsCertificatesClientGetResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsCertificatesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, certificateName, options) + if err != nil { + return ConnectedEnvironmentsCertificatesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsCertificatesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsCertificatesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ConnectedEnvironmentsCertificatesClient) getCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, options *ConnectedEnvironmentsCertificatesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ConnectedEnvironmentsCertificatesClient) getHandleResponse(resp *http.Response) (ConnectedEnvironmentsCertificatesClientGetResponse, error) { + result := ConnectedEnvironmentsCertificatesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Certificate); err != nil { + return ConnectedEnvironmentsCertificatesClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the Certificates in a given connected environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Connected Environment. +// - options - ConnectedEnvironmentsCertificatesClientListOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.NewListPager +// method. +func (client *ConnectedEnvironmentsCertificatesClient) NewListPager(resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsCertificatesClientListOptions) *runtime.Pager[ConnectedEnvironmentsCertificatesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[ConnectedEnvironmentsCertificatesClientListResponse]{ + More: func(page ConnectedEnvironmentsCertificatesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ConnectedEnvironmentsCertificatesClientListResponse) (ConnectedEnvironmentsCertificatesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ConnectedEnvironmentsCertificatesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, options) + }, nil) + if err != nil { + return ConnectedEnvironmentsCertificatesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *ConnectedEnvironmentsCertificatesClient) listCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsCertificatesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *ConnectedEnvironmentsCertificatesClient) listHandleResponse(resp *http.Response) (ConnectedEnvironmentsCertificatesClientListResponse, error) { + result := ConnectedEnvironmentsCertificatesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CertificateCollection); err != nil { + return ConnectedEnvironmentsCertificatesClientListResponse{}, err + } + return result, nil +} + +// Update - Patches a certificate. Currently only patching of tags is supported +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Connected Environment. +// - certificateName - Name of the Certificate. +// - certificateEnvelope - Properties of a certificate that need to be updated +// - options - ConnectedEnvironmentsCertificatesClientUpdateOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.Update +// method. +func (client *ConnectedEnvironmentsCertificatesClient) Update(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, certificateEnvelope CertificatePatch, options *ConnectedEnvironmentsCertificatesClientUpdateOptions) (ConnectedEnvironmentsCertificatesClientUpdateResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsCertificatesClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, options) + if err != nil { + return ConnectedEnvironmentsCertificatesClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsCertificatesClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsCertificatesClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *ConnectedEnvironmentsCertificatesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, certificateName string, certificateEnvelope CertificatePatch, options *ConnectedEnvironmentsCertificatesClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *ConnectedEnvironmentsCertificatesClient) updateHandleResponse(resp *http.Response) (ConnectedEnvironmentsCertificatesClientUpdateResponse, error) { + result := ConnectedEnvironmentsCertificatesClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Certificate); err != nil { + return ConnectedEnvironmentsCertificatesClientUpdateResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsdaprcomponents_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsdaprcomponents_client.go new file mode 100644 index 00000000..4766a92a --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsdaprcomponents_client.go @@ -0,0 +1,383 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ConnectedEnvironmentsDaprComponentsClient contains the methods for the ConnectedEnvironmentsDaprComponents group. +// Don't use this type directly, use NewConnectedEnvironmentsDaprComponentsClient() instead. +type ConnectedEnvironmentsDaprComponentsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewConnectedEnvironmentsDaprComponentsClient creates a new instance of ConnectedEnvironmentsDaprComponentsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewConnectedEnvironmentsDaprComponentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectedEnvironmentsDaprComponentsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ConnectedEnvironmentsDaprComponentsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a Dapr Component in a connected environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connected environment. +// - componentName - Name of the Dapr Component. +// - daprComponentEnvelope - Configuration details of the Dapr Component. +// - options - ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.CreateOrUpdate +// method. +func (client *ConnectedEnvironmentsDaprComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, daprComponentEnvelope DaprComponent, options *ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateOptions) (ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsDaprComponentsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope, options) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ConnectedEnvironmentsDaprComponentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, daprComponentEnvelope DaprComponent, options *ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, daprComponentEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *ConnectedEnvironmentsDaprComponentsClient) createOrUpdateHandleResponse(resp *http.Response) (ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse, error) { + result := ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponent); err != nil { + return ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete a Dapr Component from a connected environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connected environment. +// - componentName - Name of the Dapr Component. +// - options - ConnectedEnvironmentsDaprComponentsClientDeleteOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.Delete +// method. +func (client *ConnectedEnvironmentsDaprComponentsClient) Delete(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, options *ConnectedEnvironmentsDaprComponentsClientDeleteOptions) (ConnectedEnvironmentsDaprComponentsClientDeleteResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsDaprComponentsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, componentName, options) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsDaprComponentsClientDeleteResponse{}, err + } + return ConnectedEnvironmentsDaprComponentsClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ConnectedEnvironmentsDaprComponentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, options *ConnectedEnvironmentsDaprComponentsClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a dapr component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connected environment. +// - componentName - Name of the Dapr Component. +// - options - ConnectedEnvironmentsDaprComponentsClientGetOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.Get +// method. +func (client *ConnectedEnvironmentsDaprComponentsClient) Get(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, options *ConnectedEnvironmentsDaprComponentsClientGetOptions) (ConnectedEnvironmentsDaprComponentsClientGetResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsDaprComponentsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, componentName, options) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsDaprComponentsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ConnectedEnvironmentsDaprComponentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, options *ConnectedEnvironmentsDaprComponentsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ConnectedEnvironmentsDaprComponentsClient) getHandleResponse(resp *http.Response) (ConnectedEnvironmentsDaprComponentsClientGetResponse, error) { + result := ConnectedEnvironmentsDaprComponentsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponent); err != nil { + return ConnectedEnvironmentsDaprComponentsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the Dapr Components for a connected environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connected environment. +// - options - ConnectedEnvironmentsDaprComponentsClientListOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.NewListPager +// method. +func (client *ConnectedEnvironmentsDaprComponentsClient) NewListPager(resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsDaprComponentsClientListOptions) *runtime.Pager[ConnectedEnvironmentsDaprComponentsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[ConnectedEnvironmentsDaprComponentsClientListResponse]{ + More: func(page ConnectedEnvironmentsDaprComponentsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ConnectedEnvironmentsDaprComponentsClientListResponse) (ConnectedEnvironmentsDaprComponentsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ConnectedEnvironmentsDaprComponentsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, options) + }, nil) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *ConnectedEnvironmentsDaprComponentsClient) listCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsDaprComponentsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *ConnectedEnvironmentsDaprComponentsClient) listHandleResponse(resp *http.Response) (ConnectedEnvironmentsDaprComponentsClientListResponse, error) { + result := ConnectedEnvironmentsDaprComponentsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponentsCollection); err != nil { + return ConnectedEnvironmentsDaprComponentsClientListResponse{}, err + } + return result, nil +} + +// ListSecrets - List secrets for a dapr component +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the connected environment. +// - componentName - Name of the Dapr Component. +// - options - ConnectedEnvironmentsDaprComponentsClientListSecretsOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.ListSecrets +// method. +func (client *ConnectedEnvironmentsDaprComponentsClient) ListSecrets(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, options *ConnectedEnvironmentsDaprComponentsClientListSecretsOptions) (ConnectedEnvironmentsDaprComponentsClientListSecretsResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsDaprComponentsClient.ListSecrets" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listSecretsCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, componentName, options) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientListSecretsResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsDaprComponentsClientListSecretsResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsDaprComponentsClientListSecretsResponse{}, err + } + resp, err := client.listSecretsHandleResponse(httpResp) + return resp, err +} + +// listSecretsCreateRequest creates the ListSecrets request. +func (client *ConnectedEnvironmentsDaprComponentsClient) listSecretsCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, componentName string, options *ConnectedEnvironmentsDaprComponentsClientListSecretsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}/listSecrets" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listSecretsHandleResponse handles the ListSecrets response. +func (client *ConnectedEnvironmentsDaprComponentsClient) listSecretsHandleResponse(resp *http.Response) (ConnectedEnvironmentsDaprComponentsClientListSecretsResponse, error) { + result := ConnectedEnvironmentsDaprComponentsClientListSecretsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprSecretsCollection); err != nil { + return ConnectedEnvironmentsDaprComponentsClientListSecretsResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsstorages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsstorages_client.go new file mode 100644 index 00000000..af0ec7b4 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/connectedenvironmentsstorages_client.go @@ -0,0 +1,313 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ConnectedEnvironmentsStoragesClient contains the methods for the ConnectedEnvironmentsStorages group. +// Don't use this type directly, use NewConnectedEnvironmentsStoragesClient() instead. +type ConnectedEnvironmentsStoragesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewConnectedEnvironmentsStoragesClient creates a new instance of ConnectedEnvironmentsStoragesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewConnectedEnvironmentsStoragesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectedEnvironmentsStoragesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ConnectedEnvironmentsStoragesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Create or update storage for a connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Environment. +// - storageName - Name of the storage. +// - storageEnvelope - Configuration details of storage. +// - options - ConnectedEnvironmentsStoragesClientCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.CreateOrUpdate +// method. +func (client *ConnectedEnvironmentsStoragesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, storageName string, storageEnvelope ConnectedEnvironmentStorage, options *ConnectedEnvironmentsStoragesClientCreateOrUpdateOptions) (ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsStoragesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, storageName, storageEnvelope, options) + if err != nil { + return ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ConnectedEnvironmentsStoragesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, storageName string, storageEnvelope ConnectedEnvironmentStorage, options *ConnectedEnvironmentsStoragesClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if storageName == "" { + return nil, errors.New("parameter storageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageName}", url.PathEscape(storageName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, storageEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *ConnectedEnvironmentsStoragesClient) createOrUpdateHandleResponse(resp *http.Response) (ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse, error) { + result := ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ConnectedEnvironmentStorage); err != nil { + return ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete storage for a connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Environment. +// - storageName - Name of the storage. +// - options - ConnectedEnvironmentsStoragesClientDeleteOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.Delete +// method. +func (client *ConnectedEnvironmentsStoragesClient) Delete(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, storageName string, options *ConnectedEnvironmentsStoragesClientDeleteOptions) (ConnectedEnvironmentsStoragesClientDeleteResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsStoragesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, storageName, options) + if err != nil { + return ConnectedEnvironmentsStoragesClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsStoragesClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsStoragesClientDeleteResponse{}, err + } + return ConnectedEnvironmentsStoragesClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ConnectedEnvironmentsStoragesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, storageName string, options *ConnectedEnvironmentsStoragesClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if storageName == "" { + return nil, errors.New("parameter storageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageName}", url.PathEscape(storageName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get storage for a connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Environment. +// - storageName - Name of the storage. +// - options - ConnectedEnvironmentsStoragesClientGetOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.Get +// method. +func (client *ConnectedEnvironmentsStoragesClient) Get(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, storageName string, options *ConnectedEnvironmentsStoragesClientGetOptions) (ConnectedEnvironmentsStoragesClientGetResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsStoragesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, storageName, options) + if err != nil { + return ConnectedEnvironmentsStoragesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsStoragesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsStoragesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ConnectedEnvironmentsStoragesClient) getCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, storageName string, options *ConnectedEnvironmentsStoragesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + if storageName == "" { + return nil, errors.New("parameter storageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageName}", url.PathEscape(storageName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ConnectedEnvironmentsStoragesClient) getHandleResponse(resp *http.Response) (ConnectedEnvironmentsStoragesClientGetResponse, error) { + result := ConnectedEnvironmentsStoragesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ConnectedEnvironmentStorage); err != nil { + return ConnectedEnvironmentsStoragesClientGetResponse{}, err + } + return result, nil +} + +// List - Get all storages for a connectedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - connectedEnvironmentName - Name of the Environment. +// - options - ConnectedEnvironmentsStoragesClientListOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.List +// method. +func (client *ConnectedEnvironmentsStoragesClient) List(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsStoragesClientListOptions) (ConnectedEnvironmentsStoragesClientListResponse, error) { + var err error + const operationName = "ConnectedEnvironmentsStoragesClient.List" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listCreateRequest(ctx, resourceGroupName, connectedEnvironmentName, options) + if err != nil { + return ConnectedEnvironmentsStoragesClientListResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ConnectedEnvironmentsStoragesClientListResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ConnectedEnvironmentsStoragesClientListResponse{}, err + } + resp, err := client.listHandleResponse(httpResp) + return resp, err +} + +// listCreateRequest creates the List request. +func (client *ConnectedEnvironmentsStoragesClient) listCreateRequest(ctx context.Context, resourceGroupName string, connectedEnvironmentName string, options *ConnectedEnvironmentsStoragesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if connectedEnvironmentName == "" { + return nil, errors.New("parameter connectedEnvironmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{connectedEnvironmentName}", url.PathEscape(connectedEnvironmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *ConnectedEnvironmentsStoragesClient) listHandleResponse(resp *http.Response) (ConnectedEnvironmentsStoragesClientListResponse, error) { + result := ConnectedEnvironmentsStoragesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ConnectedEnvironmentStoragesCollection); err != nil { + return ConnectedEnvironmentsStoragesClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/constants.go new file mode 100644 index 00000000..5ecd2795 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/constants.go @@ -0,0 +1,872 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +const ( + moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers" + moduleVersion = "v3.0.0-beta.1" +) + +// AccessMode - Access mode for storage +type AccessMode string + +const ( + AccessModeReadOnly AccessMode = "ReadOnly" + AccessModeReadWrite AccessMode = "ReadWrite" +) + +// PossibleAccessModeValues returns the possible values for the AccessMode const type. +func PossibleAccessModeValues() []AccessMode { + return []AccessMode{ + AccessModeReadOnly, + AccessModeReadWrite, + } +} + +// Action - Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny +type Action string + +const ( + ActionAllow Action = "Allow" + ActionDeny Action = "Deny" +) + +// PossibleActionValues returns the possible values for the Action const type. +func PossibleActionValues() []Action { + return []Action{ + ActionAllow, + ActionDeny, + } +} + +// ActiveRevisionsMode - ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple +// revisions can be active.Single: Only one revision can be active at a time. Revision weights can +// not be used in this mode. If no value if provided, this is the default. +type ActiveRevisionsMode string + +const ( + ActiveRevisionsModeMultiple ActiveRevisionsMode = "Multiple" + ActiveRevisionsModeSingle ActiveRevisionsMode = "Single" +) + +// PossibleActiveRevisionsModeValues returns the possible values for the ActiveRevisionsMode const type. +func PossibleActiveRevisionsModeValues() []ActiveRevisionsMode { + return []ActiveRevisionsMode{ + ActiveRevisionsModeMultiple, + ActiveRevisionsModeSingle, + } +} + +// Affinity - Sticky Session Affinity +type Affinity string + +const ( + AffinityNone Affinity = "none" + AffinitySticky Affinity = "sticky" +) + +// PossibleAffinityValues returns the possible values for the Affinity const type. +func PossibleAffinityValues() []Affinity { + return []Affinity{ + AffinityNone, + AffinitySticky, + } +} + +// AppProtocol - Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http +type AppProtocol string + +const ( + AppProtocolGrpc AppProtocol = "grpc" + AppProtocolHTTP AppProtocol = "http" +) + +// PossibleAppProtocolValues returns the possible values for the AppProtocol const type. +func PossibleAppProtocolValues() []AppProtocol { + return []AppProtocol{ + AppProtocolGrpc, + AppProtocolHTTP, + } +} + +// Applicability - indicates whether the profile is default for the location. +type Applicability string + +const ( + ApplicabilityCustom Applicability = "Custom" + ApplicabilityLocationDefault Applicability = "LocationDefault" +) + +// PossibleApplicabilityValues returns the possible values for the Applicability const type. +func PossibleApplicabilityValues() []Applicability { + return []Applicability{ + ApplicabilityCustom, + ApplicabilityLocationDefault, + } +} + +// BindingType - Custom Domain binding type. +type BindingType string + +const ( + BindingTypeDisabled BindingType = "Disabled" + BindingTypeSniEnabled BindingType = "SniEnabled" +) + +// PossibleBindingTypeValues returns the possible values for the BindingType const type. +func PossibleBindingTypeValues() []BindingType { + return []BindingType{ + BindingTypeDisabled, + BindingTypeSniEnabled, + } +} + +// BuildProvisioningState - Resource instance provisioning state. +type BuildProvisioningState string + +const ( + BuildProvisioningStateCanceled BuildProvisioningState = "Canceled" + BuildProvisioningStateCreating BuildProvisioningState = "Creating" + BuildProvisioningStateDeleting BuildProvisioningState = "Deleting" + BuildProvisioningStateFailed BuildProvisioningState = "Failed" + BuildProvisioningStateSucceeded BuildProvisioningState = "Succeeded" + BuildProvisioningStateUpdating BuildProvisioningState = "Updating" +) + +// PossibleBuildProvisioningStateValues returns the possible values for the BuildProvisioningState const type. +func PossibleBuildProvisioningStateValues() []BuildProvisioningState { + return []BuildProvisioningState{ + BuildProvisioningStateCanceled, + BuildProvisioningStateCreating, + BuildProvisioningStateDeleting, + BuildProvisioningStateFailed, + BuildProvisioningStateSucceeded, + BuildProvisioningStateUpdating, + } +} + +// BuildStatus - Status of the build once it has been provisioned. +type BuildStatus string + +const ( + BuildStatusCanceled BuildStatus = "Canceled" + BuildStatusFailed BuildStatus = "Failed" + BuildStatusInProgress BuildStatus = "InProgress" + BuildStatusNotStarted BuildStatus = "NotStarted" + BuildStatusSucceeded BuildStatus = "Succeeded" +) + +// PossibleBuildStatusValues returns the possible values for the BuildStatus const type. +func PossibleBuildStatusValues() []BuildStatus { + return []BuildStatus{ + BuildStatusCanceled, + BuildStatusFailed, + BuildStatusInProgress, + BuildStatusNotStarted, + BuildStatusSucceeded, + } +} + +// BuilderProvisioningState - Resource instance provisioning state. +type BuilderProvisioningState string + +const ( + BuilderProvisioningStateCanceled BuilderProvisioningState = "Canceled" + BuilderProvisioningStateCreating BuilderProvisioningState = "Creating" + BuilderProvisioningStateDeleting BuilderProvisioningState = "Deleting" + BuilderProvisioningStateFailed BuilderProvisioningState = "Failed" + BuilderProvisioningStateSucceeded BuilderProvisioningState = "Succeeded" + BuilderProvisioningStateUpdating BuilderProvisioningState = "Updating" +) + +// PossibleBuilderProvisioningStateValues returns the possible values for the BuilderProvisioningState const type. +func PossibleBuilderProvisioningStateValues() []BuilderProvisioningState { + return []BuilderProvisioningState{ + BuilderProvisioningStateCanceled, + BuilderProvisioningStateCreating, + BuilderProvisioningStateDeleting, + BuilderProvisioningStateFailed, + BuilderProvisioningStateSucceeded, + BuilderProvisioningStateUpdating, + } +} + +// CertificateProvisioningState - Provisioning state of the certificate. +type CertificateProvisioningState string + +const ( + CertificateProvisioningStateCanceled CertificateProvisioningState = "Canceled" + CertificateProvisioningStateDeleteFailed CertificateProvisioningState = "DeleteFailed" + CertificateProvisioningStateFailed CertificateProvisioningState = "Failed" + CertificateProvisioningStatePending CertificateProvisioningState = "Pending" + CertificateProvisioningStateSucceeded CertificateProvisioningState = "Succeeded" +) + +// PossibleCertificateProvisioningStateValues returns the possible values for the CertificateProvisioningState const type. +func PossibleCertificateProvisioningStateValues() []CertificateProvisioningState { + return []CertificateProvisioningState{ + CertificateProvisioningStateCanceled, + CertificateProvisioningStateDeleteFailed, + CertificateProvisioningStateFailed, + CertificateProvisioningStatePending, + CertificateProvisioningStateSucceeded, + } +} + +// CertificateType - The type of the certificate. Allowed values are ServerSSLCertificate and ImagePullTrustedCA +type CertificateType string + +const ( + CertificateTypeImagePullTrustedCA CertificateType = "ImagePullTrustedCA" + CertificateTypeServerSSLCertificate CertificateType = "ServerSSLCertificate" +) + +// PossibleCertificateTypeValues returns the possible values for the CertificateType const type. +func PossibleCertificateTypeValues() []CertificateType { + return []CertificateType{ + CertificateTypeImagePullTrustedCA, + CertificateTypeServerSSLCertificate, + } +} + +// CheckNameAvailabilityReason - The reason why the given name is not available. +type CheckNameAvailabilityReason string + +const ( + CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists" + CheckNameAvailabilityReasonInvalid CheckNameAvailabilityReason = "Invalid" +) + +// PossibleCheckNameAvailabilityReasonValues returns the possible values for the CheckNameAvailabilityReason const type. +func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason { + return []CheckNameAvailabilityReason{ + CheckNameAvailabilityReasonAlreadyExists, + CheckNameAvailabilityReasonInvalid, + } +} + +// ConnectedEnvironmentProvisioningState - Provisioning state of the Kubernetes Environment. +type ConnectedEnvironmentProvisioningState string + +const ( + ConnectedEnvironmentProvisioningStateCanceled ConnectedEnvironmentProvisioningState = "Canceled" + ConnectedEnvironmentProvisioningStateFailed ConnectedEnvironmentProvisioningState = "Failed" + ConnectedEnvironmentProvisioningStateInfrastructureSetupComplete ConnectedEnvironmentProvisioningState = "InfrastructureSetupComplete" + ConnectedEnvironmentProvisioningStateInfrastructureSetupInProgress ConnectedEnvironmentProvisioningState = "InfrastructureSetupInProgress" + ConnectedEnvironmentProvisioningStateInitializationInProgress ConnectedEnvironmentProvisioningState = "InitializationInProgress" + ConnectedEnvironmentProvisioningStateScheduledForDelete ConnectedEnvironmentProvisioningState = "ScheduledForDelete" + ConnectedEnvironmentProvisioningStateSucceeded ConnectedEnvironmentProvisioningState = "Succeeded" + ConnectedEnvironmentProvisioningStateWaiting ConnectedEnvironmentProvisioningState = "Waiting" +) + +// PossibleConnectedEnvironmentProvisioningStateValues returns the possible values for the ConnectedEnvironmentProvisioningState const type. +func PossibleConnectedEnvironmentProvisioningStateValues() []ConnectedEnvironmentProvisioningState { + return []ConnectedEnvironmentProvisioningState{ + ConnectedEnvironmentProvisioningStateCanceled, + ConnectedEnvironmentProvisioningStateFailed, + ConnectedEnvironmentProvisioningStateInfrastructureSetupComplete, + ConnectedEnvironmentProvisioningStateInfrastructureSetupInProgress, + ConnectedEnvironmentProvisioningStateInitializationInProgress, + ConnectedEnvironmentProvisioningStateScheduledForDelete, + ConnectedEnvironmentProvisioningStateSucceeded, + ConnectedEnvironmentProvisioningStateWaiting, + } +} + +// ContainerAppContainerRunningState - Current running state of the container +type ContainerAppContainerRunningState string + +const ( + ContainerAppContainerRunningStateRunning ContainerAppContainerRunningState = "Running" + ContainerAppContainerRunningStateTerminated ContainerAppContainerRunningState = "Terminated" + ContainerAppContainerRunningStateWaiting ContainerAppContainerRunningState = "Waiting" +) + +// PossibleContainerAppContainerRunningStateValues returns the possible values for the ContainerAppContainerRunningState const type. +func PossibleContainerAppContainerRunningStateValues() []ContainerAppContainerRunningState { + return []ContainerAppContainerRunningState{ + ContainerAppContainerRunningStateRunning, + ContainerAppContainerRunningStateTerminated, + ContainerAppContainerRunningStateWaiting, + } +} + +// ContainerAppProvisioningState - Provisioning state of the Container App. +type ContainerAppProvisioningState string + +const ( + ContainerAppProvisioningStateCanceled ContainerAppProvisioningState = "Canceled" + ContainerAppProvisioningStateDeleting ContainerAppProvisioningState = "Deleting" + ContainerAppProvisioningStateFailed ContainerAppProvisioningState = "Failed" + ContainerAppProvisioningStateInProgress ContainerAppProvisioningState = "InProgress" + ContainerAppProvisioningStateSucceeded ContainerAppProvisioningState = "Succeeded" +) + +// PossibleContainerAppProvisioningStateValues returns the possible values for the ContainerAppProvisioningState const type. +func PossibleContainerAppProvisioningStateValues() []ContainerAppProvisioningState { + return []ContainerAppProvisioningState{ + ContainerAppProvisioningStateCanceled, + ContainerAppProvisioningStateDeleting, + ContainerAppProvisioningStateFailed, + ContainerAppProvisioningStateInProgress, + ContainerAppProvisioningStateSucceeded, + } +} + +// ContainerAppReplicaRunningState - Current running state of the replica +type ContainerAppReplicaRunningState string + +const ( + ContainerAppReplicaRunningStateNotRunning ContainerAppReplicaRunningState = "NotRunning" + ContainerAppReplicaRunningStateRunning ContainerAppReplicaRunningState = "Running" + ContainerAppReplicaRunningStateUnknown ContainerAppReplicaRunningState = "Unknown" +) + +// PossibleContainerAppReplicaRunningStateValues returns the possible values for the ContainerAppReplicaRunningState const type. +func PossibleContainerAppReplicaRunningStateValues() []ContainerAppReplicaRunningState { + return []ContainerAppReplicaRunningState{ + ContainerAppReplicaRunningStateNotRunning, + ContainerAppReplicaRunningStateRunning, + ContainerAppReplicaRunningStateUnknown, + } +} + +// CookieExpirationConvention - The convention used when determining the session cookie's expiration. +type CookieExpirationConvention string + +const ( + CookieExpirationConventionFixedTime CookieExpirationConvention = "FixedTime" + CookieExpirationConventionIdentityProviderDerived CookieExpirationConvention = "IdentityProviderDerived" +) + +// PossibleCookieExpirationConventionValues returns the possible values for the CookieExpirationConvention const type. +func PossibleCookieExpirationConventionValues() []CookieExpirationConvention { + return []CookieExpirationConvention{ + CookieExpirationConventionFixedTime, + CookieExpirationConventionIdentityProviderDerived, + } +} + +// CreatedByType - The type of identity that created the resource. +type CreatedByType string + +const ( + CreatedByTypeApplication CreatedByType = "Application" + CreatedByTypeKey CreatedByType = "Key" + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{ + CreatedByTypeApplication, + CreatedByTypeKey, + CreatedByTypeManagedIdentity, + CreatedByTypeUser, + } +} + +// DNSVerificationTestResult - DNS verification test result. +type DNSVerificationTestResult string + +const ( + DNSVerificationTestResultFailed DNSVerificationTestResult = "Failed" + DNSVerificationTestResultPassed DNSVerificationTestResult = "Passed" + DNSVerificationTestResultSkipped DNSVerificationTestResult = "Skipped" +) + +// PossibleDNSVerificationTestResultValues returns the possible values for the DNSVerificationTestResult const type. +func PossibleDNSVerificationTestResultValues() []DNSVerificationTestResult { + return []DNSVerificationTestResult{ + DNSVerificationTestResultFailed, + DNSVerificationTestResultPassed, + DNSVerificationTestResultSkipped, + } +} + +// DotNetComponentProvisioningState - Provisioning state of the .NET Component. +type DotNetComponentProvisioningState string + +const ( + DotNetComponentProvisioningStateCanceled DotNetComponentProvisioningState = "Canceled" + DotNetComponentProvisioningStateDeleting DotNetComponentProvisioningState = "Deleting" + DotNetComponentProvisioningStateFailed DotNetComponentProvisioningState = "Failed" + DotNetComponentProvisioningStateInProgress DotNetComponentProvisioningState = "InProgress" + DotNetComponentProvisioningStateSucceeded DotNetComponentProvisioningState = "Succeeded" +) + +// PossibleDotNetComponentProvisioningStateValues returns the possible values for the DotNetComponentProvisioningState const type. +func PossibleDotNetComponentProvisioningStateValues() []DotNetComponentProvisioningState { + return []DotNetComponentProvisioningState{ + DotNetComponentProvisioningStateCanceled, + DotNetComponentProvisioningStateDeleting, + DotNetComponentProvisioningStateFailed, + DotNetComponentProvisioningStateInProgress, + DotNetComponentProvisioningStateSucceeded, + } +} + +// DotNetComponentType - Type of the .NET Component. +type DotNetComponentType string + +const ( + DotNetComponentTypeAspireDashboard DotNetComponentType = "AspireDashboard" + DotNetComponentTypeAspireResourceServerAPI DotNetComponentType = "AspireResourceServerApi" +) + +// PossibleDotNetComponentTypeValues returns the possible values for the DotNetComponentType const type. +func PossibleDotNetComponentTypeValues() []DotNetComponentType { + return []DotNetComponentType{ + DotNetComponentTypeAspireDashboard, + DotNetComponentTypeAspireResourceServerAPI, + } +} + +// EnvironmentProvisioningState - Provisioning state of the Environment. +type EnvironmentProvisioningState string + +const ( + EnvironmentProvisioningStateCanceled EnvironmentProvisioningState = "Canceled" + EnvironmentProvisioningStateFailed EnvironmentProvisioningState = "Failed" + EnvironmentProvisioningStateInfrastructureSetupComplete EnvironmentProvisioningState = "InfrastructureSetupComplete" + EnvironmentProvisioningStateInfrastructureSetupInProgress EnvironmentProvisioningState = "InfrastructureSetupInProgress" + EnvironmentProvisioningStateInitializationInProgress EnvironmentProvisioningState = "InitializationInProgress" + EnvironmentProvisioningStateScheduledForDelete EnvironmentProvisioningState = "ScheduledForDelete" + EnvironmentProvisioningStateSucceeded EnvironmentProvisioningState = "Succeeded" + EnvironmentProvisioningStateUpgradeFailed EnvironmentProvisioningState = "UpgradeFailed" + EnvironmentProvisioningStateUpgradeRequested EnvironmentProvisioningState = "UpgradeRequested" + EnvironmentProvisioningStateWaiting EnvironmentProvisioningState = "Waiting" +) + +// PossibleEnvironmentProvisioningStateValues returns the possible values for the EnvironmentProvisioningState const type. +func PossibleEnvironmentProvisioningStateValues() []EnvironmentProvisioningState { + return []EnvironmentProvisioningState{ + EnvironmentProvisioningStateCanceled, + EnvironmentProvisioningStateFailed, + EnvironmentProvisioningStateInfrastructureSetupComplete, + EnvironmentProvisioningStateInfrastructureSetupInProgress, + EnvironmentProvisioningStateInitializationInProgress, + EnvironmentProvisioningStateScheduledForDelete, + EnvironmentProvisioningStateSucceeded, + EnvironmentProvisioningStateUpgradeFailed, + EnvironmentProvisioningStateUpgradeRequested, + EnvironmentProvisioningStateWaiting, + } +} + +// ExtendedLocationTypes - The type of extendedLocation. +type ExtendedLocationTypes string + +const ( + ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation" +) + +// PossibleExtendedLocationTypesValues returns the possible values for the ExtendedLocationTypes const type. +func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { + return []ExtendedLocationTypes{ + ExtendedLocationTypesCustomLocation, + } +} + +// ForwardProxyConvention - The convention used to determine the url of the request made. +type ForwardProxyConvention string + +const ( + ForwardProxyConventionCustom ForwardProxyConvention = "Custom" + ForwardProxyConventionNoProxy ForwardProxyConvention = "NoProxy" + ForwardProxyConventionStandard ForwardProxyConvention = "Standard" +) + +// PossibleForwardProxyConventionValues returns the possible values for the ForwardProxyConvention const type. +func PossibleForwardProxyConventionValues() []ForwardProxyConvention { + return []ForwardProxyConvention{ + ForwardProxyConventionCustom, + ForwardProxyConventionNoProxy, + ForwardProxyConventionStandard, + } +} + +// IngressClientCertificateMode - Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate +// on forwarding. Accept indicates server forwards client certificate but does not require a client +// certificate. Require indicates server requires a client certificate. +type IngressClientCertificateMode string + +const ( + IngressClientCertificateModeAccept IngressClientCertificateMode = "accept" + IngressClientCertificateModeIgnore IngressClientCertificateMode = "ignore" + IngressClientCertificateModeRequire IngressClientCertificateMode = "require" +) + +// PossibleIngressClientCertificateModeValues returns the possible values for the IngressClientCertificateMode const type. +func PossibleIngressClientCertificateModeValues() []IngressClientCertificateMode { + return []IngressClientCertificateMode{ + IngressClientCertificateModeAccept, + IngressClientCertificateModeIgnore, + IngressClientCertificateModeRequire, + } +} + +// IngressTargetPortHTTPScheme - Whether an http app listens on http or https +type IngressTargetPortHTTPScheme string + +const ( + IngressTargetPortHTTPSchemeHTTP IngressTargetPortHTTPScheme = "http" + IngressTargetPortHTTPSchemeHTTPS IngressTargetPortHTTPScheme = "https" +) + +// PossibleIngressTargetPortHTTPSchemeValues returns the possible values for the IngressTargetPortHTTPScheme const type. +func PossibleIngressTargetPortHTTPSchemeValues() []IngressTargetPortHTTPScheme { + return []IngressTargetPortHTTPScheme{ + IngressTargetPortHTTPSchemeHTTP, + IngressTargetPortHTTPSchemeHTTPS, + } +} + +// IngressTransportMethod - Ingress transport protocol +type IngressTransportMethod string + +const ( + IngressTransportMethodAuto IngressTransportMethod = "auto" + IngressTransportMethodHTTP IngressTransportMethod = "http" + IngressTransportMethodHTTP2 IngressTransportMethod = "http2" + IngressTransportMethodTCP IngressTransportMethod = "tcp" +) + +// PossibleIngressTransportMethodValues returns the possible values for the IngressTransportMethod const type. +func PossibleIngressTransportMethodValues() []IngressTransportMethod { + return []IngressTransportMethod{ + IngressTransportMethodAuto, + IngressTransportMethodHTTP, + IngressTransportMethodHTTP2, + IngressTransportMethodTCP, + } +} + +// JavaComponentProvisioningState - Provisioning state of the Java Component. +type JavaComponentProvisioningState string + +const ( + JavaComponentProvisioningStateCanceled JavaComponentProvisioningState = "Canceled" + JavaComponentProvisioningStateDeleting JavaComponentProvisioningState = "Deleting" + JavaComponentProvisioningStateFailed JavaComponentProvisioningState = "Failed" + JavaComponentProvisioningStateInProgress JavaComponentProvisioningState = "InProgress" + JavaComponentProvisioningStateSucceeded JavaComponentProvisioningState = "Succeeded" +) + +// PossibleJavaComponentProvisioningStateValues returns the possible values for the JavaComponentProvisioningState const type. +func PossibleJavaComponentProvisioningStateValues() []JavaComponentProvisioningState { + return []JavaComponentProvisioningState{ + JavaComponentProvisioningStateCanceled, + JavaComponentProvisioningStateDeleting, + JavaComponentProvisioningStateFailed, + JavaComponentProvisioningStateInProgress, + JavaComponentProvisioningStateSucceeded, + } +} + +// JavaComponentType - Type of the Java Component. +type JavaComponentType string + +const ( + JavaComponentTypeSpringBootAdmin JavaComponentType = "SpringBootAdmin" + JavaComponentTypeSpringCloudConfig JavaComponentType = "SpringCloudConfig" + JavaComponentTypeSpringCloudEureka JavaComponentType = "SpringCloudEureka" +) + +// PossibleJavaComponentTypeValues returns the possible values for the JavaComponentType const type. +func PossibleJavaComponentTypeValues() []JavaComponentType { + return []JavaComponentType{ + JavaComponentTypeSpringBootAdmin, + JavaComponentTypeSpringCloudConfig, + JavaComponentTypeSpringCloudEureka, + } +} + +// JobExecutionRunningState - Current running State of the job +type JobExecutionRunningState string + +const ( + JobExecutionRunningStateDegraded JobExecutionRunningState = "Degraded" + JobExecutionRunningStateFailed JobExecutionRunningState = "Failed" + JobExecutionRunningStateProcessing JobExecutionRunningState = "Processing" + JobExecutionRunningStateRunning JobExecutionRunningState = "Running" + JobExecutionRunningStateStopped JobExecutionRunningState = "Stopped" + JobExecutionRunningStateSucceeded JobExecutionRunningState = "Succeeded" + JobExecutionRunningStateUnknown JobExecutionRunningState = "Unknown" +) + +// PossibleJobExecutionRunningStateValues returns the possible values for the JobExecutionRunningState const type. +func PossibleJobExecutionRunningStateValues() []JobExecutionRunningState { + return []JobExecutionRunningState{ + JobExecutionRunningStateDegraded, + JobExecutionRunningStateFailed, + JobExecutionRunningStateProcessing, + JobExecutionRunningStateRunning, + JobExecutionRunningStateStopped, + JobExecutionRunningStateSucceeded, + JobExecutionRunningStateUnknown, + } +} + +// JobProvisioningState - Provisioning state of the Container Apps Job. +type JobProvisioningState string + +const ( + JobProvisioningStateCanceled JobProvisioningState = "Canceled" + JobProvisioningStateDeleting JobProvisioningState = "Deleting" + JobProvisioningStateFailed JobProvisioningState = "Failed" + JobProvisioningStateInProgress JobProvisioningState = "InProgress" + JobProvisioningStateSucceeded JobProvisioningState = "Succeeded" +) + +// PossibleJobProvisioningStateValues returns the possible values for the JobProvisioningState const type. +func PossibleJobProvisioningStateValues() []JobProvisioningState { + return []JobProvisioningState{ + JobProvisioningStateCanceled, + JobProvisioningStateDeleting, + JobProvisioningStateFailed, + JobProvisioningStateInProgress, + JobProvisioningStateSucceeded, + } +} + +// LogLevel - Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. +type LogLevel string + +const ( + LogLevelDebug LogLevel = "debug" + LogLevelError LogLevel = "error" + LogLevelInfo LogLevel = "info" + LogLevelWarn LogLevel = "warn" +) + +// PossibleLogLevelValues returns the possible values for the LogLevel const type. +func PossibleLogLevelValues() []LogLevel { + return []LogLevel{ + LogLevelDebug, + LogLevelError, + LogLevelInfo, + LogLevelWarn, + } +} + +// ManagedCertificateDomainControlValidation - Selected type of domain control validation for managed certificates. +type ManagedCertificateDomainControlValidation string + +const ( + ManagedCertificateDomainControlValidationCNAME ManagedCertificateDomainControlValidation = "CNAME" + ManagedCertificateDomainControlValidationHTTP ManagedCertificateDomainControlValidation = "HTTP" + ManagedCertificateDomainControlValidationTXT ManagedCertificateDomainControlValidation = "TXT" +) + +// PossibleManagedCertificateDomainControlValidationValues returns the possible values for the ManagedCertificateDomainControlValidation const type. +func PossibleManagedCertificateDomainControlValidationValues() []ManagedCertificateDomainControlValidation { + return []ManagedCertificateDomainControlValidation{ + ManagedCertificateDomainControlValidationCNAME, + ManagedCertificateDomainControlValidationHTTP, + ManagedCertificateDomainControlValidationTXT, + } +} + +// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). +type ManagedServiceIdentityType string + +const ( + ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" + ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" + ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" + ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" +) + +// PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type. +func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { + return []ManagedServiceIdentityType{ + ManagedServiceIdentityTypeNone, + ManagedServiceIdentityTypeSystemAssigned, + ManagedServiceIdentityTypeSystemAssignedUserAssigned, + ManagedServiceIdentityTypeUserAssigned, + } +} + +// RevisionHealthState - Current health State of the revision +type RevisionHealthState string + +const ( + RevisionHealthStateHealthy RevisionHealthState = "Healthy" + RevisionHealthStateNone RevisionHealthState = "None" + RevisionHealthStateUnhealthy RevisionHealthState = "Unhealthy" +) + +// PossibleRevisionHealthStateValues returns the possible values for the RevisionHealthState const type. +func PossibleRevisionHealthStateValues() []RevisionHealthState { + return []RevisionHealthState{ + RevisionHealthStateHealthy, + RevisionHealthStateNone, + RevisionHealthStateUnhealthy, + } +} + +// RevisionProvisioningState - Current provisioning State of the revision +type RevisionProvisioningState string + +const ( + RevisionProvisioningStateDeprovisioned RevisionProvisioningState = "Deprovisioned" + RevisionProvisioningStateDeprovisioning RevisionProvisioningState = "Deprovisioning" + RevisionProvisioningStateFailed RevisionProvisioningState = "Failed" + RevisionProvisioningStateProvisioned RevisionProvisioningState = "Provisioned" + RevisionProvisioningStateProvisioning RevisionProvisioningState = "Provisioning" +) + +// PossibleRevisionProvisioningStateValues returns the possible values for the RevisionProvisioningState const type. +func PossibleRevisionProvisioningStateValues() []RevisionProvisioningState { + return []RevisionProvisioningState{ + RevisionProvisioningStateDeprovisioned, + RevisionProvisioningStateDeprovisioning, + RevisionProvisioningStateFailed, + RevisionProvisioningStateProvisioned, + RevisionProvisioningStateProvisioning, + } +} + +// RevisionRunningState - Current running state of the revision +type RevisionRunningState string + +const ( + RevisionRunningStateDegraded RevisionRunningState = "Degraded" + RevisionRunningStateFailed RevisionRunningState = "Failed" + RevisionRunningStateProcessing RevisionRunningState = "Processing" + RevisionRunningStateRunning RevisionRunningState = "Running" + RevisionRunningStateStopped RevisionRunningState = "Stopped" + RevisionRunningStateUnknown RevisionRunningState = "Unknown" +) + +// PossibleRevisionRunningStateValues returns the possible values for the RevisionRunningState const type. +func PossibleRevisionRunningStateValues() []RevisionRunningState { + return []RevisionRunningState{ + RevisionRunningStateDegraded, + RevisionRunningStateFailed, + RevisionRunningStateProcessing, + RevisionRunningStateRunning, + RevisionRunningStateStopped, + RevisionRunningStateUnknown, + } +} + +// Scheme - Scheme to use for connecting to the host. Defaults to HTTP. +type Scheme string + +const ( + SchemeHTTP Scheme = "HTTP" + SchemeHTTPS Scheme = "HTTPS" +) + +// PossibleSchemeValues returns the possible values for the Scheme const type. +func PossibleSchemeValues() []Scheme { + return []Scheme{ + SchemeHTTP, + SchemeHTTPS, + } +} + +// SourceControlOperationState - Current provisioning State of the operation +type SourceControlOperationState string + +const ( + SourceControlOperationStateCanceled SourceControlOperationState = "Canceled" + SourceControlOperationStateFailed SourceControlOperationState = "Failed" + SourceControlOperationStateInProgress SourceControlOperationState = "InProgress" + SourceControlOperationStateSucceeded SourceControlOperationState = "Succeeded" +) + +// PossibleSourceControlOperationStateValues returns the possible values for the SourceControlOperationState const type. +func PossibleSourceControlOperationStateValues() []SourceControlOperationState { + return []SourceControlOperationState{ + SourceControlOperationStateCanceled, + SourceControlOperationStateFailed, + SourceControlOperationStateInProgress, + SourceControlOperationStateSucceeded, + } +} + +// StorageType - Storage type for the volume. If not provided, use EmptyDir. +type StorageType string + +const ( + StorageTypeAzureFile StorageType = "AzureFile" + StorageTypeEmptyDir StorageType = "EmptyDir" + StorageTypeNfsAzureFile StorageType = "NfsAzureFile" + StorageTypeSecret StorageType = "Secret" +) + +// PossibleStorageTypeValues returns the possible values for the StorageType const type. +func PossibleStorageTypeValues() []StorageType { + return []StorageType{ + StorageTypeAzureFile, + StorageTypeEmptyDir, + StorageTypeNfsAzureFile, + StorageTypeSecret, + } +} + +// TriggerType - Trigger type of the job +type TriggerType string + +const ( + TriggerTypeEvent TriggerType = "Event" + TriggerTypeManual TriggerType = "Manual" + TriggerTypeSchedule TriggerType = "Schedule" +) + +// PossibleTriggerTypeValues returns the possible values for the TriggerType const type. +func PossibleTriggerTypeValues() []TriggerType { + return []TriggerType{ + TriggerTypeEvent, + TriggerTypeManual, + TriggerTypeSchedule, + } +} + +// Type - The type of probe. +type Type string + +const ( + TypeLiveness Type = "Liveness" + TypeReadiness Type = "Readiness" + TypeStartup Type = "Startup" +) + +// PossibleTypeValues returns the possible values for the Type const type. +func PossibleTypeValues() []Type { + return []Type{ + TypeLiveness, + TypeReadiness, + TypeStartup, + } +} + +// UnauthenticatedClientActionV2 - The action to take when an unauthenticated client attempts to access the app. +type UnauthenticatedClientActionV2 string + +const ( + UnauthenticatedClientActionV2AllowAnonymous UnauthenticatedClientActionV2 = "AllowAnonymous" + UnauthenticatedClientActionV2RedirectToLoginPage UnauthenticatedClientActionV2 = "RedirectToLoginPage" + UnauthenticatedClientActionV2Return401 UnauthenticatedClientActionV2 = "Return401" + UnauthenticatedClientActionV2Return403 UnauthenticatedClientActionV2 = "Return403" +) + +// PossibleUnauthenticatedClientActionV2Values returns the possible values for the UnauthenticatedClientActionV2 const type. +func PossibleUnauthenticatedClientActionV2Values() []UnauthenticatedClientActionV2 { + return []UnauthenticatedClientActionV2{ + UnauthenticatedClientActionV2AllowAnonymous, + UnauthenticatedClientActionV2RedirectToLoginPage, + UnauthenticatedClientActionV2Return401, + UnauthenticatedClientActionV2Return403, + } +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerapps_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerapps_client.go new file mode 100644 index 00000000..c7454274 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerapps_client.go @@ -0,0 +1,812 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContainerAppsClient contains the methods for the ContainerApps group. +// Don't use this type directly, use NewContainerAppsClient() instead. +type ContainerAppsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewContainerAppsClient creates a new instance of ContainerAppsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContainerAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ContainerAppsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create or update a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - containerAppEnvelope - Properties used to create a container app +// - options - ContainerAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginCreateOrUpdate +// method. +func (client *ContainerAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ContainerAppsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, containerAppName, containerAppEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or update a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ContainerAppsClient) createOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ContainerAppsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, containerAppName, containerAppEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ContainerAppsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, containerAppEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsClient.BeginDelete +// method. +func (client *ContainerAppsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginDeleteOptions) (*runtime.Poller[ContainerAppsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ContainerAppsClient) deleteOperation(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "ContainerAppsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ContainerAppsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get the properties of a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsClientGetOptions contains the optional parameters for the ContainerAppsClient.Get method. +func (client *ContainerAppsClient) Get(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientGetOptions) (ContainerAppsClientGetResponse, error) { + var err error + const operationName = "ContainerAppsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return ContainerAppsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ContainerAppsClient) getCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ContainerAppsClient) getHandleResponse(resp *http.Response) (ContainerAppsClientGetResponse, error) { + result := ContainerAppsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ContainerApp); err != nil { + return ContainerAppsClientGetResponse{}, err + } + return result, nil +} + +// GetAuthToken - Get auth token for a container app +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsClientGetAuthTokenOptions contains the optional parameters for the ContainerAppsClient.GetAuthToken +// method. +func (client *ContainerAppsClient) GetAuthToken(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientGetAuthTokenOptions) (ContainerAppsClientGetAuthTokenResponse, error) { + var err error + const operationName = "ContainerAppsClient.GetAuthToken" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getAuthTokenCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return ContainerAppsClientGetAuthTokenResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsClientGetAuthTokenResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsClientGetAuthTokenResponse{}, err + } + resp, err := client.getAuthTokenHandleResponse(httpResp) + return resp, err +} + +// getAuthTokenCreateRequest creates the GetAuthToken request. +func (client *ContainerAppsClient) getAuthTokenCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientGetAuthTokenOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/getAuthtoken" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getAuthTokenHandleResponse handles the GetAuthToken response. +func (client *ContainerAppsClient) getAuthTokenHandleResponse(resp *http.Response) (ContainerAppsClientGetAuthTokenResponse, error) { + result := ContainerAppsClientGetAuthTokenResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ContainerAppAuthToken); err != nil { + return ContainerAppsClientGetAuthTokenResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - Get the Container Apps in a given resource group. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.NewListByResourceGroupPager +// method. +func (client *ContainerAppsClient) NewListByResourceGroupPager(resourceGroupName string, options *ContainerAppsClientListByResourceGroupOptions) *runtime.Pager[ContainerAppsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[ContainerAppsClientListByResourceGroupResponse]{ + More: func(page ContainerAppsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContainerAppsClientListByResourceGroupResponse) (ContainerAppsClientListByResourceGroupResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) + if err != nil { + return ContainerAppsClientListByResourceGroupResponse{}, err + } + return client.listByResourceGroupHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *ContainerAppsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ContainerAppsClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *ContainerAppsClient) listByResourceGroupHandleResponse(resp *http.Response) (ContainerAppsClientListByResourceGroupResponse, error) { + result := ContainerAppsClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ContainerAppCollection); err != nil { + return ContainerAppsClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - Get the Container Apps in a given subscription. +// +// Generated from API version 2023-11-02-preview +// - options - ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.NewListBySubscriptionPager +// method. +func (client *ContainerAppsClient) NewListBySubscriptionPager(options *ContainerAppsClientListBySubscriptionOptions) *runtime.Pager[ContainerAppsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[ContainerAppsClientListBySubscriptionResponse]{ + More: func(page ContainerAppsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContainerAppsClientListBySubscriptionResponse) (ContainerAppsClientListBySubscriptionResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) + if err != nil { + return ContainerAppsClientListBySubscriptionResponse{}, err + } + return client.listBySubscriptionHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *ContainerAppsClient) listBySubscriptionCreateRequest(ctx context.Context, options *ContainerAppsClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *ContainerAppsClient) listBySubscriptionHandleResponse(resp *http.Response) (ContainerAppsClientListBySubscriptionResponse, error) { + result := ContainerAppsClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ContainerAppCollection); err != nil { + return ContainerAppsClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// ListCustomHostNameAnalysis - Analyzes a custom hostname for a Container App +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsClientListCustomHostNameAnalysisOptions contains the optional parameters for the ContainerAppsClient.ListCustomHostNameAnalysis +// method. +func (client *ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientListCustomHostNameAnalysisOptions) (ContainerAppsClientListCustomHostNameAnalysisResponse, error) { + var err error + const operationName = "ContainerAppsClient.ListCustomHostNameAnalysis" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listCustomHostNameAnalysisCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return ContainerAppsClientListCustomHostNameAnalysisResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsClientListCustomHostNameAnalysisResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsClientListCustomHostNameAnalysisResponse{}, err + } + resp, err := client.listCustomHostNameAnalysisHandleResponse(httpResp) + return resp, err +} + +// listCustomHostNameAnalysisCreateRequest creates the ListCustomHostNameAnalysis request. +func (client *ContainerAppsClient) listCustomHostNameAnalysisCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientListCustomHostNameAnalysisOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + if options != nil && options.CustomHostname != nil { + reqQP.Set("customHostname", *options.CustomHostname) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listCustomHostNameAnalysisHandleResponse handles the ListCustomHostNameAnalysis response. +func (client *ContainerAppsClient) listCustomHostNameAnalysisHandleResponse(resp *http.Response) (ContainerAppsClientListCustomHostNameAnalysisResponse, error) { + result := ContainerAppsClientListCustomHostNameAnalysisResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CustomHostnameAnalysisResult); err != nil { + return ContainerAppsClientListCustomHostNameAnalysisResponse{}, err + } + return result, nil +} + +// ListSecrets - List secrets for a container app +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets +// method. +func (client *ContainerAppsClient) ListSecrets(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientListSecretsOptions) (ContainerAppsClientListSecretsResponse, error) { + var err error + const operationName = "ContainerAppsClient.ListSecrets" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listSecretsCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return ContainerAppsClientListSecretsResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsClientListSecretsResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsClientListSecretsResponse{}, err + } + resp, err := client.listSecretsHandleResponse(httpResp) + return resp, err +} + +// listSecretsCreateRequest creates the ListSecrets request. +func (client *ContainerAppsClient) listSecretsCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientListSecretsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listSecretsHandleResponse handles the ListSecrets response. +func (client *ContainerAppsClient) listSecretsHandleResponse(resp *http.Response) (ContainerAppsClientListSecretsResponse, error) { + result := ContainerAppsClientListSecretsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SecretsCollection); err != nil { + return ContainerAppsClientListSecretsResponse{}, err + } + return result, nil +} + +// BeginStart - Start a container app +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsClientBeginStartOptions contains the optional parameters for the ContainerAppsClient.BeginStart +// method. +func (client *ContainerAppsClient) BeginStart(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginStartOptions) (*runtime.Poller[ContainerAppsClientStartResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.start(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsClientStartResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Start - Start a container app +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ContainerAppsClient) start(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "ContainerAppsClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.startCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// startCreateRequest creates the Start request. +func (client *ContainerAppsClient) startCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginStartOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginStop - Stop a container app +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsClientBeginStopOptions contains the optional parameters for the ContainerAppsClient.BeginStop method. +func (client *ContainerAppsClient) BeginStop(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginStopOptions) (*runtime.Poller[ContainerAppsClientStopResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.stop(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsClientStopResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsClientStopResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Stop - Stop a container app +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ContainerAppsClient) stop(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginStopOptions) (*http.Response, error) { + var err error + const operationName = "ContainerAppsClient.BeginStop" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.stopCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// stopCreateRequest creates the Stop request. +func (client *ContainerAppsClient) stopCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsClientBeginStopOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginUpdate - Patches a Container App using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - containerAppEnvelope - Properties of a Container App that need to be updated +// - options - ContainerAppsClientBeginUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginUpdate +// method. +func (client *ContainerAppsClient) BeginUpdate(ctx context.Context, resourceGroupName string, containerAppName string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginUpdateOptions) (*runtime.Poller[ContainerAppsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, containerAppName, containerAppEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Update - Patches a Container App using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ContainerAppsClient) update(ctx context.Context, resourceGroupName string, containerAppName string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ContainerAppsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, containerAppName, containerAppEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// updateCreateRequest creates the Update request. +func (client *ContainerAppsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, containerAppEnvelope); err != nil { + return nil, err + } + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsapi_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsapi_client.go new file mode 100644 index 00000000..7d3fd0df --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsapi_client.go @@ -0,0 +1,169 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContainerAppsAPIClient contains the methods for the ContainerAppsAPIClient group. +// Don't use this type directly, use NewContainerAppsAPIClient() instead. +type ContainerAppsAPIClient struct { + internal *arm.Client + subscriptionID string +} + +// NewContainerAppsAPIClient creates a new instance of ContainerAppsAPIClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContainerAppsAPIClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsAPIClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ContainerAppsAPIClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// GetCustomDomainVerificationID - Get the verification id of a subscription used for verifying custom domains +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - options - ContainerAppsAPIClientGetCustomDomainVerificationIDOptions contains the optional parameters for the ContainerAppsAPIClient.GetCustomDomainVerificationID +// method. +func (client *ContainerAppsAPIClient) GetCustomDomainVerificationID(ctx context.Context, options *ContainerAppsAPIClientGetCustomDomainVerificationIDOptions) (ContainerAppsAPIClientGetCustomDomainVerificationIDResponse, error) { + var err error + const operationName = "ContainerAppsAPIClient.GetCustomDomainVerificationID" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCustomDomainVerificationIDCreateRequest(ctx, options) + if err != nil { + return ContainerAppsAPIClientGetCustomDomainVerificationIDResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsAPIClientGetCustomDomainVerificationIDResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsAPIClientGetCustomDomainVerificationIDResponse{}, err + } + resp, err := client.getCustomDomainVerificationIDHandleResponse(httpResp) + return resp, err +} + +// getCustomDomainVerificationIDCreateRequest creates the GetCustomDomainVerificationID request. +func (client *ContainerAppsAPIClient) getCustomDomainVerificationIDCreateRequest(ctx context.Context, options *ContainerAppsAPIClientGetCustomDomainVerificationIDOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/getCustomDomainVerificationId" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getCustomDomainVerificationIDHandleResponse handles the GetCustomDomainVerificationID response. +func (client *ContainerAppsAPIClient) getCustomDomainVerificationIDHandleResponse(resp *http.Response) (ContainerAppsAPIClientGetCustomDomainVerificationIDResponse, error) { + result := ContainerAppsAPIClientGetCustomDomainVerificationIDResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil { + return ContainerAppsAPIClientGetCustomDomainVerificationIDResponse{}, err + } + return result, nil +} + +// JobExecution - Get details of a single job execution +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - jobExecutionName - Job execution name. +// - options - ContainerAppsAPIClientJobExecutionOptions contains the optional parameters for the ContainerAppsAPIClient.JobExecution +// method. +func (client *ContainerAppsAPIClient) JobExecution(ctx context.Context, resourceGroupName string, jobName string, jobExecutionName string, options *ContainerAppsAPIClientJobExecutionOptions) (ContainerAppsAPIClientJobExecutionResponse, error) { + var err error + const operationName = "ContainerAppsAPIClient.JobExecution" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.jobExecutionCreateRequest(ctx, resourceGroupName, jobName, jobExecutionName, options) + if err != nil { + return ContainerAppsAPIClientJobExecutionResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsAPIClientJobExecutionResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsAPIClientJobExecutionResponse{}, err + } + resp, err := client.jobExecutionHandleResponse(httpResp) + return resp, err +} + +// jobExecutionCreateRequest creates the JobExecution request. +func (client *ContainerAppsAPIClient) jobExecutionCreateRequest(ctx context.Context, resourceGroupName string, jobName string, jobExecutionName string, options *ContainerAppsAPIClientJobExecutionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + if jobExecutionName == "" { + return nil, errors.New("parameter jobExecutionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobExecutionName}", url.PathEscape(jobExecutionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// jobExecutionHandleResponse handles the JobExecution response. +func (client *ContainerAppsAPIClient) jobExecutionHandleResponse(resp *http.Response) (ContainerAppsAPIClientJobExecutionResponse, error) { + result := ContainerAppsAPIClientJobExecutionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobExecution); err != nil { + return ContainerAppsAPIClientJobExecutionResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsauthconfigs_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsauthconfigs_client.go new file mode 100644 index 00000000..8747c68a --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsauthconfigs_client.go @@ -0,0 +1,313 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContainerAppsAuthConfigsClient contains the methods for the ContainerAppsAuthConfigs group. +// Don't use this type directly, use NewContainerAppsAuthConfigsClient() instead. +type ContainerAppsAuthConfigsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewContainerAppsAuthConfigsClient creates a new instance of ContainerAppsAuthConfigsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContainerAppsAuthConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsAuthConfigsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ContainerAppsAuthConfigsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Create or update the AuthConfig for a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - authConfigName - Name of the Container App AuthConfig. +// - authConfigEnvelope - Properties used to create a Container App AuthConfig +// - options - ContainerAppsAuthConfigsClientCreateOrUpdateOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.CreateOrUpdate +// method. +func (client *ContainerAppsAuthConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, authConfigName string, authConfigEnvelope AuthConfig, options *ContainerAppsAuthConfigsClientCreateOrUpdateOptions) (ContainerAppsAuthConfigsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ContainerAppsAuthConfigsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, containerAppName, authConfigName, authConfigEnvelope, options) + if err != nil { + return ContainerAppsAuthConfigsClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsAuthConfigsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsAuthConfigsClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ContainerAppsAuthConfigsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, authConfigName string, authConfigEnvelope AuthConfig, options *ContainerAppsAuthConfigsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if authConfigName == "" { + return nil, errors.New("parameter authConfigName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{authConfigName}", url.PathEscape(authConfigName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, authConfigEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *ContainerAppsAuthConfigsClient) createOrUpdateHandleResponse(resp *http.Response) (ContainerAppsAuthConfigsClientCreateOrUpdateResponse, error) { + result := ContainerAppsAuthConfigsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AuthConfig); err != nil { + return ContainerAppsAuthConfigsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete a Container App AuthConfig. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - authConfigName - Name of the Container App AuthConfig. +// - options - ContainerAppsAuthConfigsClientDeleteOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Delete +// method. +func (client *ContainerAppsAuthConfigsClient) Delete(ctx context.Context, resourceGroupName string, containerAppName string, authConfigName string, options *ContainerAppsAuthConfigsClientDeleteOptions) (ContainerAppsAuthConfigsClientDeleteResponse, error) { + var err error + const operationName = "ContainerAppsAuthConfigsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, containerAppName, authConfigName, options) + if err != nil { + return ContainerAppsAuthConfigsClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsAuthConfigsClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsAuthConfigsClientDeleteResponse{}, err + } + return ContainerAppsAuthConfigsClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ContainerAppsAuthConfigsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, authConfigName string, options *ContainerAppsAuthConfigsClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if authConfigName == "" { + return nil, errors.New("parameter authConfigName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{authConfigName}", url.PathEscape(authConfigName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a AuthConfig of a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - authConfigName - Name of the Container App AuthConfig. +// - options - ContainerAppsAuthConfigsClientGetOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Get +// method. +func (client *ContainerAppsAuthConfigsClient) Get(ctx context.Context, resourceGroupName string, containerAppName string, authConfigName string, options *ContainerAppsAuthConfigsClientGetOptions) (ContainerAppsAuthConfigsClientGetResponse, error) { + var err error + const operationName = "ContainerAppsAuthConfigsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, containerAppName, authConfigName, options) + if err != nil { + return ContainerAppsAuthConfigsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsAuthConfigsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsAuthConfigsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ContainerAppsAuthConfigsClient) getCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, authConfigName string, options *ContainerAppsAuthConfigsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if authConfigName == "" { + return nil, errors.New("parameter authConfigName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{authConfigName}", url.PathEscape(authConfigName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ContainerAppsAuthConfigsClient) getHandleResponse(resp *http.Response) (ContainerAppsAuthConfigsClientGetResponse, error) { + result := ContainerAppsAuthConfigsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AuthConfig); err != nil { + return ContainerAppsAuthConfigsClientGetResponse{}, err + } + return result, nil +} + +// NewListByContainerAppPager - Get the Container App AuthConfigs in a given resource group. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsAuthConfigsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.NewListByContainerAppPager +// method. +func (client *ContainerAppsAuthConfigsClient) NewListByContainerAppPager(resourceGroupName string, containerAppName string, options *ContainerAppsAuthConfigsClientListByContainerAppOptions) *runtime.Pager[ContainerAppsAuthConfigsClientListByContainerAppResponse] { + return runtime.NewPager(runtime.PagingHandler[ContainerAppsAuthConfigsClientListByContainerAppResponse]{ + More: func(page ContainerAppsAuthConfigsClientListByContainerAppResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContainerAppsAuthConfigsClientListByContainerAppResponse) (ContainerAppsAuthConfigsClientListByContainerAppResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsAuthConfigsClient.NewListByContainerAppPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByContainerAppCreateRequest(ctx, resourceGroupName, containerAppName, options) + }, nil) + if err != nil { + return ContainerAppsAuthConfigsClientListByContainerAppResponse{}, err + } + return client.listByContainerAppHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByContainerAppCreateRequest creates the ListByContainerApp request. +func (client *ContainerAppsAuthConfigsClient) listByContainerAppCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsAuthConfigsClientListByContainerAppOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByContainerAppHandleResponse handles the ListByContainerApp response. +func (client *ContainerAppsAuthConfigsClient) listByContainerAppHandleResponse(resp *http.Response) (ContainerAppsAuthConfigsClientListByContainerAppResponse, error) { + result := ContainerAppsAuthConfigsClientListByContainerAppResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AuthConfigCollection); err != nil { + return ContainerAppsAuthConfigsClientListByContainerAppResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsdiagnostics_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsdiagnostics_client.go new file mode 100644 index 00000000..465c86da --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsdiagnostics_client.go @@ -0,0 +1,382 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContainerAppsDiagnosticsClient contains the methods for the ContainerAppsDiagnostics group. +// Don't use this type directly, use NewContainerAppsDiagnosticsClient() instead. +type ContainerAppsDiagnosticsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewContainerAppsDiagnosticsClient creates a new instance of ContainerAppsDiagnosticsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContainerAppsDiagnosticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsDiagnosticsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ContainerAppsDiagnosticsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// GetDetector - Get a diagnostics result of a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - detectorName - Name of the Container App Detector. +// - options - ContainerAppsDiagnosticsClientGetDetectorOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.GetDetector +// method. +func (client *ContainerAppsDiagnosticsClient) GetDetector(ctx context.Context, resourceGroupName string, containerAppName string, detectorName string, options *ContainerAppsDiagnosticsClientGetDetectorOptions) (ContainerAppsDiagnosticsClientGetDetectorResponse, error) { + var err error + const operationName = "ContainerAppsDiagnosticsClient.GetDetector" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getDetectorCreateRequest(ctx, resourceGroupName, containerAppName, detectorName, options) + if err != nil { + return ContainerAppsDiagnosticsClientGetDetectorResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsDiagnosticsClientGetDetectorResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsDiagnosticsClientGetDetectorResponse{}, err + } + resp, err := client.getDetectorHandleResponse(httpResp) + return resp, err +} + +// getDetectorCreateRequest creates the GetDetector request. +func (client *ContainerAppsDiagnosticsClient) getDetectorCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, detectorName string, options *ContainerAppsDiagnosticsClientGetDetectorOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{detectorName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if detectorName == "" { + return nil, errors.New("parameter detectorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{detectorName}", url.PathEscape(detectorName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getDetectorHandleResponse handles the GetDetector response. +func (client *ContainerAppsDiagnosticsClient) getDetectorHandleResponse(resp *http.Response) (ContainerAppsDiagnosticsClientGetDetectorResponse, error) { + result := ContainerAppsDiagnosticsClientGetDetectorResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Diagnostics); err != nil { + return ContainerAppsDiagnosticsClientGetDetectorResponse{}, err + } + return result, nil +} + +// GetRevision - Get a revision of a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - revisionName - Name of the Container App Revision. +// - options - ContainerAppsDiagnosticsClientGetRevisionOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.GetRevision +// method. +func (client *ContainerAppsDiagnosticsClient) GetRevision(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsDiagnosticsClientGetRevisionOptions) (ContainerAppsDiagnosticsClientGetRevisionResponse, error) { + var err error + const operationName = "ContainerAppsDiagnosticsClient.GetRevision" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getRevisionCreateRequest(ctx, resourceGroupName, containerAppName, revisionName, options) + if err != nil { + return ContainerAppsDiagnosticsClientGetRevisionResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsDiagnosticsClientGetRevisionResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsDiagnosticsClientGetRevisionResponse{}, err + } + resp, err := client.getRevisionHandleResponse(httpResp) + return resp, err +} + +// getRevisionCreateRequest creates the GetRevision request. +func (client *ContainerAppsDiagnosticsClient) getRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsDiagnosticsClientGetRevisionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/{revisionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if revisionName == "" { + return nil, errors.New("parameter revisionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{revisionName}", url.PathEscape(revisionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getRevisionHandleResponse handles the GetRevision response. +func (client *ContainerAppsDiagnosticsClient) getRevisionHandleResponse(resp *http.Response) (ContainerAppsDiagnosticsClientGetRevisionResponse, error) { + result := ContainerAppsDiagnosticsClientGetRevisionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Revision); err != nil { + return ContainerAppsDiagnosticsClientGetRevisionResponse{}, err + } + return result, nil +} + +// GetRoot - Get the properties of a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsDiagnosticsClientGetRootOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.GetRoot +// method. +func (client *ContainerAppsDiagnosticsClient) GetRoot(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsDiagnosticsClientGetRootOptions) (ContainerAppsDiagnosticsClientGetRootResponse, error) { + var err error + const operationName = "ContainerAppsDiagnosticsClient.GetRoot" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getRootCreateRequest(ctx, resourceGroupName, containerAppName, options) + if err != nil { + return ContainerAppsDiagnosticsClientGetRootResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsDiagnosticsClientGetRootResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsDiagnosticsClientGetRootResponse{}, err + } + resp, err := client.getRootHandleResponse(httpResp) + return resp, err +} + +// getRootCreateRequest creates the GetRoot request. +func (client *ContainerAppsDiagnosticsClient) getRootCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsDiagnosticsClientGetRootOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/rootApi/" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getRootHandleResponse handles the GetRoot response. +func (client *ContainerAppsDiagnosticsClient) getRootHandleResponse(resp *http.Response) (ContainerAppsDiagnosticsClientGetRootResponse, error) { + result := ContainerAppsDiagnosticsClientGetRootResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ContainerApp); err != nil { + return ContainerAppsDiagnosticsClientGetRootResponse{}, err + } + return result, nil +} + +// NewListDetectorsPager - Get the list of diagnostics for a given Container App. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App for which detector info is needed. +// - options - ContainerAppsDiagnosticsClientListDetectorsOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.NewListDetectorsPager +// method. +func (client *ContainerAppsDiagnosticsClient) NewListDetectorsPager(resourceGroupName string, containerAppName string, options *ContainerAppsDiagnosticsClientListDetectorsOptions) *runtime.Pager[ContainerAppsDiagnosticsClientListDetectorsResponse] { + return runtime.NewPager(runtime.PagingHandler[ContainerAppsDiagnosticsClientListDetectorsResponse]{ + More: func(page ContainerAppsDiagnosticsClientListDetectorsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContainerAppsDiagnosticsClientListDetectorsResponse) (ContainerAppsDiagnosticsClientListDetectorsResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsDiagnosticsClient.NewListDetectorsPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listDetectorsCreateRequest(ctx, resourceGroupName, containerAppName, options) + }, nil) + if err != nil { + return ContainerAppsDiagnosticsClientListDetectorsResponse{}, err + } + return client.listDetectorsHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listDetectorsCreateRequest creates the ListDetectors request. +func (client *ContainerAppsDiagnosticsClient) listDetectorsCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsDiagnosticsClientListDetectorsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listDetectorsHandleResponse handles the ListDetectors response. +func (client *ContainerAppsDiagnosticsClient) listDetectorsHandleResponse(resp *http.Response) (ContainerAppsDiagnosticsClientListDetectorsResponse, error) { + result := ContainerAppsDiagnosticsClientListDetectorsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DiagnosticsCollection); err != nil { + return ContainerAppsDiagnosticsClientListDetectorsResponse{}, err + } + return result, nil +} + +// NewListRevisionsPager - Get the Revisions for a given Container App. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App for which Revisions are needed. +// - options - ContainerAppsDiagnosticsClientListRevisionsOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.NewListRevisionsPager +// method. +func (client *ContainerAppsDiagnosticsClient) NewListRevisionsPager(resourceGroupName string, containerAppName string, options *ContainerAppsDiagnosticsClientListRevisionsOptions) *runtime.Pager[ContainerAppsDiagnosticsClientListRevisionsResponse] { + return runtime.NewPager(runtime.PagingHandler[ContainerAppsDiagnosticsClientListRevisionsResponse]{ + More: func(page ContainerAppsDiagnosticsClientListRevisionsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContainerAppsDiagnosticsClientListRevisionsResponse) (ContainerAppsDiagnosticsClientListRevisionsResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsDiagnosticsClient.NewListRevisionsPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listRevisionsCreateRequest(ctx, resourceGroupName, containerAppName, options) + }, nil) + if err != nil { + return ContainerAppsDiagnosticsClientListRevisionsResponse{}, err + } + return client.listRevisionsHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listRevisionsCreateRequest creates the ListRevisions request. +func (client *ContainerAppsDiagnosticsClient) listRevisionsCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsDiagnosticsClientListRevisionsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Filter != nil { + reqQP.Set("$filter", *options.Filter) + } + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listRevisionsHandleResponse handles the ListRevisions response. +func (client *ContainerAppsDiagnosticsClient) listRevisionsHandleResponse(resp *http.Response) (ContainerAppsDiagnosticsClientListRevisionsResponse, error) { + result := ContainerAppsDiagnosticsClientListRevisionsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RevisionCollection); err != nil { + return ContainerAppsDiagnosticsClientListRevisionsResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisionreplicas_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisionreplicas_client.go new file mode 100644 index 00000000..2ec56424 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisionreplicas_client.go @@ -0,0 +1,189 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContainerAppsRevisionReplicasClient contains the methods for the ContainerAppsRevisionReplicas group. +// Don't use this type directly, use NewContainerAppsRevisionReplicasClient() instead. +type ContainerAppsRevisionReplicasClient struct { + internal *arm.Client + subscriptionID string +} + +// NewContainerAppsRevisionReplicasClient creates a new instance of ContainerAppsRevisionReplicasClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContainerAppsRevisionReplicasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsRevisionReplicasClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ContainerAppsRevisionReplicasClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// GetReplica - Get a replica for a Container App Revision. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - revisionName - Name of the Container App Revision. +// - replicaName - Name of the Container App Revision Replica. +// - options - ContainerAppsRevisionReplicasClientGetReplicaOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.GetReplica +// method. +func (client *ContainerAppsRevisionReplicasClient) GetReplica(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, replicaName string, options *ContainerAppsRevisionReplicasClientGetReplicaOptions) (ContainerAppsRevisionReplicasClientGetReplicaResponse, error) { + var err error + const operationName = "ContainerAppsRevisionReplicasClient.GetReplica" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getReplicaCreateRequest(ctx, resourceGroupName, containerAppName, revisionName, replicaName, options) + if err != nil { + return ContainerAppsRevisionReplicasClientGetReplicaResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsRevisionReplicasClientGetReplicaResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsRevisionReplicasClientGetReplicaResponse{}, err + } + resp, err := client.getReplicaHandleResponse(httpResp) + return resp, err +} + +// getReplicaCreateRequest creates the GetReplica request. +func (client *ContainerAppsRevisionReplicasClient) getReplicaCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, replicaName string, options *ContainerAppsRevisionReplicasClientGetReplicaOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if revisionName == "" { + return nil, errors.New("parameter revisionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{revisionName}", url.PathEscape(revisionName)) + if replicaName == "" { + return nil, errors.New("parameter replicaName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{replicaName}", url.PathEscape(replicaName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getReplicaHandleResponse handles the GetReplica response. +func (client *ContainerAppsRevisionReplicasClient) getReplicaHandleResponse(resp *http.Response) (ContainerAppsRevisionReplicasClientGetReplicaResponse, error) { + result := ContainerAppsRevisionReplicasClientGetReplicaResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Replica); err != nil { + return ContainerAppsRevisionReplicasClientGetReplicaResponse{}, err + } + return result, nil +} + +// ListReplicas - List replicas for a Container App Revision. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - revisionName - Name of the Container App Revision. +// - options - ContainerAppsRevisionReplicasClientListReplicasOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.ListReplicas +// method. +func (client *ContainerAppsRevisionReplicasClient) ListReplicas(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionReplicasClientListReplicasOptions) (ContainerAppsRevisionReplicasClientListReplicasResponse, error) { + var err error + const operationName = "ContainerAppsRevisionReplicasClient.ListReplicas" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listReplicasCreateRequest(ctx, resourceGroupName, containerAppName, revisionName, options) + if err != nil { + return ContainerAppsRevisionReplicasClientListReplicasResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsRevisionReplicasClientListReplicasResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsRevisionReplicasClientListReplicasResponse{}, err + } + resp, err := client.listReplicasHandleResponse(httpResp) + return resp, err +} + +// listReplicasCreateRequest creates the ListReplicas request. +func (client *ContainerAppsRevisionReplicasClient) listReplicasCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionReplicasClientListReplicasOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if revisionName == "" { + return nil, errors.New("parameter revisionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{revisionName}", url.PathEscape(revisionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listReplicasHandleResponse handles the ListReplicas response. +func (client *ContainerAppsRevisionReplicasClient) listReplicasHandleResponse(resp *http.Response) (ContainerAppsRevisionReplicasClientListReplicasResponse, error) { + result := ContainerAppsRevisionReplicasClientListReplicasResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ReplicaCollection); err != nil { + return ContainerAppsRevisionReplicasClientListReplicasResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisions_client.go new file mode 100644 index 00000000..f98a95a6 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappsrevisions_client.go @@ -0,0 +1,362 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContainerAppsRevisionsClient contains the methods for the ContainerAppsRevisions group. +// Don't use this type directly, use NewContainerAppsRevisionsClient() instead. +type ContainerAppsRevisionsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewContainerAppsRevisionsClient creates a new instance of ContainerAppsRevisionsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContainerAppsRevisionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsRevisionsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ContainerAppsRevisionsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// ActivateRevision - Activates a revision for a Container App +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - revisionName - Name of the Container App Revision. +// - options - ContainerAppsRevisionsClientActivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.ActivateRevision +// method. +func (client *ContainerAppsRevisionsClient) ActivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientActivateRevisionOptions) (ContainerAppsRevisionsClientActivateRevisionResponse, error) { + var err error + const operationName = "ContainerAppsRevisionsClient.ActivateRevision" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.activateRevisionCreateRequest(ctx, resourceGroupName, containerAppName, revisionName, options) + if err != nil { + return ContainerAppsRevisionsClientActivateRevisionResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsRevisionsClientActivateRevisionResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsRevisionsClientActivateRevisionResponse{}, err + } + return ContainerAppsRevisionsClientActivateRevisionResponse{}, nil +} + +// activateRevisionCreateRequest creates the ActivateRevision request. +func (client *ContainerAppsRevisionsClient) activateRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientActivateRevisionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if revisionName == "" { + return nil, errors.New("parameter revisionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{revisionName}", url.PathEscape(revisionName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// DeactivateRevision - Deactivates a revision for a Container App +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - revisionName - Name of the Container App Revision. +// - options - ContainerAppsRevisionsClientDeactivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.DeactivateRevision +// method. +func (client *ContainerAppsRevisionsClient) DeactivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientDeactivateRevisionOptions) (ContainerAppsRevisionsClientDeactivateRevisionResponse, error) { + var err error + const operationName = "ContainerAppsRevisionsClient.DeactivateRevision" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deactivateRevisionCreateRequest(ctx, resourceGroupName, containerAppName, revisionName, options) + if err != nil { + return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, err + } + return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, nil +} + +// deactivateRevisionCreateRequest creates the DeactivateRevision request. +func (client *ContainerAppsRevisionsClient) deactivateRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientDeactivateRevisionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if revisionName == "" { + return nil, errors.New("parameter revisionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{revisionName}", url.PathEscape(revisionName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// GetRevision - Get a revision of a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - revisionName - Name of the Container App Revision. +// - options - ContainerAppsRevisionsClientGetRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.GetRevision +// method. +func (client *ContainerAppsRevisionsClient) GetRevision(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientGetRevisionOptions) (ContainerAppsRevisionsClientGetRevisionResponse, error) { + var err error + const operationName = "ContainerAppsRevisionsClient.GetRevision" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getRevisionCreateRequest(ctx, resourceGroupName, containerAppName, revisionName, options) + if err != nil { + return ContainerAppsRevisionsClientGetRevisionResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsRevisionsClientGetRevisionResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsRevisionsClientGetRevisionResponse{}, err + } + resp, err := client.getRevisionHandleResponse(httpResp) + return resp, err +} + +// getRevisionCreateRequest creates the GetRevision request. +func (client *ContainerAppsRevisionsClient) getRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientGetRevisionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if revisionName == "" { + return nil, errors.New("parameter revisionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{revisionName}", url.PathEscape(revisionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getRevisionHandleResponse handles the GetRevision response. +func (client *ContainerAppsRevisionsClient) getRevisionHandleResponse(resp *http.Response) (ContainerAppsRevisionsClientGetRevisionResponse, error) { + result := ContainerAppsRevisionsClientGetRevisionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Revision); err != nil { + return ContainerAppsRevisionsClientGetRevisionResponse{}, err + } + return result, nil +} + +// NewListRevisionsPager - Get the Revisions for a given Container App. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App for which Revisions are needed. +// - options - ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.NewListRevisionsPager +// method. +func (client *ContainerAppsRevisionsClient) NewListRevisionsPager(resourceGroupName string, containerAppName string, options *ContainerAppsRevisionsClientListRevisionsOptions) *runtime.Pager[ContainerAppsRevisionsClientListRevisionsResponse] { + return runtime.NewPager(runtime.PagingHandler[ContainerAppsRevisionsClientListRevisionsResponse]{ + More: func(page ContainerAppsRevisionsClientListRevisionsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContainerAppsRevisionsClientListRevisionsResponse) (ContainerAppsRevisionsClientListRevisionsResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsRevisionsClient.NewListRevisionsPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listRevisionsCreateRequest(ctx, resourceGroupName, containerAppName, options) + }, nil) + if err != nil { + return ContainerAppsRevisionsClientListRevisionsResponse{}, err + } + return client.listRevisionsHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listRevisionsCreateRequest creates the ListRevisions request. +func (client *ContainerAppsRevisionsClient) listRevisionsCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsRevisionsClientListRevisionsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Filter != nil { + reqQP.Set("$filter", *options.Filter) + } + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listRevisionsHandleResponse handles the ListRevisions response. +func (client *ContainerAppsRevisionsClient) listRevisionsHandleResponse(resp *http.Response) (ContainerAppsRevisionsClientListRevisionsResponse, error) { + result := ContainerAppsRevisionsClientListRevisionsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RevisionCollection); err != nil { + return ContainerAppsRevisionsClientListRevisionsResponse{}, err + } + return result, nil +} + +// RestartRevision - Restarts a revision for a Container App +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - revisionName - Name of the Container App Revision. +// - options - ContainerAppsRevisionsClientRestartRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.RestartRevision +// method. +func (client *ContainerAppsRevisionsClient) RestartRevision(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientRestartRevisionOptions) (ContainerAppsRevisionsClientRestartRevisionResponse, error) { + var err error + const operationName = "ContainerAppsRevisionsClient.RestartRevision" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.restartRevisionCreateRequest(ctx, resourceGroupName, containerAppName, revisionName, options) + if err != nil { + return ContainerAppsRevisionsClientRestartRevisionResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsRevisionsClientRestartRevisionResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsRevisionsClientRestartRevisionResponse{}, err + } + return ContainerAppsRevisionsClientRestartRevisionResponse{}, nil +} + +// restartRevisionCreateRequest creates the RestartRevision request. +func (client *ContainerAppsRevisionsClient) restartRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, revisionName string, options *ContainerAppsRevisionsClientRestartRevisionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if revisionName == "" { + return nil, errors.New("parameter revisionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{revisionName}", url.PathEscape(revisionName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappssourcecontrols_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappssourcecontrols_client.go new file mode 100644 index 00000000..069fd6fb --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/containerappssourcecontrols_client.go @@ -0,0 +1,345 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContainerAppsSourceControlsClient contains the methods for the ContainerAppsSourceControls group. +// Don't use this type directly, use NewContainerAppsSourceControlsClient() instead. +type ContainerAppsSourceControlsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewContainerAppsSourceControlsClient creates a new instance of ContainerAppsSourceControlsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContainerAppsSourceControlsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsSourceControlsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ContainerAppsSourceControlsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create or update the SourceControl for a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - sourceControlName - Name of the Container App SourceControl. +// - sourceControlEnvelope - Properties used to create a Container App SourceControl +// - options - ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginCreateOrUpdate +// method. +func (client *ContainerAppsSourceControlsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, sourceControlEnvelope SourceControl, options *ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ContainerAppsSourceControlsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsSourceControlsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsSourceControlsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or update the SourceControl for a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ContainerAppsSourceControlsClient) createOrUpdate(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, sourceControlEnvelope SourceControl, options *ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ContainerAppsSourceControlsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ContainerAppsSourceControlsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, sourceControlEnvelope SourceControl, options *ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if sourceControlName == "" { + return nil, errors.New("parameter sourceControlName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sourceControlName}", url.PathEscape(sourceControlName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, sourceControlEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a Container App SourceControl. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - sourceControlName - Name of the Container App SourceControl. +// - options - ContainerAppsSourceControlsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginDelete +// method. +func (client *ContainerAppsSourceControlsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, options *ContainerAppsSourceControlsClientBeginDeleteOptions) (*runtime.Poller[ContainerAppsSourceControlsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, containerAppName, sourceControlName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsSourceControlsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsSourceControlsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a Container App SourceControl. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ContainerAppsSourceControlsClient) deleteOperation(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, options *ContainerAppsSourceControlsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "ContainerAppsSourceControlsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, containerAppName, sourceControlName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ContainerAppsSourceControlsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, options *ContainerAppsSourceControlsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if sourceControlName == "" { + return nil, errors.New("parameter sourceControlName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sourceControlName}", url.PathEscape(sourceControlName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a SourceControl of a Container App. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - sourceControlName - Name of the Container App SourceControl. +// - options - ContainerAppsSourceControlsClientGetOptions contains the optional parameters for the ContainerAppsSourceControlsClient.Get +// method. +func (client *ContainerAppsSourceControlsClient) Get(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, options *ContainerAppsSourceControlsClientGetOptions) (ContainerAppsSourceControlsClientGetResponse, error) { + var err error + const operationName = "ContainerAppsSourceControlsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, containerAppName, sourceControlName, options) + if err != nil { + return ContainerAppsSourceControlsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ContainerAppsSourceControlsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ContainerAppsSourceControlsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ContainerAppsSourceControlsClient) getCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, sourceControlName string, options *ContainerAppsSourceControlsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + if sourceControlName == "" { + return nil, errors.New("parameter sourceControlName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sourceControlName}", url.PathEscape(sourceControlName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ContainerAppsSourceControlsClient) getHandleResponse(resp *http.Response) (ContainerAppsSourceControlsClientGetResponse, error) { + result := ContainerAppsSourceControlsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SourceControl); err != nil { + return ContainerAppsSourceControlsClientGetResponse{}, err + } + return result, nil +} + +// NewListByContainerAppPager - Get the Container App SourceControls in a given resource group. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - containerAppName - Name of the Container App. +// - options - ContainerAppsSourceControlsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsSourceControlsClient.NewListByContainerAppPager +// method. +func (client *ContainerAppsSourceControlsClient) NewListByContainerAppPager(resourceGroupName string, containerAppName string, options *ContainerAppsSourceControlsClientListByContainerAppOptions) *runtime.Pager[ContainerAppsSourceControlsClientListByContainerAppResponse] { + return runtime.NewPager(runtime.PagingHandler[ContainerAppsSourceControlsClientListByContainerAppResponse]{ + More: func(page ContainerAppsSourceControlsClientListByContainerAppResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContainerAppsSourceControlsClientListByContainerAppResponse) (ContainerAppsSourceControlsClientListByContainerAppResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsSourceControlsClient.NewListByContainerAppPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByContainerAppCreateRequest(ctx, resourceGroupName, containerAppName, options) + }, nil) + if err != nil { + return ContainerAppsSourceControlsClientListByContainerAppResponse{}, err + } + return client.listByContainerAppHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByContainerAppCreateRequest creates the ListByContainerApp request. +func (client *ContainerAppsSourceControlsClient) listByContainerAppCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsSourceControlsClientListByContainerAppOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if containerAppName == "" { + return nil, errors.New("parameter containerAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByContainerAppHandleResponse handles the ListByContainerApp response. +func (client *ContainerAppsSourceControlsClient) listByContainerAppHandleResponse(resp *http.Response) (ContainerAppsSourceControlsClientListByContainerAppResponse, error) { + result := ContainerAppsSourceControlsClientListByContainerAppResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SourceControlCollection); err != nil { + return ContainerAppsSourceControlsClientListByContainerAppResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponentresiliencypolicies_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponentresiliencypolicies_client.go new file mode 100644 index 00000000..afe372fb --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponentresiliencypolicies_client.go @@ -0,0 +1,333 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// DaprComponentResiliencyPoliciesClient contains the methods for the DaprComponentResiliencyPolicies group. +// Don't use this type directly, use NewDaprComponentResiliencyPoliciesClient() instead. +type DaprComponentResiliencyPoliciesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewDaprComponentResiliencyPoliciesClient creates a new instance of DaprComponentResiliencyPoliciesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewDaprComponentResiliencyPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DaprComponentResiliencyPoliciesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &DaprComponentResiliencyPoliciesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a resiliency policy for a Dapr component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - name - Name of the Dapr Component Resiliency Policy. +// - daprComponentResiliencyPolicyEnvelope - Configuration details of the Dapr Component Resiliency Policy. +// - options - DaprComponentResiliencyPoliciesClientCreateOrUpdateOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.CreateOrUpdate +// method. +func (client *DaprComponentResiliencyPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, componentName string, name string, daprComponentResiliencyPolicyEnvelope DaprComponentResiliencyPolicy, options *DaprComponentResiliencyPoliciesClientCreateOrUpdateOptions) (DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "DaprComponentResiliencyPoliciesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, componentName, name, daprComponentResiliencyPolicyEnvelope, options) + if err != nil { + return DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *DaprComponentResiliencyPoliciesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, name string, daprComponentResiliencyPolicyEnvelope DaprComponentResiliencyPolicy, options *DaprComponentResiliencyPoliciesClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, daprComponentResiliencyPolicyEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *DaprComponentResiliencyPoliciesClient) createOrUpdateHandleResponse(resp *http.Response) (DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse, error) { + result := DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponentResiliencyPolicy); err != nil { + return DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete a resiliency policy for a Dapr component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - name - Name of the Dapr Component Resiliency Policy. +// - options - DaprComponentResiliencyPoliciesClientDeleteOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.Delete +// method. +func (client *DaprComponentResiliencyPoliciesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, componentName string, name string, options *DaprComponentResiliencyPoliciesClientDeleteOptions) (DaprComponentResiliencyPoliciesClientDeleteResponse, error) { + var err error + const operationName = "DaprComponentResiliencyPoliciesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, componentName, name, options) + if err != nil { + return DaprComponentResiliencyPoliciesClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprComponentResiliencyPoliciesClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return DaprComponentResiliencyPoliciesClientDeleteResponse{}, err + } + return DaprComponentResiliencyPoliciesClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *DaprComponentResiliencyPoliciesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, name string, options *DaprComponentResiliencyPoliciesClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a Dapr component resiliency policy. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - name - Name of the Dapr Component Resiliency Policy. +// - options - DaprComponentResiliencyPoliciesClientGetOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.Get +// method. +func (client *DaprComponentResiliencyPoliciesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, componentName string, name string, options *DaprComponentResiliencyPoliciesClientGetOptions) (DaprComponentResiliencyPoliciesClientGetResponse, error) { + var err error + const operationName = "DaprComponentResiliencyPoliciesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, componentName, name, options) + if err != nil { + return DaprComponentResiliencyPoliciesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprComponentResiliencyPoliciesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DaprComponentResiliencyPoliciesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *DaprComponentResiliencyPoliciesClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, name string, options *DaprComponentResiliencyPoliciesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *DaprComponentResiliencyPoliciesClient) getHandleResponse(resp *http.Response) (DaprComponentResiliencyPoliciesClientGetResponse, error) { + result := DaprComponentResiliencyPoliciesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponentResiliencyPolicy); err != nil { + return DaprComponentResiliencyPoliciesClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the resiliency policies for a Dapr component. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - options - DaprComponentResiliencyPoliciesClientListOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.NewListPager +// method. +func (client *DaprComponentResiliencyPoliciesClient) NewListPager(resourceGroupName string, environmentName string, componentName string, options *DaprComponentResiliencyPoliciesClientListOptions) *runtime.Pager[DaprComponentResiliencyPoliciesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[DaprComponentResiliencyPoliciesClientListResponse]{ + More: func(page DaprComponentResiliencyPoliciesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *DaprComponentResiliencyPoliciesClientListResponse) (DaprComponentResiliencyPoliciesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DaprComponentResiliencyPoliciesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, componentName, options) + }, nil) + if err != nil { + return DaprComponentResiliencyPoliciesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *DaprComponentResiliencyPoliciesClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, options *DaprComponentResiliencyPoliciesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *DaprComponentResiliencyPoliciesClient) listHandleResponse(resp *http.Response) (DaprComponentResiliencyPoliciesClientListResponse, error) { + result := DaprComponentResiliencyPoliciesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponentResiliencyPoliciesCollection); err != nil { + return DaprComponentResiliencyPoliciesClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponents_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponents_client.go new file mode 100644 index 00000000..722d8379 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprcomponents_client.go @@ -0,0 +1,380 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// DaprComponentsClient contains the methods for the DaprComponents group. +// Don't use this type directly, use NewDaprComponentsClient() instead. +type DaprComponentsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewDaprComponentsClient creates a new instance of DaprComponentsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewDaprComponentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DaprComponentsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &DaprComponentsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a Dapr Component in a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - daprComponentEnvelope - Configuration details of the Dapr Component. +// - options - DaprComponentsClientCreateOrUpdateOptions contains the optional parameters for the DaprComponentsClient.CreateOrUpdate +// method. +func (client *DaprComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, componentName string, daprComponentEnvelope DaprComponent, options *DaprComponentsClientCreateOrUpdateOptions) (DaprComponentsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "DaprComponentsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, componentName, daprComponentEnvelope, options) + if err != nil { + return DaprComponentsClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprComponentsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DaprComponentsClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *DaprComponentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, daprComponentEnvelope DaprComponent, options *DaprComponentsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, daprComponentEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *DaprComponentsClient) createOrUpdateHandleResponse(resp *http.Response) (DaprComponentsClientCreateOrUpdateResponse, error) { + result := DaprComponentsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponent); err != nil { + return DaprComponentsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete a Dapr Component from a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - options - DaprComponentsClientDeleteOptions contains the optional parameters for the DaprComponentsClient.Delete method. +func (client *DaprComponentsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, componentName string, options *DaprComponentsClientDeleteOptions) (DaprComponentsClientDeleteResponse, error) { + var err error + const operationName = "DaprComponentsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, componentName, options) + if err != nil { + return DaprComponentsClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprComponentsClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return DaprComponentsClientDeleteResponse{}, err + } + return DaprComponentsClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *DaprComponentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, options *DaprComponentsClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a dapr component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - options - DaprComponentsClientGetOptions contains the optional parameters for the DaprComponentsClient.Get method. +func (client *DaprComponentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, componentName string, options *DaprComponentsClientGetOptions) (DaprComponentsClientGetResponse, error) { + var err error + const operationName = "DaprComponentsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, componentName, options) + if err != nil { + return DaprComponentsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprComponentsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DaprComponentsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *DaprComponentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, options *DaprComponentsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *DaprComponentsClient) getHandleResponse(resp *http.Response) (DaprComponentsClientGetResponse, error) { + result := DaprComponentsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponent); err != nil { + return DaprComponentsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the Dapr Components for a managed environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - DaprComponentsClientListOptions contains the optional parameters for the DaprComponentsClient.NewListPager method. +func (client *DaprComponentsClient) NewListPager(resourceGroupName string, environmentName string, options *DaprComponentsClientListOptions) *runtime.Pager[DaprComponentsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[DaprComponentsClientListResponse]{ + More: func(page DaprComponentsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *DaprComponentsClientListResponse) (DaprComponentsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DaprComponentsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return DaprComponentsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *DaprComponentsClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *DaprComponentsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *DaprComponentsClient) listHandleResponse(resp *http.Response) (DaprComponentsClientListResponse, error) { + result := DaprComponentsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprComponentsCollection); err != nil { + return DaprComponentsClientListResponse{}, err + } + return result, nil +} + +// ListSecrets - List secrets for a dapr component +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - componentName - Name of the Dapr Component. +// - options - DaprComponentsClientListSecretsOptions contains the optional parameters for the DaprComponentsClient.ListSecrets +// method. +func (client *DaprComponentsClient) ListSecrets(ctx context.Context, resourceGroupName string, environmentName string, componentName string, options *DaprComponentsClientListSecretsOptions) (DaprComponentsClientListSecretsResponse, error) { + var err error + const operationName = "DaprComponentsClient.ListSecrets" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listSecretsCreateRequest(ctx, resourceGroupName, environmentName, componentName, options) + if err != nil { + return DaprComponentsClientListSecretsResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprComponentsClientListSecretsResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DaprComponentsClientListSecretsResponse{}, err + } + resp, err := client.listSecretsHandleResponse(httpResp) + return resp, err +} + +// listSecretsCreateRequest creates the ListSecrets request. +func (client *DaprComponentsClient) listSecretsCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, componentName string, options *DaprComponentsClientListSecretsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if componentName == "" { + return nil, errors.New("parameter componentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{componentName}", url.PathEscape(componentName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listSecretsHandleResponse handles the ListSecrets response. +func (client *DaprComponentsClient) listSecretsHandleResponse(resp *http.Response) (DaprComponentsClientListSecretsResponse, error) { + result := DaprComponentsClientListSecretsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprSecretsCollection); err != nil { + return DaprComponentsClientListSecretsResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprsubscriptions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprsubscriptions_client.go new file mode 100644 index 00000000..5e24bd31 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/daprsubscriptions_client.go @@ -0,0 +1,312 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// DaprSubscriptionsClient contains the methods for the DaprSubscriptions group. +// Don't use this type directly, use NewDaprSubscriptionsClient() instead. +type DaprSubscriptionsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewDaprSubscriptionsClient creates a new instance of DaprSubscriptionsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewDaprSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DaprSubscriptionsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &DaprSubscriptionsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a Dapr subscription in a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the Dapr subscription. +// - daprSubscriptionEnvelope - Configuration details of the Dapr subscription. +// - options - DaprSubscriptionsClientCreateOrUpdateOptions contains the optional parameters for the DaprSubscriptionsClient.CreateOrUpdate +// method. +func (client *DaprSubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, daprSubscriptionEnvelope DaprSubscription, options *DaprSubscriptionsClientCreateOrUpdateOptions) (DaprSubscriptionsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "DaprSubscriptionsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, name, daprSubscriptionEnvelope, options) + if err != nil { + return DaprSubscriptionsClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprSubscriptionsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return DaprSubscriptionsClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *DaprSubscriptionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, daprSubscriptionEnvelope DaprSubscription, options *DaprSubscriptionsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, daprSubscriptionEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *DaprSubscriptionsClient) createOrUpdateHandleResponse(resp *http.Response) (DaprSubscriptionsClientCreateOrUpdateResponse, error) { + result := DaprSubscriptionsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprSubscription); err != nil { + return DaprSubscriptionsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete a Dapr subscription from a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the Dapr subscription. +// - options - DaprSubscriptionsClientDeleteOptions contains the optional parameters for the DaprSubscriptionsClient.Delete +// method. +func (client *DaprSubscriptionsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DaprSubscriptionsClientDeleteOptions) (DaprSubscriptionsClientDeleteResponse, error) { + var err error + const operationName = "DaprSubscriptionsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return DaprSubscriptionsClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprSubscriptionsClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return DaprSubscriptionsClientDeleteResponse{}, err + } + return DaprSubscriptionsClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *DaprSubscriptionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DaprSubscriptionsClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a dapr subscription. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the Dapr subscription. +// - options - DaprSubscriptionsClientGetOptions contains the optional parameters for the DaprSubscriptionsClient.Get method. +func (client *DaprSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DaprSubscriptionsClientGetOptions) (DaprSubscriptionsClientGetResponse, error) { + var err error + const operationName = "DaprSubscriptionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return DaprSubscriptionsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DaprSubscriptionsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DaprSubscriptionsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *DaprSubscriptionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DaprSubscriptionsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *DaprSubscriptionsClient) getHandleResponse(resp *http.Response) (DaprSubscriptionsClientGetResponse, error) { + result := DaprSubscriptionsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprSubscription); err != nil { + return DaprSubscriptionsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the Dapr subscriptions for a managed environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - DaprSubscriptionsClientListOptions contains the optional parameters for the DaprSubscriptionsClient.NewListPager +// method. +func (client *DaprSubscriptionsClient) NewListPager(resourceGroupName string, environmentName string, options *DaprSubscriptionsClientListOptions) *runtime.Pager[DaprSubscriptionsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[DaprSubscriptionsClientListResponse]{ + More: func(page DaprSubscriptionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *DaprSubscriptionsClientListResponse) (DaprSubscriptionsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DaprSubscriptionsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return DaprSubscriptionsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *DaprSubscriptionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *DaprSubscriptionsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *DaprSubscriptionsClient) listHandleResponse(resp *http.Response) (DaprSubscriptionsClientListResponse, error) { + result := DaprSubscriptionsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DaprSubscriptionsCollection); err != nil { + return DaprSubscriptionsClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/dotnetcomponents_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/dotnetcomponents_client.go new file mode 100644 index 00000000..2f19c843 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/dotnetcomponents_client.go @@ -0,0 +1,431 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// DotNetComponentsClient contains the methods for the DotNetComponents group. +// Don't use this type directly, use NewDotNetComponentsClient() instead. +type DotNetComponentsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewDotNetComponentsClient creates a new instance of DotNetComponentsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewDotNetComponentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DotNetComponentsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &DotNetComponentsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Creates or updates a .NET Component in a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the .NET Component. +// - dotNetComponentEnvelope - Configuration details of the .NET Component. +// - options - DotNetComponentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DotNetComponentsClient.BeginCreateOrUpdate +// method. +func (client *DotNetComponentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, dotNetComponentEnvelope DotNetComponent, options *DotNetComponentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DotNetComponentsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, environmentName, name, dotNetComponentEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DotNetComponentsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DotNetComponentsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Creates or updates a .NET Component in a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *DotNetComponentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, dotNetComponentEnvelope DotNetComponent, options *DotNetComponentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DotNetComponentsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, name, dotNetComponentEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *DotNetComponentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, dotNetComponentEnvelope DotNetComponent, options *DotNetComponentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, dotNetComponentEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a .NET Component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the .NET Component. +// - options - DotNetComponentsClientBeginDeleteOptions contains the optional parameters for the DotNetComponentsClient.BeginDelete +// method. +func (client *DotNetComponentsClient) BeginDelete(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DotNetComponentsClientBeginDeleteOptions) (*runtime.Poller[DotNetComponentsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DotNetComponentsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DotNetComponentsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a .NET Component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *DotNetComponentsClient) deleteOperation(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DotNetComponentsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "DotNetComponentsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *DotNetComponentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DotNetComponentsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a .NET Component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the .NET Component. +// - options - DotNetComponentsClientGetOptions contains the optional parameters for the DotNetComponentsClient.Get method. +func (client *DotNetComponentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DotNetComponentsClientGetOptions) (DotNetComponentsClientGetResponse, error) { + var err error + const operationName = "DotNetComponentsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return DotNetComponentsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DotNetComponentsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DotNetComponentsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *DotNetComponentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, options *DotNetComponentsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *DotNetComponentsClient) getHandleResponse(resp *http.Response) (DotNetComponentsClientGetResponse, error) { + result := DotNetComponentsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DotNetComponent); err != nil { + return DotNetComponentsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the .NET Components for a managed environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - DotNetComponentsClientListOptions contains the optional parameters for the DotNetComponentsClient.NewListPager +// method. +func (client *DotNetComponentsClient) NewListPager(resourceGroupName string, environmentName string, options *DotNetComponentsClientListOptions) *runtime.Pager[DotNetComponentsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[DotNetComponentsClientListResponse]{ + More: func(page DotNetComponentsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *DotNetComponentsClientListResponse) (DotNetComponentsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DotNetComponentsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return DotNetComponentsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *DotNetComponentsClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *DotNetComponentsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *DotNetComponentsClient) listHandleResponse(resp *http.Response) (DotNetComponentsClientListResponse, error) { + result := DotNetComponentsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DotNetComponentsCollection); err != nil { + return DotNetComponentsClientListResponse{}, err + } + return result, nil +} + +// BeginUpdate - Patches a .NET Component using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the .NET Component. +// - dotNetComponentEnvelope - Configuration details of the .NET Component. +// - options - DotNetComponentsClientBeginUpdateOptions contains the optional parameters for the DotNetComponentsClient.BeginUpdate +// method. +func (client *DotNetComponentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, dotNetComponentEnvelope DotNetComponent, options *DotNetComponentsClientBeginUpdateOptions) (*runtime.Poller[DotNetComponentsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, environmentName, name, dotNetComponentEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DotNetComponentsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DotNetComponentsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Update - Patches a .NET Component using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *DotNetComponentsClient) update(ctx context.Context, resourceGroupName string, environmentName string, name string, dotNetComponentEnvelope DotNetComponent, options *DotNetComponentsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DotNetComponentsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, environmentName, name, dotNetComponentEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// updateCreateRequest creates the Update request. +func (client *DotNetComponentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, dotNetComponentEnvelope DotNetComponent, options *DotNetComponentsClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, dotNetComponentEnvelope); err != nil { + return nil, err + } + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/javacomponents_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/javacomponents_client.go new file mode 100644 index 00000000..13624f35 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/javacomponents_client.go @@ -0,0 +1,430 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// JavaComponentsClient contains the methods for the JavaComponents group. +// Don't use this type directly, use NewJavaComponentsClient() instead. +type JavaComponentsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewJavaComponentsClient creates a new instance of JavaComponentsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewJavaComponentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JavaComponentsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &JavaComponentsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Creates or updates a Java Component in a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the Java Component. +// - javaComponentEnvelope - Configuration details of the Java Component. +// - options - JavaComponentsClientBeginCreateOrUpdateOptions contains the optional parameters for the JavaComponentsClient.BeginCreateOrUpdate +// method. +func (client *JavaComponentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, javaComponentEnvelope JavaComponent, options *JavaComponentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[JavaComponentsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, environmentName, name, javaComponentEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JavaComponentsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JavaComponentsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Creates or updates a Java Component in a Managed Environment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JavaComponentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, javaComponentEnvelope JavaComponent, options *JavaComponentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "JavaComponentsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, name, javaComponentEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *JavaComponentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, javaComponentEnvelope JavaComponent, options *JavaComponentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, javaComponentEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a Java Component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the Java Component. +// - options - JavaComponentsClientBeginDeleteOptions contains the optional parameters for the JavaComponentsClient.BeginDelete +// method. +func (client *JavaComponentsClient) BeginDelete(ctx context.Context, resourceGroupName string, environmentName string, name string, options *JavaComponentsClientBeginDeleteOptions) (*runtime.Poller[JavaComponentsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JavaComponentsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JavaComponentsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a Java Component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JavaComponentsClient) deleteOperation(ctx context.Context, resourceGroupName string, environmentName string, name string, options *JavaComponentsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "JavaComponentsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *JavaComponentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, options *JavaComponentsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a Java Component. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the Java Component. +// - options - JavaComponentsClientGetOptions contains the optional parameters for the JavaComponentsClient.Get method. +func (client *JavaComponentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, name string, options *JavaComponentsClientGetOptions) (JavaComponentsClientGetResponse, error) { + var err error + const operationName = "JavaComponentsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, name, options) + if err != nil { + return JavaComponentsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return JavaComponentsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return JavaComponentsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *JavaComponentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, options *JavaComponentsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *JavaComponentsClient) getHandleResponse(resp *http.Response) (JavaComponentsClientGetResponse, error) { + result := JavaComponentsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JavaComponent); err != nil { + return JavaComponentsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the Java Components for a managed environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - JavaComponentsClientListOptions contains the optional parameters for the JavaComponentsClient.NewListPager method. +func (client *JavaComponentsClient) NewListPager(resourceGroupName string, environmentName string, options *JavaComponentsClientListOptions) *runtime.Pager[JavaComponentsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[JavaComponentsClientListResponse]{ + More: func(page JavaComponentsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *JavaComponentsClientListResponse) (JavaComponentsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "JavaComponentsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return JavaComponentsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *JavaComponentsClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *JavaComponentsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *JavaComponentsClient) listHandleResponse(resp *http.Response) (JavaComponentsClientListResponse, error) { + result := JavaComponentsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JavaComponentsCollection); err != nil { + return JavaComponentsClientListResponse{}, err + } + return result, nil +} + +// BeginUpdate - Patches a Java Component using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - name - Name of the Java Component. +// - javaComponentEnvelope - Configuration details of the Java Component. +// - options - JavaComponentsClientBeginUpdateOptions contains the optional parameters for the JavaComponentsClient.BeginUpdate +// method. +func (client *JavaComponentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, environmentName string, name string, javaComponentEnvelope JavaComponent, options *JavaComponentsClientBeginUpdateOptions) (*runtime.Poller[JavaComponentsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, environmentName, name, javaComponentEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JavaComponentsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JavaComponentsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Update - Patches a Java Component using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JavaComponentsClient) update(ctx context.Context, resourceGroupName string, environmentName string, name string, javaComponentEnvelope JavaComponent, options *JavaComponentsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "JavaComponentsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, environmentName, name, javaComponentEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// updateCreateRequest creates the Update request. +func (client *JavaComponentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, javaComponentEnvelope JavaComponent, options *JavaComponentsClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, javaComponentEnvelope); err != nil { + return nil, err + } + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobs_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobs_client.go new file mode 100644 index 00000000..d19cd55c --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobs_client.go @@ -0,0 +1,961 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// JobsClient contains the methods for the Jobs group. +// Don't use this type directly, use NewJobsClient() instead. +type JobsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewJobsClient creates a new instance of JobsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewJobsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &JobsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create or Update a Container Apps Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - jobEnvelope - Properties used to create a container apps job +// - options - JobsClientBeginCreateOrUpdateOptions contains the optional parameters for the JobsClient.BeginCreateOrUpdate +// method. +func (client *JobsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, jobName string, jobEnvelope Job, options *JobsClientBeginCreateOrUpdateOptions) (*runtime.Poller[JobsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, jobName, jobEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JobsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JobsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or Update a Container Apps Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JobsClient) createOrUpdate(ctx context.Context, resourceGroupName string, jobName string, jobEnvelope Job, options *JobsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "JobsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, jobName, jobEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *JobsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, jobName string, jobEnvelope Job, options *JobsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, jobEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a Container Apps Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsClientBeginDeleteOptions contains the optional parameters for the JobsClient.BeginDelete method. +func (client *JobsClient) BeginDelete(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginDeleteOptions) (*runtime.Poller[JobsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, jobName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JobsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JobsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a Container Apps Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JobsClient) deleteOperation(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "JobsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, jobName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *JobsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get the properties of a Container Apps Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsClientGetOptions contains the optional parameters for the JobsClient.Get method. +func (client *JobsClient) Get(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientGetOptions) (JobsClientGetResponse, error) { + var err error + const operationName = "JobsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, jobName, options) + if err != nil { + return JobsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return JobsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return JobsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *JobsClient) getCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *JobsClient) getHandleResponse(resp *http.Response) (JobsClientGetResponse, error) { + result := JobsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Job); err != nil { + return JobsClientGetResponse{}, err + } + return result, nil +} + +// GetDetector - Get the diagnostics data for a Container App Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - detectorName - Name of the Container App Job detector. +// - options - JobsClientGetDetectorOptions contains the optional parameters for the JobsClient.GetDetector method. +func (client *JobsClient) GetDetector(ctx context.Context, resourceGroupName string, jobName string, detectorName string, options *JobsClientGetDetectorOptions) (JobsClientGetDetectorResponse, error) { + var err error + const operationName = "JobsClient.GetDetector" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getDetectorCreateRequest(ctx, resourceGroupName, jobName, detectorName, options) + if err != nil { + return JobsClientGetDetectorResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return JobsClientGetDetectorResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return JobsClientGetDetectorResponse{}, err + } + resp, err := client.getDetectorHandleResponse(httpResp) + return resp, err +} + +// getDetectorCreateRequest creates the GetDetector request. +func (client *JobsClient) getDetectorCreateRequest(ctx context.Context, resourceGroupName string, jobName string, detectorName string, options *JobsClientGetDetectorOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectors/{detectorName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + if detectorName == "" { + return nil, errors.New("parameter detectorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{detectorName}", url.PathEscape(detectorName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getDetectorHandleResponse handles the GetDetector response. +func (client *JobsClient) getDetectorHandleResponse(resp *http.Response) (JobsClientGetDetectorResponse, error) { + result := JobsClientGetDetectorResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Diagnostics); err != nil { + return JobsClientGetDetectorResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - Get the Container Apps Jobs in a given resource group. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - JobsClientListByResourceGroupOptions contains the optional parameters for the JobsClient.NewListByResourceGroupPager +// method. +func (client *JobsClient) NewListByResourceGroupPager(resourceGroupName string, options *JobsClientListByResourceGroupOptions) *runtime.Pager[JobsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[JobsClientListByResourceGroupResponse]{ + More: func(page JobsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *JobsClientListByResourceGroupResponse) (JobsClientListByResourceGroupResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "JobsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) + if err != nil { + return JobsClientListByResourceGroupResponse{}, err + } + return client.listByResourceGroupHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *JobsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *JobsClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *JobsClient) listByResourceGroupHandleResponse(resp *http.Response) (JobsClientListByResourceGroupResponse, error) { + result := JobsClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobsCollection); err != nil { + return JobsClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - Get the Container Apps Jobs in a given subscription. +// +// Generated from API version 2023-11-02-preview +// - options - JobsClientListBySubscriptionOptions contains the optional parameters for the JobsClient.NewListBySubscriptionPager +// method. +func (client *JobsClient) NewListBySubscriptionPager(options *JobsClientListBySubscriptionOptions) *runtime.Pager[JobsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[JobsClientListBySubscriptionResponse]{ + More: func(page JobsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *JobsClientListBySubscriptionResponse) (JobsClientListBySubscriptionResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "JobsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) + if err != nil { + return JobsClientListBySubscriptionResponse{}, err + } + return client.listBySubscriptionHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *JobsClient) listBySubscriptionCreateRequest(ctx context.Context, options *JobsClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/jobs" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *JobsClient) listBySubscriptionHandleResponse(resp *http.Response) (JobsClientListBySubscriptionResponse, error) { + result := JobsClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobsCollection); err != nil { + return JobsClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// ListDetectors - Get the list of diagnostics for a Container App Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsClientListDetectorsOptions contains the optional parameters for the JobsClient.ListDetectors method. +func (client *JobsClient) ListDetectors(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientListDetectorsOptions) (JobsClientListDetectorsResponse, error) { + var err error + const operationName = "JobsClient.ListDetectors" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listDetectorsCreateRequest(ctx, resourceGroupName, jobName, options) + if err != nil { + return JobsClientListDetectorsResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return JobsClientListDetectorsResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return JobsClientListDetectorsResponse{}, err + } + resp, err := client.listDetectorsHandleResponse(httpResp) + return resp, err +} + +// listDetectorsCreateRequest creates the ListDetectors request. +func (client *JobsClient) listDetectorsCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientListDetectorsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectors" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listDetectorsHandleResponse handles the ListDetectors response. +func (client *JobsClient) listDetectorsHandleResponse(resp *http.Response) (JobsClientListDetectorsResponse, error) { + result := JobsClientListDetectorsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DiagnosticsCollection); err != nil { + return JobsClientListDetectorsResponse{}, err + } + return result, nil +} + +// ListSecrets - List secrets for a container apps job +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsClientListSecretsOptions contains the optional parameters for the JobsClient.ListSecrets method. +func (client *JobsClient) ListSecrets(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientListSecretsOptions) (JobsClientListSecretsResponse, error) { + var err error + const operationName = "JobsClient.ListSecrets" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listSecretsCreateRequest(ctx, resourceGroupName, jobName, options) + if err != nil { + return JobsClientListSecretsResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return JobsClientListSecretsResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return JobsClientListSecretsResponse{}, err + } + resp, err := client.listSecretsHandleResponse(httpResp) + return resp, err +} + +// listSecretsCreateRequest creates the ListSecrets request. +func (client *JobsClient) listSecretsCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientListSecretsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/listSecrets" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listSecretsHandleResponse handles the ListSecrets response. +func (client *JobsClient) listSecretsHandleResponse(resp *http.Response) (JobsClientListSecretsResponse, error) { + result := JobsClientListSecretsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobSecretsCollection); err != nil { + return JobsClientListSecretsResponse{}, err + } + return result, nil +} + +// ProxyGet - Get the properties of a Container App Job. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsClientProxyGetOptions contains the optional parameters for the JobsClient.ProxyGet method. +func (client *JobsClient) ProxyGet(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientProxyGetOptions) (JobsClientProxyGetResponse, error) { + var err error + const operationName = "JobsClient.ProxyGet" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.proxyGetCreateRequest(ctx, resourceGroupName, jobName, options) + if err != nil { + return JobsClientProxyGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return JobsClientProxyGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return JobsClientProxyGetResponse{}, err + } + resp, err := client.proxyGetHandleResponse(httpResp) + return resp, err +} + +// proxyGetCreateRequest creates the ProxyGet request. +func (client *JobsClient) proxyGetCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientProxyGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectorProperties/{apiName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + urlPath = strings.ReplaceAll(urlPath, "{apiName}", url.PathEscape("rootApi")) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// proxyGetHandleResponse handles the ProxyGet response. +func (client *JobsClient) proxyGetHandleResponse(resp *http.Response) (JobsClientProxyGetResponse, error) { + result := JobsClientProxyGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Job); err != nil { + return JobsClientProxyGetResponse{}, err + } + return result, nil +} + +// BeginStart - Start a Container Apps Job +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsClientBeginStartOptions contains the optional parameters for the JobsClient.BeginStart method. +func (client *JobsClient) BeginStart(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginStartOptions) (*runtime.Poller[JobsClientStartResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.start(ctx, resourceGroupName, jobName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JobsClientStartResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JobsClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Start - Start a Container Apps Job +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JobsClient) start(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "JobsClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.startCreateRequest(ctx, resourceGroupName, jobName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// startCreateRequest creates the Start request. +func (client *JobsClient) startCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginStartOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/start" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.Template != nil { + if err := runtime.MarshalAsJSON(req, *options.Template); err != nil { + return nil, err + } + return req, nil + } + return req, nil +} + +// BeginStopExecution - Terminates execution of a running container apps job +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - jobExecutionName - Job execution name. +// - options - JobsClientBeginStopExecutionOptions contains the optional parameters for the JobsClient.BeginStopExecution method. +func (client *JobsClient) BeginStopExecution(ctx context.Context, resourceGroupName string, jobName string, jobExecutionName string, options *JobsClientBeginStopExecutionOptions) (*runtime.Poller[JobsClientStopExecutionResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.stopExecution(ctx, resourceGroupName, jobName, jobExecutionName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JobsClientStopExecutionResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JobsClientStopExecutionResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// StopExecution - Terminates execution of a running container apps job +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JobsClient) stopExecution(ctx context.Context, resourceGroupName string, jobName string, jobExecutionName string, options *JobsClientBeginStopExecutionOptions) (*http.Response, error) { + var err error + const operationName = "JobsClient.BeginStopExecution" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.stopExecutionCreateRequest(ctx, resourceGroupName, jobName, jobExecutionName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// stopExecutionCreateRequest creates the StopExecution request. +func (client *JobsClient) stopExecutionCreateRequest(ctx context.Context, resourceGroupName string, jobName string, jobExecutionName string, options *JobsClientBeginStopExecutionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + if jobExecutionName == "" { + return nil, errors.New("parameter jobExecutionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobExecutionName}", url.PathEscape(jobExecutionName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginStopMultipleExecutions - Terminates execution of a running container apps job +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsClientBeginStopMultipleExecutionsOptions contains the optional parameters for the JobsClient.BeginStopMultipleExecutions +// method. +func (client *JobsClient) BeginStopMultipleExecutions(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginStopMultipleExecutionsOptions) (*runtime.Poller[JobsClientStopMultipleExecutionsResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.stopMultipleExecutions(ctx, resourceGroupName, jobName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JobsClientStopMultipleExecutionsResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JobsClientStopMultipleExecutionsResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// StopMultipleExecutions - Terminates execution of a running container apps job +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JobsClient) stopMultipleExecutions(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginStopMultipleExecutionsOptions) (*http.Response, error) { + var err error + const operationName = "JobsClient.BeginStopMultipleExecutions" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.stopMultipleExecutionsCreateRequest(ctx, resourceGroupName, jobName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// stopMultipleExecutionsCreateRequest creates the StopMultipleExecutions request. +func (client *JobsClient) stopMultipleExecutionsCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsClientBeginStopMultipleExecutionsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/stop" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginUpdate - Patches a Container Apps Job using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - jobEnvelope - Properties used to create a container apps job +// - options - JobsClientBeginUpdateOptions contains the optional parameters for the JobsClient.BeginUpdate method. +func (client *JobsClient) BeginUpdate(ctx context.Context, resourceGroupName string, jobName string, jobEnvelope JobPatchProperties, options *JobsClientBeginUpdateOptions) (*runtime.Poller[JobsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, jobName, jobEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[JobsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[JobsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Update - Patches a Container Apps Job using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *JobsClient) update(ctx context.Context, resourceGroupName string, jobName string, jobEnvelope JobPatchProperties, options *JobsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "JobsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, jobName, jobEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// updateCreateRequest creates the Update request. +func (client *JobsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, jobName string, jobEnvelope JobPatchProperties, options *JobsClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, jobEnvelope); err != nil { + return nil, err + } + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobsexecutions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobsexecutions_client.go new file mode 100644 index 00000000..1e48b166 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/jobsexecutions_client.go @@ -0,0 +1,111 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// JobsExecutionsClient contains the methods for the JobsExecutions group. +// Don't use this type directly, use NewJobsExecutionsClient() instead. +type JobsExecutionsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewJobsExecutionsClient creates a new instance of JobsExecutionsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewJobsExecutionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobsExecutionsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &JobsExecutionsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// NewListPager - Get a Container Apps Job's executions +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - jobName - Job Name +// - options - JobsExecutionsClientListOptions contains the optional parameters for the JobsExecutionsClient.NewListPager method. +func (client *JobsExecutionsClient) NewListPager(resourceGroupName string, jobName string, options *JobsExecutionsClientListOptions) *runtime.Pager[JobsExecutionsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[JobsExecutionsClientListResponse]{ + More: func(page JobsExecutionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *JobsExecutionsClientListResponse) (JobsExecutionsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "JobsExecutionsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, jobName, options) + }, nil) + if err != nil { + return JobsExecutionsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *JobsExecutionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, jobName string, options *JobsExecutionsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if jobName == "" { + return nil, errors.New("parameter jobName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Filter != nil { + reqQP.Set("$filter", *options.Filter) + } + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *JobsExecutionsClient) listHandleResponse(resp *http.Response) (JobsExecutionsClientListResponse, error) { + result := JobsExecutionsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ContainerAppJobExecutions); err != nil { + return JobsExecutionsClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedcertificates_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedcertificates_client.go new file mode 100644 index 00000000..eb731ee8 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedcertificates_client.go @@ -0,0 +1,400 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ManagedCertificatesClient contains the methods for the ManagedCertificates group. +// Don't use this type directly, use NewManagedCertificatesClient() instead. +type ManagedCertificatesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewManagedCertificatesClient creates a new instance of ManagedCertificatesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewManagedCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedCertificatesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ManagedCertificatesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create or Update a Managed Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - managedCertificateName - Name of the Managed Certificate. +// - options - ManagedCertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedCertificatesClient.BeginCreateOrUpdate +// method. +func (client *ManagedCertificatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, options *ManagedCertificatesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ManagedCertificatesClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, environmentName, managedCertificateName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ManagedCertificatesClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ManagedCertificatesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or Update a Managed Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ManagedCertificatesClient) createOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, options *ManagedCertificatesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ManagedCertificatesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, managedCertificateName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ManagedCertificatesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, options *ManagedCertificatesClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if managedCertificateName == "" { + return nil, errors.New("parameter managedCertificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{managedCertificateName}", url.PathEscape(managedCertificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.ManagedCertificateEnvelope != nil { + if err := runtime.MarshalAsJSON(req, *options.ManagedCertificateEnvelope); err != nil { + return nil, err + } + return req, nil + } + return req, nil +} + +// Delete - Deletes the specified Managed Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - managedCertificateName - Name of the Managed Certificate. +// - options - ManagedCertificatesClientDeleteOptions contains the optional parameters for the ManagedCertificatesClient.Delete +// method. +func (client *ManagedCertificatesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, options *ManagedCertificatesClientDeleteOptions) (ManagedCertificatesClientDeleteResponse, error) { + var err error + const operationName = "ManagedCertificatesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, managedCertificateName, options) + if err != nil { + return ManagedCertificatesClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedCertificatesClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ManagedCertificatesClientDeleteResponse{}, err + } + return ManagedCertificatesClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ManagedCertificatesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, options *ManagedCertificatesClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if managedCertificateName == "" { + return nil, errors.New("parameter managedCertificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{managedCertificateName}", url.PathEscape(managedCertificateName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get the specified Managed Certificate. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - managedCertificateName - Name of the Managed Certificate. +// - options - ManagedCertificatesClientGetOptions contains the optional parameters for the ManagedCertificatesClient.Get method. +func (client *ManagedCertificatesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, options *ManagedCertificatesClientGetOptions) (ManagedCertificatesClientGetResponse, error) { + var err error + const operationName = "ManagedCertificatesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, managedCertificateName, options) + if err != nil { + return ManagedCertificatesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedCertificatesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedCertificatesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ManagedCertificatesClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, options *ManagedCertificatesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if managedCertificateName == "" { + return nil, errors.New("parameter managedCertificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{managedCertificateName}", url.PathEscape(managedCertificateName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ManagedCertificatesClient) getHandleResponse(resp *http.Response) (ManagedCertificatesClientGetResponse, error) { + result := ManagedCertificatesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedCertificate); err != nil { + return ManagedCertificatesClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Get the Managed Certificates in a given managed environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - ManagedCertificatesClientListOptions contains the optional parameters for the ManagedCertificatesClient.NewListPager +// method. +func (client *ManagedCertificatesClient) NewListPager(resourceGroupName string, environmentName string, options *ManagedCertificatesClientListOptions) *runtime.Pager[ManagedCertificatesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagedCertificatesClientListResponse]{ + More: func(page ManagedCertificatesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ManagedCertificatesClientListResponse) (ManagedCertificatesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagedCertificatesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return ManagedCertificatesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *ManagedCertificatesClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedCertificatesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *ManagedCertificatesClient) listHandleResponse(resp *http.Response) (ManagedCertificatesClientListResponse, error) { + result := ManagedCertificatesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedCertificateCollection); err != nil { + return ManagedCertificatesClientListResponse{}, err + } + return result, nil +} + +// Update - Patches a managed certificate. Oly patching of tags is supported +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - managedCertificateName - Name of the Managed Certificate. +// - managedCertificateEnvelope - Properties of a managed certificate that need to be updated +// - options - ManagedCertificatesClientUpdateOptions contains the optional parameters for the ManagedCertificatesClient.Update +// method. +func (client *ManagedCertificatesClient) Update(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, managedCertificateEnvelope ManagedCertificatePatch, options *ManagedCertificatesClientUpdateOptions) (ManagedCertificatesClientUpdateResponse, error) { + var err error + const operationName = "ManagedCertificatesClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope, options) + if err != nil { + return ManagedCertificatesClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedCertificatesClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedCertificatesClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *ManagedCertificatesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, managedCertificateName string, managedCertificateEnvelope ManagedCertificatePatch, options *ManagedCertificatesClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if managedCertificateName == "" { + return nil, errors.New("parameter managedCertificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{managedCertificateName}", url.PathEscape(managedCertificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, managedCertificateEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *ManagedCertificatesClient) updateHandleResponse(resp *http.Response) (ManagedCertificatesClientUpdateResponse, error) { + result := ManagedCertificatesClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedCertificate); err != nil { + return ManagedCertificatesClientUpdateResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentdiagnostics_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentdiagnostics_client.go new file mode 100644 index 00000000..d1a0a72d --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentdiagnostics_client.go @@ -0,0 +1,179 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ManagedEnvironmentDiagnosticsClient contains the methods for the ManagedEnvironmentDiagnostics group. +// Don't use this type directly, use NewManagedEnvironmentDiagnosticsClient() instead. +type ManagedEnvironmentDiagnosticsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewManagedEnvironmentDiagnosticsClient creates a new instance of ManagedEnvironmentDiagnosticsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewManagedEnvironmentDiagnosticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedEnvironmentDiagnosticsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ManagedEnvironmentDiagnosticsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// GetDetector - Get the diagnostics data for a Managed Environment used to host container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - detectorName - Name of the Managed Environment detector. +// - options - ManagedEnvironmentDiagnosticsClientGetDetectorOptions contains the optional parameters for the ManagedEnvironmentDiagnosticsClient.GetDetector +// method. +func (client *ManagedEnvironmentDiagnosticsClient) GetDetector(ctx context.Context, resourceGroupName string, environmentName string, detectorName string, options *ManagedEnvironmentDiagnosticsClientGetDetectorOptions) (ManagedEnvironmentDiagnosticsClientGetDetectorResponse, error) { + var err error + const operationName = "ManagedEnvironmentDiagnosticsClient.GetDetector" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getDetectorCreateRequest(ctx, resourceGroupName, environmentName, detectorName, options) + if err != nil { + return ManagedEnvironmentDiagnosticsClientGetDetectorResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentDiagnosticsClientGetDetectorResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentDiagnosticsClientGetDetectorResponse{}, err + } + resp, err := client.getDetectorHandleResponse(httpResp) + return resp, err +} + +// getDetectorCreateRequest creates the GetDetector request. +func (client *ManagedEnvironmentDiagnosticsClient) getDetectorCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, detectorName string, options *ManagedEnvironmentDiagnosticsClientGetDetectorOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if detectorName == "" { + return nil, errors.New("parameter detectorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{detectorName}", url.PathEscape(detectorName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getDetectorHandleResponse handles the GetDetector response. +func (client *ManagedEnvironmentDiagnosticsClient) getDetectorHandleResponse(resp *http.Response) (ManagedEnvironmentDiagnosticsClientGetDetectorResponse, error) { + result := ManagedEnvironmentDiagnosticsClientGetDetectorResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Diagnostics); err != nil { + return ManagedEnvironmentDiagnosticsClientGetDetectorResponse{}, err + } + return result, nil +} + +// ListDetectors - Get the list of diagnostics for a Managed Environment used to host container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - options - ManagedEnvironmentDiagnosticsClientListDetectorsOptions contains the optional parameters for the ManagedEnvironmentDiagnosticsClient.ListDetectors +// method. +func (client *ManagedEnvironmentDiagnosticsClient) ListDetectors(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentDiagnosticsClientListDetectorsOptions) (ManagedEnvironmentDiagnosticsClientListDetectorsResponse, error) { + var err error + const operationName = "ManagedEnvironmentDiagnosticsClient.ListDetectors" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listDetectorsCreateRequest(ctx, resourceGroupName, environmentName, options) + if err != nil { + return ManagedEnvironmentDiagnosticsClientListDetectorsResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentDiagnosticsClientListDetectorsResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentDiagnosticsClientListDetectorsResponse{}, err + } + resp, err := client.listDetectorsHandleResponse(httpResp) + return resp, err +} + +// listDetectorsCreateRequest creates the ListDetectors request. +func (client *ManagedEnvironmentDiagnosticsClient) listDetectorsCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentDiagnosticsClientListDetectorsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listDetectorsHandleResponse handles the ListDetectors response. +func (client *ManagedEnvironmentDiagnosticsClient) listDetectorsHandleResponse(resp *http.Response) (ManagedEnvironmentDiagnosticsClientListDetectorsResponse, error) { + result := ManagedEnvironmentDiagnosticsClientListDetectorsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DiagnosticsCollection); err != nil { + return ManagedEnvironmentDiagnosticsClientListDetectorsResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironments_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironments_client.go new file mode 100644 index 00000000..21397910 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironments_client.go @@ -0,0 +1,589 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ManagedEnvironmentsClient contains the methods for the ManagedEnvironments group. +// Don't use this type directly, use NewManagedEnvironmentsClient() instead. +type ManagedEnvironmentsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewManagedEnvironmentsClient creates a new instance of ManagedEnvironmentsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewManagedEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedEnvironmentsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ManagedEnvironmentsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Creates or updates a Managed Environment used to host container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - environmentEnvelope - Configuration details of the Environment. +// - options - ManagedEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginCreateOrUpdate +// method. +func (client *ManagedEnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, environmentEnvelope ManagedEnvironment, options *ManagedEnvironmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ManagedEnvironmentsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, environmentName, environmentEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ManagedEnvironmentsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ManagedEnvironmentsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Creates or updates a Managed Environment used to host container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ManagedEnvironmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, environmentEnvelope ManagedEnvironment, options *ManagedEnvironmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ManagedEnvironmentsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, environmentEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ManagedEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, environmentEnvelope ManagedEnvironment, options *ManagedEnvironmentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, environmentEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete a Managed Environment if it does not have any container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - options - ManagedEnvironmentsClientBeginDeleteOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginDelete +// method. +func (client *ManagedEnvironmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientBeginDeleteOptions) (*runtime.Poller[ManagedEnvironmentsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, environmentName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ManagedEnvironmentsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ManagedEnvironmentsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete a Managed Environment if it does not have any container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ManagedEnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "ManagedEnvironmentsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ManagedEnvironmentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get the properties of a Managed Environment used to host container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - options - ManagedEnvironmentsClientGetOptions contains the optional parameters for the ManagedEnvironmentsClient.Get method. +func (client *ManagedEnvironmentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientGetOptions) (ManagedEnvironmentsClientGetResponse, error) { + var err error + const operationName = "ManagedEnvironmentsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, options) + if err != nil { + return ManagedEnvironmentsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ManagedEnvironmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ManagedEnvironmentsClient) getHandleResponse(resp *http.Response) (ManagedEnvironmentsClientGetResponse, error) { + result := ManagedEnvironmentsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedEnvironment); err != nil { + return ManagedEnvironmentsClientGetResponse{}, err + } + return result, nil +} + +// GetAuthToken - Checks if resource name is available. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - ManagedEnvironmentsClientGetAuthTokenOptions contains the optional parameters for the ManagedEnvironmentsClient.GetAuthToken +// method. +func (client *ManagedEnvironmentsClient) GetAuthToken(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientGetAuthTokenOptions) (ManagedEnvironmentsClientGetAuthTokenResponse, error) { + var err error + const operationName = "ManagedEnvironmentsClient.GetAuthToken" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getAuthTokenCreateRequest(ctx, resourceGroupName, environmentName, options) + if err != nil { + return ManagedEnvironmentsClientGetAuthTokenResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentsClientGetAuthTokenResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentsClientGetAuthTokenResponse{}, err + } + resp, err := client.getAuthTokenHandleResponse(httpResp) + return resp, err +} + +// getAuthTokenCreateRequest creates the GetAuthToken request. +func (client *ManagedEnvironmentsClient) getAuthTokenCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientGetAuthTokenOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/getAuthtoken" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getAuthTokenHandleResponse handles the GetAuthToken response. +func (client *ManagedEnvironmentsClient) getAuthTokenHandleResponse(resp *http.Response) (ManagedEnvironmentsClientGetAuthTokenResponse, error) { + result := ManagedEnvironmentsClientGetAuthTokenResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.EnvironmentAuthToken); err != nil { + return ManagedEnvironmentsClientGetAuthTokenResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - Get all the Managed Environments in a resource group. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ManagedEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the ManagedEnvironmentsClient.NewListByResourceGroupPager +// method. +func (client *ManagedEnvironmentsClient) NewListByResourceGroupPager(resourceGroupName string, options *ManagedEnvironmentsClientListByResourceGroupOptions) *runtime.Pager[ManagedEnvironmentsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagedEnvironmentsClientListByResourceGroupResponse]{ + More: func(page ManagedEnvironmentsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ManagedEnvironmentsClientListByResourceGroupResponse) (ManagedEnvironmentsClientListByResourceGroupResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagedEnvironmentsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) + if err != nil { + return ManagedEnvironmentsClientListByResourceGroupResponse{}, err + } + return client.listByResourceGroupHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *ManagedEnvironmentsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ManagedEnvironmentsClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *ManagedEnvironmentsClient) listByResourceGroupHandleResponse(resp *http.Response) (ManagedEnvironmentsClientListByResourceGroupResponse, error) { + result := ManagedEnvironmentsClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedEnvironmentsCollection); err != nil { + return ManagedEnvironmentsClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - Get all Managed Environments for a subscription. +// +// Generated from API version 2023-11-02-preview +// - options - ManagedEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the ManagedEnvironmentsClient.NewListBySubscriptionPager +// method. +func (client *ManagedEnvironmentsClient) NewListBySubscriptionPager(options *ManagedEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[ManagedEnvironmentsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagedEnvironmentsClientListBySubscriptionResponse]{ + More: func(page ManagedEnvironmentsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ManagedEnvironmentsClientListBySubscriptionResponse) (ManagedEnvironmentsClientListBySubscriptionResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagedEnvironmentsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) + if err != nil { + return ManagedEnvironmentsClientListBySubscriptionResponse{}, err + } + return client.listBySubscriptionHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *ManagedEnvironmentsClient) listBySubscriptionCreateRequest(ctx context.Context, options *ManagedEnvironmentsClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *ManagedEnvironmentsClient) listBySubscriptionHandleResponse(resp *http.Response) (ManagedEnvironmentsClientListBySubscriptionResponse, error) { + result := ManagedEnvironmentsClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedEnvironmentsCollection); err != nil { + return ManagedEnvironmentsClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// NewListWorkloadProfileStatesPager - Get all workload Profile States for a Managed Environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - options - ManagedEnvironmentsClientListWorkloadProfileStatesOptions contains the optional parameters for the ManagedEnvironmentsClient.NewListWorkloadProfileStatesPager +// method. +func (client *ManagedEnvironmentsClient) NewListWorkloadProfileStatesPager(resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientListWorkloadProfileStatesOptions) *runtime.Pager[ManagedEnvironmentsClientListWorkloadProfileStatesResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagedEnvironmentsClientListWorkloadProfileStatesResponse]{ + More: func(page ManagedEnvironmentsClientListWorkloadProfileStatesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ManagedEnvironmentsClientListWorkloadProfileStatesResponse) (ManagedEnvironmentsClientListWorkloadProfileStatesResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagedEnvironmentsClient.NewListWorkloadProfileStatesPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listWorkloadProfileStatesCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return ManagedEnvironmentsClientListWorkloadProfileStatesResponse{}, err + } + return client.listWorkloadProfileStatesHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listWorkloadProfileStatesCreateRequest creates the ListWorkloadProfileStates request. +func (client *ManagedEnvironmentsClient) listWorkloadProfileStatesCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsClientListWorkloadProfileStatesOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listWorkloadProfileStatesHandleResponse handles the ListWorkloadProfileStates response. +func (client *ManagedEnvironmentsClient) listWorkloadProfileStatesHandleResponse(resp *http.Response) (ManagedEnvironmentsClientListWorkloadProfileStatesResponse, error) { + result := ManagedEnvironmentsClientListWorkloadProfileStatesResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.WorkloadProfileStatesCollection); err != nil { + return ManagedEnvironmentsClientListWorkloadProfileStatesResponse{}, err + } + return result, nil +} + +// BeginUpdate - Patches a Managed Environment using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - environmentEnvelope - Configuration details of the Environment. +// - options - ManagedEnvironmentsClientBeginUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginUpdate +// method. +func (client *ManagedEnvironmentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, environmentName string, environmentEnvelope ManagedEnvironment, options *ManagedEnvironmentsClientBeginUpdateOptions) (*runtime.Poller[ManagedEnvironmentsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, environmentName, environmentEnvelope, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ManagedEnvironmentsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ManagedEnvironmentsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Update - Patches a Managed Environment using JSON Merge Patch +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +func (client *ManagedEnvironmentsClient) update(ctx context.Context, resourceGroupName string, environmentName string, environmentEnvelope ManagedEnvironment, options *ManagedEnvironmentsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ManagedEnvironmentsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, environmentName, environmentEnvelope, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// updateCreateRequest creates the Update request. +func (client *ManagedEnvironmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, environmentEnvelope ManagedEnvironment, options *ManagedEnvironmentsClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, environmentEnvelope); err != nil { + return nil, err + } + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsdiagnostics_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsdiagnostics_client.go new file mode 100644 index 00000000..f7c0c322 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsdiagnostics_client.go @@ -0,0 +1,109 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ManagedEnvironmentsDiagnosticsClient contains the methods for the ManagedEnvironmentsDiagnostics group. +// Don't use this type directly, use NewManagedEnvironmentsDiagnosticsClient() instead. +type ManagedEnvironmentsDiagnosticsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewManagedEnvironmentsDiagnosticsClient creates a new instance of ManagedEnvironmentsDiagnosticsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewManagedEnvironmentsDiagnosticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedEnvironmentsDiagnosticsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ManagedEnvironmentsDiagnosticsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// GetRoot - Get the properties of a Managed Environment used to host container apps. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - options - ManagedEnvironmentsDiagnosticsClientGetRootOptions contains the optional parameters for the ManagedEnvironmentsDiagnosticsClient.GetRoot +// method. +func (client *ManagedEnvironmentsDiagnosticsClient) GetRoot(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsDiagnosticsClientGetRootOptions) (ManagedEnvironmentsDiagnosticsClientGetRootResponse, error) { + var err error + const operationName = "ManagedEnvironmentsDiagnosticsClient.GetRoot" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getRootCreateRequest(ctx, resourceGroupName, environmentName, options) + if err != nil { + return ManagedEnvironmentsDiagnosticsClientGetRootResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentsDiagnosticsClientGetRootResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentsDiagnosticsClientGetRootResponse{}, err + } + resp, err := client.getRootHandleResponse(httpResp) + return resp, err +} + +// getRootCreateRequest creates the GetRoot request. +func (client *ManagedEnvironmentsDiagnosticsClient) getRootCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsDiagnosticsClientGetRootOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorProperties/rootApi/" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getRootHandleResponse handles the GetRoot response. +func (client *ManagedEnvironmentsDiagnosticsClient) getRootHandleResponse(resp *http.Response) (ManagedEnvironmentsDiagnosticsClientGetRootResponse, error) { + result := ManagedEnvironmentsDiagnosticsClientGetRootResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedEnvironment); err != nil { + return ManagedEnvironmentsDiagnosticsClientGetRootResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsstorages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsstorages_client.go new file mode 100644 index 00000000..bd98fc5f --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentsstorages_client.go @@ -0,0 +1,313 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ManagedEnvironmentsStoragesClient contains the methods for the ManagedEnvironmentsStorages group. +// Don't use this type directly, use NewManagedEnvironmentsStoragesClient() instead. +type ManagedEnvironmentsStoragesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewManagedEnvironmentsStoragesClient creates a new instance of ManagedEnvironmentsStoragesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewManagedEnvironmentsStoragesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedEnvironmentsStoragesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ManagedEnvironmentsStoragesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Create or update storage for a managedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - storageName - Name of the storage. +// - storageEnvelope - Configuration details of storage. +// - options - ManagedEnvironmentsStoragesClientCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.CreateOrUpdate +// method. +func (client *ManagedEnvironmentsStoragesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, storageName string, storageEnvelope ManagedEnvironmentStorage, options *ManagedEnvironmentsStoragesClientCreateOrUpdateOptions) (ManagedEnvironmentsStoragesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ManagedEnvironmentsStoragesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, environmentName, storageName, storageEnvelope, options) + if err != nil { + return ManagedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ManagedEnvironmentsStoragesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, storageName string, storageEnvelope ManagedEnvironmentStorage, options *ManagedEnvironmentsStoragesClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if storageName == "" { + return nil, errors.New("parameter storageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageName}", url.PathEscape(storageName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, storageEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *ManagedEnvironmentsStoragesClient) createOrUpdateHandleResponse(resp *http.Response) (ManagedEnvironmentsStoragesClientCreateOrUpdateResponse, error) { + result := ManagedEnvironmentsStoragesClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedEnvironmentStorage); err != nil { + return ManagedEnvironmentsStoragesClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Delete storage for a managedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - storageName - Name of the storage. +// - options - ManagedEnvironmentsStoragesClientDeleteOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Delete +// method. +func (client *ManagedEnvironmentsStoragesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, storageName string, options *ManagedEnvironmentsStoragesClientDeleteOptions) (ManagedEnvironmentsStoragesClientDeleteResponse, error) { + var err error + const operationName = "ManagedEnvironmentsStoragesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, environmentName, storageName, options) + if err != nil { + return ManagedEnvironmentsStoragesClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentsStoragesClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentsStoragesClientDeleteResponse{}, err + } + return ManagedEnvironmentsStoragesClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ManagedEnvironmentsStoragesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, storageName string, options *ManagedEnvironmentsStoragesClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if storageName == "" { + return nil, errors.New("parameter storageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageName}", url.PathEscape(storageName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get storage for a managedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - storageName - Name of the storage. +// - options - ManagedEnvironmentsStoragesClientGetOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Get +// method. +func (client *ManagedEnvironmentsStoragesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, storageName string, options *ManagedEnvironmentsStoragesClientGetOptions) (ManagedEnvironmentsStoragesClientGetResponse, error) { + var err error + const operationName = "ManagedEnvironmentsStoragesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, environmentName, storageName, options) + if err != nil { + return ManagedEnvironmentsStoragesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentsStoragesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentsStoragesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ManagedEnvironmentsStoragesClient) getCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, storageName string, options *ManagedEnvironmentsStoragesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if storageName == "" { + return nil, errors.New("parameter storageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageName}", url.PathEscape(storageName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ManagedEnvironmentsStoragesClient) getHandleResponse(resp *http.Response) (ManagedEnvironmentsStoragesClientGetResponse, error) { + result := ManagedEnvironmentsStoragesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedEnvironmentStorage); err != nil { + return ManagedEnvironmentsStoragesClientGetResponse{}, err + } + return result, nil +} + +// List - Get all storages for a managedEnvironment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - options - ManagedEnvironmentsStoragesClientListOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.List +// method. +func (client *ManagedEnvironmentsStoragesClient) List(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsStoragesClientListOptions) (ManagedEnvironmentsStoragesClientListResponse, error) { + var err error + const operationName = "ManagedEnvironmentsStoragesClient.List" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + if err != nil { + return ManagedEnvironmentsStoragesClientListResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ManagedEnvironmentsStoragesClientListResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedEnvironmentsStoragesClientListResponse{}, err + } + resp, err := client.listHandleResponse(httpResp) + return resp, err +} + +// listCreateRequest creates the List request. +func (client *ManagedEnvironmentsStoragesClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentsStoragesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *ManagedEnvironmentsStoragesClient) listHandleResponse(resp *http.Response) (ManagedEnvironmentsStoragesClientListResponse, error) { + result := ManagedEnvironmentsStoragesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedEnvironmentStoragesCollection); err != nil { + return ManagedEnvironmentsStoragesClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentusages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentusages_client.go new file mode 100644 index 00000000..0d37788d --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/managedenvironmentusages_client.go @@ -0,0 +1,109 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ManagedEnvironmentUsagesClient contains the methods for the ManagedEnvironmentUsages group. +// Don't use this type directly, use NewManagedEnvironmentUsagesClient() instead. +type ManagedEnvironmentUsagesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewManagedEnvironmentUsagesClient creates a new instance of ManagedEnvironmentUsagesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewManagedEnvironmentUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedEnvironmentUsagesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ManagedEnvironmentUsagesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// NewListPager - Gets the current usage information as well as the limits for environment. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Environment. +// - options - ManagedEnvironmentUsagesClientListOptions contains the optional parameters for the ManagedEnvironmentUsagesClient.NewListPager +// method. +func (client *ManagedEnvironmentUsagesClient) NewListPager(resourceGroupName string, environmentName string, options *ManagedEnvironmentUsagesClientListOptions) *runtime.Pager[ManagedEnvironmentUsagesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagedEnvironmentUsagesClientListResponse]{ + More: func(page ManagedEnvironmentUsagesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ManagedEnvironmentUsagesClientListResponse) (ManagedEnvironmentUsagesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagedEnvironmentUsagesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, environmentName, options) + }, nil) + if err != nil { + return ManagedEnvironmentUsagesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *ManagedEnvironmentUsagesClient) listCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, options *ManagedEnvironmentUsagesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/usages" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *ManagedEnvironmentUsagesClient) listHandleResponse(resp *http.Response) (ManagedEnvironmentUsagesClientListResponse, error) { + result := ManagedEnvironmentUsagesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ListUsagesResult); err != nil { + return ManagedEnvironmentUsagesClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models.go new file mode 100644 index 00000000..984c1484 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models.go @@ -0,0 +1,3723 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import "time" + +// AllowedAudiencesValidation - The configuration settings of the Allowed Audiences validation flow. +type AllowedAudiencesValidation struct { + // The configuration settings of the allowed list of audiences from which to validate the JWT token. + AllowedAudiences []*string +} + +// AllowedPrincipals - The configuration settings of the Azure Active Directory allowed principals. +type AllowedPrincipals struct { + // The list of the allowed groups. + Groups []*string + + // The list of the allowed identities. + Identities []*string +} + +// AppInsightsConfiguration - Configuration of Application Insights +type AppInsightsConfiguration struct { + // Application Insights connection string + ConnectionString *string +} + +// AppLogsConfiguration - Configuration of application logs +type AppLogsConfiguration struct { + // Logs destination, can be 'log-analytics', 'azure-monitor' or 'none' + Destination *string + + // Log Analytics configuration, must only be provided when destination is configured as 'log-analytics' + LogAnalyticsConfiguration *LogAnalyticsConfiguration +} + +// AppRegistration - The configuration settings of the app registration for providers that have app ids and app secrets +type AppRegistration struct { + // The App ID of the app used for login. + AppID *string + + // The app setting name that contains the app secret. + AppSecretSettingName *string +} + +// AppResiliency - Configuration to setup App Resiliency +type AppResiliency struct { + // App Resiliency resource specific properties + Properties *AppResiliencyProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// AppResiliencyCollection - Collection of AppResiliency policies +type AppResiliencyCollection struct { + // REQUIRED; Collection of resources. + Value []*AppResiliency + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// AppResiliencyProperties - App Resiliency resource specific properties +type AppResiliencyProperties struct { + // Policy that defines circuit breaker conditions + CircuitBreakerPolicy *CircuitBreakerPolicy + + // Defines parameters for http connection pooling + HTTPConnectionPool *HTTPConnectionPool + + // Policy that defines http request retry conditions + HTTPRetryPolicy *HTTPRetryPolicy + + // Defines parameters for tcp connection pooling + TCPConnectionPool *TCPConnectionPool + + // Policy that defines tcp request retry conditions + TCPRetryPolicy *TCPRetryPolicy + + // Policy to set request timeouts + TimeoutPolicy *TimeoutPolicy +} + +// Apple - The configuration settings of the Apple provider. +type Apple struct { + // false if the Apple provider should not be enabled despite the set registration; otherwise, true. + Enabled *bool + + // The configuration settings of the login flow. + Login *LoginScopes + + // The configuration settings of the Apple registration. + Registration *AppleRegistration +} + +// AppleRegistration - The configuration settings of the registration for the Apple provider +type AppleRegistration struct { + // The Client ID of the app used for login. + ClientID *string + + // The app setting name that contains the client secret. + ClientSecretSettingName *string +} + +// AuthConfig - Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature. +type AuthConfig struct { + // AuthConfig resource specific properties + Properties *AuthConfigProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// AuthConfigCollection - AuthConfig collection ARM resource. +type AuthConfigCollection struct { + // REQUIRED; Collection of resources. + Value []*AuthConfig + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// AuthConfigProperties - AuthConfig resource specific properties +type AuthConfigProperties struct { + // The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service Authentication/Authorization. + EncryptionSettings *EncryptionSettings + + // The configuration settings that determines the validation flow of users using Service Authentication/Authorization. + GlobalValidation *GlobalValidation + + // The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp + // Service Authentication/Authorization. + HTTPSettings *HTTPSettings + + // The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. + IdentityProviders *IdentityProviders + + // The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization. + Login *Login + + // The configuration settings of the platform of ContainerApp Service Authentication/Authorization. + Platform *AuthPlatform +} + +// AuthPlatform - The configuration settings of the platform of ContainerApp Service Authentication/Authorization. +type AuthPlatform struct { + // true if the Authentication / Authorization feature is enabled for the current app; otherwise, false. + Enabled *bool + + // The RuntimeVersion of the Authentication / Authorization feature in use for the current app. The setting in this value + // can control the behavior of certain features in the Authentication / + // Authorization module. + RuntimeVersion *string +} + +// AvailableOperations - Available operations of the service +type AvailableOperations struct { + // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. + NextLink *string + + // Collection of available operation details + Value []*OperationDetail +} + +// AvailableWorkloadProfile - A workload profile with specific hardware configure to run container apps. +type AvailableWorkloadProfile struct { + // Region of the workload profile. + Location *string + + // Revision resource specific properties + Properties *AvailableWorkloadProfileProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// AvailableWorkloadProfileProperties - Revision resource specific properties +type AvailableWorkloadProfileProperties struct { + // indicates whether the profile is default for the location. + Applicability *Applicability + + // Used to categorize workload profiles. + Category *string + + // Number of cores in CPU. + Cores *int32 + + // The everyday name of the workload profile. + DisplayName *string + + // Number of GPUs. + Gpus *int32 + + // Memory in GiB. + MemoryGiB *int32 +} + +// AvailableWorkloadProfilesCollection - Collection of available workload profiles in the location. +type AvailableWorkloadProfilesCollection struct { + // REQUIRED; Collection of workload profiles. + Value []*AvailableWorkloadProfile + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// AzureActiveDirectory - The configuration settings of the Azure Active directory provider. +type AzureActiveDirectory struct { + // false if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, true. + Enabled *bool + + // Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling. This is an internal + // flag primarily intended to support the Azure Management Portal. Users + // should not read or write to this property. + IsAutoProvisioned *bool + + // The configuration settings of the Azure Active Directory login flow. + Login *AzureActiveDirectoryLogin + + // The configuration settings of the Azure Active Directory app registration. + Registration *AzureActiveDirectoryRegistration + + // The configuration settings of the Azure Active Directory token validation flow. + Validation *AzureActiveDirectoryValidation +} + +// AzureActiveDirectoryLogin - The configuration settings of the Azure Active Directory login flow. +type AzureActiveDirectoryLogin struct { + // true if the www-authenticate provider should be omitted from the request; otherwise, false. + DisableWWWAuthenticate *bool + + // Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the + // form "key=value". + LoginParameters []*string +} + +// AzureActiveDirectoryRegistration - The configuration settings of the Azure Active Directory app registration. +type AzureActiveDirectoryRegistration struct { + // The Client ID of this relying party application, known as the clientid. This setting is required for enabling OpenID Connection + // authentication with Azure Active Directory or other 3rd party OpenID + // Connect providers. More information on OpenID Connect: http://openid.net/specs/openid-connect-core-10.html + ClientID *string + + // An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property + // acts as a replacement for the Client Secret Certificate Thumbprint. It is + // also optional. + ClientSecretCertificateIssuer *string + + // An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing + // purposes. This property acts as a replacement for the Client Secret Certificate + // Thumbprint. It is also optional. + ClientSecretCertificateSubjectAlternativeName *string + + // An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts + // as a replacement for the Client Secret. It is also optional. + ClientSecretCertificateThumbprint *string + + // The app setting name that contains the client secret of the relying party application. + ClientSecretSettingName *string + + // The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure + // Active Directory, this value is the URI of the directory tenant, e.g. + // https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token issuer. More + // information on OpenID Connect Discovery: + // http://openid.net/specs/openid-connect-discovery-1_0.html + OpenIDIssuer *string +} + +// AzureActiveDirectoryValidation - The configuration settings of the Azure Active Directory token validation flow. +type AzureActiveDirectoryValidation struct { + // The list of audiences that can make successful authentication/authorization requests. + AllowedAudiences []*string + + // The configuration settings of the default authorization policy. + DefaultAuthorizationPolicy *DefaultAuthorizationPolicy + + // The configuration settings of the checks that should be made while validating the JWT Claims. + JwtClaimChecks *JwtClaimChecks +} + +// AzureCredentials - Container App credentials. +type AzureCredentials struct { + // Client Id. + ClientID *string + + // Client Secret. + ClientSecret *string + + // Kind of auth github does for deploying the template + Kind *string + + // Subscription Id. + SubscriptionID *string + + // Tenant Id. + TenantID *string +} + +// AzureFileProperties - Azure File Properties. +type AzureFileProperties struct { + // Access mode for storage + AccessMode *AccessMode + + // Storage account key for azure file. + AccountKey *string + + // Storage account name for azure file. + AccountName *string + + // Azure file share name. + ShareName *string +} + +// AzureStaticWebApps - The configuration settings of the Azure Static Web Apps provider. +type AzureStaticWebApps struct { + // false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true. + Enabled *bool + + // The configuration settings of the Azure Static Web Apps registration. + Registration *AzureStaticWebAppsRegistration +} + +// AzureStaticWebAppsRegistration - The configuration settings of the registration for the Azure Static Web Apps provider +type AzureStaticWebAppsRegistration struct { + // The Client ID of the app used for login. + ClientID *string +} + +// BaseContainer - Container App base container definition. +type BaseContainer struct { + // Container start command arguments. + Args []*string + + // Container start command. + Command []*string + + // Container environment variables. + Env []*EnvironmentVar + + // Container image tag. + Image *string + + // Custom container name. + Name *string + + // Container resource requirements. + Resources *ContainerResources + + // Container volume mounts. + VolumeMounts []*VolumeMount +} + +// BillingMeter - Billing meter. +type BillingMeter struct { + // Region for the billing meter. + Location *string + + // Revision resource specific properties + Properties *BillingMeterProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// BillingMeterCollection - Collection of billing meters. +type BillingMeterCollection struct { + // REQUIRED; Collection of billing meters. + Value []*BillingMeter +} + +// BillingMeterProperties - Revision resource specific properties +type BillingMeterProperties struct { + // Used to categorize billing meters. + Category *string + + // The everyday name of the billing meter. + DisplayName *string + + // Billing meter type. + MeterType *string +} + +// BlobStorageTokenStore - The configuration settings of the storage of the tokens if blob storage is used. +type BlobStorageTokenStore struct { + // REQUIRED; The name of the app secrets containing the SAS URL of the blob storage containing the tokens. + SasURLSettingName *string +} + +// BuildCollection - The response of a BuildResource list operation. +type BuildCollection struct { + // REQUIRED; The BuildResource items on this page + Value []*BuildResource + + // The link to the next page of items + NextLink *string +} + +// BuildConfiguration - Configuration of the build. +type BuildConfiguration struct { + // Base OS used to build and run the app. + BaseOs *string + + // List of environment variables to be passed to the build, secrets should not be used in environment variable. + EnvironmentVariables []*EnvironmentVariable + + // Platform to be used to build and run the app. + Platform *string + + // Platform version to be used to build and run the app. + PlatformVersion *string + + // List of steps to perform before the build. + PreBuildSteps []*PreBuildStep +} + +// BuildProperties - The build properties. +type BuildProperties struct { + // Configuration of the build. + Configuration *BuildConfiguration + + // Container registry that the final image will be uploaded to. + DestinationContainerRegistry *ContainerRegistryWithCustomImage + + // READ-ONLY; Status of the build once it has been provisioned. + BuildStatus *BuildStatus + + // READ-ONLY; Endpoint from which the build logs can be streamed. + LogStreamEndpoint *string + + // READ-ONLY; Build provisioning state. + ProvisioningState *BuildProvisioningState + + // READ-ONLY; Endpoint to use to retrieve an authentication token for log streaming and uploading source code. + TokenEndpoint *string + + // READ-ONLY; Endpoint to which the source code should be uploaded. + UploadEndpoint *string +} + +// BuildResource - Information pertaining to an individual build. +type BuildResource struct { + // The resource-specific properties for this resource. + Properties *BuildProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// BuildToken - Build Auth Token. +type BuildToken struct { + // READ-ONLY; Token expiration date. + Expires *time.Time + + // READ-ONLY; Authentication token. + Token *string +} + +// BuilderCollection - The response of a BuilderResource list operation. +type BuilderCollection struct { + // REQUIRED; The BuilderResource items on this page + Value []*BuilderResource + + // The link to the next page of items + NextLink *string +} + +// BuilderProperties - The builder properties. +type BuilderProperties struct { + // REQUIRED; Resource ID of the container apps environment that the builder is associated with. + EnvironmentID *string + + // List of mappings of container registries and the managed identity used to connect to it. + ContainerRegistries []*ContainerRegistry + + // READ-ONLY; Provisioning state of a builder resource. + ProvisioningState *BuilderProvisioningState +} + +// BuilderResource - Information about the SourceToCloud builder resource. +type BuilderResource struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // The managed service identities assigned to this resource. + Identity *ManagedServiceIdentity + + // The resource-specific properties for this resource. + Properties *BuilderProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// BuilderResourceUpdate - The type used for update operations of the BuilderResource. +type BuilderResourceUpdate struct { + // The managed service identities assigned to this resource. + Identity *ManagedServiceIdentity + + // The updatable properties of the BuilderResource. + Properties *BuilderResourceUpdateProperties + + // Resource tags. + Tags map[string]*string +} + +// BuilderResourceUpdateProperties - The updatable properties of the BuilderResource. +type BuilderResourceUpdateProperties struct { + // Resource ID of the container apps environment that the builder is associated with. + EnvironmentID *string +} + +// Certificate used for Custom Domain bindings of Container Apps in a Managed Environment +type Certificate struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Certificate resource specific properties + Properties *CertificateProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// CertificateCollection - Collection of Certificates. +type CertificateCollection struct { + // REQUIRED; Collection of resources. + Value []*Certificate + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// CertificateKeyVaultProperties - Properties for a certificate stored in a Key Vault. +type CertificateKeyVaultProperties struct { + // Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity. + Identity *string + + // URL pointing to the Azure Key Vault secret that holds the certificate. + KeyVaultURL *string +} + +// CertificatePatch - A certificate to update +type CertificatePatch struct { + // Application-specific metadata in the form of key-value pairs. + Tags map[string]*string +} + +// CertificateProperties - Certificate resource specific properties +type CertificateProperties struct { + // Properties for a certificate stored in a Key Vault. + CertificateKeyVaultProperties *CertificateKeyVaultProperties + + // The type of the certificate. Allowed values are ServerSSLCertificate and ImagePullTrustedCA + CertificateType *CertificateType + + // Certificate password. + Password *string + + // PFX or PEM blob + Value []byte + + // READ-ONLY; Certificate expiration date. + ExpirationDate *time.Time + + // READ-ONLY; Certificate issue Date. + IssueDate *time.Time + + // READ-ONLY; Certificate issuer. + Issuer *string + + // READ-ONLY; Provisioning state of the certificate. + ProvisioningState *CertificateProvisioningState + + // READ-ONLY; Public key hash. + PublicKeyHash *string + + // READ-ONLY; Subject alternative names the certificate applies to. + SubjectAlternativeNames []*string + + // READ-ONLY; Subject name of the certificate. + SubjectName *string + + // READ-ONLY; Certificate thumbprint. + Thumbprint *string + + // READ-ONLY; Is the certificate valid?. + Valid *bool +} + +// CheckNameAvailabilityRequest - The check availability request body. +type CheckNameAvailabilityRequest struct { + // The name of the resource for which availability needs to be checked. + Name *string + + // The resource type. + Type *string +} + +// CheckNameAvailabilityResponse - The check availability result. +type CheckNameAvailabilityResponse struct { + // Detailed reason why the given name is available. + Message *string + + // Indicates if the resource name is available. + NameAvailable *bool + + // The reason why the given name is not available. + Reason *CheckNameAvailabilityReason +} + +// CircuitBreakerPolicy - Policy that defines circuit breaker conditions +type CircuitBreakerPolicy struct { + // Number of consecutive errors before the circuit breaker opens + ConsecutiveErrors *int32 + + // The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails + // as well as closing the circuit breaker if the check succeeds. Defaults to 10s. + IntervalInSeconds *int32 + + // Maximum percentage of hosts that will be ejected after failure threshold has been met + MaxEjectionPercent *int32 +} + +// ClientRegistration - The configuration settings of the app registration for providers that have client ids and client secrets +type ClientRegistration struct { + // The Client ID of the app used for login. + ClientID *string + + // The app setting name that contains the client secret. + ClientSecretSettingName *string +} + +// Configuration - Non versioned Container App configuration properties that define the mutable settings of a Container app +type Configuration struct { + // ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple revisions can be + // active.Single: Only one revision can be active at a time. Revision weights can + // not be used in this mode. If no value if provided, this is the default. + ActiveRevisionsMode *ActiveRevisionsMode + + // Dapr configuration for the Container App. + Dapr *Dapr + + // Ingress configurations. + Ingress *Ingress + + // Optional. Max inactive revisions a Container App can have. + MaxInactiveRevisions *int32 + + // Collection of private container registry credentials for containers used by the Container app + Registries []*RegistryCredentials + + // Collection of secrets used by a Container app + Secrets []*Secret + + // Container App to be a dev Container App Service + Service *Service +} + +// ConnectedEnvironment - An environment for Kubernetes cluster specialized for web workloads by Azure App Service +type ConnectedEnvironment struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // The complex type of the extended location. + ExtendedLocation *ExtendedLocation + + // ConnectedEnvironment resource specific properties + Properties *ConnectedEnvironmentProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ConnectedEnvironmentCollection - Collection of connectedEnvironments +type ConnectedEnvironmentCollection struct { + // Collection of resources. + Value []*ConnectedEnvironment + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// ConnectedEnvironmentProperties - ConnectedEnvironment resource specific properties +type ConnectedEnvironmentProperties struct { + // Custom domain configuration for the environment + CustomDomainConfiguration *CustomDomainConfiguration + + // Application Insights connection string used by Dapr to export Service to Service communication telemetry + DaprAIConnectionString *string + + // Static IP of the connectedEnvironment + StaticIP *string + + // READ-ONLY; Default Domain Name for the cluster + DefaultDomain *string + + // READ-ONLY; Any errors that occurred during deployment or deployment validation + DeploymentErrors *string + + // READ-ONLY; Provisioning state of the Kubernetes Environment. + ProvisioningState *ConnectedEnvironmentProvisioningState +} + +// ConnectedEnvironmentStorage - Storage resource for connectedEnvironment. +type ConnectedEnvironmentStorage struct { + // Storage properties + Properties *ConnectedEnvironmentStorageProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ConnectedEnvironmentStorageProperties - Storage properties +type ConnectedEnvironmentStorageProperties struct { + // Azure file properties + AzureFile *AzureFileProperties +} + +// ConnectedEnvironmentStoragesCollection - Collection of Storage for Environments +type ConnectedEnvironmentStoragesCollection struct { + // REQUIRED; Collection of storage resources. + Value []*ConnectedEnvironmentStorage +} + +// Container App container definition +type Container struct { + // Container start command arguments. + Args []*string + + // Container start command. + Command []*string + + // Container environment variables. + Env []*EnvironmentVar + + // Container image tag. + Image *string + + // Custom container name. + Name *string + + // List of probes for the container. + Probes []*ContainerAppProbe + + // Container resource requirements. + Resources *ContainerResources + + // Container volume mounts. + VolumeMounts []*VolumeMount +} + +// ContainerApp - Container App. +type ContainerApp struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // The complex type of the extended location. + ExtendedLocation *ExtendedLocation + + // managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials + // in code. + Identity *ManagedServiceIdentity + + // The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another + // Azure resource. If this is present, complete mode deployment will not + // delete the resource if it is removed from the template since it is managed by another resource. + ManagedBy *string + + // ContainerApp resource specific properties + Properties *ContainerAppProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ContainerAppAuthToken - Container App Auth Token. +type ContainerAppAuthToken struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Container App auth token resource specific properties + Properties *ContainerAppAuthTokenProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ContainerAppAuthTokenProperties - Container App auth token resource specific properties +type ContainerAppAuthTokenProperties struct { + // READ-ONLY; Token expiration date. + Expires *time.Time + + // READ-ONLY; Auth token value. + Token *string +} + +// ContainerAppCollection - Container App collection ARM resource. +type ContainerAppCollection struct { + // REQUIRED; Collection of resources. + Value []*ContainerApp + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// ContainerAppJobExecutions - Container App executions collection ARM resource. +type ContainerAppJobExecutions struct { + // REQUIRED; Collection of resources. + Value []*JobExecution + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// ContainerAppProbe - Probe describes a health check to be performed against a container to determine whether it is alive +// or ready to receive traffic. +type ContainerAppProbe struct { + // Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value + // is 1. Maximum value is 10. + FailureThreshold *int32 + + // HTTPGet specifies the http request to perform. + HTTPGet *ContainerAppProbeHTTPGet + + // Number of seconds after the container has started before liveness probes are initiated. Minimum value is 1. Maximum value + // is 60. + InitialDelaySeconds *int32 + + // How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240. + PeriodSeconds *int32 + + // Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for + // liveness and startup. Minimum value is 1. Maximum value is 10. + SuccessThreshold *int32 + + // TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported. + TCPSocket *ContainerAppProbeTCPSocket + + // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration + // in seconds after the processes running in the pod are sent a termination signal + // and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup + // time for your process. If this value is nil, the pod's + // terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must + // be non-negative integer. The value zero indicates stop immediately via the + // kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature + // gate. Maximum value is 3600 seconds (1 hour) + TerminationGracePeriodSeconds *int64 + + // Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 240. + TimeoutSeconds *int32 + + // The type of probe. + Type *Type +} + +// ContainerAppProbeHTTPGet - HTTPGet specifies the http request to perform. +type ContainerAppProbeHTTPGet struct { + // REQUIRED; Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an + // IANASVCNAME. + Port *int32 + + // Custom headers to set in the request. HTTP allows repeated headers. + HTTPHeaders []*ContainerAppProbeHTTPGetHTTPHeadersItem + + // Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + Host *string + + // Path to access on the HTTP server. + Path *string + + // Scheme to use for connecting to the host. Defaults to HTTP. + Scheme *Scheme +} + +// ContainerAppProbeHTTPGetHTTPHeadersItem - HTTPHeader describes a custom header to be used in HTTP probes +type ContainerAppProbeHTTPGetHTTPHeadersItem struct { + // REQUIRED; The header field name + Name *string + + // REQUIRED; The header field value + Value *string +} + +// ContainerAppProbeTCPSocket - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported. +type ContainerAppProbeTCPSocket struct { + // REQUIRED; Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an + // IANASVCNAME. + Port *int32 + + // Optional: Host name to connect to, defaults to the pod IP. + Host *string +} + +// ContainerAppProperties - ContainerApp resource specific properties +type ContainerAppProperties struct { + // Non versioned Container App configuration properties. + Configuration *Configuration + + // Resource ID of environment. + EnvironmentID *string + + // Deprecated. Resource ID of the Container App's environment. + ManagedEnvironmentID *string + + // Container App versioned application definition. + Template *Template + + // Workload profile name to pin for container app execution. + WorkloadProfileName *string + + // READ-ONLY; Id used to verify domain name ownership + CustomDomainVerificationID *string + + // READ-ONLY; The endpoint of the eventstream of the container app. + EventStreamEndpoint *string + + // READ-ONLY; Name of the latest ready revision of the Container App. + LatestReadyRevisionName *string + + // READ-ONLY; Fully Qualified Domain Name of the latest revision of the Container App. + LatestRevisionFqdn *string + + // READ-ONLY; Name of the latest revision of the Container App. + LatestRevisionName *string + + // READ-ONLY; Outbound IP Addresses for container app. + OutboundIPAddresses []*string + + // READ-ONLY; Provisioning state of the Container App. + ProvisioningState *ContainerAppProvisioningState +} + +// ContainerAppSecret - Container App Secret. +type ContainerAppSecret struct { + // READ-ONLY; Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity. + Identity *string + + // READ-ONLY; Azure Key Vault URL pointing to the secret referenced by the container app. + KeyVaultURL *string + + // READ-ONLY; Secret Name. + Name *string + + // READ-ONLY; Secret Value. + Value *string +} + +// ContainerRegistry - Model representing a mapping from a container registry to the identity used to connect to it. +type ContainerRegistry struct { + // REQUIRED; Login server of the container registry. + ContainerRegistryServer *string + + // REQUIRED; Resource ID of the managed identity. + IdentityResourceID *string +} + +// ContainerRegistryWithCustomImage - Container registry that the final image will be uploaded to. +type ContainerRegistryWithCustomImage struct { + // REQUIRED; Login server of the container registry that the final image should be uploaded to. Builder resource needs to + // have this container registry defined along with an identity to use to access it. + Server *string + + // Full name that the final image should be uploaded as, including both image name and tag. + Image *string +} + +// ContainerResources - Container App container resource requirements. +type ContainerResources struct { + // Required CPU in cores, e.g. 0.5 + CPU *float64 + + // Required memory, e.g. "250Mb" + Memory *string + + // READ-ONLY; Ephemeral Storage, e.g. "1Gi" + EphemeralStorage *string +} + +// CookieExpiration - The configuration settings of the session cookie's expiration. +type CookieExpiration struct { + // The convention used when determining the session cookie's expiration. + Convention *CookieExpirationConvention + + // The time after the request is made when the session cookie should expire. + TimeToExpiration *string +} + +// CorsPolicy - Cross-Origin-Resource-Sharing policy +type CorsPolicy struct { + // REQUIRED; Specifies the content for the access-control-allow-origins header + AllowedOrigins []*string + + // Specifies whether the resource allows credentials + AllowCredentials *bool + + // Specifies the content for the access-control-allow-headers header + AllowedHeaders []*string + + // Specifies the content for the access-control-allow-methods header + AllowedMethods []*string + + // Specifies the content for the access-control-expose-headers header + ExposeHeaders []*string + + // Specifies the content for the access-control-max-age header + MaxAge *int32 +} + +// CustomDomain - Custom Domain of a Container App +type CustomDomain struct { + // REQUIRED; Hostname. + Name *string + + // Custom Domain binding type. + BindingType *BindingType + + // Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment. + CertificateID *string +} + +// CustomDomainConfiguration - Configuration properties for apps environment custom domain +type CustomDomainConfiguration struct { + // Certificate stored in Azure Key Vault. + CertificateKeyVaultProperties *CertificateKeyVaultProperties + + // Certificate password + CertificatePassword *string + + // PFX or PEM blob + CertificateValue []byte + + // Dns suffix for the environment domain + DNSSuffix *string + + // READ-ONLY; Id used to verify domain name ownership + CustomDomainVerificationID *string + + // READ-ONLY; Certificate expiration date. + ExpirationDate *time.Time + + // READ-ONLY; Subject name of the certificate. + SubjectName *string + + // READ-ONLY; Certificate thumbprint. + Thumbprint *string +} + +// CustomHostnameAnalysisResult - Custom domain analysis. +type CustomHostnameAnalysisResult struct { + // A records visible for this hostname. + ARecords []*string + + // Alternate CName records visible for this hostname. + AlternateCNameRecords []*string + + // Alternate TXT records visible for this hostname. + AlternateTxtRecords []*string + + // CName records visible for this hostname. + CNameRecords []*string + + // TXT records visible for this hostname. + TxtRecords []*string + + // READ-ONLY; true if there is a conflict on the Container App's managed environment level custom domain; otherwise, false. + ConflictWithEnvironmentCustomDomain *bool + + // READ-ONLY; Name of the conflicting Container App on the Managed Environment if it's within the same subscription. + ConflictingContainerAppResourceID *string + + // READ-ONLY; Raw failure information if DNS verification fails. + CustomDomainVerificationFailureInfo *CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo + + // READ-ONLY; DNS verification test result. + CustomDomainVerificationTest *DNSVerificationTestResult + + // READ-ONLY; true if there is a conflict on the Container App's managed environment; otherwise, false. + HasConflictOnManagedEnvironment *bool + + // READ-ONLY; Host name that was analyzed + HostName *string + + // READ-ONLY; true if hostname is already verified; otherwise, false. + IsHostnameAlreadyVerified *bool +} + +// CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo - Raw failure information if DNS verification fails. +type CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo struct { + // Details or the error + Details []*CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem + + // READ-ONLY; Standardized string to programmatically identify the error. + Code *string + + // READ-ONLY; Detailed error description and debugging information. + Message *string + + // READ-ONLY; Detailed error description and debugging information. + Target *string +} + +// CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem - Detailed errors. +type CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem struct { + // READ-ONLY; Standardized string to programmatically identify the error. + Code *string + + // READ-ONLY; Detailed error description and debugging information. + Message *string + + // READ-ONLY; Detailed error description and debugging information. + Target *string +} + +// CustomOpenIDConnectProvider - The configuration settings of the custom Open ID Connect provider. +type CustomOpenIDConnectProvider struct { + // false if the custom Open ID provider provider should not be enabled; otherwise, true. + Enabled *bool + + // The configuration settings of the login flow of the custom Open ID Connect provider. + Login *OpenIDConnectLogin + + // The configuration settings of the app registration for the custom Open ID Connect provider. + Registration *OpenIDConnectRegistration +} + +// CustomScaleRule - Container App container Custom scaling rule. +type CustomScaleRule struct { + // Authentication secrets for the custom scale rule. + Auth []*ScaleRuleAuth + + // Metadata properties to describe custom scale rule. + Metadata map[string]*string + + // Type of the custom scale rule eg: azure-servicebus, redis etc. + Type *string +} + +// Dapr - Container App Dapr configuration. +type Dapr struct { + // Dapr application identifier + AppID *string + + // Tells Dapr which port your application is listening on + AppPort *int32 + + // Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http + AppProtocol *AppProtocol + + // Enables API logging for the Dapr sidecar + EnableAPILogging *bool + + // Boolean indicating if the Dapr side car is enabled + Enabled *bool + + // Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is + // 4 MB. + HTTPMaxRequestSize *int32 + + // Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. + HTTPReadBufferSize *int32 + + // Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. + LogLevel *LogLevel +} + +// DaprComponent - Dapr Component. +type DaprComponent struct { + // Dapr Component resource specific properties + Properties *DaprComponentProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// DaprComponentProperties - Dapr Component resource specific properties +type DaprComponentProperties struct { + // Component type + ComponentType *string + + // Boolean describing if the component errors are ignores + IgnoreErrors *bool + + // Initialization timeout + InitTimeout *string + + // Component metadata + Metadata []*DaprMetadata + + // Names of container apps that can use this Dapr component + Scopes []*string + + // Name of a Dapr component to retrieve component secrets from + SecretStoreComponent *string + + // Collection of secrets used by a Dapr component + Secrets []*Secret + + // List of container app services that are bound to the Dapr component + ServiceComponentBind []*DaprComponentServiceBinding + + // Component version + Version *string +} + +// DaprComponentResiliencyPoliciesCollection - Dapr Component Resiliency Policies ARM resource. +type DaprComponentResiliencyPoliciesCollection struct { + // REQUIRED; Collection of resources. + Value []*DaprComponentResiliencyPolicy + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// DaprComponentResiliencyPolicy - Dapr Component Resiliency Policy. +type DaprComponentResiliencyPolicy struct { + // Dapr Component Resiliency Policy resource specific properties + Properties *DaprComponentResiliencyPolicyProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration - Dapr Component Resiliency Policy Circuit Breaker Policy +// Configuration. +type DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration struct { + // The number of consecutive errors before the circuit is opened. + ConsecutiveErrors *int32 + + // The optional interval in seconds after which the error count resets to 0. An interval of 0 will never reset. If not specified, + // the timeoutInSeconds value will be used. + IntervalInSeconds *int32 + + // The interval in seconds until a retry attempt is made after the circuit is opened. + TimeoutInSeconds *int32 +} + +// DaprComponentResiliencyPolicyConfiguration - Dapr Component Resiliency Policy Configuration. +type DaprComponentResiliencyPolicyConfiguration struct { + // The optional circuit breaker policy configuration + CircuitBreakerPolicy *DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration + + // The optional HTTP retry policy configuration + HTTPRetryPolicy *DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration + + // The optional timeout policy configuration + TimeoutPolicy *DaprComponentResiliencyPolicyTimeoutPolicyConfiguration +} + +// DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration - Dapr Component Resiliency Policy HTTP Retry Backoff Configuration. +type DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration struct { + // The optional initial delay in milliseconds before an operation is retried + InitialDelayInMilliseconds *int32 + + // The optional maximum time interval in milliseconds between retry attempts + MaxIntervalInMilliseconds *int32 +} + +// DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration - Dapr Component Resiliency Policy HTTP Retry Policy Configuration. +type DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration struct { + // The optional maximum number of retries + MaxRetries *int32 + + // The optional retry backoff configuration + RetryBackOff *DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration +} + +// DaprComponentResiliencyPolicyProperties - Dapr Component Resiliency Policy resource specific properties +type DaprComponentResiliencyPolicyProperties struct { + // The optional inbound component resiliency policy configuration + InboundPolicy *DaprComponentResiliencyPolicyConfiguration + + // The optional outbound component resiliency policy configuration + OutboundPolicy *DaprComponentResiliencyPolicyConfiguration +} + +// DaprComponentResiliencyPolicyTimeoutPolicyConfiguration - Dapr Component Resiliency Policy Timeout Policy Configuration. +type DaprComponentResiliencyPolicyTimeoutPolicyConfiguration struct { + // The optional response timeout in seconds + ResponseTimeoutInSeconds *int32 +} + +// DaprComponentServiceBinding - Configuration to bind a Dapr Component to a dev ContainerApp Service +type DaprComponentServiceBinding struct { + // Service bind metadata + Metadata *DaprServiceBindMetadata + + // Name of the service bind + Name *string + + // Resource id of the target service + ServiceID *string +} + +// DaprComponentsCollection - Dapr Components ARM resource. +type DaprComponentsCollection struct { + // REQUIRED; Collection of resources. + Value []*DaprComponent + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// DaprConfiguration - Configuration properties Dapr component +type DaprConfiguration struct { + // READ-ONLY; The version of Dapr + Version *string +} + +// DaprMetadata - Dapr component metadata. +type DaprMetadata struct { + // Metadata property name. + Name *string + + // Name of the Dapr Component secret from which to pull the metadata property value. + SecretRef *string + + // Metadata property value. + Value *string +} + +// DaprSecret - Dapr component Secret for ListSecrets Action +type DaprSecret struct { + // READ-ONLY; Secret Name. + Name *string + + // READ-ONLY; Secret Value. + Value *string +} + +// DaprSecretsCollection - Dapr component Secrets Collection for ListSecrets Action. +type DaprSecretsCollection struct { + // REQUIRED; Collection of secrets used by a Dapr component + Value []*DaprSecret +} + +// DaprServiceBindMetadata - Dapr component metadata. +type DaprServiceBindMetadata struct { + // Service bind metadata property name. + Name *string + + // Service bind metadata property value. + Value *string +} + +// DaprSubscription - Dapr PubSub Event Subscription. +type DaprSubscription struct { + // Dapr PubSub Event Subscription resource specific properties + Properties *DaprSubscriptionProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// DaprSubscriptionBulkSubscribeOptions - Dapr PubSub Bulk Subscription Options. +type DaprSubscriptionBulkSubscribeOptions struct { + // Enable bulk subscription + Enabled *bool + + // Maximum duration in milliseconds to wait before a bulk message is sent to the app. + MaxAwaitDurationMs *int32 + + // Maximum number of messages to deliver in a bulk message. + MaxMessagesCount *int32 +} + +// DaprSubscriptionProperties - Dapr PubSub Event Subscription resource specific properties +type DaprSubscriptionProperties struct { + // Bulk subscription options + BulkSubscribe *DaprSubscriptionBulkSubscribeOptions + + // Deadletter topic name + DeadLetterTopic *string + + // Subscription metadata + Metadata map[string]*string + + // Dapr PubSub component name + PubsubName *string + + // Subscription routes + Routes *DaprSubscriptionRoutes + + // Application scopes to restrict the subscription to specific apps. + Scopes []*string + + // Topic name + Topic *string +} + +// DaprSubscriptionRouteRule - Dapr Pubsub Event Subscription Route Rule is used to specify the condition for sending a message +// to a specific path. +type DaprSubscriptionRouteRule struct { + // The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. + // The rules are tested in the order specified, so they should be define from + // most-to-least specific. The default route should appear last in the list. + Match *string + + // The path for events that match this rule + Path *string +} + +// DaprSubscriptionRoutes - Dapr PubSub Event Subscription Routes configuration. +type DaprSubscriptionRoutes struct { + // The default path to deliver events that do not match any of the rules. + Default *string + + // The list of Dapr PubSub Event Subscription Route Rules. + Rules []*DaprSubscriptionRouteRule +} + +// DaprSubscriptionsCollection - Dapr Subscriptions ARM resource. +type DaprSubscriptionsCollection struct { + // REQUIRED; Collection of resources. + Value []*DaprSubscription + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// DataDogConfiguration - Configuration of datadog +type DataDogConfiguration struct { + // The data dog api key + Key *string + + // The data dog site + Site *string +} + +// DefaultAuthorizationPolicy - The configuration settings of the Azure Active Directory default authorization policy. +type DefaultAuthorizationPolicy struct { + // The configuration settings of the Azure Active Directory allowed applications. + AllowedApplications []*string + + // The configuration settings of the Azure Active Directory allowed principals. + AllowedPrincipals *AllowedPrincipals +} + +// DefaultErrorResponse - App Service error response. +type DefaultErrorResponse struct { + // READ-ONLY; Error model. + Error *DefaultErrorResponseError +} + +// DefaultErrorResponseError - Error model. +type DefaultErrorResponseError struct { + // Details or the error + Details []*DefaultErrorResponseErrorDetailsItem + + // READ-ONLY; Standardized string to programmatically identify the error. + Code *string + + // READ-ONLY; More information to debug error. + Innererror *string + + // READ-ONLY; Detailed error description and debugging information. + Message *string + + // READ-ONLY; Detailed error description and debugging information. + Target *string +} + +// DefaultErrorResponseErrorDetailsItem - Detailed errors. +type DefaultErrorResponseErrorDetailsItem struct { + // READ-ONLY; Standardized string to programmatically identify the error. + Code *string + + // READ-ONLY; Detailed error description and debugging information. + Message *string + + // READ-ONLY; Detailed error description and debugging information. + Target *string +} + +// DestinationsConfiguration - Configuration of Open Telemetry destinations +type DestinationsConfiguration struct { + // Open telemetry datadog destination configuration + DataDogConfiguration *DataDogConfiguration + + // Open telemetry otlp configurations + OtlpConfigurations []*OtlpConfiguration +} + +// DiagnosticDataProviderMetadata - Details of a diagnostics data provider +type DiagnosticDataProviderMetadata struct { + // Collection of properties + PropertyBag []*DiagnosticDataProviderMetadataPropertyBagItem + + // Name of data provider + ProviderName *string +} + +// DiagnosticDataProviderMetadataPropertyBagItem - Property details +type DiagnosticDataProviderMetadataPropertyBagItem struct { + // Property name + Name *string + + // Property value + Value *string +} + +// DiagnosticDataTableResponseColumn - Diagnostics data column +type DiagnosticDataTableResponseColumn struct { + // Column name + ColumnName *string + + // Column type + ColumnType *string + + // Data type of the column + DataType *string +} + +// DiagnosticDataTableResponseObject - Diagnostics data table +type DiagnosticDataTableResponseObject struct { + // Columns in the table + Columns []*DiagnosticDataTableResponseColumn + + // Rows in the table + Rows []any + + // Table name + TableName *string +} + +// DiagnosticRendering - Rendering details of a diagnostics table +type DiagnosticRendering struct { + // Description of the table + Description *string + + // Flag if the table should be rendered + IsVisible *bool + + // Title of the table + Title *string + + // Rendering type + Type *int32 +} + +// DiagnosticSupportTopic - Support topic information +type DiagnosticSupportTopic struct { + // READ-ONLY; Unique topic identifier + ID *string + + // READ-ONLY; PES identifier + PesID *string +} + +// Diagnostics data for a resource. +type Diagnostics struct { + // Diagnostics resource specific properties + Properties *DiagnosticsProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// DiagnosticsCollection - Diagnostics data collection for a resource. +type DiagnosticsCollection struct { + // REQUIRED; Collection of diagnostic data. + Value []*Diagnostics + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// DiagnosticsDataAPIResponse - Diagnostics data returned from a detector +type DiagnosticsDataAPIResponse struct { + // Details of the table response + RenderingProperties *DiagnosticRendering + + // Table response + Table *DiagnosticDataTableResponseObject +} + +// DiagnosticsDefinition - Metadata of the diagnostics response +type DiagnosticsDefinition struct { + // List of analysis types + AnalysisTypes []*string + + // List of support topics + SupportTopicList []*DiagnosticSupportTopic + + // READ-ONLY; Authors' names of the detector + Author *string + + // READ-ONLY; Category of the detector + Category *string + + // READ-ONLY; Details of the diagnostics info + Description *string + + // READ-ONLY; Unique detector name + ID *string + + // READ-ONLY; Display Name of the detector + Name *string + + // READ-ONLY; Authors' names of the detector + Score *float32 + + // READ-ONLY; Authors' names of the detector + Type *string +} + +// DiagnosticsProperties - Diagnostics resource specific properties +type DiagnosticsProperties struct { + // List of data providers' metadata. + DataProviderMetadata *DiagnosticDataProviderMetadata + + // Set of data collections associated with the response. + Dataset []*DiagnosticsDataAPIResponse + + // Metadata of the diagnostics response. + Metadata *DiagnosticsDefinition + + // Status of the diagnostics response. + Status *DiagnosticsStatus +} + +// DiagnosticsStatus - Rendering details of a diagnostics table +type DiagnosticsStatus struct { + // Diagnostic message + Message *string + + // Status + StatusID *int32 +} + +// DotNetComponent - .NET Component. +type DotNetComponent struct { + // .NET Component resource specific properties + Properties *DotNetComponentProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// DotNetComponentConfigurationProperty - Configuration properties for a .NET Component +type DotNetComponentConfigurationProperty struct { + // The name of the property + PropertyName *string + + // The value of the property + Value *string +} + +// DotNetComponentProperties - .NET Component resource specific properties +type DotNetComponentProperties struct { + // Type of the .NET Component. + ComponentType *DotNetComponentType + + // List of .NET Components configuration properties + Configurations []*DotNetComponentConfigurationProperty + + // List of .NET Components that are bound to the .NET component + ServiceBinds []*DotNetComponentServiceBind + + // READ-ONLY; Provisioning state of the .NET Component. + ProvisioningState *DotNetComponentProvisioningState +} + +// DotNetComponentServiceBind - Configuration to bind a .NET Component to another .NET Component +type DotNetComponentServiceBind struct { + // Name of the service bind + Name *string + + // Resource id of the target service + ServiceID *string +} + +// DotNetComponentsCollection - .NET Components ARM resource. +type DotNetComponentsCollection struct { + // REQUIRED; Collection of resources. + Value []*DotNetComponent + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// EncryptionSettings - The configuration settings of the secrets references of encryption key and signing key for ContainerApp +// Service Authentication/Authorization. +type EncryptionSettings struct { + // The secret name which is referenced for EncryptionKey. + ContainerAppAuthEncryptionSecretName *string + + // The secret name which is referenced for SigningKey. + ContainerAppAuthSigningSecretName *string +} + +// EnvironmentAuthToken - Environment Auth Token. +type EnvironmentAuthToken struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Environment auth token resource specific properties + Properties *EnvironmentAuthTokenProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// EnvironmentAuthTokenProperties - Environment auth token resource specific properties +type EnvironmentAuthTokenProperties struct { + // READ-ONLY; Token expiration date. + Expires *time.Time + + // READ-ONLY; Auth token value. + Token *string +} + +// EnvironmentVar - Container App container environment variable. +type EnvironmentVar struct { + // Environment variable name. + Name *string + + // Name of the Container App secret from which to pull the environment variable value. + SecretRef *string + + // Non-secret environment variable value. + Value *string +} + +// EnvironmentVariable - Model representing an environment variable. +type EnvironmentVariable struct { + // REQUIRED; Environment variable name. + Name *string + + // REQUIRED; Environment variable value. + Value *string +} + +// ErrorAdditionalInfo - The resource management error additional info. +type ErrorAdditionalInfo struct { + // READ-ONLY; The additional info. + Info any + + // READ-ONLY; The additional info type. + Type *string +} + +// ErrorDetail - The error detail. +type ErrorDetail struct { + // READ-ONLY; The error additional info. + AdditionalInfo []*ErrorAdditionalInfo + + // READ-ONLY; The error code. + Code *string + + // READ-ONLY; The error details. + Details []*ErrorDetail + + // READ-ONLY; The error message. + Message *string + + // READ-ONLY; The error target. + Target *string +} + +// ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. +// (This also follows the OData error response format.). +type ErrorResponse struct { + // The error object. + Error *ErrorDetail +} + +// ExtendedLocation - The complex type of the extended location. +type ExtendedLocation struct { + // The name of the extended location. + Name *string + + // The type of the extended location. + Type *ExtendedLocationTypes +} + +// Facebook - The configuration settings of the Facebook provider. +type Facebook struct { + // false if the Facebook provider should not be enabled despite the set registration; otherwise, true. + Enabled *bool + + // The version of the Facebook api to be used while logging in. + GraphAPIVersion *string + + // The configuration settings of the login flow. + Login *LoginScopes + + // The configuration settings of the app registration for the Facebook provider. + Registration *AppRegistration +} + +// ForwardProxy - The configuration settings of a forward proxy used to make the requests. +type ForwardProxy struct { + // The convention used to determine the url of the request made. + Convention *ForwardProxyConvention + + // The name of the header containing the host of the request. + CustomHostHeaderName *string + + // The name of the header containing the scheme of the request. + CustomProtoHeaderName *string +} + +// GitHub - The configuration settings of the GitHub provider. +type GitHub struct { + // false if the GitHub provider should not be enabled despite the set registration; otherwise, true. + Enabled *bool + + // The configuration settings of the login flow. + Login *LoginScopes + + // The configuration settings of the app registration for the GitHub provider. + Registration *ClientRegistration +} + +// GithubActionConfiguration - Configuration properties that define the mutable settings of a Container App SourceControl +type GithubActionConfiguration struct { + // AzureCredentials configurations. + AzureCredentials *AzureCredentials + + // List of environment variables to be passed to the build. + BuildEnvironmentVariables []*EnvironmentVariable + + // Context path + ContextPath *string + + // One time Github PAT to configure github environment + GithubPersonalAccessToken *string + + // Image name + Image *string + + // Operation system + OS *string + + // Code or Image + PublishType *string + + // Registry configurations. + RegistryInfo *RegistryInfo + + // Runtime stack + RuntimeStack *string + + // Runtime version + RuntimeVersion *string +} + +// GlobalValidation - The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization. +type GlobalValidation struct { + // The paths for which unauthenticated flow would not be redirected to the login page. + ExcludedPaths []*string + + // The default authentication provider to use when multiple providers are configured. This setting is only needed if multiple + // providers are configured and the unauthenticated client action is set to + // "RedirectToLoginPage". + RedirectToProvider *string + + // The action to take when an unauthenticated client attempts to access the app. + UnauthenticatedClientAction *UnauthenticatedClientActionV2 +} + +// Google - The configuration settings of the Google provider. +type Google struct { + // false if the Google provider should not be enabled despite the set registration; otherwise, true. + Enabled *bool + + // The configuration settings of the login flow. + Login *LoginScopes + + // The configuration settings of the app registration for the Google provider. + Registration *ClientRegistration + + // The configuration settings of the Azure Active Directory token validation flow. + Validation *AllowedAudiencesValidation +} + +// HTTPConnectionPool - Defines parameters for http connection pooling +type HTTPConnectionPool struct { + // Maximum number of pending http1 requests allowed + HTTP1MaxPendingRequests *int32 + + // Maximum number of http2 requests allowed + HTTP2MaxRequests *int32 +} + +// HTTPGet - Model representing a http get request. +type HTTPGet struct { + // REQUIRED; URL to make HTTP GET request against. + URL *string + + // Name of the file that the request should be saved to. + FileName *string + + // List of headers to send with the request. + Headers []*string +} + +// HTTPRetryPolicy - Policy that defines http request retry conditions +type HTTPRetryPolicy struct { + // Conditions that must be met for a request to be retried + Matches *HTTPRetryPolicyMatches + + // Maximum number of times a request will retry + MaxRetries *int32 + + // Settings for retry backoff characteristics + RetryBackOff *HTTPRetryPolicyRetryBackOff +} + +// HTTPRetryPolicyMatches - Conditions that must be met for a request to be retried +type HTTPRetryPolicyMatches struct { + // Errors that can trigger a retry + Errors []*string + + // Additional http status codes that can trigger a retry + HTTPStatusCodes []*int32 + + // Headers that must be present for a request to be retried + Headers []*HeaderMatch +} + +// HTTPRetryPolicyRetryBackOff - Settings for retry backoff characteristics +type HTTPRetryPolicyRetryBackOff struct { + // Initial delay, in milliseconds, before retrying a request + InitialDelayInMilliseconds *int64 + + // Maximum interval, in milliseconds, between retries + MaxIntervalInMilliseconds *int64 +} + +// HTTPScaleRule - Container App container Http scaling rule. +type HTTPScaleRule struct { + // Authentication secrets for the custom scale rule. + Auth []*ScaleRuleAuth + + // Metadata properties to describe http scale rule. + Metadata map[string]*string +} + +// HTTPSettings - The configuration settings of the HTTP requests for authentication and authorization requests made against +// ContainerApp Service Authentication/Authorization. +type HTTPSettings struct { + // The configuration settings of a forward proxy used to make the requests. + ForwardProxy *ForwardProxy + + // false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true. + RequireHTTPS *bool + + // The configuration settings of the paths HTTP requests. + Routes *HTTPSettingsRoutes +} + +// HTTPSettingsRoutes - The configuration settings of the paths HTTP requests. +type HTTPSettingsRoutes struct { + // The prefix that should precede all the authentication/authorization paths. + APIPrefix *string +} + +// Header of otlp configuration +type Header struct { + // The key of otlp configuration header + Key *string + + // The value of otlp configuration header + Value *string +} + +// HeaderMatch - Conditions required to match a header +type HeaderMatch struct { + // Name of the header + Header *string + + // Type of match to perform + Match *HeaderMatchMatch +} + +// HeaderMatchMatch - Type of match to perform +type HeaderMatchMatch struct { + // Exact value of the header + ExactMatch *string + + // Prefix value of the header + PrefixMatch *string + + // Regex value of the header + RegexMatch *string + + // Suffix value of the header + SuffixMatch *string +} + +// IPSecurityRestrictionRule - Rule to restrict incoming IP address. +type IPSecurityRestrictionRule struct { + // REQUIRED; Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny + Action *Action + + // REQUIRED; CIDR notation to match incoming IP address + IPAddressRange *string + + // REQUIRED; Name for the IP restriction rule. + Name *string + + // Describe the IP restriction rule that is being sent to the container-app. This is an optional field. + Description *string +} + +// IdentityProviders - The configuration settings of each of the identity providers used to configure ContainerApp Service +// Authentication/Authorization. +type IdentityProviders struct { + // The configuration settings of the Apple provider. + Apple *Apple + + // The configuration settings of the Azure Active directory provider. + AzureActiveDirectory *AzureActiveDirectory + + // The configuration settings of the Azure Static Web Apps provider. + AzureStaticWebApps *AzureStaticWebApps + + // The map of the name of the alias of each custom Open ID Connect provider to the configuration settings of the custom Open + // ID Connect provider. + CustomOpenIDConnectProviders map[string]*CustomOpenIDConnectProvider + + // The configuration settings of the Facebook provider. + Facebook *Facebook + + // The configuration settings of the GitHub provider. + GitHub *GitHub + + // The configuration settings of the Google provider. + Google *Google + + // The configuration settings of the Twitter provider. + Twitter *Twitter +} + +// Ingress - Container App Ingress configuration. +type Ingress struct { + // Settings to expose additional ports on container app + AdditionalPortMappings []*IngressPortMapping + + // Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS + // connections + AllowInsecure *bool + + // Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding. Accept + // indicates server forwards client certificate but does not require a client + // certificate. Require indicates server requires a client certificate. + ClientCertificateMode *IngressClientCertificateMode + + // CORS policy for container app + CorsPolicy *CorsPolicy + + // custom domain bindings for Container Apps' hostnames. + CustomDomains []*CustomDomain + + // Exposed Port in containers for TCP traffic from ingress + ExposedPort *int32 + + // Bool indicating if app exposes an external http endpoint + External *bool + + // Rules to restrict incoming IP address. + IPSecurityRestrictions []*IPSecurityRestrictionRule + + // Sticky Sessions for Single Revision Mode + StickySessions *IngressStickySessions + + // Target Port in containers for traffic from ingress + TargetPort *int32 + + // Whether an http app listens on http or https + TargetPortHTTPScheme *IngressTargetPortHTTPScheme + + // Traffic weights for app's revisions + Traffic []*TrafficWeight + + // Ingress transport protocol + Transport *IngressTransportMethod + + // READ-ONLY; Hostname. + Fqdn *string +} + +// IngressPortMapping - Port mappings of container app ingress +type IngressPortMapping struct { + // REQUIRED; Specifies whether the app port is accessible outside of the environment + External *bool + + // REQUIRED; Specifies the port user's container listens on + TargetPort *int32 + + // Specifies the exposed port for the target port. If not specified, it defaults to target port + ExposedPort *int32 +} + +// IngressStickySessions - Sticky Sessions for Single Revision Mode +type IngressStickySessions struct { + // Sticky Session Affinity + Affinity *Affinity +} + +// InitContainer - Container App init container definition +type InitContainer struct { + // Container start command arguments. + Args []*string + + // Container start command. + Command []*string + + // Container environment variables. + Env []*EnvironmentVar + + // Container image tag. + Image *string + + // Custom container name. + Name *string + + // Container resource requirements. + Resources *ContainerResources + + // Container volume mounts. + VolumeMounts []*VolumeMount +} + +// JavaComponent - Java Component. +type JavaComponent struct { + // Java Component resource specific properties + Properties *JavaComponentProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// JavaComponentConfigurationProperty - Configuration properties for a Java Component +type JavaComponentConfigurationProperty struct { + // The name of the property + PropertyName *string + + // The value of the property + Value *string +} + +// JavaComponentProperties - Java Component resource specific properties +type JavaComponentProperties struct { + // Type of the Java Component. + ComponentType *JavaComponentType + + // List of Java Components configuration properties + Configurations []*JavaComponentConfigurationProperty + + // List of Java Components that are bound to the Java component + ServiceBinds []*JavaComponentServiceBind + + // READ-ONLY; Provisioning state of the Java Component. + ProvisioningState *JavaComponentProvisioningState +} + +// JavaComponentServiceBind - Configuration to bind a Java Component to another Java Component +type JavaComponentServiceBind struct { + // Name of the service bind + Name *string + + // Resource id of the target service + ServiceID *string +} + +// JavaComponentsCollection - Java Components ARM resource. +type JavaComponentsCollection struct { + // REQUIRED; Collection of resources. + Value []*JavaComponent + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// Job - Container App Job +type Job struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // The complex type of the extended location. + ExtendedLocation *ExtendedLocation + + // Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials + // in code. + Identity *ManagedServiceIdentity + + // Container Apps Job resource specific properties. + Properties *JobProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// JobConfiguration - Non versioned Container Apps Job configuration properties +type JobConfiguration struct { + // REQUIRED; Maximum number of seconds a replica is allowed to run. + ReplicaTimeout *int32 + + // REQUIRED; Trigger type of the job + TriggerType *TriggerType + + // Trigger configuration of an event driven job. + EventTriggerConfig *JobConfigurationEventTriggerConfig + + // Manual trigger configuration for a single execution job. Properties replicaCompletionCount and parallelism would be set + // to 1 by default + ManualTriggerConfig *JobConfigurationManualTriggerConfig + + // Collection of private container registry credentials used by a Container apps job + Registries []*RegistryCredentials + + // Maximum number of retries before failing the job. + ReplicaRetryLimit *int32 + + // Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set + // to 1 by default + ScheduleTriggerConfig *JobConfigurationScheduleTriggerConfig + + // Collection of secrets used by a Container Apps Job + Secrets []*Secret +} + +// JobConfigurationEventTriggerConfig - Trigger configuration of an event driven job. +type JobConfigurationEventTriggerConfig struct { + // Number of parallel replicas of a job that can run at a given time. + Parallelism *int32 + + // Minimum number of successful replica completions before overall job completion. + ReplicaCompletionCount *int32 + + // Scaling configurations for event driven jobs. + Scale *JobScale +} + +// JobConfigurationManualTriggerConfig - Manual trigger configuration for a single execution job. Properties replicaCompletionCount +// and parallelism would be set to 1 by default +type JobConfigurationManualTriggerConfig struct { + // Number of parallel replicas of a job that can run at a given time. + Parallelism *int32 + + // Minimum number of successful replica completions before overall job completion. + ReplicaCompletionCount *int32 +} + +// JobConfigurationScheduleTriggerConfig - Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties +// completions and parallelism would be set to 1 by default +type JobConfigurationScheduleTriggerConfig struct { + // REQUIRED; Cron formatted repeating schedule ("* * * * *") of a Cron Job. + CronExpression *string + + // Number of parallel replicas of a job that can run at a given time. + Parallelism *int32 + + // Minimum number of successful replica completions before overall job completion. + ReplicaCompletionCount *int32 +} + +// JobExecution - Container Apps Job execution. +type JobExecution struct { + // Job execution Id. + ID *string + + // Job execution Name. + Name *string + + // Container Apps Job execution specific properties. + Properties *JobExecutionProperties + + // Job execution type + Type *string +} + +// JobExecutionBase - Container App's Job execution name. +type JobExecutionBase struct { + // Job execution Id. + ID *string + + // Job execution name. + Name *string +} + +// JobExecutionContainer - Container Apps Jobs execution container definition. +type JobExecutionContainer struct { + // Container start command arguments. + Args []*string + + // Container start command. + Command []*string + + // Container environment variables. + Env []*EnvironmentVar + + // Container image tag. + Image *string + + // Custom container name. + Name *string + + // Container resource requirements. + Resources *ContainerResources +} + +// JobExecutionNamesCollection - Container App executions names list. +type JobExecutionNamesCollection struct { + // REQUIRED; Collection of resources. + Value []*JobExecutionBase +} + +// JobExecutionProperties - Container Apps Job execution specific properties. +type JobExecutionProperties struct { + // Job execution end time. + EndTime *time.Time + + // Job execution start time. + StartTime *time.Time + + // Job's execution container. + Template *JobExecutionTemplate + + // READ-ONLY; Current running State of the job + Status *JobExecutionRunningState +} + +// JobExecutionTemplate - Job's execution template, containing container configuration for a job's execution +type JobExecutionTemplate struct { + // List of container definitions for the Container Apps Job. + Containers []*JobExecutionContainer + + // List of specialized containers that run before job containers. + InitContainers []*JobExecutionContainer +} + +// JobPatchProperties - Container Apps Job resource specific properties. +type JobPatchProperties struct { + // The complex type of the extended location. + ExtendedLocation *ExtendedLocation + + // Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials + // in code. + Identity *ManagedServiceIdentity + Properties *JobPatchPropertiesProperties + + // Resource tags. + Tags map[string]*string +} + +type JobPatchPropertiesProperties struct { + // Container Apps Job configuration properties. + Configuration *JobConfiguration + + // Resource ID of environment. + EnvironmentID *string + + // The endpoint of the eventstream of the container apps job. + EventStreamEndpoint *string + + // Outbound IP Addresses of a container apps job. + OutboundIPAddresses []*string + + // Container Apps job definition. + Template *JobTemplate +} + +// JobProperties - Container Apps Job resource specific properties. +type JobProperties struct { + // Container Apps Job configuration properties. + Configuration *JobConfiguration + + // Resource ID of environment. + EnvironmentID *string + + // Container Apps job definition. + Template *JobTemplate + + // Workload profile name to pin for container apps job execution. + WorkloadProfileName *string + + // READ-ONLY; The endpoint of the eventstream of the container apps job. + EventStreamEndpoint *string + + // READ-ONLY; Outbound IP Addresses of a container apps job. + OutboundIPAddresses []*string + + // READ-ONLY; Provisioning state of the Container Apps Job. + ProvisioningState *JobProvisioningState +} + +// JobScale - Scaling configurations for event driven jobs. +type JobScale struct { + // Maximum number of job executions that are created for a trigger, default 100. + MaxExecutions *int32 + + // Minimum number of job executions that are created for a trigger, default 0 + MinExecutions *int32 + + // Interval to check each event source in seconds. Defaults to 30s + PollingInterval *int32 + + // Scaling rules. + Rules []*JobScaleRule +} + +// JobScaleRule - Scaling rule. +type JobScaleRule struct { + // Authentication secrets for the scale rule. + Auth []*ScaleRuleAuth + + // Metadata properties to describe the scale rule. + Metadata any + + // Scale Rule Name + Name *string + + // Type of the scale rule eg: azure-servicebus, redis etc. + Type *string +} + +// JobSecretsCollection - Container Apps Job Secrets Collection ARM resource. +type JobSecretsCollection struct { + // REQUIRED; Collection of resources. + Value []*Secret +} + +// JobTemplate - Container Apps Job versioned application definition. Defines the desired state of an immutable revision. +// Any changes to this section Will result in a new revision being created +type JobTemplate struct { + // List of container definitions for the Container App. + Containers []*Container + + // List of specialized containers that run before app containers. + InitContainers []*InitContainer + + // List of volume definitions for the Container App. + Volumes []*Volume +} + +// JobsCollection - Container Apps Jobs collection ARM resource. +type JobsCollection struct { + // REQUIRED; Collection of resources. + Value []*Job + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// JwtClaimChecks - The configuration settings of the checks that should be made while validating the JWT Claims. +type JwtClaimChecks struct { + // The list of the allowed client applications. + AllowedClientApplications []*string + + // The list of the allowed groups. + AllowedGroups []*string +} + +// KedaConfiguration - Configuration properties Keda component +type KedaConfiguration struct { + // READ-ONLY; The version of Keda + Version *string +} + +type ListUsagesResult struct { + // The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page + // of compute resource usage information. + NextLink *string + + // The list of compute resource usages. + Value []*Usage +} + +// LogAnalyticsConfiguration - Log Analytics configuration, must only be provided when destination is configured as 'log-analytics' +type LogAnalyticsConfiguration struct { + // Log analytics customer id + CustomerID *string + + // Boolean indicating whether to parse json string log into dynamic json columns + DynamicJSONColumns *bool + + // Log analytics customer key + SharedKey *string +} + +// Login - The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization. +type Login struct { + // External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part + // of the URL is ignored. This is an advanced setting typically only needed by + // Windows Store application backends. Note that URLs within the current domain are always implicitly allowed. + AllowedExternalRedirectUrls []*string + + // The configuration settings of the session cookie's expiration. + CookieExpiration *CookieExpiration + + // The configuration settings of the nonce used in the login flow. + Nonce *Nonce + + // true if the fragments from the request are preserved after the login request is made; otherwise, false. + PreserveURLFragmentsForLogins *bool + + // The routes that specify the endpoints used for login and logout requests. + Routes *LoginRoutes + + // The configuration settings of the token store. + TokenStore *TokenStore +} + +// LoginRoutes - The routes that specify the endpoints used for login and logout requests. +type LoginRoutes struct { + // The endpoint at which a logout request should be made. + LogoutEndpoint *string +} + +// LoginScopes - The configuration settings of the login flow, including the scopes that should be requested. +type LoginScopes struct { + // A list of the scopes that should be requested while authenticating. + Scopes []*string +} + +// LogsConfiguration - Configuration of Open Telemetry logs +type LogsConfiguration struct { + // Open telemetry logs destinations + Destinations []*string +} + +// ManagedCertificate - Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment +type ManagedCertificate struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Certificate resource specific properties + Properties *ManagedCertificateProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ManagedCertificateCollection - Collection of Managed Certificates. +type ManagedCertificateCollection struct { + // REQUIRED; Collection of resources. + Value []*ManagedCertificate + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// ManagedCertificatePatch - A managed certificate to update +type ManagedCertificatePatch struct { + // Application-specific metadata in the form of key-value pairs. + Tags map[string]*string +} + +// ManagedCertificateProperties - Certificate resource specific properties +type ManagedCertificateProperties struct { + // Selected type of domain control validation for managed certificates. + DomainControlValidation *ManagedCertificateDomainControlValidation + + // Subject name of the certificate. + SubjectName *string + + // READ-ONLY; Any error occurred during the certificate provision. + Error *string + + // READ-ONLY; Provisioning state of the certificate. + ProvisioningState *CertificateProvisioningState + + // READ-ONLY; A TXT token used for DNS TXT domain control validation when issuing this type of managed certificates. + ValidationToken *string +} + +// ManagedEnvironment - An environment for hosting container apps +type ManagedEnvironment struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or + // credentials in code. + Identity *ManagedServiceIdentity + + // Kind of the Environment. + Kind *string + + // Managed environment resource specific properties + Properties *ManagedEnvironmentProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ManagedEnvironmentProperties - Managed environment resource specific properties +type ManagedEnvironmentProperties struct { + // Environment level Application Insights configuration + AppInsightsConfiguration *AppInsightsConfiguration + + // Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" + // is supported + AppLogsConfiguration *AppLogsConfiguration + + // Custom domain configuration for the environment + CustomDomainConfiguration *CustomDomainConfiguration + + // Application Insights connection string used by Dapr to export Service to Service communication telemetry + DaprAIConnectionString *string + + // Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry + DaprAIInstrumentationKey *string + + // The configuration of Dapr component. + DaprConfiguration *DaprConfiguration + + // Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a + // subnet ID is provided, this resource group will be created in the same + // subscription as the subnet. + InfrastructureResourceGroup *string + + // The configuration of Keda component. + KedaConfiguration *KedaConfiguration + + // Environment Open Telemetry configuration + OpenTelemetryConfiguration *OpenTelemetryConfiguration + + // Peer authentication settings for the Managed Environment + PeerAuthentication *ManagedEnvironmentPropertiesPeerAuthentication + + // Vnet configuration for the environment + VnetConfiguration *VnetConfiguration + + // Workload profiles configured for the Managed Environment. + WorkloadProfiles []*WorkloadProfile + + // Whether or not this Managed Environment is zone-redundant. + ZoneRedundant *bool + + // READ-ONLY; Default Domain Name for the cluster + DefaultDomain *string + + // READ-ONLY; Any errors that occurred during deployment or deployment validation + DeploymentErrors *string + + // READ-ONLY; The endpoint of the eventstream of the Environment. + EventStreamEndpoint *string + + // READ-ONLY; Provisioning state of the Environment. + ProvisioningState *EnvironmentProvisioningState + + // READ-ONLY; Static IP of the Environment + StaticIP *string +} + +// ManagedEnvironmentPropertiesPeerAuthentication - Peer authentication settings for the Managed Environment +type ManagedEnvironmentPropertiesPeerAuthentication struct { + // Mutual TLS authentication settings for the Managed Environment + Mtls *Mtls +} + +// ManagedEnvironmentStorage - Storage resource for managedEnvironment. +type ManagedEnvironmentStorage struct { + // Storage properties + Properties *ManagedEnvironmentStorageProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ManagedEnvironmentStorageProperties - Storage properties +type ManagedEnvironmentStorageProperties struct { + // Azure file properties + AzureFile *AzureFileProperties + + // NFS Azure file properties + NfsAzureFile *NfsAzureFileProperties +} + +// ManagedEnvironmentStoragesCollection - Collection of Storage for Environments +type ManagedEnvironmentStoragesCollection struct { + // REQUIRED; Collection of storage resources. + Value []*ManagedEnvironmentStorage +} + +// ManagedEnvironmentsCollection - Collection of Environments +type ManagedEnvironmentsCollection struct { + // REQUIRED; Collection of resources. + Value []*ManagedEnvironment + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities) +type ManagedServiceIdentity struct { + // REQUIRED; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + Type *ManagedServiceIdentityType + + // The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + // resource ids in the form: + // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + // The dictionary values can be empty objects ({}) in + // requests. + UserAssignedIdentities map[string]*UserAssignedIdentity + + // READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned + // identity. + PrincipalID *string + + // READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + TenantID *string +} + +// MetricsConfiguration - Configuration of Open Telemetry metrics +type MetricsConfiguration struct { + // Open telemetry metrics destinations + Destinations []*string +} + +// Mtls - Configuration properties for mutual TLS authentication +type Mtls struct { + // Boolean indicating whether the mutual TLS authentication is enabled + Enabled *bool +} + +// NfsAzureFileProperties - NFS Azure File Properties. +type NfsAzureFileProperties struct { + // Access mode for storage + AccessMode *AccessMode + + // Server for NFS azure file. + Server *string + + // NFS Azure file share name. + ShareName *string +} + +// Nonce - The configuration settings of the nonce used in the login flow. +type Nonce struct { + // The time after the request is made when the nonce should expire. + NonceExpirationInterval *string + + // false if the nonce should not be validated while completing the login flow; otherwise, true. + ValidateNonce *bool +} + +// OpenIDConnectClientCredential - The authentication client credentials of the custom Open ID Connect provider. +type OpenIDConnectClientCredential struct { + // The app setting that contains the client secret for the custom Open ID Connect provider. + ClientSecretSettingName *string + + // The method that should be used to authenticate the user. + Method *string +} + +// OpenIDConnectConfig - The configuration settings of the endpoints used for the custom Open ID Connect provider. +type OpenIDConnectConfig struct { + // The endpoint to be used to make an authorization request. + AuthorizationEndpoint *string + + // The endpoint that provides the keys necessary to validate the token. + CertificationURI *string + + // The endpoint that issues the token. + Issuer *string + + // The endpoint to be used to request a token. + TokenEndpoint *string + + // The endpoint that contains all the configuration endpoints for the provider. + WellKnownOpenIDConfiguration *string +} + +// OpenIDConnectLogin - The configuration settings of the login flow of the custom Open ID Connect provider. +type OpenIDConnectLogin struct { + // The name of the claim that contains the users name. + NameClaimType *string + + // A list of the scopes that should be requested while authenticating. + Scopes []*string +} + +// OpenIDConnectRegistration - The configuration settings of the app registration for the custom Open ID Connect provider. +type OpenIDConnectRegistration struct { + // The authentication credentials of the custom Open ID Connect provider. + ClientCredential *OpenIDConnectClientCredential + + // The client id of the custom Open ID Connect provider. + ClientID *string + + // The configuration settings of the endpoints used for the custom Open ID Connect provider. + OpenIDConnectConfiguration *OpenIDConnectConfig +} + +// OpenTelemetryConfiguration - Configuration of Open Telemetry +type OpenTelemetryConfiguration struct { + // Open telemetry destinations configuration + DestinationsConfiguration *DestinationsConfiguration + + // Open telemetry logs configuration + LogsConfiguration *LogsConfiguration + + // Open telemetry metrics configuration + MetricsConfiguration *MetricsConfiguration + + // Open telemetry trace configuration + TracesConfiguration *TracesConfiguration +} + +// OperationDetail - Operation detail payload +type OperationDetail struct { + // Display of the operation + Display *OperationDisplay + + // Indicates whether the operation is a data action + IsDataAction *bool + + // Name of the operation + Name *string + + // Origin of the operation + Origin *string +} + +// OperationDisplay - Operation display payload +type OperationDisplay struct { + // Localized friendly description for the operation + Description *string + + // Localized friendly name for the operation + Operation *string + + // Resource provider of the operation + Provider *string + + // Resource of the operation + Resource *string +} + +// OtlpConfiguration - Configuration of otlp +type OtlpConfiguration struct { + // The endpoint of otlp configuration + Endpoint *string + + // Headers of otlp configurations + Headers []*Header + + // Boolean indicating if otlp configuration is insecure + Insecure *bool + + // The name of otlp configuration + Name *string +} + +// PreBuildStep - Model representing a pre-build step. +type PreBuildStep struct { + // Description of the pre-build step. + Description *string + + // Http get request to send before the build. + HTTPGet *HTTPGet + + // List of custom commands to run. + Scripts []*string +} + +// ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a +// location +type ProxyResource struct { + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// QueueScaleRule - Container App container Azure Queue based scaling rule. +type QueueScaleRule struct { + // Authentication secrets for the queue scale rule. + Auth []*ScaleRuleAuth + + // Queue length. + QueueLength *int32 + + // Queue name. + QueueName *string +} + +// RegistryCredentials - Container App Private Registry +type RegistryCredentials struct { + // A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned + // identity Resource ID. For system-assigned identities, use 'system' + Identity *string + + // The name of the Secret that contains the registry login password + PasswordSecretRef *string + + // Container Registry Server + Server *string + + // Container Registry Username + Username *string +} + +// RegistryInfo - Container App registry information. +type RegistryInfo struct { + // registry secret. + RegistryPassword *string + + // registry server Url. + RegistryURL *string + + // registry username. + RegistryUserName *string +} + +// Replica - Container App Revision Replica. +type Replica struct { + // Replica resource specific properties + Properties *ReplicaProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ReplicaCollection - Container App Revision Replicas collection ARM resource. +type ReplicaCollection struct { + // REQUIRED; Collection of resources. + Value []*Replica +} + +// ReplicaContainer - Container object under Container App Revision Replica. +type ReplicaContainer struct { + // The Id of the Container + ContainerID *string + + // The Name of the Container + Name *string + + // The container ready status + Ready *bool + + // The container restart count + RestartCount *int32 + + // The container start status + Started *bool + + // READ-ONLY; Container exec endpoint + ExecEndpoint *string + + // READ-ONLY; Log Stream endpoint + LogStreamEndpoint *string + + // READ-ONLY; Current running state of the container + RunningState *ContainerAppContainerRunningState + + // READ-ONLY; The details of container current running state + RunningStateDetails *string +} + +// ReplicaProperties - Replica resource specific properties +type ReplicaProperties struct { + // The containers collection under a replica. + Containers []*ReplicaContainer + + // The init containers collection under a replica. + InitContainers []*ReplicaContainer + + // READ-ONLY; Timestamp describing when the pod was created by controller + CreatedTime *time.Time + + // READ-ONLY; Current running state of the replica + RunningState *ContainerAppReplicaRunningState + + // READ-ONLY; The details of replica current running state + RunningStateDetails *string +} + +// Resource - Common fields that are returned in the response for all Azure Resource Manager resources +type Resource struct { + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// Revision - Container App Revision. +type Revision struct { + // Revision resource specific properties + Properties *RevisionProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// RevisionCollection - Container App Revisions collection ARM resource. +type RevisionCollection struct { + // REQUIRED; Collection of resources. + Value []*Revision + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// RevisionProperties - Revision resource specific properties +type RevisionProperties struct { + // READ-ONLY; Boolean describing if the Revision is Active + Active *bool + + // READ-ONLY; Timestamp describing when the revision was created by controller + CreatedTime *time.Time + + // READ-ONLY; Fully qualified domain name of the revision + Fqdn *string + + // READ-ONLY; Current health State of the revision + HealthState *RevisionHealthState + + // READ-ONLY; Timestamp describing when the revision was last active. Only meaningful when revision is inactive + LastActiveTime *time.Time + + // READ-ONLY; Optional Field - Platform Error Message + ProvisioningError *string + + // READ-ONLY; Current provisioning State of the revision + ProvisioningState *RevisionProvisioningState + + // READ-ONLY; Number of pods currently running for this revision + Replicas *int32 + + // READ-ONLY; Current running state of the revision + RunningState *RevisionRunningState + + // READ-ONLY; Container App Revision Template with all possible settings and the defaults if user did not provide them. The + // defaults are populated as they were at the creation time + Template *Template + + // READ-ONLY; Traffic weight assigned to this revision + TrafficWeight *int32 +} + +// Scale - Container App scaling configurations. +type Scale struct { + // Optional. Maximum number of container replicas. Defaults to 10 if not set. + MaxReplicas *int32 + + // Optional. Minimum number of container replicas. + MinReplicas *int32 + + // Scaling rules. + Rules []*ScaleRule +} + +// ScaleRule - Container App container scaling rule. +type ScaleRule struct { + // Azure Queue based scaling. + AzureQueue *QueueScaleRule + + // Custom scale rule. + Custom *CustomScaleRule + + // HTTP requests based scaling. + HTTP *HTTPScaleRule + + // Scale Rule Name + Name *string + + // Tcp requests based scaling. + TCP *TCPScaleRule +} + +// ScaleRuleAuth - Auth Secrets for Scale Rule +type ScaleRuleAuth struct { + // Name of the secret from which to pull the auth params. + SecretRef *string + + // Trigger Parameter that uses the secret + TriggerParameter *string +} + +// Secret definition. +type Secret struct { + // Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity. + Identity *string + + // Azure Key Vault URL pointing to the secret referenced by the container app. + KeyVaultURL *string + + // Secret Name. + Name *string + + // Secret Value. + Value *string +} + +// SecretVolumeItem - Secret to be added to volume. +type SecretVolumeItem struct { + // Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef. + Path *string + + // Name of the Container App secret from which to pull the secret value. + SecretRef *string +} + +// SecretsCollection - Container App Secrets Collection ARM resource. +type SecretsCollection struct { + // REQUIRED; Collection of resources. + Value []*ContainerAppSecret +} + +// Service - Container App to be a dev service +type Service struct { + // REQUIRED; Dev ContainerApp service type + Type *string +} + +// ServiceBind - Configuration to bind a ContainerApp to a dev ContainerApp Service +type ServiceBind struct { + // Type of the client to be used to connect to the service + ClientType *string + + // Customized keys for customizing injected values to the app + CustomizedKeys map[string]*string + + // Name of the service bind + Name *string + + // Resource id of the target service + ServiceID *string +} + +// SourceControl - Container App SourceControl. +type SourceControl struct { + // SourceControl resource specific properties + Properties *SourceControlProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// SourceControlCollection - SourceControl collection ARM resource. +type SourceControlCollection struct { + // REQUIRED; Collection of resources. + Value []*SourceControl + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// SourceControlProperties - SourceControl resource specific properties +type SourceControlProperties struct { + // The branch which will trigger the auto deployment + Branch *string + + // Container App Revision Template with all possible settings and the defaults if user did not provide them. The defaults + // are populated as they were at the creation time + GithubActionConfiguration *GithubActionConfiguration + + // The repo url which will be integrated to ContainerApp. + RepoURL *string + + // READ-ONLY; Current provisioning State of the operation + OperationState *SourceControlOperationState +} + +// SystemData - Metadata pertaining to creation and last modification of the resource. +type SystemData struct { + // The timestamp of resource creation (UTC). + CreatedAt *time.Time + + // The identity that created the resource. + CreatedBy *string + + // The type of identity that created the resource. + CreatedByType *CreatedByType + + // The timestamp of resource last modification (UTC) + LastModifiedAt *time.Time + + // The identity that last modified the resource. + LastModifiedBy *string + + // The type of identity that last modified the resource. + LastModifiedByType *CreatedByType +} + +// TCPConnectionPool - Defines parameters for tcp connection pooling +type TCPConnectionPool struct { + // Maximum number of tcp connections allowed + MaxConnections *int32 +} + +// TCPRetryPolicy - Policy that defines tcp request retry conditions +type TCPRetryPolicy struct { + // Maximum number of attempts to connect to the tcp service + MaxConnectAttempts *int32 +} + +// TCPScaleRule - Container App container Tcp scaling rule. +type TCPScaleRule struct { + // Authentication secrets for the tcp scale rule. + Auth []*ScaleRuleAuth + + // Metadata properties to describe tcp scale rule. + Metadata map[string]*string +} + +// Template - Container App versioned application definition. Defines the desired state of an immutable revision. Any changes +// to this section Will result in a new revision being created +type Template struct { + // List of container definitions for the Container App. + Containers []*Container + + // List of specialized containers that run before app containers. + InitContainers []*InitContainer + + // User friendly suffix that is appended to the revision name + RevisionSuffix *string + + // Scaling properties for the Container App. + Scale *Scale + + // List of container app services bound to the app + ServiceBinds []*ServiceBind + + // Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. + // The value zero indicates stop immediately via the kill signal (no opportunity + // to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected + // cleanup time for your process. Defaults to 30 seconds. + TerminationGracePeriodSeconds *int64 + + // List of volume definitions for the Container App. + Volumes []*Volume +} + +// TimeoutPolicy - Policy to set request timeouts +type TimeoutPolicy struct { + // Timeout, in seconds, for a request to initiate a connection + ConnectionTimeoutInSeconds *int32 + + // Timeout, in seconds, for a request to respond + ResponseTimeoutInSeconds *int32 +} + +// TokenStore - The configuration settings of the token store. +type TokenStore struct { + // The configuration settings of the storage of the tokens if blob storage is used. + AzureBlobStorage *BlobStorageTokenStore + + // true to durably store platform-specific security tokens that are obtained during login flows; otherwise, false. The default + // is false. + Enabled *bool + + // The number of hours after session token expiration that a session token can be used to call the token refresh API. The + // default is 72 hours. + TokenRefreshExtensionHours *float64 +} + +// TracesConfiguration - Configuration of Open Telemetry traces +type TracesConfiguration struct { + // Open telemetry traces destinations + Destinations []*string +} + +// TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' +// and a 'location' +type TrackedResource struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// TrafficWeight - Traffic weight assigned to a revision +type TrafficWeight struct { + // Associates a traffic label with a revision + Label *string + + // Indicates that the traffic weight belongs to a latest stable revision + LatestRevision *bool + + // Name of a revision + RevisionName *string + + // Traffic weight assigned to a revision + Weight *int32 +} + +// Twitter - The configuration settings of the Twitter provider. +type Twitter struct { + // false if the Twitter provider should not be enabled despite the set registration; otherwise, true. + Enabled *bool + + // The configuration settings of the app registration for the Twitter provider. + Registration *TwitterRegistration +} + +// TwitterRegistration - The configuration settings of the app registration for the Twitter provider. +type TwitterRegistration struct { + // The OAuth 1.0a consumer key of the Twitter application used for sign-in. This setting is required for enabling Twitter + // Sign-In. Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in + ConsumerKey *string + + // The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. + ConsumerSecretSettingName *string +} + +// Usage - Describes Compute Resource Usage. +type Usage struct { + // REQUIRED; The current usage of the resource. + CurrentValue *float32 + + // REQUIRED; The maximum permitted usage of the resource. + Limit *float32 + + // REQUIRED; The name of the type of usage. + Name *UsageName + + // REQUIRED; An enum describing the unit of usage measurement. + Unit *string +} + +// UsageName - The Usage Names. +type UsageName struct { + // The localized name of the resource. + LocalizedValue *string + + // The name of the resource. + Value *string +} + +// UserAssignedIdentity - User assigned identity properties +type UserAssignedIdentity struct { + // READ-ONLY; The client ID of the assigned identity. + ClientID *string + + // READ-ONLY; The principal ID of the assigned identity. + PrincipalID *string +} + +// VnetConfiguration - Configuration properties for apps environment to join a Virtual Network +type VnetConfiguration struct { + // CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges. + DockerBridgeCidr *string + + // Resource ID of a subnet for infrastructure components. Must not overlap with any other provided IP ranges. + InfrastructureSubnetID *string + + // Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP + // resource. They must provide infrastructureSubnetId if enabling this property + Internal *bool + + // IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other + // provided IP ranges. + PlatformReservedCidr *string + + // An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server. + PlatformReservedDNSIP *string +} + +// Volume definitions for the Container App. +type Volume struct { + // Mount options used while mounting the Azure file share or NFS Azure file share. Must be a comma-separated string. + MountOptions *string + + // Volume name. + Name *string + + // List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume. + Secrets []*SecretVolumeItem + + // Name of storage resource. No need to provide for EmptyDir and Secret. + StorageName *string + + // Storage type for the volume. If not provided, use EmptyDir. + StorageType *StorageType +} + +// VolumeMount - Volume mount for the Container App. +type VolumeMount struct { + // Path within the container at which the volume should be mounted.Must not contain ':'. + MountPath *string + + // Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + SubPath *string + + // This must match the Name of a Volume. + VolumeName *string +} + +// WorkloadProfile - Workload profile to scope container app execution. +type WorkloadProfile struct { + // REQUIRED; Workload profile type for the workloads to run on. + Name *string + + // REQUIRED; Workload profile type for the workloads to run on. + WorkloadProfileType *string + + // The maximum capacity. + MaximumCount *int32 + + // The minimum capacity. + MinimumCount *int32 +} + +// WorkloadProfileStates - Collection of all the workload Profile States for a Managed Environment.. +type WorkloadProfileStates struct { + // Workload Profile resource specific properties. + Properties *WorkloadProfileStatesProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// WorkloadProfileStatesCollection - Collection of workloadProfileStates +type WorkloadProfileStatesCollection struct { + // REQUIRED; Collection of resources. + Value []*WorkloadProfileStates + + // READ-ONLY; Link to next page of resources. + NextLink *string +} + +// WorkloadProfileStatesProperties - Workload Profile resource specific properties. +type WorkloadProfileStatesProperties struct { + // Current count of nodes. + CurrentCount *int32 + + // Maximum count of nodes. + MaximumCount *int32 + + // Minimum count of instances. + MinimumCount *int32 +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models_serde.go new file mode 100644 index 00000000..8c4a7c57 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/models_serde.go @@ -0,0 +1,9883 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type AllowedAudiencesValidation. +func (a AllowedAudiencesValidation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedAudiences", a.AllowedAudiences) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AllowedAudiencesValidation. +func (a *AllowedAudiencesValidation) UnmarshalJSON(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 "allowedAudiences": + err = unpopulate(val, "AllowedAudiences", &a.AllowedAudiences) + 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 AllowedPrincipals. +func (a AllowedPrincipals) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "groups", a.Groups) + populate(objectMap, "identities", a.Identities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AllowedPrincipals. +func (a *AllowedPrincipals) UnmarshalJSON(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 "groups": + err = unpopulate(val, "Groups", &a.Groups) + delete(rawMsg, key) + case "identities": + err = unpopulate(val, "Identities", &a.Identities) + 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 AppInsightsConfiguration. +func (a AppInsightsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectionString", a.ConnectionString) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppInsightsConfiguration. +func (a *AppInsightsConfiguration) UnmarshalJSON(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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AppLogsConfiguration. +func (a AppLogsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "destination", a.Destination) + populate(objectMap, "logAnalyticsConfiguration", a.LogAnalyticsConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppLogsConfiguration. +func (a *AppLogsConfiguration) UnmarshalJSON(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 "destination": + err = unpopulate(val, "Destination", &a.Destination) + delete(rawMsg, key) + case "logAnalyticsConfiguration": + err = unpopulate(val, "LogAnalyticsConfiguration", &a.LogAnalyticsConfiguration) + 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 AppRegistration. +func (a AppRegistration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "appId", a.AppID) + populate(objectMap, "appSecretSettingName", a.AppSecretSettingName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppRegistration. +func (a *AppRegistration) UnmarshalJSON(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 "appId": + err = unpopulate(val, "AppID", &a.AppID) + delete(rawMsg, key) + case "appSecretSettingName": + err = unpopulate(val, "AppSecretSettingName", &a.AppSecretSettingName) + 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 AppResiliency. +func (a AppResiliency) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppResiliency. +func (a *AppResiliency) UnmarshalJSON(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) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &a.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + 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 AppResiliencyCollection. +func (a AppResiliencyCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppResiliencyCollection. +func (a *AppResiliencyCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + 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 AppResiliencyProperties. +func (a AppResiliencyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "circuitBreakerPolicy", a.CircuitBreakerPolicy) + populate(objectMap, "httpConnectionPool", a.HTTPConnectionPool) + populate(objectMap, "httpRetryPolicy", a.HTTPRetryPolicy) + populate(objectMap, "tcpConnectionPool", a.TCPConnectionPool) + populate(objectMap, "tcpRetryPolicy", a.TCPRetryPolicy) + populate(objectMap, "timeoutPolicy", a.TimeoutPolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppResiliencyProperties. +func (a *AppResiliencyProperties) UnmarshalJSON(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 "circuitBreakerPolicy": + err = unpopulate(val, "CircuitBreakerPolicy", &a.CircuitBreakerPolicy) + delete(rawMsg, key) + case "httpConnectionPool": + err = unpopulate(val, "HTTPConnectionPool", &a.HTTPConnectionPool) + delete(rawMsg, key) + case "httpRetryPolicy": + err = unpopulate(val, "HTTPRetryPolicy", &a.HTTPRetryPolicy) + delete(rawMsg, key) + case "tcpConnectionPool": + err = unpopulate(val, "TCPConnectionPool", &a.TCPConnectionPool) + delete(rawMsg, key) + case "tcpRetryPolicy": + err = unpopulate(val, "TCPRetryPolicy", &a.TCPRetryPolicy) + delete(rawMsg, key) + case "timeoutPolicy": + err = unpopulate(val, "TimeoutPolicy", &a.TimeoutPolicy) + 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 Apple. +func (a Apple) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", a.Enabled) + populate(objectMap, "login", a.Login) + populate(objectMap, "registration", a.Registration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Apple. +func (a *Apple) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &a.Enabled) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &a.Login) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &a.Registration) + 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 AppleRegistration. +func (a AppleRegistration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", a.ClientID) + populate(objectMap, "clientSecretSettingName", a.ClientSecretSettingName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppleRegistration. +func (a *AppleRegistration) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &a.ClientID) + delete(rawMsg, key) + case "clientSecretSettingName": + err = unpopulate(val, "ClientSecretSettingName", &a.ClientSecretSettingName) + 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 AuthConfig. +func (a AuthConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthConfig. +func (a *AuthConfig) UnmarshalJSON(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) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &a.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + 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 AuthConfigCollection. +func (a AuthConfigCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthConfigCollection. +func (a *AuthConfigCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + 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 AuthConfigProperties. +func (a AuthConfigProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryptionSettings", a.EncryptionSettings) + populate(objectMap, "globalValidation", a.GlobalValidation) + populate(objectMap, "httpSettings", a.HTTPSettings) + populate(objectMap, "identityProviders", a.IdentityProviders) + populate(objectMap, "login", a.Login) + populate(objectMap, "platform", a.Platform) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthConfigProperties. +func (a *AuthConfigProperties) UnmarshalJSON(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 "encryptionSettings": + err = unpopulate(val, "EncryptionSettings", &a.EncryptionSettings) + delete(rawMsg, key) + case "globalValidation": + err = unpopulate(val, "GlobalValidation", &a.GlobalValidation) + delete(rawMsg, key) + case "httpSettings": + err = unpopulate(val, "HTTPSettings", &a.HTTPSettings) + delete(rawMsg, key) + case "identityProviders": + err = unpopulate(val, "IdentityProviders", &a.IdentityProviders) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &a.Login) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &a.Platform) + 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 AuthPlatform. +func (a AuthPlatform) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", a.Enabled) + populate(objectMap, "runtimeVersion", a.RuntimeVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthPlatform. +func (a *AuthPlatform) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &a.Enabled) + delete(rawMsg, key) + case "runtimeVersion": + err = unpopulate(val, "RuntimeVersion", &a.RuntimeVersion) + 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 AvailableOperations. +func (a AvailableOperations) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailableOperations. +func (a *AvailableOperations) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + 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 AvailableWorkloadProfile. +func (a AvailableWorkloadProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailableWorkloadProfile. +func (a *AvailableWorkloadProfile) UnmarshalJSON(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) + case "location": + err = unpopulate(val, "Location", &a.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &a.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + 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 AvailableWorkloadProfileProperties. +func (a AvailableWorkloadProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicability", a.Applicability) + populate(objectMap, "category", a.Category) + populate(objectMap, "cores", a.Cores) + populate(objectMap, "displayName", a.DisplayName) + populate(objectMap, "gpus", a.Gpus) + populate(objectMap, "memoryGiB", a.MemoryGiB) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailableWorkloadProfileProperties. +func (a *AvailableWorkloadProfileProperties) UnmarshalJSON(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 "applicability": + err = unpopulate(val, "Applicability", &a.Applicability) + delete(rawMsg, key) + case "category": + err = unpopulate(val, "Category", &a.Category) + delete(rawMsg, key) + case "cores": + err = unpopulate(val, "Cores", &a.Cores) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &a.DisplayName) + delete(rawMsg, key) + case "gpus": + err = unpopulate(val, "Gpus", &a.Gpus) + delete(rawMsg, key) + case "memoryGiB": + err = unpopulate(val, "MemoryGiB", &a.MemoryGiB) + 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 AvailableWorkloadProfilesCollection. +func (a AvailableWorkloadProfilesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailableWorkloadProfilesCollection. +func (a *AvailableWorkloadProfilesCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + 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 AzureActiveDirectory. +func (a AzureActiveDirectory) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", a.Enabled) + populate(objectMap, "isAutoProvisioned", a.IsAutoProvisioned) + populate(objectMap, "login", a.Login) + populate(objectMap, "registration", a.Registration) + populate(objectMap, "validation", a.Validation) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureActiveDirectory. +func (a *AzureActiveDirectory) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &a.Enabled) + delete(rawMsg, key) + case "isAutoProvisioned": + err = unpopulate(val, "IsAutoProvisioned", &a.IsAutoProvisioned) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &a.Login) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &a.Registration) + delete(rawMsg, key) + case "validation": + err = unpopulate(val, "Validation", &a.Validation) + 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 AzureActiveDirectoryLogin. +func (a AzureActiveDirectoryLogin) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "disableWWWAuthenticate", a.DisableWWWAuthenticate) + populate(objectMap, "loginParameters", a.LoginParameters) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureActiveDirectoryLogin. +func (a *AzureActiveDirectoryLogin) UnmarshalJSON(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 "disableWWWAuthenticate": + err = unpopulate(val, "DisableWWWAuthenticate", &a.DisableWWWAuthenticate) + delete(rawMsg, key) + case "loginParameters": + err = unpopulate(val, "LoginParameters", &a.LoginParameters) + 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 AzureActiveDirectoryRegistration. +func (a AzureActiveDirectoryRegistration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", a.ClientID) + populate(objectMap, "clientSecretCertificateIssuer", a.ClientSecretCertificateIssuer) + populate(objectMap, "clientSecretCertificateSubjectAlternativeName", a.ClientSecretCertificateSubjectAlternativeName) + populate(objectMap, "clientSecretCertificateThumbprint", a.ClientSecretCertificateThumbprint) + populate(objectMap, "clientSecretSettingName", a.ClientSecretSettingName) + populate(objectMap, "openIdIssuer", a.OpenIDIssuer) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureActiveDirectoryRegistration. +func (a *AzureActiveDirectoryRegistration) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &a.ClientID) + delete(rawMsg, key) + case "clientSecretCertificateIssuer": + err = unpopulate(val, "ClientSecretCertificateIssuer", &a.ClientSecretCertificateIssuer) + delete(rawMsg, key) + case "clientSecretCertificateSubjectAlternativeName": + err = unpopulate(val, "ClientSecretCertificateSubjectAlternativeName", &a.ClientSecretCertificateSubjectAlternativeName) + delete(rawMsg, key) + case "clientSecretCertificateThumbprint": + err = unpopulate(val, "ClientSecretCertificateThumbprint", &a.ClientSecretCertificateThumbprint) + delete(rawMsg, key) + case "clientSecretSettingName": + err = unpopulate(val, "ClientSecretSettingName", &a.ClientSecretSettingName) + delete(rawMsg, key) + case "openIdIssuer": + err = unpopulate(val, "OpenIDIssuer", &a.OpenIDIssuer) + 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 AzureActiveDirectoryValidation. +func (a AzureActiveDirectoryValidation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedAudiences", a.AllowedAudiences) + populate(objectMap, "defaultAuthorizationPolicy", a.DefaultAuthorizationPolicy) + populate(objectMap, "jwtClaimChecks", a.JwtClaimChecks) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureActiveDirectoryValidation. +func (a *AzureActiveDirectoryValidation) UnmarshalJSON(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 "allowedAudiences": + err = unpopulate(val, "AllowedAudiences", &a.AllowedAudiences) + delete(rawMsg, key) + case "defaultAuthorizationPolicy": + err = unpopulate(val, "DefaultAuthorizationPolicy", &a.DefaultAuthorizationPolicy) + delete(rawMsg, key) + case "jwtClaimChecks": + err = unpopulate(val, "JwtClaimChecks", &a.JwtClaimChecks) + 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 AzureCredentials. +func (a AzureCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", a.ClientID) + populate(objectMap, "clientSecret", a.ClientSecret) + populate(objectMap, "kind", a.Kind) + populate(objectMap, "subscriptionId", a.SubscriptionID) + populate(objectMap, "tenantId", a.TenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureCredentials. +func (a *AzureCredentials) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &a.ClientID) + delete(rawMsg, key) + case "clientSecret": + err = unpopulate(val, "ClientSecret", &a.ClientSecret) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &a.Kind) + delete(rawMsg, key) + case "subscriptionId": + err = unpopulate(val, "SubscriptionID", &a.SubscriptionID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &a.TenantID) + 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 AzureFileProperties. +func (a AzureFileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "accessMode", a.AccessMode) + populate(objectMap, "accountKey", a.AccountKey) + populate(objectMap, "accountName", a.AccountName) + populate(objectMap, "shareName", a.ShareName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileProperties. +func (a *AzureFileProperties) UnmarshalJSON(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 "accessMode": + err = unpopulate(val, "AccessMode", &a.AccessMode) + delete(rawMsg, key) + case "accountKey": + err = unpopulate(val, "AccountKey", &a.AccountKey) + delete(rawMsg, key) + case "accountName": + err = unpopulate(val, "AccountName", &a.AccountName) + delete(rawMsg, key) + case "shareName": + err = unpopulate(val, "ShareName", &a.ShareName) + 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 AzureStaticWebApps. +func (a AzureStaticWebApps) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", a.Enabled) + populate(objectMap, "registration", a.Registration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureStaticWebApps. +func (a *AzureStaticWebApps) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &a.Enabled) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &a.Registration) + 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 AzureStaticWebAppsRegistration. +func (a AzureStaticWebAppsRegistration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", a.ClientID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureStaticWebAppsRegistration. +func (a *AzureStaticWebAppsRegistration) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &a.ClientID) + 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 BaseContainer. +func (b BaseContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "args", b.Args) + populate(objectMap, "command", b.Command) + populate(objectMap, "env", b.Env) + populate(objectMap, "image", b.Image) + populate(objectMap, "name", b.Name) + populate(objectMap, "resources", b.Resources) + populate(objectMap, "volumeMounts", b.VolumeMounts) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BaseContainer. +func (b *BaseContainer) UnmarshalJSON(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 "args": + err = unpopulate(val, "Args", &b.Args) + delete(rawMsg, key) + case "command": + err = unpopulate(val, "Command", &b.Command) + delete(rawMsg, key) + case "env": + err = unpopulate(val, "Env", &b.Env) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &b.Image) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &b.Name) + delete(rawMsg, key) + case "resources": + err = unpopulate(val, "Resources", &b.Resources) + delete(rawMsg, key) + case "volumeMounts": + err = unpopulate(val, "VolumeMounts", &b.VolumeMounts) + 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 BillingMeter. +func (b BillingMeter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", b.ID) + populate(objectMap, "location", b.Location) + populate(objectMap, "name", b.Name) + populate(objectMap, "properties", b.Properties) + populate(objectMap, "systemData", b.SystemData) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BillingMeter. +func (b *BillingMeter) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &b.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &b.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &b.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &b.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &b.SystemData) + 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 BillingMeterCollection. +func (b BillingMeterCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", b.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BillingMeterCollection. +func (b *BillingMeterCollection) UnmarshalJSON(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 "value": + err = unpopulate(val, "Value", &b.Value) + 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 BillingMeterProperties. +func (b BillingMeterProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "category", b.Category) + populate(objectMap, "displayName", b.DisplayName) + populate(objectMap, "meterType", b.MeterType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BillingMeterProperties. +func (b *BillingMeterProperties) UnmarshalJSON(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 "category": + err = unpopulate(val, "Category", &b.Category) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &b.DisplayName) + delete(rawMsg, key) + case "meterType": + err = unpopulate(val, "MeterType", &b.MeterType) + 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 BlobStorageTokenStore. +func (b BlobStorageTokenStore) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sasUrlSettingName", b.SasURLSettingName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BlobStorageTokenStore. +func (b *BlobStorageTokenStore) UnmarshalJSON(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 "sasUrlSettingName": + err = unpopulate(val, "SasURLSettingName", &b.SasURLSettingName) + 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 BuildCollection. +func (b BuildCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", b.NextLink) + populate(objectMap, "value", b.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuildCollection. +func (b *BuildCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &b.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &b.Value) + 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 BuildConfiguration. +func (b BuildConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseOs", b.BaseOs) + populate(objectMap, "environmentVariables", b.EnvironmentVariables) + populate(objectMap, "platform", b.Platform) + populate(objectMap, "platformVersion", b.PlatformVersion) + populate(objectMap, "preBuildSteps", b.PreBuildSteps) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuildConfiguration. +func (b *BuildConfiguration) UnmarshalJSON(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 "baseOs": + err = unpopulate(val, "BaseOs", &b.BaseOs) + delete(rawMsg, key) + case "environmentVariables": + err = unpopulate(val, "EnvironmentVariables", &b.EnvironmentVariables) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &b.Platform) + delete(rawMsg, key) + case "platformVersion": + err = unpopulate(val, "PlatformVersion", &b.PlatformVersion) + delete(rawMsg, key) + case "preBuildSteps": + err = unpopulate(val, "PreBuildSteps", &b.PreBuildSteps) + 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 BuildProperties. +func (b BuildProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "buildStatus", b.BuildStatus) + populate(objectMap, "configuration", b.Configuration) + populate(objectMap, "destinationContainerRegistry", b.DestinationContainerRegistry) + populate(objectMap, "logStreamEndpoint", b.LogStreamEndpoint) + populate(objectMap, "provisioningState", b.ProvisioningState) + populate(objectMap, "tokenEndpoint", b.TokenEndpoint) + populate(objectMap, "uploadEndpoint", b.UploadEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuildProperties. +func (b *BuildProperties) UnmarshalJSON(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 "buildStatus": + err = unpopulate(val, "BuildStatus", &b.BuildStatus) + delete(rawMsg, key) + case "configuration": + err = unpopulate(val, "Configuration", &b.Configuration) + delete(rawMsg, key) + case "destinationContainerRegistry": + err = unpopulate(val, "DestinationContainerRegistry", &b.DestinationContainerRegistry) + delete(rawMsg, key) + case "logStreamEndpoint": + err = unpopulate(val, "LogStreamEndpoint", &b.LogStreamEndpoint) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &b.ProvisioningState) + delete(rawMsg, key) + case "tokenEndpoint": + err = unpopulate(val, "TokenEndpoint", &b.TokenEndpoint) + delete(rawMsg, key) + case "uploadEndpoint": + err = unpopulate(val, "UploadEndpoint", &b.UploadEndpoint) + 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 BuildResource. +func (b BuildResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", b.ID) + populate(objectMap, "name", b.Name) + populate(objectMap, "properties", b.Properties) + populate(objectMap, "systemData", b.SystemData) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuildResource. +func (b *BuildResource) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &b.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &b.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &b.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &b.SystemData) + 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 BuildToken. +func (b BuildToken) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "expires", b.Expires) + populate(objectMap, "token", b.Token) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuildToken. +func (b *BuildToken) UnmarshalJSON(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 "expires": + err = unpopulateDateTimeRFC3339(val, "Expires", &b.Expires) + delete(rawMsg, key) + case "token": + err = unpopulate(val, "Token", &b.Token) + 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 BuilderCollection. +func (b BuilderCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", b.NextLink) + populate(objectMap, "value", b.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuilderCollection. +func (b *BuilderCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &b.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &b.Value) + 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 BuilderProperties. +func (b BuilderProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containerRegistries", b.ContainerRegistries) + populate(objectMap, "environmentId", b.EnvironmentID) + populate(objectMap, "provisioningState", b.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuilderProperties. +func (b *BuilderProperties) UnmarshalJSON(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 "containerRegistries": + err = unpopulate(val, "ContainerRegistries", &b.ContainerRegistries) + delete(rawMsg, key) + case "environmentId": + err = unpopulate(val, "EnvironmentID", &b.EnvironmentID) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &b.ProvisioningState) + 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 BuilderResource. +func (b BuilderResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", b.ID) + populate(objectMap, "identity", b.Identity) + populate(objectMap, "location", b.Location) + populate(objectMap, "name", b.Name) + populate(objectMap, "properties", b.Properties) + populate(objectMap, "systemData", b.SystemData) + populate(objectMap, "tags", b.Tags) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuilderResource. +func (b *BuilderResource) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &b.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &b.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &b.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &b.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &b.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &b.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &b.Tags) + 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 BuilderResourceUpdate. +func (b BuilderResourceUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", b.Identity) + populate(objectMap, "properties", b.Properties) + populate(objectMap, "tags", b.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuilderResourceUpdate. +func (b *BuilderResourceUpdate) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &b.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &b.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &b.Tags) + 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 BuilderResourceUpdateProperties. +func (b BuilderResourceUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "environmentId", b.EnvironmentID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BuilderResourceUpdateProperties. +func (b *BuilderResourceUpdateProperties) UnmarshalJSON(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 "environmentId": + err = unpopulate(val, "EnvironmentID", &b.EnvironmentID) + 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 Certificate. +func (c Certificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Certificate. +func (c *Certificate) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, 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 CertificateCollection. +func (c CertificateCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CertificateCollection. +func (c *CertificateCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CertificateKeyVaultProperties. +func (c CertificateKeyVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", c.Identity) + populate(objectMap, "keyVaultUrl", c.KeyVaultURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CertificateKeyVaultProperties. +func (c *CertificateKeyVaultProperties) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) + case "keyVaultUrl": + err = unpopulate(val, "KeyVaultURL", &c.KeyVaultURL) + 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 CertificatePatch. +func (c CertificatePatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", c.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CertificatePatch. +func (c *CertificatePatch) UnmarshalJSON(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 "tags": + err = unpopulate(val, "Tags", &c.Tags) + 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 CertificateProperties. +func (c CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "certificateKeyVaultProperties", c.CertificateKeyVaultProperties) + populate(objectMap, "certificateType", c.CertificateType) + populateDateTimeRFC3339(objectMap, "expirationDate", c.ExpirationDate) + populateDateTimeRFC3339(objectMap, "issueDate", c.IssueDate) + populate(objectMap, "issuer", c.Issuer) + populate(objectMap, "password", c.Password) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "publicKeyHash", c.PublicKeyHash) + populate(objectMap, "subjectAlternativeNames", c.SubjectAlternativeNames) + populate(objectMap, "subjectName", c.SubjectName) + populate(objectMap, "thumbprint", c.Thumbprint) + populate(objectMap, "valid", c.Valid) + populateByteArray(objectMap, "value", c.Value, func() any { + return runtime.EncodeByteArray(c.Value, runtime.Base64StdFormat) + }) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CertificateProperties. +func (c *CertificateProperties) UnmarshalJSON(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 "certificateKeyVaultProperties": + err = unpopulate(val, "CertificateKeyVaultProperties", &c.CertificateKeyVaultProperties) + delete(rawMsg, key) + case "certificateType": + err = unpopulate(val, "CertificateType", &c.CertificateType) + delete(rawMsg, key) + case "expirationDate": + err = unpopulateDateTimeRFC3339(val, "ExpirationDate", &c.ExpirationDate) + delete(rawMsg, key) + case "issueDate": + err = unpopulateDateTimeRFC3339(val, "IssueDate", &c.IssueDate) + delete(rawMsg, key) + case "issuer": + err = unpopulate(val, "Issuer", &c.Issuer) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &c.Password) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "publicKeyHash": + err = unpopulate(val, "PublicKeyHash", &c.PublicKeyHash) + delete(rawMsg, key) + case "subjectAlternativeNames": + err = unpopulate(val, "SubjectAlternativeNames", &c.SubjectAlternativeNames) + delete(rawMsg, key) + case "subjectName": + err = unpopulate(val, "SubjectName", &c.SubjectName) + delete(rawMsg, key) + case "thumbprint": + err = unpopulate(val, "Thumbprint", &c.Thumbprint) + delete(rawMsg, key) + case "valid": + err = unpopulate(val, "Valid", &c.Valid) + delete(rawMsg, key) + case "value": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.Value, runtime.Base64StdFormat) + } + 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 CheckNameAvailabilityRequest. +func (c CheckNameAvailabilityRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityRequest. +func (c *CheckNameAvailabilityRequest) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, 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 CheckNameAvailabilityResponse. +func (c CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "message", c.Message) + populate(objectMap, "nameAvailable", c.NameAvailable) + populate(objectMap, "reason", c.Reason) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityResponse. +func (c *CheckNameAvailabilityResponse) UnmarshalJSON(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 "message": + err = unpopulate(val, "Message", &c.Message) + delete(rawMsg, key) + case "nameAvailable": + err = unpopulate(val, "NameAvailable", &c.NameAvailable) + delete(rawMsg, key) + case "reason": + err = unpopulate(val, "Reason", &c.Reason) + 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 CircuitBreakerPolicy. +func (c CircuitBreakerPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "consecutiveErrors", c.ConsecutiveErrors) + populate(objectMap, "intervalInSeconds", c.IntervalInSeconds) + populate(objectMap, "maxEjectionPercent", c.MaxEjectionPercent) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CircuitBreakerPolicy. +func (c *CircuitBreakerPolicy) UnmarshalJSON(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 "consecutiveErrors": + err = unpopulate(val, "ConsecutiveErrors", &c.ConsecutiveErrors) + delete(rawMsg, key) + case "intervalInSeconds": + err = unpopulate(val, "IntervalInSeconds", &c.IntervalInSeconds) + delete(rawMsg, key) + case "maxEjectionPercent": + err = unpopulate(val, "MaxEjectionPercent", &c.MaxEjectionPercent) + 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 ClientRegistration. +func (c ClientRegistration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", c.ClientID) + populate(objectMap, "clientSecretSettingName", c.ClientSecretSettingName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientRegistration. +func (c *ClientRegistration) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &c.ClientID) + delete(rawMsg, key) + case "clientSecretSettingName": + err = unpopulate(val, "ClientSecretSettingName", &c.ClientSecretSettingName) + 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 Configuration. +func (c Configuration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activeRevisionsMode", c.ActiveRevisionsMode) + populate(objectMap, "dapr", c.Dapr) + populate(objectMap, "ingress", c.Ingress) + populate(objectMap, "maxInactiveRevisions", c.MaxInactiveRevisions) + populate(objectMap, "registries", c.Registries) + populate(objectMap, "secrets", c.Secrets) + populate(objectMap, "service", c.Service) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Configuration. +func (c *Configuration) UnmarshalJSON(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 "activeRevisionsMode": + err = unpopulate(val, "ActiveRevisionsMode", &c.ActiveRevisionsMode) + delete(rawMsg, key) + case "dapr": + err = unpopulate(val, "Dapr", &c.Dapr) + delete(rawMsg, key) + case "ingress": + err = unpopulate(val, "Ingress", &c.Ingress) + delete(rawMsg, key) + case "maxInactiveRevisions": + err = unpopulate(val, "MaxInactiveRevisions", &c.MaxInactiveRevisions) + delete(rawMsg, key) + case "registries": + err = unpopulate(val, "Registries", &c.Registries) + delete(rawMsg, key) + case "secrets": + err = unpopulate(val, "Secrets", &c.Secrets) + delete(rawMsg, key) + case "service": + err = unpopulate(val, "Service", &c.Service) + 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 ConnectedEnvironment. +func (c ConnectedEnvironment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", c.ExtendedLocation) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedEnvironment. +func (c *ConnectedEnvironment) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &c.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, 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 ConnectedEnvironmentCollection. +func (c ConnectedEnvironmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedEnvironmentCollection. +func (c *ConnectedEnvironmentCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ConnectedEnvironmentProperties. +func (c ConnectedEnvironmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customDomainConfiguration", c.CustomDomainConfiguration) + populate(objectMap, "daprAIConnectionString", c.DaprAIConnectionString) + populate(objectMap, "defaultDomain", c.DefaultDomain) + populate(objectMap, "deploymentErrors", c.DeploymentErrors) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "staticIp", c.StaticIP) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedEnvironmentProperties. +func (c *ConnectedEnvironmentProperties) UnmarshalJSON(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 "customDomainConfiguration": + err = unpopulate(val, "CustomDomainConfiguration", &c.CustomDomainConfiguration) + delete(rawMsg, key) + case "daprAIConnectionString": + err = unpopulate(val, "DaprAIConnectionString", &c.DaprAIConnectionString) + delete(rawMsg, key) + case "defaultDomain": + err = unpopulate(val, "DefaultDomain", &c.DefaultDomain) + delete(rawMsg, key) + case "deploymentErrors": + err = unpopulate(val, "DeploymentErrors", &c.DeploymentErrors) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "staticIp": + err = unpopulate(val, "StaticIP", &c.StaticIP) + 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 ConnectedEnvironmentStorage. +func (c ConnectedEnvironmentStorage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedEnvironmentStorage. +func (c *ConnectedEnvironmentStorage) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, 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 ConnectedEnvironmentStorageProperties. +func (c ConnectedEnvironmentStorageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureFile", c.AzureFile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedEnvironmentStorageProperties. +func (c *ConnectedEnvironmentStorageProperties) UnmarshalJSON(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 "azureFile": + err = unpopulate(val, "AzureFile", &c.AzureFile) + 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 ConnectedEnvironmentStoragesCollection. +func (c ConnectedEnvironmentStoragesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedEnvironmentStoragesCollection. +func (c *ConnectedEnvironmentStoragesCollection) UnmarshalJSON(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 "value": + err = unpopulate(val, "Value", &c.Value) + 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 Container. +func (c Container) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "args", c.Args) + populate(objectMap, "command", c.Command) + populate(objectMap, "env", c.Env) + populate(objectMap, "image", c.Image) + populate(objectMap, "name", c.Name) + populate(objectMap, "probes", c.Probes) + populate(objectMap, "resources", c.Resources) + populate(objectMap, "volumeMounts", c.VolumeMounts) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Container. +func (c *Container) UnmarshalJSON(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 "args": + err = unpopulate(val, "Args", &c.Args) + delete(rawMsg, key) + case "command": + err = unpopulate(val, "Command", &c.Command) + delete(rawMsg, key) + case "env": + err = unpopulate(val, "Env", &c.Env) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &c.Image) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "probes": + err = unpopulate(val, "Probes", &c.Probes) + delete(rawMsg, key) + case "resources": + err = unpopulate(val, "Resources", &c.Resources) + delete(rawMsg, key) + case "volumeMounts": + err = unpopulate(val, "VolumeMounts", &c.VolumeMounts) + 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 ContainerApp. +func (c ContainerApp) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", c.ExtendedLocation) + populate(objectMap, "id", c.ID) + populate(objectMap, "identity", c.Identity) + populate(objectMap, "location", c.Location) + populate(objectMap, "managedBy", c.ManagedBy) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerApp. +func (c *ContainerApp) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &c.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "managedBy": + err = unpopulate(val, "ManagedBy", &c.ManagedBy) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, 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 ContainerAppAuthToken. +func (c ContainerAppAuthToken) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppAuthToken. +func (c *ContainerAppAuthToken) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, 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 ContainerAppAuthTokenProperties. +func (c ContainerAppAuthTokenProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "expires", c.Expires) + populate(objectMap, "token", c.Token) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppAuthTokenProperties. +func (c *ContainerAppAuthTokenProperties) UnmarshalJSON(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 "expires": + err = unpopulateDateTimeRFC3339(val, "Expires", &c.Expires) + delete(rawMsg, key) + case "token": + err = unpopulate(val, "Token", &c.Token) + 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 ContainerAppCollection. +func (c ContainerAppCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppCollection. +func (c *ContainerAppCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ContainerAppJobExecutions. +func (c ContainerAppJobExecutions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppJobExecutions. +func (c *ContainerAppJobExecutions) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ContainerAppProbe. +func (c ContainerAppProbe) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "failureThreshold", c.FailureThreshold) + populate(objectMap, "httpGet", c.HTTPGet) + populate(objectMap, "initialDelaySeconds", c.InitialDelaySeconds) + populate(objectMap, "periodSeconds", c.PeriodSeconds) + populate(objectMap, "successThreshold", c.SuccessThreshold) + populate(objectMap, "tcpSocket", c.TCPSocket) + populate(objectMap, "terminationGracePeriodSeconds", c.TerminationGracePeriodSeconds) + populate(objectMap, "timeoutSeconds", c.TimeoutSeconds) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppProbe. +func (c *ContainerAppProbe) UnmarshalJSON(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 "failureThreshold": + err = unpopulate(val, "FailureThreshold", &c.FailureThreshold) + delete(rawMsg, key) + case "httpGet": + err = unpopulate(val, "HTTPGet", &c.HTTPGet) + delete(rawMsg, key) + case "initialDelaySeconds": + err = unpopulate(val, "InitialDelaySeconds", &c.InitialDelaySeconds) + delete(rawMsg, key) + case "periodSeconds": + err = unpopulate(val, "PeriodSeconds", &c.PeriodSeconds) + delete(rawMsg, key) + case "successThreshold": + err = unpopulate(val, "SuccessThreshold", &c.SuccessThreshold) + delete(rawMsg, key) + case "tcpSocket": + err = unpopulate(val, "TCPSocket", &c.TCPSocket) + delete(rawMsg, key) + case "terminationGracePeriodSeconds": + err = unpopulate(val, "TerminationGracePeriodSeconds", &c.TerminationGracePeriodSeconds) + delete(rawMsg, key) + case "timeoutSeconds": + err = unpopulate(val, "TimeoutSeconds", &c.TimeoutSeconds) + delete(rawMsg, 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 ContainerAppProbeHTTPGet. +func (c ContainerAppProbeHTTPGet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "httpHeaders", c.HTTPHeaders) + populate(objectMap, "host", c.Host) + populate(objectMap, "path", c.Path) + populate(objectMap, "port", c.Port) + populate(objectMap, "scheme", c.Scheme) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppProbeHTTPGet. +func (c *ContainerAppProbeHTTPGet) UnmarshalJSON(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 "httpHeaders": + err = unpopulate(val, "HTTPHeaders", &c.HTTPHeaders) + delete(rawMsg, key) + case "host": + err = unpopulate(val, "Host", &c.Host) + delete(rawMsg, key) + case "path": + err = unpopulate(val, "Path", &c.Path) + delete(rawMsg, key) + case "port": + err = unpopulate(val, "Port", &c.Port) + delete(rawMsg, key) + case "scheme": + err = unpopulate(val, "Scheme", &c.Scheme) + 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 ContainerAppProbeHTTPGetHTTPHeadersItem. +func (c ContainerAppProbeHTTPGetHTTPHeadersItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppProbeHTTPGetHTTPHeadersItem. +func (c *ContainerAppProbeHTTPGetHTTPHeadersItem) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ContainerAppProbeTCPSocket. +func (c ContainerAppProbeTCPSocket) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "host", c.Host) + populate(objectMap, "port", c.Port) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppProbeTCPSocket. +func (c *ContainerAppProbeTCPSocket) UnmarshalJSON(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 "host": + err = unpopulate(val, "Host", &c.Host) + delete(rawMsg, key) + case "port": + err = unpopulate(val, "Port", &c.Port) + 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 ContainerAppProperties. +func (c ContainerAppProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configuration", c.Configuration) + populate(objectMap, "customDomainVerificationId", c.CustomDomainVerificationID) + populate(objectMap, "environmentId", c.EnvironmentID) + populate(objectMap, "eventStreamEndpoint", c.EventStreamEndpoint) + populate(objectMap, "latestReadyRevisionName", c.LatestReadyRevisionName) + populate(objectMap, "latestRevisionFqdn", c.LatestRevisionFqdn) + populate(objectMap, "latestRevisionName", c.LatestRevisionName) + populate(objectMap, "managedEnvironmentId", c.ManagedEnvironmentID) + populate(objectMap, "outboundIpAddresses", c.OutboundIPAddresses) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "template", c.Template) + populate(objectMap, "workloadProfileName", c.WorkloadProfileName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppProperties. +func (c *ContainerAppProperties) UnmarshalJSON(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 "configuration": + err = unpopulate(val, "Configuration", &c.Configuration) + delete(rawMsg, key) + case "customDomainVerificationId": + err = unpopulate(val, "CustomDomainVerificationID", &c.CustomDomainVerificationID) + delete(rawMsg, key) + case "environmentId": + err = unpopulate(val, "EnvironmentID", &c.EnvironmentID) + delete(rawMsg, key) + case "eventStreamEndpoint": + err = unpopulate(val, "EventStreamEndpoint", &c.EventStreamEndpoint) + delete(rawMsg, key) + case "latestReadyRevisionName": + err = unpopulate(val, "LatestReadyRevisionName", &c.LatestReadyRevisionName) + delete(rawMsg, key) + case "latestRevisionFqdn": + err = unpopulate(val, "LatestRevisionFqdn", &c.LatestRevisionFqdn) + delete(rawMsg, key) + case "latestRevisionName": + err = unpopulate(val, "LatestRevisionName", &c.LatestRevisionName) + delete(rawMsg, key) + case "managedEnvironmentId": + err = unpopulate(val, "ManagedEnvironmentID", &c.ManagedEnvironmentID) + delete(rawMsg, key) + case "outboundIpAddresses": + err = unpopulate(val, "OutboundIPAddresses", &c.OutboundIPAddresses) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "template": + err = unpopulate(val, "Template", &c.Template) + delete(rawMsg, key) + case "workloadProfileName": + err = unpopulate(val, "WorkloadProfileName", &c.WorkloadProfileName) + 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 ContainerAppSecret. +func (c ContainerAppSecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", c.Identity) + populate(objectMap, "keyVaultUrl", c.KeyVaultURL) + populate(objectMap, "name", c.Name) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppSecret. +func (c *ContainerAppSecret) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) + case "keyVaultUrl": + err = unpopulate(val, "KeyVaultURL", &c.KeyVaultURL) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ContainerRegistry. +func (c ContainerRegistry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containerRegistryServer", c.ContainerRegistryServer) + populate(objectMap, "identityResourceId", c.IdentityResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerRegistry. +func (c *ContainerRegistry) UnmarshalJSON(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 "containerRegistryServer": + err = unpopulate(val, "ContainerRegistryServer", &c.ContainerRegistryServer) + delete(rawMsg, key) + case "identityResourceId": + err = unpopulate(val, "IdentityResourceID", &c.IdentityResourceID) + 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 ContainerRegistryWithCustomImage. +func (c ContainerRegistryWithCustomImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "image", c.Image) + populate(objectMap, "server", c.Server) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerRegistryWithCustomImage. +func (c *ContainerRegistryWithCustomImage) UnmarshalJSON(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 "image": + err = unpopulate(val, "Image", &c.Image) + delete(rawMsg, key) + case "server": + err = unpopulate(val, "Server", &c.Server) + 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 ContainerResources. +func (c ContainerResources) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "cpu", c.CPU) + populate(objectMap, "ephemeralStorage", c.EphemeralStorage) + populate(objectMap, "memory", c.Memory) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerResources. +func (c *ContainerResources) UnmarshalJSON(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 "cpu": + err = unpopulate(val, "CPU", &c.CPU) + delete(rawMsg, key) + case "ephemeralStorage": + err = unpopulate(val, "EphemeralStorage", &c.EphemeralStorage) + delete(rawMsg, key) + case "memory": + err = unpopulate(val, "Memory", &c.Memory) + 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 CookieExpiration. +func (c CookieExpiration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "convention", c.Convention) + populate(objectMap, "timeToExpiration", c.TimeToExpiration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CookieExpiration. +func (c *CookieExpiration) UnmarshalJSON(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 "convention": + err = unpopulate(val, "Convention", &c.Convention) + delete(rawMsg, key) + case "timeToExpiration": + err = unpopulate(val, "TimeToExpiration", &c.TimeToExpiration) + 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 CorsPolicy. +func (c CorsPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowCredentials", c.AllowCredentials) + populate(objectMap, "allowedHeaders", c.AllowedHeaders) + populate(objectMap, "allowedMethods", c.AllowedMethods) + populate(objectMap, "allowedOrigins", c.AllowedOrigins) + populate(objectMap, "exposeHeaders", c.ExposeHeaders) + populate(objectMap, "maxAge", c.MaxAge) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CorsPolicy. +func (c *CorsPolicy) UnmarshalJSON(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 "allowCredentials": + err = unpopulate(val, "AllowCredentials", &c.AllowCredentials) + delete(rawMsg, key) + case "allowedHeaders": + err = unpopulate(val, "AllowedHeaders", &c.AllowedHeaders) + delete(rawMsg, key) + case "allowedMethods": + err = unpopulate(val, "AllowedMethods", &c.AllowedMethods) + delete(rawMsg, key) + case "allowedOrigins": + err = unpopulate(val, "AllowedOrigins", &c.AllowedOrigins) + delete(rawMsg, key) + case "exposeHeaders": + err = unpopulate(val, "ExposeHeaders", &c.ExposeHeaders) + delete(rawMsg, key) + case "maxAge": + err = unpopulate(val, "MaxAge", &c.MaxAge) + 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 CustomDomain. +func (c CustomDomain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "bindingType", c.BindingType) + populate(objectMap, "certificateId", c.CertificateID) + populate(objectMap, "name", c.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomain. +func (c *CustomDomain) UnmarshalJSON(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 "bindingType": + err = unpopulate(val, "BindingType", &c.BindingType) + delete(rawMsg, key) + case "certificateId": + err = unpopulate(val, "CertificateID", &c.CertificateID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CustomDomainConfiguration. +func (c CustomDomainConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "certificateKeyVaultProperties", c.CertificateKeyVaultProperties) + populate(objectMap, "certificatePassword", c.CertificatePassword) + populateByteArray(objectMap, "certificateValue", c.CertificateValue, func() any { + return runtime.EncodeByteArray(c.CertificateValue, runtime.Base64StdFormat) + }) + populate(objectMap, "customDomainVerificationId", c.CustomDomainVerificationID) + populate(objectMap, "dnsSuffix", c.DNSSuffix) + populateDateTimeRFC3339(objectMap, "expirationDate", c.ExpirationDate) + populate(objectMap, "subjectName", c.SubjectName) + populate(objectMap, "thumbprint", c.Thumbprint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomDomainConfiguration. +func (c *CustomDomainConfiguration) UnmarshalJSON(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 "certificateKeyVaultProperties": + err = unpopulate(val, "CertificateKeyVaultProperties", &c.CertificateKeyVaultProperties) + delete(rawMsg, key) + case "certificatePassword": + err = unpopulate(val, "CertificatePassword", &c.CertificatePassword) + delete(rawMsg, key) + case "certificateValue": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.CertificateValue, runtime.Base64StdFormat) + } + delete(rawMsg, key) + case "customDomainVerificationId": + err = unpopulate(val, "CustomDomainVerificationID", &c.CustomDomainVerificationID) + delete(rawMsg, key) + case "dnsSuffix": + err = unpopulate(val, "DNSSuffix", &c.DNSSuffix) + delete(rawMsg, key) + case "expirationDate": + err = unpopulateDateTimeRFC3339(val, "ExpirationDate", &c.ExpirationDate) + delete(rawMsg, key) + case "subjectName": + err = unpopulate(val, "SubjectName", &c.SubjectName) + delete(rawMsg, key) + case "thumbprint": + err = unpopulate(val, "Thumbprint", &c.Thumbprint) + 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 CustomHostnameAnalysisResult. +func (c CustomHostnameAnalysisResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aRecords", c.ARecords) + populate(objectMap, "alternateCNameRecords", c.AlternateCNameRecords) + populate(objectMap, "alternateTxtRecords", c.AlternateTxtRecords) + populate(objectMap, "cNameRecords", c.CNameRecords) + populate(objectMap, "conflictWithEnvironmentCustomDomain", c.ConflictWithEnvironmentCustomDomain) + populate(objectMap, "conflictingContainerAppResourceId", c.ConflictingContainerAppResourceID) + populate(objectMap, "customDomainVerificationFailureInfo", c.CustomDomainVerificationFailureInfo) + populate(objectMap, "customDomainVerificationTest", c.CustomDomainVerificationTest) + populate(objectMap, "hasConflictOnManagedEnvironment", c.HasConflictOnManagedEnvironment) + populate(objectMap, "hostName", c.HostName) + populate(objectMap, "isHostnameAlreadyVerified", c.IsHostnameAlreadyVerified) + populate(objectMap, "txtRecords", c.TxtRecords) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomHostnameAnalysisResult. +func (c *CustomHostnameAnalysisResult) UnmarshalJSON(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 "aRecords": + err = unpopulate(val, "ARecords", &c.ARecords) + delete(rawMsg, key) + case "alternateCNameRecords": + err = unpopulate(val, "AlternateCNameRecords", &c.AlternateCNameRecords) + delete(rawMsg, key) + case "alternateTxtRecords": + err = unpopulate(val, "AlternateTxtRecords", &c.AlternateTxtRecords) + delete(rawMsg, key) + case "cNameRecords": + err = unpopulate(val, "CNameRecords", &c.CNameRecords) + delete(rawMsg, key) + case "conflictWithEnvironmentCustomDomain": + err = unpopulate(val, "ConflictWithEnvironmentCustomDomain", &c.ConflictWithEnvironmentCustomDomain) + delete(rawMsg, key) + case "conflictingContainerAppResourceId": + err = unpopulate(val, "ConflictingContainerAppResourceID", &c.ConflictingContainerAppResourceID) + delete(rawMsg, key) + case "customDomainVerificationFailureInfo": + err = unpopulate(val, "CustomDomainVerificationFailureInfo", &c.CustomDomainVerificationFailureInfo) + delete(rawMsg, key) + case "customDomainVerificationTest": + err = unpopulate(val, "CustomDomainVerificationTest", &c.CustomDomainVerificationTest) + delete(rawMsg, key) + case "hasConflictOnManagedEnvironment": + err = unpopulate(val, "HasConflictOnManagedEnvironment", &c.HasConflictOnManagedEnvironment) + delete(rawMsg, key) + case "hostName": + err = unpopulate(val, "HostName", &c.HostName) + delete(rawMsg, key) + case "isHostnameAlreadyVerified": + err = unpopulate(val, "IsHostnameAlreadyVerified", &c.IsHostnameAlreadyVerified) + delete(rawMsg, key) + case "txtRecords": + err = unpopulate(val, "TxtRecords", &c.TxtRecords) + 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 CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo. +func (c CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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 CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo. +func (c *CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo) UnmarshalJSON(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 CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem. +func (c CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", c.Code) + populate(objectMap, "message", c.Message) + populate(objectMap, "target", c.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem. +func (c *CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem) UnmarshalJSON(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 "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 CustomOpenIDConnectProvider. +func (c CustomOpenIDConnectProvider) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", c.Enabled) + populate(objectMap, "login", c.Login) + populate(objectMap, "registration", c.Registration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomOpenIDConnectProvider. +func (c *CustomOpenIDConnectProvider) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &c.Enabled) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &c.Login) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &c.Registration) + 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 CustomScaleRule. +func (c CustomScaleRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auth", c.Auth) + populate(objectMap, "metadata", c.Metadata) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomScaleRule. +func (c *CustomScaleRule) UnmarshalJSON(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 "auth": + err = unpopulate(val, "Auth", &c.Auth) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &c.Metadata) + delete(rawMsg, 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 Dapr. +func (d Dapr) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "appId", d.AppID) + populate(objectMap, "appPort", d.AppPort) + populate(objectMap, "appProtocol", d.AppProtocol) + populate(objectMap, "enableApiLogging", d.EnableAPILogging) + populate(objectMap, "enabled", d.Enabled) + populate(objectMap, "httpMaxRequestSize", d.HTTPMaxRequestSize) + populate(objectMap, "httpReadBufferSize", d.HTTPReadBufferSize) + populate(objectMap, "logLevel", d.LogLevel) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Dapr. +func (d *Dapr) UnmarshalJSON(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 "appId": + err = unpopulate(val, "AppID", &d.AppID) + delete(rawMsg, key) + case "appPort": + err = unpopulate(val, "AppPort", &d.AppPort) + delete(rawMsg, key) + case "appProtocol": + err = unpopulate(val, "AppProtocol", &d.AppProtocol) + delete(rawMsg, key) + case "enableApiLogging": + err = unpopulate(val, "EnableAPILogging", &d.EnableAPILogging) + delete(rawMsg, key) + case "enabled": + err = unpopulate(val, "Enabled", &d.Enabled) + delete(rawMsg, key) + case "httpMaxRequestSize": + err = unpopulate(val, "HTTPMaxRequestSize", &d.HTTPMaxRequestSize) + delete(rawMsg, key) + case "httpReadBufferSize": + err = unpopulate(val, "HTTPReadBufferSize", &d.HTTPReadBufferSize) + delete(rawMsg, key) + case "logLevel": + err = unpopulate(val, "LogLevel", &d.LogLevel) + 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 DaprComponent. +func (d DaprComponent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponent. +func (d *DaprComponent) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + 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 DaprComponentProperties. +func (d DaprComponentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "componentType", d.ComponentType) + populate(objectMap, "ignoreErrors", d.IgnoreErrors) + populate(objectMap, "initTimeout", d.InitTimeout) + populate(objectMap, "metadata", d.Metadata) + populate(objectMap, "scopes", d.Scopes) + populate(objectMap, "secretStoreComponent", d.SecretStoreComponent) + populate(objectMap, "secrets", d.Secrets) + populate(objectMap, "serviceComponentBind", d.ServiceComponentBind) + populate(objectMap, "version", d.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentProperties. +func (d *DaprComponentProperties) UnmarshalJSON(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 "componentType": + err = unpopulate(val, "ComponentType", &d.ComponentType) + delete(rawMsg, key) + case "ignoreErrors": + err = unpopulate(val, "IgnoreErrors", &d.IgnoreErrors) + delete(rawMsg, key) + case "initTimeout": + err = unpopulate(val, "InitTimeout", &d.InitTimeout) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &d.Metadata) + delete(rawMsg, key) + case "scopes": + err = unpopulate(val, "Scopes", &d.Scopes) + delete(rawMsg, key) + case "secretStoreComponent": + err = unpopulate(val, "SecretStoreComponent", &d.SecretStoreComponent) + delete(rawMsg, key) + case "secrets": + err = unpopulate(val, "Secrets", &d.Secrets) + delete(rawMsg, key) + case "serviceComponentBind": + err = unpopulate(val, "ServiceComponentBind", &d.ServiceComponentBind) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &d.Version) + 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 DaprComponentResiliencyPoliciesCollection. +func (d DaprComponentResiliencyPoliciesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPoliciesCollection. +func (d *DaprComponentResiliencyPoliciesCollection) UnmarshalJSON(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 DaprComponentResiliencyPolicy. +func (d DaprComponentResiliencyPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPolicy. +func (d *DaprComponentResiliencyPolicy) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + 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 DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration. +func (d DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "consecutiveErrors", d.ConsecutiveErrors) + populate(objectMap, "intervalInSeconds", d.IntervalInSeconds) + populate(objectMap, "timeoutInSeconds", d.TimeoutInSeconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration. +func (d *DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration) UnmarshalJSON(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 "consecutiveErrors": + err = unpopulate(val, "ConsecutiveErrors", &d.ConsecutiveErrors) + delete(rawMsg, key) + case "intervalInSeconds": + err = unpopulate(val, "IntervalInSeconds", &d.IntervalInSeconds) + delete(rawMsg, key) + case "timeoutInSeconds": + err = unpopulate(val, "TimeoutInSeconds", &d.TimeoutInSeconds) + 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 DaprComponentResiliencyPolicyConfiguration. +func (d DaprComponentResiliencyPolicyConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "circuitBreakerPolicy", d.CircuitBreakerPolicy) + populate(objectMap, "httpRetryPolicy", d.HTTPRetryPolicy) + populate(objectMap, "timeoutPolicy", d.TimeoutPolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPolicyConfiguration. +func (d *DaprComponentResiliencyPolicyConfiguration) UnmarshalJSON(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 "circuitBreakerPolicy": + err = unpopulate(val, "CircuitBreakerPolicy", &d.CircuitBreakerPolicy) + delete(rawMsg, key) + case "httpRetryPolicy": + err = unpopulate(val, "HTTPRetryPolicy", &d.HTTPRetryPolicy) + delete(rawMsg, key) + case "timeoutPolicy": + err = unpopulate(val, "TimeoutPolicy", &d.TimeoutPolicy) + 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 DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration. +func (d DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "initialDelayInMilliseconds", d.InitialDelayInMilliseconds) + populate(objectMap, "maxIntervalInMilliseconds", d.MaxIntervalInMilliseconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration. +func (d *DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration) UnmarshalJSON(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 "initialDelayInMilliseconds": + err = unpopulate(val, "InitialDelayInMilliseconds", &d.InitialDelayInMilliseconds) + delete(rawMsg, key) + case "maxIntervalInMilliseconds": + err = unpopulate(val, "MaxIntervalInMilliseconds", &d.MaxIntervalInMilliseconds) + 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 DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration. +func (d DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxRetries", d.MaxRetries) + populate(objectMap, "retryBackOff", d.RetryBackOff) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration. +func (d *DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration) UnmarshalJSON(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 "maxRetries": + err = unpopulate(val, "MaxRetries", &d.MaxRetries) + delete(rawMsg, key) + case "retryBackOff": + err = unpopulate(val, "RetryBackOff", &d.RetryBackOff) + 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 DaprComponentResiliencyPolicyProperties. +func (d DaprComponentResiliencyPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "inboundPolicy", d.InboundPolicy) + populate(objectMap, "outboundPolicy", d.OutboundPolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPolicyProperties. +func (d *DaprComponentResiliencyPolicyProperties) UnmarshalJSON(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 "inboundPolicy": + err = unpopulate(val, "InboundPolicy", &d.InboundPolicy) + delete(rawMsg, key) + case "outboundPolicy": + err = unpopulate(val, "OutboundPolicy", &d.OutboundPolicy) + 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 DaprComponentResiliencyPolicyTimeoutPolicyConfiguration. +func (d DaprComponentResiliencyPolicyTimeoutPolicyConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "responseTimeoutInSeconds", d.ResponseTimeoutInSeconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentResiliencyPolicyTimeoutPolicyConfiguration. +func (d *DaprComponentResiliencyPolicyTimeoutPolicyConfiguration) UnmarshalJSON(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 "responseTimeoutInSeconds": + err = unpopulate(val, "ResponseTimeoutInSeconds", &d.ResponseTimeoutInSeconds) + 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 DaprComponentServiceBinding. +func (d DaprComponentServiceBinding) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "metadata", d.Metadata) + populate(objectMap, "name", d.Name) + populate(objectMap, "serviceId", d.ServiceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentServiceBinding. +func (d *DaprComponentServiceBinding) UnmarshalJSON(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 "metadata": + err = unpopulate(val, "Metadata", &d.Metadata) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "serviceId": + err = unpopulate(val, "ServiceID", &d.ServiceID) + 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 DaprComponentsCollection. +func (d DaprComponentsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprComponentsCollection. +func (d *DaprComponentsCollection) UnmarshalJSON(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 DaprConfiguration. +func (d DaprConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "version", d.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprConfiguration. +func (d *DaprConfiguration) UnmarshalJSON(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 "version": + err = unpopulate(val, "Version", &d.Version) + 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 DaprMetadata. +func (d DaprMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "secretRef", d.SecretRef) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprMetadata. +func (d *DaprMetadata) UnmarshalJSON(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 "secretRef": + err = unpopulate(val, "SecretRef", &d.SecretRef) + 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 DaprSecret. +func (d DaprSecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSecret. +func (d *DaprSecret) UnmarshalJSON(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 "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 DaprSecretsCollection. +func (d DaprSecretsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSecretsCollection. +func (d *DaprSecretsCollection) UnmarshalJSON(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 "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 DaprServiceBindMetadata. +func (d DaprServiceBindMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprServiceBindMetadata. +func (d *DaprServiceBindMetadata) UnmarshalJSON(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 "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 DaprSubscription. +func (d DaprSubscription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSubscription. +func (d *DaprSubscription) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + 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 DaprSubscriptionBulkSubscribeOptions. +func (d DaprSubscriptionBulkSubscribeOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", d.Enabled) + populate(objectMap, "maxAwaitDurationMs", d.MaxAwaitDurationMs) + populate(objectMap, "maxMessagesCount", d.MaxMessagesCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSubscriptionBulkSubscribeOptions. +func (d *DaprSubscriptionBulkSubscribeOptions) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &d.Enabled) + delete(rawMsg, key) + case "maxAwaitDurationMs": + err = unpopulate(val, "MaxAwaitDurationMs", &d.MaxAwaitDurationMs) + delete(rawMsg, key) + case "maxMessagesCount": + err = unpopulate(val, "MaxMessagesCount", &d.MaxMessagesCount) + 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 DaprSubscriptionProperties. +func (d DaprSubscriptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "bulkSubscribe", d.BulkSubscribe) + populate(objectMap, "deadLetterTopic", d.DeadLetterTopic) + populate(objectMap, "metadata", d.Metadata) + populate(objectMap, "pubsubName", d.PubsubName) + populate(objectMap, "routes", d.Routes) + populate(objectMap, "scopes", d.Scopes) + populate(objectMap, "topic", d.Topic) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSubscriptionProperties. +func (d *DaprSubscriptionProperties) UnmarshalJSON(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 "bulkSubscribe": + err = unpopulate(val, "BulkSubscribe", &d.BulkSubscribe) + delete(rawMsg, key) + case "deadLetterTopic": + err = unpopulate(val, "DeadLetterTopic", &d.DeadLetterTopic) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &d.Metadata) + delete(rawMsg, key) + case "pubsubName": + err = unpopulate(val, "PubsubName", &d.PubsubName) + delete(rawMsg, key) + case "routes": + err = unpopulate(val, "Routes", &d.Routes) + delete(rawMsg, key) + case "scopes": + err = unpopulate(val, "Scopes", &d.Scopes) + delete(rawMsg, key) + case "topic": + err = unpopulate(val, "Topic", &d.Topic) + 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 DaprSubscriptionRouteRule. +func (d DaprSubscriptionRouteRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "match", d.Match) + populate(objectMap, "path", d.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSubscriptionRouteRule. +func (d *DaprSubscriptionRouteRule) UnmarshalJSON(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 "match": + err = unpopulate(val, "Match", &d.Match) + delete(rawMsg, 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 DaprSubscriptionRoutes. +func (d DaprSubscriptionRoutes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "default", d.Default) + populate(objectMap, "rules", d.Rules) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSubscriptionRoutes. +func (d *DaprSubscriptionRoutes) UnmarshalJSON(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 "default": + err = unpopulate(val, "Default", &d.Default) + delete(rawMsg, key) + case "rules": + err = unpopulate(val, "Rules", &d.Rules) + 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 DaprSubscriptionsCollection. +func (d DaprSubscriptionsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DaprSubscriptionsCollection. +func (d *DaprSubscriptionsCollection) UnmarshalJSON(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 DataDogConfiguration. +func (d DataDogConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "key", d.Key) + populate(objectMap, "site", d.Site) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataDogConfiguration. +func (d *DataDogConfiguration) UnmarshalJSON(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 "key": + err = unpopulate(val, "Key", &d.Key) + delete(rawMsg, key) + case "site": + err = unpopulate(val, "Site", &d.Site) + 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 DefaultAuthorizationPolicy. +func (d DefaultAuthorizationPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedApplications", d.AllowedApplications) + populate(objectMap, "allowedPrincipals", d.AllowedPrincipals) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DefaultAuthorizationPolicy. +func (d *DefaultAuthorizationPolicy) UnmarshalJSON(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 "allowedApplications": + err = unpopulate(val, "AllowedApplications", &d.AllowedApplications) + delete(rawMsg, key) + case "allowedPrincipals": + err = unpopulate(val, "AllowedPrincipals", &d.AllowedPrincipals) + 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 DefaultErrorResponse. +func (d DefaultErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", d.Error) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DefaultErrorResponse. +func (d *DefaultErrorResponse) UnmarshalJSON(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 "error": + err = unpopulate(val, "Error", &d.Error) + 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 DefaultErrorResponseError. +func (d DefaultErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", d.Code) + populate(objectMap, "details", d.Details) + populate(objectMap, "innererror", d.Innererror) + populate(objectMap, "message", d.Message) + populate(objectMap, "target", d.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DefaultErrorResponseError. +func (d *DefaultErrorResponseError) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &d.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &d.Details) + delete(rawMsg, key) + case "innererror": + err = unpopulate(val, "Innererror", &d.Innererror) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &d.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &d.Target) + 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 DefaultErrorResponseErrorDetailsItem. +func (d DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", d.Code) + populate(objectMap, "message", d.Message) + populate(objectMap, "target", d.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DefaultErrorResponseErrorDetailsItem. +func (d *DefaultErrorResponseErrorDetailsItem) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &d.Code) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &d.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &d.Target) + 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 DestinationsConfiguration. +func (d DestinationsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDogConfiguration", d.DataDogConfiguration) + populate(objectMap, "otlpConfigurations", d.OtlpConfigurations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DestinationsConfiguration. +func (d *DestinationsConfiguration) UnmarshalJSON(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 "dataDogConfiguration": + err = unpopulate(val, "DataDogConfiguration", &d.DataDogConfiguration) + delete(rawMsg, key) + case "otlpConfigurations": + err = unpopulate(val, "OtlpConfigurations", &d.OtlpConfigurations) + 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 DiagnosticDataProviderMetadata. +func (d DiagnosticDataProviderMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "propertyBag", d.PropertyBag) + populate(objectMap, "providerName", d.ProviderName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticDataProviderMetadata. +func (d *DiagnosticDataProviderMetadata) UnmarshalJSON(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 "propertyBag": + err = unpopulate(val, "PropertyBag", &d.PropertyBag) + delete(rawMsg, key) + case "providerName": + err = unpopulate(val, "ProviderName", &d.ProviderName) + 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 DiagnosticDataProviderMetadataPropertyBagItem. +func (d DiagnosticDataProviderMetadataPropertyBagItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticDataProviderMetadataPropertyBagItem. +func (d *DiagnosticDataProviderMetadataPropertyBagItem) UnmarshalJSON(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 "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 DiagnosticDataTableResponseColumn. +func (d DiagnosticDataTableResponseColumn) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "columnName", d.ColumnName) + populate(objectMap, "columnType", d.ColumnType) + populate(objectMap, "dataType", d.DataType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticDataTableResponseColumn. +func (d *DiagnosticDataTableResponseColumn) UnmarshalJSON(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 "columnType": + err = unpopulate(val, "ColumnType", &d.ColumnType) + delete(rawMsg, key) + case "dataType": + err = unpopulate(val, "DataType", &d.DataType) + 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 DiagnosticDataTableResponseObject. +func (d DiagnosticDataTableResponseObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "columns", d.Columns) + populate(objectMap, "rows", d.Rows) + populate(objectMap, "tableName", d.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticDataTableResponseObject. +func (d *DiagnosticDataTableResponseObject) UnmarshalJSON(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 "rows": + err = unpopulate(val, "Rows", &d.Rows) + 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 DiagnosticRendering. +func (d DiagnosticRendering) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", d.Description) + populate(objectMap, "isVisible", d.IsVisible) + populate(objectMap, "title", d.Title) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticRendering. +func (d *DiagnosticRendering) UnmarshalJSON(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 "description": + err = unpopulate(val, "Description", &d.Description) + delete(rawMsg, key) + case "isVisible": + err = unpopulate(val, "IsVisible", &d.IsVisible) + delete(rawMsg, key) + case "title": + err = unpopulate(val, "Title", &d.Title) + 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 DiagnosticSupportTopic. +func (d DiagnosticSupportTopic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "pesId", d.PesID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticSupportTopic. +func (d *DiagnosticSupportTopic) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "pesId": + err = unpopulate(val, "PesID", &d.PesID) + 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 Diagnostics. +func (d Diagnostics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Diagnostics. +func (d *Diagnostics) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + 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 DiagnosticsCollection. +func (d DiagnosticsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticsCollection. +func (d *DiagnosticsCollection) UnmarshalJSON(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 DiagnosticsDataAPIResponse. +func (d DiagnosticsDataAPIResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "renderingProperties", d.RenderingProperties) + populate(objectMap, "table", d.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticsDataAPIResponse. +func (d *DiagnosticsDataAPIResponse) UnmarshalJSON(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 "renderingProperties": + err = unpopulate(val, "RenderingProperties", &d.RenderingProperties) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &d.Table) + 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 DiagnosticsDefinition. +func (d DiagnosticsDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "analysisTypes", d.AnalysisTypes) + populate(objectMap, "author", d.Author) + populate(objectMap, "category", d.Category) + populate(objectMap, "description", d.Description) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "score", d.Score) + populate(objectMap, "supportTopicList", d.SupportTopicList) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticsDefinition. +func (d *DiagnosticsDefinition) UnmarshalJSON(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 "analysisTypes": + err = unpopulate(val, "AnalysisTypes", &d.AnalysisTypes) + delete(rawMsg, key) + case "author": + err = unpopulate(val, "Author", &d.Author) + delete(rawMsg, key) + case "category": + err = unpopulate(val, "Category", &d.Category) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &d.Description) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "score": + err = unpopulate(val, "Score", &d.Score) + delete(rawMsg, key) + case "supportTopicList": + err = unpopulate(val, "SupportTopicList", &d.SupportTopicList) + 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 DiagnosticsProperties. +func (d DiagnosticsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataProviderMetadata", d.DataProviderMetadata) + populate(objectMap, "dataset", d.Dataset) + populate(objectMap, "metadata", d.Metadata) + populate(objectMap, "status", d.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticsProperties. +func (d *DiagnosticsProperties) UnmarshalJSON(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 "dataProviderMetadata": + err = unpopulate(val, "DataProviderMetadata", &d.DataProviderMetadata) + delete(rawMsg, key) + case "dataset": + err = unpopulate(val, "Dataset", &d.Dataset) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &d.Metadata) + 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 DiagnosticsStatus. +func (d DiagnosticsStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "message", d.Message) + populate(objectMap, "statusId", d.StatusID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticsStatus. +func (d *DiagnosticsStatus) UnmarshalJSON(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 "message": + err = unpopulate(val, "Message", &d.Message) + delete(rawMsg, key) + case "statusId": + err = unpopulate(val, "StatusID", &d.StatusID) + 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 DotNetComponent. +func (d DotNetComponent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DotNetComponent. +func (d *DotNetComponent) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + 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 DotNetComponentConfigurationProperty. +func (d DotNetComponentConfigurationProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "propertyName", d.PropertyName) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DotNetComponentConfigurationProperty. +func (d *DotNetComponentConfigurationProperty) UnmarshalJSON(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 "propertyName": + err = unpopulate(val, "PropertyName", &d.PropertyName) + 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 DotNetComponentProperties. +func (d DotNetComponentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "componentType", d.ComponentType) + populate(objectMap, "configurations", d.Configurations) + populate(objectMap, "provisioningState", d.ProvisioningState) + populate(objectMap, "serviceBinds", d.ServiceBinds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DotNetComponentProperties. +func (d *DotNetComponentProperties) UnmarshalJSON(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 "componentType": + err = unpopulate(val, "ComponentType", &d.ComponentType) + delete(rawMsg, key) + case "configurations": + err = unpopulate(val, "Configurations", &d.Configurations) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) + delete(rawMsg, key) + case "serviceBinds": + err = unpopulate(val, "ServiceBinds", &d.ServiceBinds) + 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 DotNetComponentServiceBind. +func (d DotNetComponentServiceBind) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "serviceId", d.ServiceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DotNetComponentServiceBind. +func (d *DotNetComponentServiceBind) UnmarshalJSON(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 "serviceId": + err = unpopulate(val, "ServiceID", &d.ServiceID) + 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 DotNetComponentsCollection. +func (d DotNetComponentsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DotNetComponentsCollection. +func (d *DotNetComponentsCollection) UnmarshalJSON(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 EncryptionSettings. +func (e EncryptionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containerAppAuthEncryptionSecretName", e.ContainerAppAuthEncryptionSecretName) + populate(objectMap, "containerAppAuthSigningSecretName", e.ContainerAppAuthSigningSecretName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSettings. +func (e *EncryptionSettings) UnmarshalJSON(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 "containerAppAuthEncryptionSecretName": + err = unpopulate(val, "ContainerAppAuthEncryptionSecretName", &e.ContainerAppAuthEncryptionSecretName) + delete(rawMsg, key) + case "containerAppAuthSigningSecretName": + err = unpopulate(val, "ContainerAppAuthSigningSecretName", &e.ContainerAppAuthSigningSecretName) + 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 EnvironmentAuthToken. +func (e EnvironmentAuthToken) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + populate(objectMap, "location", e.Location) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "systemData", e.SystemData) + populate(objectMap, "tags", e.Tags) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentAuthToken. +func (e *EnvironmentAuthToken) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &e.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &e.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &e.Tags) + 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 EnvironmentAuthTokenProperties. +func (e EnvironmentAuthTokenProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "expires", e.Expires) + populate(objectMap, "token", e.Token) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentAuthTokenProperties. +func (e *EnvironmentAuthTokenProperties) UnmarshalJSON(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 "expires": + err = unpopulateDateTimeRFC3339(val, "Expires", &e.Expires) + delete(rawMsg, key) + case "token": + err = unpopulate(val, "Token", &e.Token) + 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 EnvironmentVar. +func (e EnvironmentVar) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", e.Name) + populate(objectMap, "secretRef", e.SecretRef) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVar. +func (e *EnvironmentVar) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "secretRef": + err = unpopulate(val, "SecretRef", &e.SecretRef) + 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 EnvironmentVariable. +func (e EnvironmentVariable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", e.Name) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariable. +func (e *EnvironmentVariable) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &e.Name) + 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 ErrorAdditionalInfo. +func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "info", e.Info) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo. +func (e *ErrorAdditionalInfo) UnmarshalJSON(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 "info": + err = unpopulate(val, "Info", &e.Info) + 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 ErrorDetail. +func (e ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail. +func (e *ErrorDetail) UnmarshalJSON(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 "additionalInfo": + err = unpopulate(val, "AdditionalInfo", &e.AdditionalInfo) + delete(rawMsg, key) + case "code": + err = unpopulate(val, "Code", &e.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &e.Details) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &e.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &e.Target) + 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 ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", e.Error) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse. +func (e *ErrorResponse) UnmarshalJSON(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 "error": + err = unpopulate(val, "Error", &e.Error) + 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 ExtendedLocation. +func (e ExtendedLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", e.Name) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedLocation. +func (e *ExtendedLocation) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &e.Name) + 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 Facebook. +func (f Facebook) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", f.Enabled) + populate(objectMap, "graphApiVersion", f.GraphAPIVersion) + populate(objectMap, "login", f.Login) + populate(objectMap, "registration", f.Registration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Facebook. +func (f *Facebook) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &f.Enabled) + delete(rawMsg, key) + case "graphApiVersion": + err = unpopulate(val, "GraphAPIVersion", &f.GraphAPIVersion) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &f.Login) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &f.Registration) + 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 ForwardProxy. +func (f ForwardProxy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "convention", f.Convention) + populate(objectMap, "customHostHeaderName", f.CustomHostHeaderName) + populate(objectMap, "customProtoHeaderName", f.CustomProtoHeaderName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ForwardProxy. +func (f *ForwardProxy) UnmarshalJSON(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 "convention": + err = unpopulate(val, "Convention", &f.Convention) + delete(rawMsg, key) + case "customHostHeaderName": + err = unpopulate(val, "CustomHostHeaderName", &f.CustomHostHeaderName) + delete(rawMsg, key) + case "customProtoHeaderName": + err = unpopulate(val, "CustomProtoHeaderName", &f.CustomProtoHeaderName) + 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 GitHub. +func (g GitHub) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", g.Enabled) + populate(objectMap, "login", g.Login) + populate(objectMap, "registration", g.Registration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GitHub. +func (g *GitHub) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &g.Enabled) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &g.Login) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &g.Registration) + 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 GithubActionConfiguration. +func (g GithubActionConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureCredentials", g.AzureCredentials) + populate(objectMap, "buildEnvironmentVariables", g.BuildEnvironmentVariables) + populate(objectMap, "contextPath", g.ContextPath) + populate(objectMap, "githubPersonalAccessToken", g.GithubPersonalAccessToken) + populate(objectMap, "image", g.Image) + populate(objectMap, "os", g.OS) + populate(objectMap, "publishType", g.PublishType) + populate(objectMap, "registryInfo", g.RegistryInfo) + populate(objectMap, "runtimeStack", g.RuntimeStack) + populate(objectMap, "runtimeVersion", g.RuntimeVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GithubActionConfiguration. +func (g *GithubActionConfiguration) UnmarshalJSON(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 "azureCredentials": + err = unpopulate(val, "AzureCredentials", &g.AzureCredentials) + delete(rawMsg, key) + case "buildEnvironmentVariables": + err = unpopulate(val, "BuildEnvironmentVariables", &g.BuildEnvironmentVariables) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &g.ContextPath) + delete(rawMsg, key) + case "githubPersonalAccessToken": + err = unpopulate(val, "GithubPersonalAccessToken", &g.GithubPersonalAccessToken) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &g.Image) + delete(rawMsg, key) + case "os": + err = unpopulate(val, "OS", &g.OS) + delete(rawMsg, key) + case "publishType": + err = unpopulate(val, "PublishType", &g.PublishType) + delete(rawMsg, key) + case "registryInfo": + err = unpopulate(val, "RegistryInfo", &g.RegistryInfo) + delete(rawMsg, key) + case "runtimeStack": + err = unpopulate(val, "RuntimeStack", &g.RuntimeStack) + delete(rawMsg, key) + case "runtimeVersion": + err = unpopulate(val, "RuntimeVersion", &g.RuntimeVersion) + 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 GlobalValidation. +func (g GlobalValidation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "excludedPaths", g.ExcludedPaths) + populate(objectMap, "redirectToProvider", g.RedirectToProvider) + populate(objectMap, "unauthenticatedClientAction", g.UnauthenticatedClientAction) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GlobalValidation. +func (g *GlobalValidation) UnmarshalJSON(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 "excludedPaths": + err = unpopulate(val, "ExcludedPaths", &g.ExcludedPaths) + delete(rawMsg, key) + case "redirectToProvider": + err = unpopulate(val, "RedirectToProvider", &g.RedirectToProvider) + delete(rawMsg, key) + case "unauthenticatedClientAction": + err = unpopulate(val, "UnauthenticatedClientAction", &g.UnauthenticatedClientAction) + 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 Google. +func (g Google) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", g.Enabled) + populate(objectMap, "login", g.Login) + populate(objectMap, "registration", g.Registration) + populate(objectMap, "validation", g.Validation) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Google. +func (g *Google) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &g.Enabled) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &g.Login) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &g.Registration) + delete(rawMsg, key) + case "validation": + err = unpopulate(val, "Validation", &g.Validation) + 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 HTTPConnectionPool. +func (h HTTPConnectionPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "http1MaxPendingRequests", h.HTTP1MaxPendingRequests) + populate(objectMap, "http2MaxRequests", h.HTTP2MaxRequests) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPConnectionPool. +func (h *HTTPConnectionPool) UnmarshalJSON(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 "http1MaxPendingRequests": + err = unpopulate(val, "HTTP1MaxPendingRequests", &h.HTTP1MaxPendingRequests) + delete(rawMsg, key) + case "http2MaxRequests": + err = unpopulate(val, "HTTP2MaxRequests", &h.HTTP2MaxRequests) + 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 HTTPGet. +func (h HTTPGet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "fileName", h.FileName) + populate(objectMap, "headers", h.Headers) + populate(objectMap, "url", h.URL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPGet. +func (h *HTTPGet) UnmarshalJSON(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 "fileName": + err = unpopulate(val, "FileName", &h.FileName) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &h.Headers) + delete(rawMsg, key) + case "url": + err = unpopulate(val, "URL", &h.URL) + 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 HTTPRetryPolicy. +func (h HTTPRetryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "matches", h.Matches) + populate(objectMap, "maxRetries", h.MaxRetries) + populate(objectMap, "retryBackOff", h.RetryBackOff) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPRetryPolicy. +func (h *HTTPRetryPolicy) UnmarshalJSON(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 "matches": + err = unpopulate(val, "Matches", &h.Matches) + delete(rawMsg, key) + case "maxRetries": + err = unpopulate(val, "MaxRetries", &h.MaxRetries) + delete(rawMsg, key) + case "retryBackOff": + err = unpopulate(val, "RetryBackOff", &h.RetryBackOff) + 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 HTTPRetryPolicyMatches. +func (h HTTPRetryPolicyMatches) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "errors", h.Errors) + populate(objectMap, "httpStatusCodes", h.HTTPStatusCodes) + populate(objectMap, "headers", h.Headers) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPRetryPolicyMatches. +func (h *HTTPRetryPolicyMatches) UnmarshalJSON(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 "errors": + err = unpopulate(val, "Errors", &h.Errors) + delete(rawMsg, key) + case "httpStatusCodes": + err = unpopulate(val, "HTTPStatusCodes", &h.HTTPStatusCodes) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &h.Headers) + 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 HTTPRetryPolicyRetryBackOff. +func (h HTTPRetryPolicyRetryBackOff) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "initialDelayInMilliseconds", h.InitialDelayInMilliseconds) + populate(objectMap, "maxIntervalInMilliseconds", h.MaxIntervalInMilliseconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPRetryPolicyRetryBackOff. +func (h *HTTPRetryPolicyRetryBackOff) UnmarshalJSON(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 "initialDelayInMilliseconds": + err = unpopulate(val, "InitialDelayInMilliseconds", &h.InitialDelayInMilliseconds) + delete(rawMsg, key) + case "maxIntervalInMilliseconds": + err = unpopulate(val, "MaxIntervalInMilliseconds", &h.MaxIntervalInMilliseconds) + 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 HTTPScaleRule. +func (h HTTPScaleRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auth", h.Auth) + populate(objectMap, "metadata", h.Metadata) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPScaleRule. +func (h *HTTPScaleRule) UnmarshalJSON(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 "auth": + err = unpopulate(val, "Auth", &h.Auth) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &h.Metadata) + 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 HTTPSettings. +func (h HTTPSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "forwardProxy", h.ForwardProxy) + populate(objectMap, "requireHttps", h.RequireHTTPS) + populate(objectMap, "routes", h.Routes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPSettings. +func (h *HTTPSettings) UnmarshalJSON(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 "forwardProxy": + err = unpopulate(val, "ForwardProxy", &h.ForwardProxy) + delete(rawMsg, key) + case "requireHttps": + err = unpopulate(val, "RequireHTTPS", &h.RequireHTTPS) + delete(rawMsg, key) + case "routes": + err = unpopulate(val, "Routes", &h.Routes) + 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 HTTPSettingsRoutes. +func (h HTTPSettingsRoutes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "apiPrefix", h.APIPrefix) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HTTPSettingsRoutes. +func (h *HTTPSettingsRoutes) UnmarshalJSON(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 "apiPrefix": + err = unpopulate(val, "APIPrefix", &h.APIPrefix) + 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 Header. +func (h Header) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "key", h.Key) + populate(objectMap, "value", h.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Header. +func (h *Header) UnmarshalJSON(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 "key": + err = unpopulate(val, "Key", &h.Key) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &h.Value) + 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 HeaderMatch. +func (h HeaderMatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "header", h.Header) + populate(objectMap, "match", h.Match) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HeaderMatch. +func (h *HeaderMatch) UnmarshalJSON(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 "header": + err = unpopulate(val, "Header", &h.Header) + delete(rawMsg, key) + case "match": + err = unpopulate(val, "Match", &h.Match) + 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 HeaderMatchMatch. +func (h HeaderMatchMatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "exactMatch", h.ExactMatch) + populate(objectMap, "prefixMatch", h.PrefixMatch) + populate(objectMap, "regexMatch", h.RegexMatch) + populate(objectMap, "suffixMatch", h.SuffixMatch) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HeaderMatchMatch. +func (h *HeaderMatchMatch) UnmarshalJSON(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 "exactMatch": + err = unpopulate(val, "ExactMatch", &h.ExactMatch) + delete(rawMsg, key) + case "prefixMatch": + err = unpopulate(val, "PrefixMatch", &h.PrefixMatch) + delete(rawMsg, key) + case "regexMatch": + err = unpopulate(val, "RegexMatch", &h.RegexMatch) + delete(rawMsg, key) + case "suffixMatch": + err = unpopulate(val, "SuffixMatch", &h.SuffixMatch) + 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 IPSecurityRestrictionRule. +func (i IPSecurityRestrictionRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "action", i.Action) + populate(objectMap, "description", i.Description) + populate(objectMap, "ipAddressRange", i.IPAddressRange) + populate(objectMap, "name", i.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IPSecurityRestrictionRule. +func (i *IPSecurityRestrictionRule) UnmarshalJSON(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 "action": + err = unpopulate(val, "Action", &i.Action) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &i.Description) + delete(rawMsg, key) + case "ipAddressRange": + err = unpopulate(val, "IPAddressRange", &i.IPAddressRange) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + 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 IdentityProviders. +func (i IdentityProviders) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "apple", i.Apple) + populate(objectMap, "azureActiveDirectory", i.AzureActiveDirectory) + populate(objectMap, "azureStaticWebApps", i.AzureStaticWebApps) + populate(objectMap, "customOpenIdConnectProviders", i.CustomOpenIDConnectProviders) + populate(objectMap, "facebook", i.Facebook) + populate(objectMap, "gitHub", i.GitHub) + populate(objectMap, "google", i.Google) + populate(objectMap, "twitter", i.Twitter) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IdentityProviders. +func (i *IdentityProviders) UnmarshalJSON(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 "apple": + err = unpopulate(val, "Apple", &i.Apple) + delete(rawMsg, key) + case "azureActiveDirectory": + err = unpopulate(val, "AzureActiveDirectory", &i.AzureActiveDirectory) + delete(rawMsg, key) + case "azureStaticWebApps": + err = unpopulate(val, "AzureStaticWebApps", &i.AzureStaticWebApps) + delete(rawMsg, key) + case "customOpenIdConnectProviders": + err = unpopulate(val, "CustomOpenIDConnectProviders", &i.CustomOpenIDConnectProviders) + delete(rawMsg, key) + case "facebook": + err = unpopulate(val, "Facebook", &i.Facebook) + delete(rawMsg, key) + case "gitHub": + err = unpopulate(val, "GitHub", &i.GitHub) + delete(rawMsg, key) + case "google": + err = unpopulate(val, "Google", &i.Google) + delete(rawMsg, key) + case "twitter": + err = unpopulate(val, "Twitter", &i.Twitter) + 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 Ingress. +func (i Ingress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalPortMappings", i.AdditionalPortMappings) + populate(objectMap, "allowInsecure", i.AllowInsecure) + populate(objectMap, "clientCertificateMode", i.ClientCertificateMode) + populate(objectMap, "corsPolicy", i.CorsPolicy) + populate(objectMap, "customDomains", i.CustomDomains) + populate(objectMap, "exposedPort", i.ExposedPort) + populate(objectMap, "external", i.External) + populate(objectMap, "fqdn", i.Fqdn) + populate(objectMap, "ipSecurityRestrictions", i.IPSecurityRestrictions) + populate(objectMap, "stickySessions", i.StickySessions) + populate(objectMap, "targetPort", i.TargetPort) + populate(objectMap, "targetPortHttpScheme", i.TargetPortHTTPScheme) + populate(objectMap, "traffic", i.Traffic) + populate(objectMap, "transport", i.Transport) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Ingress. +func (i *Ingress) UnmarshalJSON(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 "additionalPortMappings": + err = unpopulate(val, "AdditionalPortMappings", &i.AdditionalPortMappings) + delete(rawMsg, key) + case "allowInsecure": + err = unpopulate(val, "AllowInsecure", &i.AllowInsecure) + delete(rawMsg, key) + case "clientCertificateMode": + err = unpopulate(val, "ClientCertificateMode", &i.ClientCertificateMode) + delete(rawMsg, key) + case "corsPolicy": + err = unpopulate(val, "CorsPolicy", &i.CorsPolicy) + delete(rawMsg, key) + case "customDomains": + err = unpopulate(val, "CustomDomains", &i.CustomDomains) + delete(rawMsg, key) + case "exposedPort": + err = unpopulate(val, "ExposedPort", &i.ExposedPort) + delete(rawMsg, key) + case "external": + err = unpopulate(val, "External", &i.External) + delete(rawMsg, key) + case "fqdn": + err = unpopulate(val, "Fqdn", &i.Fqdn) + delete(rawMsg, key) + case "ipSecurityRestrictions": + err = unpopulate(val, "IPSecurityRestrictions", &i.IPSecurityRestrictions) + delete(rawMsg, key) + case "stickySessions": + err = unpopulate(val, "StickySessions", &i.StickySessions) + delete(rawMsg, key) + case "targetPort": + err = unpopulate(val, "TargetPort", &i.TargetPort) + delete(rawMsg, key) + case "targetPortHttpScheme": + err = unpopulate(val, "TargetPortHTTPScheme", &i.TargetPortHTTPScheme) + delete(rawMsg, key) + case "traffic": + err = unpopulate(val, "Traffic", &i.Traffic) + delete(rawMsg, key) + case "transport": + err = unpopulate(val, "Transport", &i.Transport) + 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 IngressPortMapping. +func (i IngressPortMapping) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "exposedPort", i.ExposedPort) + populate(objectMap, "external", i.External) + populate(objectMap, "targetPort", i.TargetPort) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IngressPortMapping. +func (i *IngressPortMapping) UnmarshalJSON(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 "exposedPort": + err = unpopulate(val, "ExposedPort", &i.ExposedPort) + delete(rawMsg, key) + case "external": + err = unpopulate(val, "External", &i.External) + delete(rawMsg, key) + case "targetPort": + err = unpopulate(val, "TargetPort", &i.TargetPort) + 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 IngressStickySessions. +func (i IngressStickySessions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "affinity", i.Affinity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IngressStickySessions. +func (i *IngressStickySessions) UnmarshalJSON(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 "affinity": + err = unpopulate(val, "Affinity", &i.Affinity) + 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 InitContainer. +func (i InitContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "args", i.Args) + populate(objectMap, "command", i.Command) + populate(objectMap, "env", i.Env) + populate(objectMap, "image", i.Image) + populate(objectMap, "name", i.Name) + populate(objectMap, "resources", i.Resources) + populate(objectMap, "volumeMounts", i.VolumeMounts) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InitContainer. +func (i *InitContainer) UnmarshalJSON(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 "args": + err = unpopulate(val, "Args", &i.Args) + delete(rawMsg, key) + case "command": + err = unpopulate(val, "Command", &i.Command) + delete(rawMsg, key) + case "env": + err = unpopulate(val, "Env", &i.Env) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &i.Image) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "resources": + err = unpopulate(val, "Resources", &i.Resources) + delete(rawMsg, key) + case "volumeMounts": + err = unpopulate(val, "VolumeMounts", &i.VolumeMounts) + 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 JavaComponent. +func (j JavaComponent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", j.ID) + populate(objectMap, "name", j.Name) + populate(objectMap, "properties", j.Properties) + populate(objectMap, "systemData", j.SystemData) + populate(objectMap, "type", j.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JavaComponent. +func (j *JavaComponent) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &j.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &j.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &j.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &j.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JavaComponentConfigurationProperty. +func (j JavaComponentConfigurationProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "propertyName", j.PropertyName) + populate(objectMap, "value", j.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JavaComponentConfigurationProperty. +func (j *JavaComponentConfigurationProperty) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "propertyName": + err = unpopulate(val, "PropertyName", &j.PropertyName) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &j.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JavaComponentProperties. +func (j JavaComponentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "componentType", j.ComponentType) + populate(objectMap, "configurations", j.Configurations) + populate(objectMap, "provisioningState", j.ProvisioningState) + populate(objectMap, "serviceBinds", j.ServiceBinds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JavaComponentProperties. +func (j *JavaComponentProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "componentType": + err = unpopulate(val, "ComponentType", &j.ComponentType) + delete(rawMsg, key) + case "configurations": + err = unpopulate(val, "Configurations", &j.Configurations) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &j.ProvisioningState) + delete(rawMsg, key) + case "serviceBinds": + err = unpopulate(val, "ServiceBinds", &j.ServiceBinds) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JavaComponentServiceBind. +func (j JavaComponentServiceBind) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", j.Name) + populate(objectMap, "serviceId", j.ServiceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JavaComponentServiceBind. +func (j *JavaComponentServiceBind) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "serviceId": + err = unpopulate(val, "ServiceID", &j.ServiceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JavaComponentsCollection. +func (j JavaComponentsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", j.NextLink) + populate(objectMap, "value", j.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JavaComponentsCollection. +func (j *JavaComponentsCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &j.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &j.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Job. +func (j Job) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", j.ExtendedLocation) + populate(objectMap, "id", j.ID) + populate(objectMap, "identity", j.Identity) + populate(objectMap, "location", j.Location) + populate(objectMap, "name", j.Name) + populate(objectMap, "properties", j.Properties) + populate(objectMap, "systemData", j.SystemData) + populate(objectMap, "tags", j.Tags) + populate(objectMap, "type", j.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Job. +func (j *Job) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &j.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &j.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &j.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &j.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &j.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &j.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &j.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &j.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobConfiguration. +func (j JobConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "eventTriggerConfig", j.EventTriggerConfig) + populate(objectMap, "manualTriggerConfig", j.ManualTriggerConfig) + populate(objectMap, "registries", j.Registries) + populate(objectMap, "replicaRetryLimit", j.ReplicaRetryLimit) + populate(objectMap, "replicaTimeout", j.ReplicaTimeout) + populate(objectMap, "scheduleTriggerConfig", j.ScheduleTriggerConfig) + populate(objectMap, "secrets", j.Secrets) + populate(objectMap, "triggerType", j.TriggerType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobConfiguration. +func (j *JobConfiguration) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "eventTriggerConfig": + err = unpopulate(val, "EventTriggerConfig", &j.EventTriggerConfig) + delete(rawMsg, key) + case "manualTriggerConfig": + err = unpopulate(val, "ManualTriggerConfig", &j.ManualTriggerConfig) + delete(rawMsg, key) + case "registries": + err = unpopulate(val, "Registries", &j.Registries) + delete(rawMsg, key) + case "replicaRetryLimit": + err = unpopulate(val, "ReplicaRetryLimit", &j.ReplicaRetryLimit) + delete(rawMsg, key) + case "replicaTimeout": + err = unpopulate(val, "ReplicaTimeout", &j.ReplicaTimeout) + delete(rawMsg, key) + case "scheduleTriggerConfig": + err = unpopulate(val, "ScheduleTriggerConfig", &j.ScheduleTriggerConfig) + delete(rawMsg, key) + case "secrets": + err = unpopulate(val, "Secrets", &j.Secrets) + delete(rawMsg, key) + case "triggerType": + err = unpopulate(val, "TriggerType", &j.TriggerType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobConfigurationEventTriggerConfig. +func (j JobConfigurationEventTriggerConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "parallelism", j.Parallelism) + populate(objectMap, "replicaCompletionCount", j.ReplicaCompletionCount) + populate(objectMap, "scale", j.Scale) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobConfigurationEventTriggerConfig. +func (j *JobConfigurationEventTriggerConfig) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "parallelism": + err = unpopulate(val, "Parallelism", &j.Parallelism) + delete(rawMsg, key) + case "replicaCompletionCount": + err = unpopulate(val, "ReplicaCompletionCount", &j.ReplicaCompletionCount) + delete(rawMsg, key) + case "scale": + err = unpopulate(val, "Scale", &j.Scale) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobConfigurationManualTriggerConfig. +func (j JobConfigurationManualTriggerConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "parallelism", j.Parallelism) + populate(objectMap, "replicaCompletionCount", j.ReplicaCompletionCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobConfigurationManualTriggerConfig. +func (j *JobConfigurationManualTriggerConfig) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "parallelism": + err = unpopulate(val, "Parallelism", &j.Parallelism) + delete(rawMsg, key) + case "replicaCompletionCount": + err = unpopulate(val, "ReplicaCompletionCount", &j.ReplicaCompletionCount) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobConfigurationScheduleTriggerConfig. +func (j JobConfigurationScheduleTriggerConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "cronExpression", j.CronExpression) + populate(objectMap, "parallelism", j.Parallelism) + populate(objectMap, "replicaCompletionCount", j.ReplicaCompletionCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobConfigurationScheduleTriggerConfig. +func (j *JobConfigurationScheduleTriggerConfig) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "cronExpression": + err = unpopulate(val, "CronExpression", &j.CronExpression) + delete(rawMsg, key) + case "parallelism": + err = unpopulate(val, "Parallelism", &j.Parallelism) + delete(rawMsg, key) + case "replicaCompletionCount": + err = unpopulate(val, "ReplicaCompletionCount", &j.ReplicaCompletionCount) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobExecution. +func (j JobExecution) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", j.ID) + populate(objectMap, "name", j.Name) + populate(objectMap, "properties", j.Properties) + populate(objectMap, "type", j.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobExecution. +func (j *JobExecution) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &j.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &j.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &j.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobExecutionBase. +func (j JobExecutionBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", j.ID) + populate(objectMap, "name", j.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobExecutionBase. +func (j *JobExecutionBase) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &j.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobExecutionContainer. +func (j JobExecutionContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "args", j.Args) + populate(objectMap, "command", j.Command) + populate(objectMap, "env", j.Env) + populate(objectMap, "image", j.Image) + populate(objectMap, "name", j.Name) + populate(objectMap, "resources", j.Resources) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobExecutionContainer. +func (j *JobExecutionContainer) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "args": + err = unpopulate(val, "Args", &j.Args) + delete(rawMsg, key) + case "command": + err = unpopulate(val, "Command", &j.Command) + delete(rawMsg, key) + case "env": + err = unpopulate(val, "Env", &j.Env) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &j.Image) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "resources": + err = unpopulate(val, "Resources", &j.Resources) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobExecutionNamesCollection. +func (j JobExecutionNamesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", j.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobExecutionNamesCollection. +func (j *JobExecutionNamesCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &j.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobExecutionProperties. +func (j JobExecutionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "endTime", j.EndTime) + populateDateTimeRFC3339(objectMap, "startTime", j.StartTime) + populate(objectMap, "status", j.Status) + populate(objectMap, "template", j.Template) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobExecutionProperties. +func (j *JobExecutionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "endTime": + err = unpopulateDateTimeRFC3339(val, "EndTime", &j.EndTime) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &j.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &j.Status) + delete(rawMsg, key) + case "template": + err = unpopulate(val, "Template", &j.Template) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobExecutionTemplate. +func (j JobExecutionTemplate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containers", j.Containers) + populate(objectMap, "initContainers", j.InitContainers) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobExecutionTemplate. +func (j *JobExecutionTemplate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "containers": + err = unpopulate(val, "Containers", &j.Containers) + delete(rawMsg, key) + case "initContainers": + err = unpopulate(val, "InitContainers", &j.InitContainers) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobPatchProperties. +func (j JobPatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", j.ExtendedLocation) + populate(objectMap, "identity", j.Identity) + populate(objectMap, "properties", j.Properties) + populate(objectMap, "tags", j.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobPatchProperties. +func (j *JobPatchProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &j.ExtendedLocation) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &j.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &j.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &j.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobPatchPropertiesProperties. +func (j JobPatchPropertiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configuration", j.Configuration) + populate(objectMap, "environmentId", j.EnvironmentID) + populate(objectMap, "eventStreamEndpoint", j.EventStreamEndpoint) + populate(objectMap, "outboundIpAddresses", j.OutboundIPAddresses) + populate(objectMap, "template", j.Template) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobPatchPropertiesProperties. +func (j *JobPatchPropertiesProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "configuration": + err = unpopulate(val, "Configuration", &j.Configuration) + delete(rawMsg, key) + case "environmentId": + err = unpopulate(val, "EnvironmentID", &j.EnvironmentID) + delete(rawMsg, key) + case "eventStreamEndpoint": + err = unpopulate(val, "EventStreamEndpoint", &j.EventStreamEndpoint) + delete(rawMsg, key) + case "outboundIpAddresses": + err = unpopulate(val, "OutboundIPAddresses", &j.OutboundIPAddresses) + delete(rawMsg, key) + case "template": + err = unpopulate(val, "Template", &j.Template) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobProperties. +func (j JobProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configuration", j.Configuration) + populate(objectMap, "environmentId", j.EnvironmentID) + populate(objectMap, "eventStreamEndpoint", j.EventStreamEndpoint) + populate(objectMap, "outboundIpAddresses", j.OutboundIPAddresses) + populate(objectMap, "provisioningState", j.ProvisioningState) + populate(objectMap, "template", j.Template) + populate(objectMap, "workloadProfileName", j.WorkloadProfileName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobProperties. +func (j *JobProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "configuration": + err = unpopulate(val, "Configuration", &j.Configuration) + delete(rawMsg, key) + case "environmentId": + err = unpopulate(val, "EnvironmentID", &j.EnvironmentID) + delete(rawMsg, key) + case "eventStreamEndpoint": + err = unpopulate(val, "EventStreamEndpoint", &j.EventStreamEndpoint) + delete(rawMsg, key) + case "outboundIpAddresses": + err = unpopulate(val, "OutboundIPAddresses", &j.OutboundIPAddresses) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &j.ProvisioningState) + delete(rawMsg, key) + case "template": + err = unpopulate(val, "Template", &j.Template) + delete(rawMsg, key) + case "workloadProfileName": + err = unpopulate(val, "WorkloadProfileName", &j.WorkloadProfileName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobScale. +func (j JobScale) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxExecutions", j.MaxExecutions) + populate(objectMap, "minExecutions", j.MinExecutions) + populate(objectMap, "pollingInterval", j.PollingInterval) + populate(objectMap, "rules", j.Rules) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobScale. +func (j *JobScale) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "maxExecutions": + err = unpopulate(val, "MaxExecutions", &j.MaxExecutions) + delete(rawMsg, key) + case "minExecutions": + err = unpopulate(val, "MinExecutions", &j.MinExecutions) + delete(rawMsg, key) + case "pollingInterval": + err = unpopulate(val, "PollingInterval", &j.PollingInterval) + delete(rawMsg, key) + case "rules": + err = unpopulate(val, "Rules", &j.Rules) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobScaleRule. +func (j JobScaleRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auth", j.Auth) + populateAny(objectMap, "metadata", j.Metadata) + populate(objectMap, "name", j.Name) + populate(objectMap, "type", j.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobScaleRule. +func (j *JobScaleRule) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "auth": + err = unpopulate(val, "Auth", &j.Auth) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &j.Metadata) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &j.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobSecretsCollection. +func (j JobSecretsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", j.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobSecretsCollection. +func (j *JobSecretsCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &j.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobTemplate. +func (j JobTemplate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containers", j.Containers) + populate(objectMap, "initContainers", j.InitContainers) + populate(objectMap, "volumes", j.Volumes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobTemplate. +func (j *JobTemplate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "containers": + err = unpopulate(val, "Containers", &j.Containers) + delete(rawMsg, key) + case "initContainers": + err = unpopulate(val, "InitContainers", &j.InitContainers) + delete(rawMsg, key) + case "volumes": + err = unpopulate(val, "Volumes", &j.Volumes) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobsCollection. +func (j JobsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", j.NextLink) + populate(objectMap, "value", j.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobsCollection. +func (j *JobsCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &j.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &j.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JwtClaimChecks. +func (j JwtClaimChecks) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedClientApplications", j.AllowedClientApplications) + populate(objectMap, "allowedGroups", j.AllowedGroups) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JwtClaimChecks. +func (j *JwtClaimChecks) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "allowedClientApplications": + err = unpopulate(val, "AllowedClientApplications", &j.AllowedClientApplications) + delete(rawMsg, key) + case "allowedGroups": + err = unpopulate(val, "AllowedGroups", &j.AllowedGroups) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KedaConfiguration. +func (k KedaConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "version", k.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KedaConfiguration. +func (k *KedaConfiguration) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "version": + err = unpopulate(val, "Version", &k.Version) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ListUsagesResult. +func (l ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ListUsagesResult. +func (l *ListUsagesResult) UnmarshalJSON(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 LogAnalyticsConfiguration. +func (l LogAnalyticsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customerId", l.CustomerID) + populate(objectMap, "dynamicJsonColumns", l.DynamicJSONColumns) + populate(objectMap, "sharedKey", l.SharedKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsConfiguration. +func (l *LogAnalyticsConfiguration) UnmarshalJSON(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 "customerId": + err = unpopulate(val, "CustomerID", &l.CustomerID) + delete(rawMsg, key) + case "dynamicJsonColumns": + err = unpopulate(val, "DynamicJSONColumns", &l.DynamicJSONColumns) + delete(rawMsg, key) + case "sharedKey": + err = unpopulate(val, "SharedKey", &l.SharedKey) + 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 Login. +func (l Login) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedExternalRedirectUrls", l.AllowedExternalRedirectUrls) + populate(objectMap, "cookieExpiration", l.CookieExpiration) + populate(objectMap, "nonce", l.Nonce) + populate(objectMap, "preserveUrlFragmentsForLogins", l.PreserveURLFragmentsForLogins) + populate(objectMap, "routes", l.Routes) + populate(objectMap, "tokenStore", l.TokenStore) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Login. +func (l *Login) UnmarshalJSON(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 "allowedExternalRedirectUrls": + err = unpopulate(val, "AllowedExternalRedirectUrls", &l.AllowedExternalRedirectUrls) + delete(rawMsg, key) + case "cookieExpiration": + err = unpopulate(val, "CookieExpiration", &l.CookieExpiration) + delete(rawMsg, key) + case "nonce": + err = unpopulate(val, "Nonce", &l.Nonce) + delete(rawMsg, key) + case "preserveUrlFragmentsForLogins": + err = unpopulate(val, "PreserveURLFragmentsForLogins", &l.PreserveURLFragmentsForLogins) + delete(rawMsg, key) + case "routes": + err = unpopulate(val, "Routes", &l.Routes) + delete(rawMsg, key) + case "tokenStore": + err = unpopulate(val, "TokenStore", &l.TokenStore) + 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 LoginRoutes. +func (l LoginRoutes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "logoutEndpoint", l.LogoutEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoginRoutes. +func (l *LoginRoutes) UnmarshalJSON(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 "logoutEndpoint": + err = unpopulate(val, "LogoutEndpoint", &l.LogoutEndpoint) + 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 LoginScopes. +func (l LoginScopes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "scopes", l.Scopes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoginScopes. +func (l *LoginScopes) UnmarshalJSON(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 "scopes": + err = unpopulate(val, "Scopes", &l.Scopes) + 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 LogsConfiguration. +func (l LogsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "destinations", l.Destinations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogsConfiguration. +func (l *LogsConfiguration) UnmarshalJSON(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 "destinations": + err = unpopulate(val, "Destinations", &l.Destinations) + 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 ManagedCertificate. +func (m ManagedCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCertificate. +func (m *ManagedCertificate) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &m.Location) + 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 "systemData": + err = unpopulate(val, "SystemData", &m.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &m.Tags) + 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 ManagedCertificateCollection. +func (m ManagedCertificateCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCertificateCollection. +func (m *ManagedCertificateCollection) UnmarshalJSON(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 ManagedCertificatePatch. +func (m ManagedCertificatePatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", m.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCertificatePatch. +func (m *ManagedCertificatePatch) UnmarshalJSON(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 "tags": + err = unpopulate(val, "Tags", &m.Tags) + 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 ManagedCertificateProperties. +func (m ManagedCertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "domainControlValidation", m.DomainControlValidation) + populate(objectMap, "error", m.Error) + populate(objectMap, "provisioningState", m.ProvisioningState) + populate(objectMap, "subjectName", m.SubjectName) + populate(objectMap, "validationToken", m.ValidationToken) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCertificateProperties. +func (m *ManagedCertificateProperties) UnmarshalJSON(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 "domainControlValidation": + err = unpopulate(val, "DomainControlValidation", &m.DomainControlValidation) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &m.Error) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &m.ProvisioningState) + delete(rawMsg, key) + case "subjectName": + err = unpopulate(val, "SubjectName", &m.SubjectName) + delete(rawMsg, key) + case "validationToken": + err = unpopulate(val, "ValidationToken", &m.ValidationToken) + 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 ManagedEnvironment. +func (m ManagedEnvironment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "identity", m.Identity) + populate(objectMap, "kind", m.Kind) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedEnvironment. +func (m *ManagedEnvironment) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &m.Identity) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &m.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &m.Location) + 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 "systemData": + err = unpopulate(val, "SystemData", &m.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &m.Tags) + 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 ManagedEnvironmentProperties. +func (m ManagedEnvironmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "appInsightsConfiguration", m.AppInsightsConfiguration) + populate(objectMap, "appLogsConfiguration", m.AppLogsConfiguration) + populate(objectMap, "customDomainConfiguration", m.CustomDomainConfiguration) + populate(objectMap, "daprAIConnectionString", m.DaprAIConnectionString) + populate(objectMap, "daprAIInstrumentationKey", m.DaprAIInstrumentationKey) + populate(objectMap, "daprConfiguration", m.DaprConfiguration) + populate(objectMap, "defaultDomain", m.DefaultDomain) + populate(objectMap, "deploymentErrors", m.DeploymentErrors) + populate(objectMap, "eventStreamEndpoint", m.EventStreamEndpoint) + populate(objectMap, "infrastructureResourceGroup", m.InfrastructureResourceGroup) + populate(objectMap, "kedaConfiguration", m.KedaConfiguration) + populate(objectMap, "openTelemetryConfiguration", m.OpenTelemetryConfiguration) + populate(objectMap, "peerAuthentication", m.PeerAuthentication) + populate(objectMap, "provisioningState", m.ProvisioningState) + populate(objectMap, "staticIp", m.StaticIP) + populate(objectMap, "vnetConfiguration", m.VnetConfiguration) + populate(objectMap, "workloadProfiles", m.WorkloadProfiles) + populate(objectMap, "zoneRedundant", m.ZoneRedundant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedEnvironmentProperties. +func (m *ManagedEnvironmentProperties) UnmarshalJSON(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 "appInsightsConfiguration": + err = unpopulate(val, "AppInsightsConfiguration", &m.AppInsightsConfiguration) + delete(rawMsg, key) + case "appLogsConfiguration": + err = unpopulate(val, "AppLogsConfiguration", &m.AppLogsConfiguration) + delete(rawMsg, key) + case "customDomainConfiguration": + err = unpopulate(val, "CustomDomainConfiguration", &m.CustomDomainConfiguration) + delete(rawMsg, key) + case "daprAIConnectionString": + err = unpopulate(val, "DaprAIConnectionString", &m.DaprAIConnectionString) + delete(rawMsg, key) + case "daprAIInstrumentationKey": + err = unpopulate(val, "DaprAIInstrumentationKey", &m.DaprAIInstrumentationKey) + delete(rawMsg, key) + case "daprConfiguration": + err = unpopulate(val, "DaprConfiguration", &m.DaprConfiguration) + delete(rawMsg, key) + case "defaultDomain": + err = unpopulate(val, "DefaultDomain", &m.DefaultDomain) + delete(rawMsg, key) + case "deploymentErrors": + err = unpopulate(val, "DeploymentErrors", &m.DeploymentErrors) + delete(rawMsg, key) + case "eventStreamEndpoint": + err = unpopulate(val, "EventStreamEndpoint", &m.EventStreamEndpoint) + delete(rawMsg, key) + case "infrastructureResourceGroup": + err = unpopulate(val, "InfrastructureResourceGroup", &m.InfrastructureResourceGroup) + delete(rawMsg, key) + case "kedaConfiguration": + err = unpopulate(val, "KedaConfiguration", &m.KedaConfiguration) + delete(rawMsg, key) + case "openTelemetryConfiguration": + err = unpopulate(val, "OpenTelemetryConfiguration", &m.OpenTelemetryConfiguration) + delete(rawMsg, key) + case "peerAuthentication": + err = unpopulate(val, "PeerAuthentication", &m.PeerAuthentication) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &m.ProvisioningState) + delete(rawMsg, key) + case "staticIp": + err = unpopulate(val, "StaticIP", &m.StaticIP) + delete(rawMsg, key) + case "vnetConfiguration": + err = unpopulate(val, "VnetConfiguration", &m.VnetConfiguration) + delete(rawMsg, key) + case "workloadProfiles": + err = unpopulate(val, "WorkloadProfiles", &m.WorkloadProfiles) + delete(rawMsg, key) + case "zoneRedundant": + err = unpopulate(val, "ZoneRedundant", &m.ZoneRedundant) + 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 ManagedEnvironmentPropertiesPeerAuthentication. +func (m ManagedEnvironmentPropertiesPeerAuthentication) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "mtls", m.Mtls) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedEnvironmentPropertiesPeerAuthentication. +func (m *ManagedEnvironmentPropertiesPeerAuthentication) UnmarshalJSON(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 "mtls": + err = unpopulate(val, "Mtls", &m.Mtls) + 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 ManagedEnvironmentStorage. +func (m ManagedEnvironmentStorage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedEnvironmentStorage. +func (m *ManagedEnvironmentStorage) UnmarshalJSON(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 "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 "systemData": + err = unpopulate(val, "SystemData", &m.SystemData) + 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 ManagedEnvironmentStorageProperties. +func (m ManagedEnvironmentStorageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureFile", m.AzureFile) + populate(objectMap, "nfsAzureFile", m.NfsAzureFile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedEnvironmentStorageProperties. +func (m *ManagedEnvironmentStorageProperties) UnmarshalJSON(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 "azureFile": + err = unpopulate(val, "AzureFile", &m.AzureFile) + delete(rawMsg, key) + case "nfsAzureFile": + err = unpopulate(val, "NfsAzureFile", &m.NfsAzureFile) + 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 ManagedEnvironmentStoragesCollection. +func (m ManagedEnvironmentStoragesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedEnvironmentStoragesCollection. +func (m *ManagedEnvironmentStoragesCollection) UnmarshalJSON(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 "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 ManagedEnvironmentsCollection. +func (m ManagedEnvironmentsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedEnvironmentsCollection. +func (m *ManagedEnvironmentsCollection) UnmarshalJSON(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 ManagedServiceIdentity. +func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", m.PrincipalID) + populate(objectMap, "tenantId", m.TenantID) + populate(objectMap, "type", m.Type) + populate(objectMap, "userAssignedIdentities", m.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity. +func (m *ManagedServiceIdentity) UnmarshalJSON(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 "principalId": + err = unpopulate(val, "PrincipalID", &m.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &m.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &m.UserAssignedIdentities) + 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 MetricsConfiguration. +func (m MetricsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "destinations", m.Destinations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricsConfiguration. +func (m *MetricsConfiguration) UnmarshalJSON(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 "destinations": + err = unpopulate(val, "Destinations", &m.Destinations) + 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 Mtls. +func (m Mtls) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", m.Enabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Mtls. +func (m *Mtls) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &m.Enabled) + 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 NfsAzureFileProperties. +func (n NfsAzureFileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "accessMode", n.AccessMode) + populate(objectMap, "server", n.Server) + populate(objectMap, "shareName", n.ShareName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NfsAzureFileProperties. +func (n *NfsAzureFileProperties) UnmarshalJSON(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 "accessMode": + err = unpopulate(val, "AccessMode", &n.AccessMode) + delete(rawMsg, key) + case "server": + err = unpopulate(val, "Server", &n.Server) + delete(rawMsg, key) + case "shareName": + err = unpopulate(val, "ShareName", &n.ShareName) + 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 Nonce. +func (n Nonce) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nonceExpirationInterval", n.NonceExpirationInterval) + populate(objectMap, "validateNonce", n.ValidateNonce) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Nonce. +func (n *Nonce) UnmarshalJSON(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 "nonceExpirationInterval": + err = unpopulate(val, "NonceExpirationInterval", &n.NonceExpirationInterval) + delete(rawMsg, key) + case "validateNonce": + err = unpopulate(val, "ValidateNonce", &n.ValidateNonce) + 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 OpenIDConnectClientCredential. +func (o OpenIDConnectClientCredential) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientSecretSettingName", o.ClientSecretSettingName) + objectMap["method"] = "ClientSecretPost" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OpenIDConnectClientCredential. +func (o *OpenIDConnectClientCredential) UnmarshalJSON(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 "clientSecretSettingName": + err = unpopulate(val, "ClientSecretSettingName", &o.ClientSecretSettingName) + delete(rawMsg, key) + case "method": + err = unpopulate(val, "Method", &o.Method) + 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 OpenIDConnectConfig. +func (o OpenIDConnectConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authorizationEndpoint", o.AuthorizationEndpoint) + populate(objectMap, "certificationUri", o.CertificationURI) + populate(objectMap, "issuer", o.Issuer) + populate(objectMap, "tokenEndpoint", o.TokenEndpoint) + populate(objectMap, "wellKnownOpenIdConfiguration", o.WellKnownOpenIDConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OpenIDConnectConfig. +func (o *OpenIDConnectConfig) UnmarshalJSON(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 "authorizationEndpoint": + err = unpopulate(val, "AuthorizationEndpoint", &o.AuthorizationEndpoint) + delete(rawMsg, key) + case "certificationUri": + err = unpopulate(val, "CertificationURI", &o.CertificationURI) + delete(rawMsg, key) + case "issuer": + err = unpopulate(val, "Issuer", &o.Issuer) + delete(rawMsg, key) + case "tokenEndpoint": + err = unpopulate(val, "TokenEndpoint", &o.TokenEndpoint) + delete(rawMsg, key) + case "wellKnownOpenIdConfiguration": + err = unpopulate(val, "WellKnownOpenIDConfiguration", &o.WellKnownOpenIDConfiguration) + 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 OpenIDConnectLogin. +func (o OpenIDConnectLogin) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nameClaimType", o.NameClaimType) + populate(objectMap, "scopes", o.Scopes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OpenIDConnectLogin. +func (o *OpenIDConnectLogin) UnmarshalJSON(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 "nameClaimType": + err = unpopulate(val, "NameClaimType", &o.NameClaimType) + delete(rawMsg, key) + case "scopes": + err = unpopulate(val, "Scopes", &o.Scopes) + 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 OpenIDConnectRegistration. +func (o OpenIDConnectRegistration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientCredential", o.ClientCredential) + populate(objectMap, "clientId", o.ClientID) + populate(objectMap, "openIdConnectConfiguration", o.OpenIDConnectConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OpenIDConnectRegistration. +func (o *OpenIDConnectRegistration) UnmarshalJSON(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 "clientCredential": + err = unpopulate(val, "ClientCredential", &o.ClientCredential) + delete(rawMsg, key) + case "clientId": + err = unpopulate(val, "ClientID", &o.ClientID) + delete(rawMsg, key) + case "openIdConnectConfiguration": + err = unpopulate(val, "OpenIDConnectConfiguration", &o.OpenIDConnectConfiguration) + 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 OpenTelemetryConfiguration. +func (o OpenTelemetryConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "destinationsConfiguration", o.DestinationsConfiguration) + populate(objectMap, "logsConfiguration", o.LogsConfiguration) + populate(objectMap, "metricsConfiguration", o.MetricsConfiguration) + populate(objectMap, "tracesConfiguration", o.TracesConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OpenTelemetryConfiguration. +func (o *OpenTelemetryConfiguration) UnmarshalJSON(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 "destinationsConfiguration": + err = unpopulate(val, "DestinationsConfiguration", &o.DestinationsConfiguration) + delete(rawMsg, key) + case "logsConfiguration": + err = unpopulate(val, "LogsConfiguration", &o.LogsConfiguration) + delete(rawMsg, key) + case "metricsConfiguration": + err = unpopulate(val, "MetricsConfiguration", &o.MetricsConfiguration) + delete(rawMsg, key) + case "tracesConfiguration": + err = unpopulate(val, "TracesConfiguration", &o.TracesConfiguration) + 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 OperationDetail. +func (o OperationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "display", o.Display) + populate(objectMap, "isDataAction", o.IsDataAction) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDetail. +func (o *OperationDetail) UnmarshalJSON(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 "isDataAction": + err = unpopulate(val, "IsDataAction", &o.IsDataAction) + 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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. +func (o *OperationDisplay) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &o.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OtlpConfiguration. +func (o OtlpConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "endpoint", o.Endpoint) + populate(objectMap, "headers", o.Headers) + populate(objectMap, "insecure", o.Insecure) + populate(objectMap, "name", o.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OtlpConfiguration. +func (o *OtlpConfiguration) UnmarshalJSON(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 "endpoint": + err = unpopulate(val, "Endpoint", &o.Endpoint) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &o.Headers) + delete(rawMsg, key) + case "insecure": + err = unpopulate(val, "Insecure", &o.Insecure) + 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 PreBuildStep. +func (p PreBuildStep) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", p.Description) + populate(objectMap, "httpGet", p.HTTPGet) + populate(objectMap, "scripts", p.Scripts) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PreBuildStep. +func (p *PreBuildStep) UnmarshalJSON(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 "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "httpGet": + err = unpopulate(val, "HTTPGet", &p.HTTPGet) + delete(rawMsg, key) + case "scripts": + err = unpopulate(val, "Scripts", &p.Scripts) + 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 ProxyResource. +func (p ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "systemData", p.SystemData) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. +func (p *ProxyResource) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &p.SystemData) + 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 QueueScaleRule. +func (q QueueScaleRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auth", q.Auth) + populate(objectMap, "queueLength", q.QueueLength) + populate(objectMap, "queueName", q.QueueName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type QueueScaleRule. +func (q *QueueScaleRule) UnmarshalJSON(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 "auth": + err = unpopulate(val, "Auth", &q.Auth) + delete(rawMsg, key) + case "queueLength": + err = unpopulate(val, "QueueLength", &q.QueueLength) + delete(rawMsg, key) + case "queueName": + err = unpopulate(val, "QueueName", &q.QueueName) + 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 RegistryCredentials. +func (r RegistryCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", r.Identity) + populate(objectMap, "passwordSecretRef", r.PasswordSecretRef) + populate(objectMap, "server", r.Server) + populate(objectMap, "username", r.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryCredentials. +func (r *RegistryCredentials) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &r.Identity) + delete(rawMsg, key) + case "passwordSecretRef": + err = unpopulate(val, "PasswordSecretRef", &r.PasswordSecretRef) + delete(rawMsg, key) + case "server": + err = unpopulate(val, "Server", &r.Server) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &r.Username) + 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 RegistryInfo. +func (r RegistryInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "registryPassword", r.RegistryPassword) + populate(objectMap, "registryUrl", r.RegistryURL) + populate(objectMap, "registryUserName", r.RegistryUserName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryInfo. +func (r *RegistryInfo) UnmarshalJSON(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 "registryPassword": + err = unpopulate(val, "RegistryPassword", &r.RegistryPassword) + delete(rawMsg, key) + case "registryUrl": + err = unpopulate(val, "RegistryURL", &r.RegistryURL) + delete(rawMsg, key) + case "registryUserName": + err = unpopulate(val, "RegistryUserName", &r.RegistryUserName) + 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 Replica. +func (r Replica) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Replica. +func (r *Replica) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ReplicaCollection. +func (r ReplicaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicaCollection. +func (r *ReplicaCollection) UnmarshalJSON(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 "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ReplicaContainer. +func (r ReplicaContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containerId", r.ContainerID) + populate(objectMap, "execEndpoint", r.ExecEndpoint) + populate(objectMap, "logStreamEndpoint", r.LogStreamEndpoint) + populate(objectMap, "name", r.Name) + populate(objectMap, "ready", r.Ready) + populate(objectMap, "restartCount", r.RestartCount) + populate(objectMap, "runningState", r.RunningState) + populate(objectMap, "runningStateDetails", r.RunningStateDetails) + populate(objectMap, "started", r.Started) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicaContainer. +func (r *ReplicaContainer) UnmarshalJSON(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 "containerId": + err = unpopulate(val, "ContainerID", &r.ContainerID) + delete(rawMsg, key) + case "execEndpoint": + err = unpopulate(val, "ExecEndpoint", &r.ExecEndpoint) + delete(rawMsg, key) + case "logStreamEndpoint": + err = unpopulate(val, "LogStreamEndpoint", &r.LogStreamEndpoint) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "ready": + err = unpopulate(val, "Ready", &r.Ready) + delete(rawMsg, key) + case "restartCount": + err = unpopulate(val, "RestartCount", &r.RestartCount) + delete(rawMsg, key) + case "runningState": + err = unpopulate(val, "RunningState", &r.RunningState) + delete(rawMsg, key) + case "runningStateDetails": + err = unpopulate(val, "RunningStateDetails", &r.RunningStateDetails) + delete(rawMsg, key) + case "started": + err = unpopulate(val, "Started", &r.Started) + 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 ReplicaProperties. +func (r ReplicaProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containers", r.Containers) + populateDateTimeRFC3339(objectMap, "createdTime", r.CreatedTime) + populate(objectMap, "initContainers", r.InitContainers) + populate(objectMap, "runningState", r.RunningState) + populate(objectMap, "runningStateDetails", r.RunningStateDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicaProperties. +func (r *ReplicaProperties) UnmarshalJSON(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 "containers": + err = unpopulate(val, "Containers", &r.Containers) + delete(rawMsg, key) + case "createdTime": + err = unpopulateDateTimeRFC3339(val, "CreatedTime", &r.CreatedTime) + delete(rawMsg, key) + case "initContainers": + err = unpopulate(val, "InitContainers", &r.InitContainers) + delete(rawMsg, key) + case "runningState": + err = unpopulate(val, "RunningState", &r.RunningState) + delete(rawMsg, key) + case "runningStateDetails": + err = unpopulate(val, "RunningStateDetails", &r.RunningStateDetails) + 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 Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + 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 "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Revision. +func (r Revision) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Revision. +func (r *Revision) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RevisionCollection. +func (r RevisionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RevisionCollection. +func (r *RevisionCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RevisionProperties. +func (r RevisionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "active", r.Active) + populateDateTimeRFC3339(objectMap, "createdTime", r.CreatedTime) + populate(objectMap, "fqdn", r.Fqdn) + populate(objectMap, "healthState", r.HealthState) + populateDateTimeRFC3339(objectMap, "lastActiveTime", r.LastActiveTime) + populate(objectMap, "provisioningError", r.ProvisioningError) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "replicas", r.Replicas) + populate(objectMap, "runningState", r.RunningState) + populate(objectMap, "template", r.Template) + populate(objectMap, "trafficWeight", r.TrafficWeight) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RevisionProperties. +func (r *RevisionProperties) UnmarshalJSON(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 "active": + err = unpopulate(val, "Active", &r.Active) + delete(rawMsg, key) + case "createdTime": + err = unpopulateDateTimeRFC3339(val, "CreatedTime", &r.CreatedTime) + delete(rawMsg, key) + case "fqdn": + err = unpopulate(val, "Fqdn", &r.Fqdn) + delete(rawMsg, key) + case "healthState": + err = unpopulate(val, "HealthState", &r.HealthState) + delete(rawMsg, key) + case "lastActiveTime": + err = unpopulateDateTimeRFC3339(val, "LastActiveTime", &r.LastActiveTime) + delete(rawMsg, key) + case "provisioningError": + err = unpopulate(val, "ProvisioningError", &r.ProvisioningError) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "replicas": + err = unpopulate(val, "Replicas", &r.Replicas) + delete(rawMsg, key) + case "runningState": + err = unpopulate(val, "RunningState", &r.RunningState) + delete(rawMsg, key) + case "template": + err = unpopulate(val, "Template", &r.Template) + delete(rawMsg, key) + case "trafficWeight": + err = unpopulate(val, "TrafficWeight", &r.TrafficWeight) + 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 Scale. +func (s Scale) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxReplicas", s.MaxReplicas) + populate(objectMap, "minReplicas", s.MinReplicas) + populate(objectMap, "rules", s.Rules) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Scale. +func (s *Scale) UnmarshalJSON(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 "maxReplicas": + err = unpopulate(val, "MaxReplicas", &s.MaxReplicas) + delete(rawMsg, key) + case "minReplicas": + err = unpopulate(val, "MinReplicas", &s.MinReplicas) + delete(rawMsg, key) + case "rules": + err = unpopulate(val, "Rules", &s.Rules) + 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 ScaleRule. +func (s ScaleRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureQueue", s.AzureQueue) + populate(objectMap, "custom", s.Custom) + populate(objectMap, "http", s.HTTP) + populate(objectMap, "name", s.Name) + populate(objectMap, "tcp", s.TCP) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScaleRule. +func (s *ScaleRule) UnmarshalJSON(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 "azureQueue": + err = unpopulate(val, "AzureQueue", &s.AzureQueue) + delete(rawMsg, key) + case "custom": + err = unpopulate(val, "Custom", &s.Custom) + delete(rawMsg, key) + case "http": + err = unpopulate(val, "HTTP", &s.HTTP) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "tcp": + err = unpopulate(val, "TCP", &s.TCP) + 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 ScaleRuleAuth. +func (s ScaleRuleAuth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secretRef", s.SecretRef) + populate(objectMap, "triggerParameter", s.TriggerParameter) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScaleRuleAuth. +func (s *ScaleRuleAuth) UnmarshalJSON(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 "secretRef": + err = unpopulate(val, "SecretRef", &s.SecretRef) + delete(rawMsg, key) + case "triggerParameter": + err = unpopulate(val, "TriggerParameter", &s.TriggerParameter) + 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 Secret. +func (s Secret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", s.Identity) + populate(objectMap, "keyVaultUrl", s.KeyVaultURL) + populate(objectMap, "name", s.Name) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Secret. +func (s *Secret) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &s.Identity) + delete(rawMsg, key) + case "keyVaultUrl": + err = unpopulate(val, "KeyVaultURL", &s.KeyVaultURL) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + 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 SecretVolumeItem. +func (s SecretVolumeItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "path", s.Path) + populate(objectMap, "secretRef", s.SecretRef) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretVolumeItem. +func (s *SecretVolumeItem) UnmarshalJSON(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) + case "secretRef": + err = unpopulate(val, "SecretRef", &s.SecretRef) + 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 SecretsCollection. +func (s SecretsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretsCollection. +func (s *SecretsCollection) UnmarshalJSON(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 Service. +func (s Service) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Service. +func (s *Service) UnmarshalJSON(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 ServiceBind. +func (s ServiceBind) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientType", s.ClientType) + populate(objectMap, "customizedKeys", s.CustomizedKeys) + populate(objectMap, "name", s.Name) + populate(objectMap, "serviceId", s.ServiceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBind. +func (s *ServiceBind) UnmarshalJSON(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 "clientType": + err = unpopulate(val, "ClientType", &s.ClientType) + delete(rawMsg, key) + case "customizedKeys": + err = unpopulate(val, "CustomizedKeys", &s.CustomizedKeys) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "serviceId": + err = unpopulate(val, "ServiceID", &s.ServiceID) + 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 SourceControl. +func (s SourceControl) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceControl. +func (s *SourceControl) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &s.ID) + 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 "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + 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 SourceControlCollection. +func (s SourceControlCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlCollection. +func (s *SourceControlCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + 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 SourceControlProperties. +func (s SourceControlProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "branch", s.Branch) + populate(objectMap, "githubActionConfiguration", s.GithubActionConfiguration) + populate(objectMap, "operationState", s.OperationState) + populate(objectMap, "repoUrl", s.RepoURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlProperties. +func (s *SourceControlProperties) UnmarshalJSON(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 "branch": + err = unpopulate(val, "Branch", &s.Branch) + delete(rawMsg, key) + case "githubActionConfiguration": + err = unpopulate(val, "GithubActionConfiguration", &s.GithubActionConfiguration) + delete(rawMsg, key) + case "operationState": + err = unpopulate(val, "OperationState", &s.OperationState) + delete(rawMsg, key) + case "repoUrl": + err = unpopulate(val, "RepoURL", &s.RepoURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(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 "createdAt": + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, "CreatedByType", &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) + 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 TCPConnectionPool. +func (t TCPConnectionPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxConnections", t.MaxConnections) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TCPConnectionPool. +func (t *TCPConnectionPool) UnmarshalJSON(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 "maxConnections": + err = unpopulate(val, "MaxConnections", &t.MaxConnections) + 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 TCPRetryPolicy. +func (t TCPRetryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxConnectAttempts", t.MaxConnectAttempts) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TCPRetryPolicy. +func (t *TCPRetryPolicy) UnmarshalJSON(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 "maxConnectAttempts": + err = unpopulate(val, "MaxConnectAttempts", &t.MaxConnectAttempts) + 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 TCPScaleRule. +func (t TCPScaleRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auth", t.Auth) + populate(objectMap, "metadata", t.Metadata) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TCPScaleRule. +func (t *TCPScaleRule) UnmarshalJSON(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 "auth": + err = unpopulate(val, "Auth", &t.Auth) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &t.Metadata) + 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 Template. +func (t Template) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containers", t.Containers) + populate(objectMap, "initContainers", t.InitContainers) + populate(objectMap, "revisionSuffix", t.RevisionSuffix) + populate(objectMap, "scale", t.Scale) + populate(objectMap, "serviceBinds", t.ServiceBinds) + populate(objectMap, "terminationGracePeriodSeconds", t.TerminationGracePeriodSeconds) + populate(objectMap, "volumes", t.Volumes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Template. +func (t *Template) UnmarshalJSON(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 "containers": + err = unpopulate(val, "Containers", &t.Containers) + delete(rawMsg, key) + case "initContainers": + err = unpopulate(val, "InitContainers", &t.InitContainers) + delete(rawMsg, key) + case "revisionSuffix": + err = unpopulate(val, "RevisionSuffix", &t.RevisionSuffix) + delete(rawMsg, key) + case "scale": + err = unpopulate(val, "Scale", &t.Scale) + delete(rawMsg, key) + case "serviceBinds": + err = unpopulate(val, "ServiceBinds", &t.ServiceBinds) + delete(rawMsg, key) + case "terminationGracePeriodSeconds": + err = unpopulate(val, "TerminationGracePeriodSeconds", &t.TerminationGracePeriodSeconds) + delete(rawMsg, key) + case "volumes": + err = unpopulate(val, "Volumes", &t.Volumes) + 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 TimeoutPolicy. +func (t TimeoutPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectionTimeoutInSeconds", t.ConnectionTimeoutInSeconds) + populate(objectMap, "responseTimeoutInSeconds", t.ResponseTimeoutInSeconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TimeoutPolicy. +func (t *TimeoutPolicy) UnmarshalJSON(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 "connectionTimeoutInSeconds": + err = unpopulate(val, "ConnectionTimeoutInSeconds", &t.ConnectionTimeoutInSeconds) + delete(rawMsg, key) + case "responseTimeoutInSeconds": + err = unpopulate(val, "ResponseTimeoutInSeconds", &t.ResponseTimeoutInSeconds) + 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 TokenStore. +func (t TokenStore) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureBlobStorage", t.AzureBlobStorage) + populate(objectMap, "enabled", t.Enabled) + populate(objectMap, "tokenRefreshExtensionHours", t.TokenRefreshExtensionHours) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenStore. +func (t *TokenStore) UnmarshalJSON(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 "azureBlobStorage": + err = unpopulate(val, "AzureBlobStorage", &t.AzureBlobStorage) + delete(rawMsg, key) + case "enabled": + err = unpopulate(val, "Enabled", &t.Enabled) + delete(rawMsg, key) + case "tokenRefreshExtensionHours": + err = unpopulate(val, "TokenRefreshExtensionHours", &t.TokenRefreshExtensionHours) + 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 TracesConfiguration. +func (t TracesConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "destinations", t.Destinations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TracesConfiguration. +func (t *TracesConfiguration) UnmarshalJSON(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 "destinations": + err = unpopulate(val, "Destinations", &t.Destinations) + 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 TrackedResource. +func (t TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource. +func (t *TrackedResource) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &t.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + 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 TrafficWeight. +func (t TrafficWeight) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "label", t.Label) + populate(objectMap, "latestRevision", t.LatestRevision) + populate(objectMap, "revisionName", t.RevisionName) + populate(objectMap, "weight", t.Weight) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TrafficWeight. +func (t *TrafficWeight) UnmarshalJSON(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 "label": + err = unpopulate(val, "Label", &t.Label) + delete(rawMsg, key) + case "latestRevision": + err = unpopulate(val, "LatestRevision", &t.LatestRevision) + delete(rawMsg, key) + case "revisionName": + err = unpopulate(val, "RevisionName", &t.RevisionName) + delete(rawMsg, key) + case "weight": + err = unpopulate(val, "Weight", &t.Weight) + 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 Twitter. +func (t Twitter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", t.Enabled) + populate(objectMap, "registration", t.Registration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Twitter. +func (t *Twitter) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &t.Enabled) + delete(rawMsg, key) + case "registration": + err = unpopulate(val, "Registration", &t.Registration) + 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 TwitterRegistration. +func (t TwitterRegistration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "consumerKey", t.ConsumerKey) + populate(objectMap, "consumerSecretSettingName", t.ConsumerSecretSettingName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TwitterRegistration. +func (t *TwitterRegistration) UnmarshalJSON(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 "consumerKey": + err = unpopulate(val, "ConsumerKey", &t.ConsumerKey) + delete(rawMsg, key) + case "consumerSecretSettingName": + err = unpopulate(val, "ConsumerSecretSettingName", &t.ConsumerSecretSettingName) + 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 Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentValue", u.CurrentValue) + populate(objectMap, "limit", u.Limit) + populate(objectMap, "name", u.Name) + objectMap["unit"] = "Count" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Usage. +func (u *Usage) UnmarshalJSON(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 "currentValue": + err = unpopulate(val, "CurrentValue", &u.CurrentValue) + delete(rawMsg, key) + case "limit": + err = unpopulate(val, "Limit", &u.Limit) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &u.Name) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &u.Unit) + 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 UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "localizedValue", u.LocalizedValue) + populate(objectMap, "value", u.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UsageName. +func (u *UsageName) UnmarshalJSON(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 "localizedValue": + err = unpopulate(val, "LocalizedValue", &u.LocalizedValue) + 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 UserAssignedIdentity. +func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", u.ClientID) + populate(objectMap, "principalId", u.PrincipalID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity. +func (u *UserAssignedIdentity) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &u.ClientID) + delete(rawMsg, key) + case "principalId": + err = unpopulate(val, "PrincipalID", &u.PrincipalID) + 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 VnetConfiguration. +func (v VnetConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dockerBridgeCidr", v.DockerBridgeCidr) + populate(objectMap, "infrastructureSubnetId", v.InfrastructureSubnetID) + populate(objectMap, "internal", v.Internal) + populate(objectMap, "platformReservedCidr", v.PlatformReservedCidr) + populate(objectMap, "platformReservedDnsIP", v.PlatformReservedDNSIP) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VnetConfiguration. +func (v *VnetConfiguration) UnmarshalJSON(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 "dockerBridgeCidr": + err = unpopulate(val, "DockerBridgeCidr", &v.DockerBridgeCidr) + delete(rawMsg, key) + case "infrastructureSubnetId": + err = unpopulate(val, "InfrastructureSubnetID", &v.InfrastructureSubnetID) + delete(rawMsg, key) + case "internal": + err = unpopulate(val, "Internal", &v.Internal) + delete(rawMsg, key) + case "platformReservedCidr": + err = unpopulate(val, "PlatformReservedCidr", &v.PlatformReservedCidr) + delete(rawMsg, key) + case "platformReservedDnsIP": + err = unpopulate(val, "PlatformReservedDNSIP", &v.PlatformReservedDNSIP) + 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 Volume. +func (v Volume) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "mountOptions", v.MountOptions) + populate(objectMap, "name", v.Name) + populate(objectMap, "secrets", v.Secrets) + populate(objectMap, "storageName", v.StorageName) + populate(objectMap, "storageType", v.StorageType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Volume. +func (v *Volume) UnmarshalJSON(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 "mountOptions": + err = unpopulate(val, "MountOptions", &v.MountOptions) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "secrets": + err = unpopulate(val, "Secrets", &v.Secrets) + delete(rawMsg, key) + case "storageName": + err = unpopulate(val, "StorageName", &v.StorageName) + delete(rawMsg, key) + case "storageType": + err = unpopulate(val, "StorageType", &v.StorageType) + 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 VolumeMount. +func (v VolumeMount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "mountPath", v.MountPath) + populate(objectMap, "subPath", v.SubPath) + populate(objectMap, "volumeName", v.VolumeName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VolumeMount. +func (v *VolumeMount) UnmarshalJSON(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 "mountPath": + err = unpopulate(val, "MountPath", &v.MountPath) + delete(rawMsg, key) + case "subPath": + err = unpopulate(val, "SubPath", &v.SubPath) + delete(rawMsg, key) + case "volumeName": + err = unpopulate(val, "VolumeName", &v.VolumeName) + 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 WorkloadProfile. +func (w WorkloadProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maximumCount", w.MaximumCount) + populate(objectMap, "minimumCount", w.MinimumCount) + populate(objectMap, "name", w.Name) + populate(objectMap, "workloadProfileType", w.WorkloadProfileType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadProfile. +func (w *WorkloadProfile) UnmarshalJSON(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 "maximumCount": + err = unpopulate(val, "MaximumCount", &w.MaximumCount) + delete(rawMsg, key) + case "minimumCount": + err = unpopulate(val, "MinimumCount", &w.MinimumCount) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "workloadProfileType": + err = unpopulate(val, "WorkloadProfileType", &w.WorkloadProfileType) + 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 WorkloadProfileStates. +func (w WorkloadProfileStates) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", w.ID) + populate(objectMap, "name", w.Name) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "systemData", w.SystemData) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadProfileStates. +func (w *WorkloadProfileStates) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &w.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &w.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + 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 WorkloadProfileStatesCollection. +func (w WorkloadProfileStatesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", w.NextLink) + populate(objectMap, "value", w.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadProfileStatesCollection. +func (w *WorkloadProfileStatesCollection) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &w.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &w.Value) + 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 WorkloadProfileStatesProperties. +func (w WorkloadProfileStatesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentCount", w.CurrentCount) + populate(objectMap, "maximumCount", w.MaximumCount) + populate(objectMap, "minimumCount", w.MinimumCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadProfileStatesProperties. +func (w *WorkloadProfileStatesProperties) UnmarshalJSON(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 "currentCount": + err = unpopulate(val, "CurrentCount", &w.CurrentCount) + delete(rawMsg, key) + case "maximumCount": + err = unpopulate(val, "MaximumCount", &w.MaximumCount) + delete(rawMsg, key) + case "minimumCount": + err = unpopulate(val, "MinimumCount", &w.MinimumCount) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + +func populateByteArray[T any](m map[string]any, k string, b []T, convert func() any) { + if azcore.IsNullValue(b) { + m[k] = nil + } else if len(b) == 0 { + return + } else { + m[k] = convert() + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil || string(data) == "null" { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/namespaces_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/namespaces_client.go new file mode 100644 index 00000000..a6536750 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/namespaces_client.go @@ -0,0 +1,113 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// NamespacesClient contains the methods for the Namespaces group. +// Don't use this type directly, use NewNamespacesClient() instead. +type NamespacesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewNamespacesClient creates a new instance of NamespacesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NamespacesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &NamespacesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CheckNameAvailability - Checks if resource name is available. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-02-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - environmentName - Name of the Managed Environment. +// - checkNameAvailabilityRequest - The check name availability request. +// - options - NamespacesClientCheckNameAvailabilityOptions contains the optional parameters for the NamespacesClient.CheckNameAvailability +// method. +func (client *NamespacesClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, environmentName string, checkNameAvailabilityRequest CheckNameAvailabilityRequest, options *NamespacesClientCheckNameAvailabilityOptions) (NamespacesClientCheckNameAvailabilityResponse, error) { + var err error + const operationName = "NamespacesClient.CheckNameAvailability" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, environmentName, checkNameAvailabilityRequest, options) + if err != nil { + return NamespacesClientCheckNameAvailabilityResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return NamespacesClientCheckNameAvailabilityResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return NamespacesClientCheckNameAvailabilityResponse{}, err + } + resp, err := client.checkNameAvailabilityHandleResponse(httpResp) + return resp, err +} + +// checkNameAvailabilityCreateRequest creates the CheckNameAvailability request. +func (client *NamespacesClient) checkNameAvailabilityCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, checkNameAvailabilityRequest CheckNameAvailabilityRequest, options *NamespacesClientCheckNameAvailabilityOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, checkNameAvailabilityRequest); err != nil { + return nil, err + } + return req, nil +} + +// checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. +func (client *NamespacesClient) checkNameAvailabilityHandleResponse(resp *http.Response) (NamespacesClientCheckNameAvailabilityResponse, error) { + result := NamespacesClientCheckNameAvailabilityResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResponse); err != nil { + return NamespacesClientCheckNameAvailabilityResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/operations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/operations_client.go new file mode 100644 index 00000000..f89a1409 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/operations_client.go @@ -0,0 +1,88 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" +) + +// OperationsClient contains the methods for the Operations group. +// Don't use this type directly, use NewOperationsClient() instead. +type OperationsClient struct { + internal *arm.Client +} + +// NewOperationsClient creates a new instance of OperationsClient with the specified values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &OperationsClient{ + internal: cl, + } + return client, nil +} + +// NewListPager - Lists all of the available RP operations. +// +// Generated from API version 2023-11-02-preview +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "OperationsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) + if err != nil { + return OperationsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { + urlPath := "/providers/Microsoft.App/operations" + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { + result := OperationsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AvailableOperations); err != nil { + return OperationsClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/options.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/options.go new file mode 100644 index 00000000..e253c702 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/options.go @@ -0,0 +1,815 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +// AppResiliencyClientCreateOrUpdateOptions contains the optional parameters for the AppResiliencyClient.CreateOrUpdate method. +type AppResiliencyClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// AppResiliencyClientDeleteOptions contains the optional parameters for the AppResiliencyClient.Delete method. +type AppResiliencyClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// AppResiliencyClientGetOptions contains the optional parameters for the AppResiliencyClient.Get method. +type AppResiliencyClientGetOptions struct { + // placeholder for future optional parameters +} + +// AppResiliencyClientListOptions contains the optional parameters for the AppResiliencyClient.NewListPager method. +type AppResiliencyClientListOptions struct { + // placeholder for future optional parameters +} + +// AppResiliencyClientUpdateOptions contains the optional parameters for the AppResiliencyClient.Update method. +type AppResiliencyClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// AvailableWorkloadProfilesClientGetOptions contains the optional parameters for the AvailableWorkloadProfilesClient.NewGetPager +// method. +type AvailableWorkloadProfilesClientGetOptions struct { + // placeholder for future optional parameters +} + +// BillingMetersClientGetOptions contains the optional parameters for the BillingMetersClient.Get method. +type BillingMetersClientGetOptions struct { + // placeholder for future optional parameters +} + +// BuildAuthTokenClientListOptions contains the optional parameters for the BuildAuthTokenClient.List method. +type BuildAuthTokenClientListOptions struct { + // placeholder for future optional parameters +} + +// BuildersClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildersClient.BeginCreateOrUpdate method. +type BuildersClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BuildersClientBeginDeleteOptions contains the optional parameters for the BuildersClient.BeginDelete method. +type BuildersClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BuildersClientBeginUpdateOptions contains the optional parameters for the BuildersClient.BeginUpdate method. +type BuildersClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BuildersClientGetOptions contains the optional parameters for the BuildersClient.Get method. +type BuildersClientGetOptions struct { + // placeholder for future optional parameters +} + +// BuildersClientListByResourceGroupOptions contains the optional parameters for the BuildersClient.NewListByResourceGroupPager +// method. +type BuildersClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// BuildersClientListBySubscriptionOptions contains the optional parameters for the BuildersClient.NewListBySubscriptionPager +// method. +type BuildersClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// BuildsByBuilderResourceClientListOptions contains the optional parameters for the BuildsByBuilderResourceClient.NewListPager +// method. +type BuildsByBuilderResourceClientListOptions struct { + // placeholder for future optional parameters +} + +// BuildsClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildsClient.BeginCreateOrUpdate method. +type BuildsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BuildsClientBeginDeleteOptions contains the optional parameters for the BuildsClient.BeginDelete method. +type BuildsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BuildsClientGetOptions contains the optional parameters for the BuildsClient.Get method. +type BuildsClientGetOptions struct { + // placeholder for future optional parameters +} + +// CertificatesClientCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.CreateOrUpdate method. +type CertificatesClientCreateOrUpdateOptions struct { + // Certificate to be created or updated + CertificateEnvelope *Certificate +} + +// CertificatesClientDeleteOptions contains the optional parameters for the CertificatesClient.Delete method. +type CertificatesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method. +type CertificatesClientGetOptions struct { + // placeholder for future optional parameters +} + +// CertificatesClientListOptions contains the optional parameters for the CertificatesClient.NewListPager method. +type CertificatesClientListOptions struct { + // placeholder for future optional parameters +} + +// CertificatesClientUpdateOptions contains the optional parameters for the CertificatesClient.Update method. +type CertificatesClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsCertificatesClientCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.CreateOrUpdate +// method. +type ConnectedEnvironmentsCertificatesClientCreateOrUpdateOptions struct { + // Certificate to be created or updated + CertificateEnvelope *Certificate +} + +// ConnectedEnvironmentsCertificatesClientDeleteOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.Delete +// method. +type ConnectedEnvironmentsCertificatesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsCertificatesClientGetOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.Get +// method. +type ConnectedEnvironmentsCertificatesClientGetOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsCertificatesClientListOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.NewListPager +// method. +type ConnectedEnvironmentsCertificatesClientListOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsCertificatesClientUpdateOptions contains the optional parameters for the ConnectedEnvironmentsCertificatesClient.Update +// method. +type ConnectedEnvironmentsCertificatesClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsClient.BeginCreateOrUpdate +// method. +type ConnectedEnvironmentsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ConnectedEnvironmentsClientBeginDeleteOptions contains the optional parameters for the ConnectedEnvironmentsClient.BeginDelete +// method. +type ConnectedEnvironmentsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ConnectedEnvironmentsClientCheckNameAvailabilityOptions contains the optional parameters for the ConnectedEnvironmentsClient.CheckNameAvailability +// method. +type ConnectedEnvironmentsClientCheckNameAvailabilityOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsClientGetOptions contains the optional parameters for the ConnectedEnvironmentsClient.Get method. +type ConnectedEnvironmentsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the ConnectedEnvironmentsClient.NewListByResourceGroupPager +// method. +type ConnectedEnvironmentsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the ConnectedEnvironmentsClient.NewListBySubscriptionPager +// method. +type ConnectedEnvironmentsClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsClientUpdateOptions contains the optional parameters for the ConnectedEnvironmentsClient.Update method. +type ConnectedEnvironmentsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.CreateOrUpdate +// method. +type ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsDaprComponentsClientDeleteOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.Delete +// method. +type ConnectedEnvironmentsDaprComponentsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsDaprComponentsClientGetOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.Get +// method. +type ConnectedEnvironmentsDaprComponentsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsDaprComponentsClientListOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.NewListPager +// method. +type ConnectedEnvironmentsDaprComponentsClientListOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsDaprComponentsClientListSecretsOptions contains the optional parameters for the ConnectedEnvironmentsDaprComponentsClient.ListSecrets +// method. +type ConnectedEnvironmentsDaprComponentsClientListSecretsOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsStoragesClientCreateOrUpdateOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.CreateOrUpdate +// method. +type ConnectedEnvironmentsStoragesClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsStoragesClientDeleteOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.Delete +// method. +type ConnectedEnvironmentsStoragesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsStoragesClientGetOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.Get +// method. +type ConnectedEnvironmentsStoragesClientGetOptions struct { + // placeholder for future optional parameters +} + +// ConnectedEnvironmentsStoragesClientListOptions contains the optional parameters for the ConnectedEnvironmentsStoragesClient.List +// method. +type ConnectedEnvironmentsStoragesClientListOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsAPIClientGetCustomDomainVerificationIDOptions contains the optional parameters for the ContainerAppsAPIClient.GetCustomDomainVerificationID +// method. +type ContainerAppsAPIClientGetCustomDomainVerificationIDOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsAPIClientJobExecutionOptions contains the optional parameters for the ContainerAppsAPIClient.JobExecution +// method. +type ContainerAppsAPIClientJobExecutionOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsAuthConfigsClientCreateOrUpdateOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.CreateOrUpdate +// method. +type ContainerAppsAuthConfigsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsAuthConfigsClientDeleteOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Delete +// method. +type ContainerAppsAuthConfigsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsAuthConfigsClientGetOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.Get method. +type ContainerAppsAuthConfigsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsAuthConfigsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsAuthConfigsClient.NewListByContainerAppPager +// method. +type ContainerAppsAuthConfigsClientListByContainerAppOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginCreateOrUpdate +// method. +type ContainerAppsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContainerAppsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsClient.BeginDelete method. +type ContainerAppsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContainerAppsClientBeginStartOptions contains the optional parameters for the ContainerAppsClient.BeginStart method. +type ContainerAppsClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContainerAppsClientBeginStopOptions contains the optional parameters for the ContainerAppsClient.BeginStop method. +type ContainerAppsClientBeginStopOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContainerAppsClientBeginUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginUpdate method. +type ContainerAppsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContainerAppsClientGetAuthTokenOptions contains the optional parameters for the ContainerAppsClient.GetAuthToken method. +type ContainerAppsClientGetAuthTokenOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsClientGetOptions contains the optional parameters for the ContainerAppsClient.Get method. +type ContainerAppsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.NewListByResourceGroupPager +// method. +type ContainerAppsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.NewListBySubscriptionPager +// method. +type ContainerAppsClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsClientListCustomHostNameAnalysisOptions contains the optional parameters for the ContainerAppsClient.ListCustomHostNameAnalysis +// method. +type ContainerAppsClientListCustomHostNameAnalysisOptions struct { + // Custom hostname. + CustomHostname *string +} + +// ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets method. +type ContainerAppsClientListSecretsOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsDiagnosticsClientGetDetectorOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.GetDetector +// method. +type ContainerAppsDiagnosticsClientGetDetectorOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsDiagnosticsClientGetRevisionOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.GetRevision +// method. +type ContainerAppsDiagnosticsClientGetRevisionOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsDiagnosticsClientGetRootOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.GetRoot +// method. +type ContainerAppsDiagnosticsClientGetRootOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsDiagnosticsClientListDetectorsOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.NewListDetectorsPager +// method. +type ContainerAppsDiagnosticsClientListDetectorsOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsDiagnosticsClientListRevisionsOptions contains the optional parameters for the ContainerAppsDiagnosticsClient.NewListRevisionsPager +// method. +type ContainerAppsDiagnosticsClientListRevisionsOptions struct { + // The filter to apply on the operation. + Filter *string +} + +// ContainerAppsRevisionReplicasClientGetReplicaOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.GetReplica +// method. +type ContainerAppsRevisionReplicasClientGetReplicaOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsRevisionReplicasClientListReplicasOptions contains the optional parameters for the ContainerAppsRevisionReplicasClient.ListReplicas +// method. +type ContainerAppsRevisionReplicasClientListReplicasOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsRevisionsClientActivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.ActivateRevision +// method. +type ContainerAppsRevisionsClientActivateRevisionOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsRevisionsClientDeactivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.DeactivateRevision +// method. +type ContainerAppsRevisionsClientDeactivateRevisionOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsRevisionsClientGetRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.GetRevision +// method. +type ContainerAppsRevisionsClientGetRevisionOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.NewListRevisionsPager +// method. +type ContainerAppsRevisionsClientListRevisionsOptions struct { + // The filter to apply on the operation. + Filter *string +} + +// ContainerAppsRevisionsClientRestartRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.RestartRevision +// method. +type ContainerAppsRevisionsClientRestartRevisionOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginCreateOrUpdate +// method. +type ContainerAppsSourceControlsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContainerAppsSourceControlsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsSourceControlsClient.BeginDelete +// method. +type ContainerAppsSourceControlsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContainerAppsSourceControlsClientGetOptions contains the optional parameters for the ContainerAppsSourceControlsClient.Get +// method. +type ContainerAppsSourceControlsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ContainerAppsSourceControlsClientListByContainerAppOptions contains the optional parameters for the ContainerAppsSourceControlsClient.NewListByContainerAppPager +// method. +type ContainerAppsSourceControlsClientListByContainerAppOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentResiliencyPoliciesClientCreateOrUpdateOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.CreateOrUpdate +// method. +type DaprComponentResiliencyPoliciesClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentResiliencyPoliciesClientDeleteOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.Delete +// method. +type DaprComponentResiliencyPoliciesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentResiliencyPoliciesClientGetOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.Get +// method. +type DaprComponentResiliencyPoliciesClientGetOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentResiliencyPoliciesClientListOptions contains the optional parameters for the DaprComponentResiliencyPoliciesClient.NewListPager +// method. +type DaprComponentResiliencyPoliciesClientListOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentsClientCreateOrUpdateOptions contains the optional parameters for the DaprComponentsClient.CreateOrUpdate +// method. +type DaprComponentsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentsClientDeleteOptions contains the optional parameters for the DaprComponentsClient.Delete method. +type DaprComponentsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentsClientGetOptions contains the optional parameters for the DaprComponentsClient.Get method. +type DaprComponentsClientGetOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentsClientListOptions contains the optional parameters for the DaprComponentsClient.NewListPager method. +type DaprComponentsClientListOptions struct { + // placeholder for future optional parameters +} + +// DaprComponentsClientListSecretsOptions contains the optional parameters for the DaprComponentsClient.ListSecrets method. +type DaprComponentsClientListSecretsOptions struct { + // placeholder for future optional parameters +} + +// DaprSubscriptionsClientCreateOrUpdateOptions contains the optional parameters for the DaprSubscriptionsClient.CreateOrUpdate +// method. +type DaprSubscriptionsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// DaprSubscriptionsClientDeleteOptions contains the optional parameters for the DaprSubscriptionsClient.Delete method. +type DaprSubscriptionsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// DaprSubscriptionsClientGetOptions contains the optional parameters for the DaprSubscriptionsClient.Get method. +type DaprSubscriptionsClientGetOptions struct { + // placeholder for future optional parameters +} + +// DaprSubscriptionsClientListOptions contains the optional parameters for the DaprSubscriptionsClient.NewListPager method. +type DaprSubscriptionsClientListOptions struct { + // placeholder for future optional parameters +} + +// DotNetComponentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DotNetComponentsClient.BeginCreateOrUpdate +// method. +type DotNetComponentsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DotNetComponentsClientBeginDeleteOptions contains the optional parameters for the DotNetComponentsClient.BeginDelete method. +type DotNetComponentsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DotNetComponentsClientBeginUpdateOptions contains the optional parameters for the DotNetComponentsClient.BeginUpdate method. +type DotNetComponentsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DotNetComponentsClientGetOptions contains the optional parameters for the DotNetComponentsClient.Get method. +type DotNetComponentsClientGetOptions struct { + // placeholder for future optional parameters +} + +// DotNetComponentsClientListOptions contains the optional parameters for the DotNetComponentsClient.NewListPager method. +type DotNetComponentsClientListOptions struct { + // placeholder for future optional parameters +} + +// JavaComponentsClientBeginCreateOrUpdateOptions contains the optional parameters for the JavaComponentsClient.BeginCreateOrUpdate +// method. +type JavaComponentsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JavaComponentsClientBeginDeleteOptions contains the optional parameters for the JavaComponentsClient.BeginDelete method. +type JavaComponentsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JavaComponentsClientBeginUpdateOptions contains the optional parameters for the JavaComponentsClient.BeginUpdate method. +type JavaComponentsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JavaComponentsClientGetOptions contains the optional parameters for the JavaComponentsClient.Get method. +type JavaComponentsClientGetOptions struct { + // placeholder for future optional parameters +} + +// JavaComponentsClientListOptions contains the optional parameters for the JavaComponentsClient.NewListPager method. +type JavaComponentsClientListOptions struct { + // placeholder for future optional parameters +} + +// JobsClientBeginCreateOrUpdateOptions contains the optional parameters for the JobsClient.BeginCreateOrUpdate method. +type JobsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JobsClientBeginDeleteOptions contains the optional parameters for the JobsClient.BeginDelete method. +type JobsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JobsClientBeginStartOptions contains the optional parameters for the JobsClient.BeginStart method. +type JobsClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // Properties used to start a job execution. + Template *JobExecutionTemplate +} + +// JobsClientBeginStopExecutionOptions contains the optional parameters for the JobsClient.BeginStopExecution method. +type JobsClientBeginStopExecutionOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JobsClientBeginStopMultipleExecutionsOptions contains the optional parameters for the JobsClient.BeginStopMultipleExecutions +// method. +type JobsClientBeginStopMultipleExecutionsOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JobsClientBeginUpdateOptions contains the optional parameters for the JobsClient.BeginUpdate method. +type JobsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JobsClientGetDetectorOptions contains the optional parameters for the JobsClient.GetDetector method. +type JobsClientGetDetectorOptions struct { + // placeholder for future optional parameters +} + +// JobsClientGetOptions contains the optional parameters for the JobsClient.Get method. +type JobsClientGetOptions struct { + // placeholder for future optional parameters +} + +// JobsClientListByResourceGroupOptions contains the optional parameters for the JobsClient.NewListByResourceGroupPager method. +type JobsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// JobsClientListBySubscriptionOptions contains the optional parameters for the JobsClient.NewListBySubscriptionPager method. +type JobsClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// JobsClientListDetectorsOptions contains the optional parameters for the JobsClient.ListDetectors method. +type JobsClientListDetectorsOptions struct { + // placeholder for future optional parameters +} + +// JobsClientListSecretsOptions contains the optional parameters for the JobsClient.ListSecrets method. +type JobsClientListSecretsOptions struct { + // placeholder for future optional parameters +} + +// JobsClientProxyGetOptions contains the optional parameters for the JobsClient.ProxyGet method. +type JobsClientProxyGetOptions struct { + // placeholder for future optional parameters +} + +// JobsExecutionsClientListOptions contains the optional parameters for the JobsExecutionsClient.NewListPager method. +type JobsExecutionsClientListOptions struct { + // The filter to apply on the operation. + Filter *string +} + +// ManagedCertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedCertificatesClient.BeginCreateOrUpdate +// method. +type ManagedCertificatesClientBeginCreateOrUpdateOptions struct { + // Managed Certificate to be created or updated + ManagedCertificateEnvelope *ManagedCertificate + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ManagedCertificatesClientDeleteOptions contains the optional parameters for the ManagedCertificatesClient.Delete method. +type ManagedCertificatesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ManagedCertificatesClientGetOptions contains the optional parameters for the ManagedCertificatesClient.Get method. +type ManagedCertificatesClientGetOptions struct { + // placeholder for future optional parameters +} + +// ManagedCertificatesClientListOptions contains the optional parameters for the ManagedCertificatesClient.NewListPager method. +type ManagedCertificatesClientListOptions struct { + // placeholder for future optional parameters +} + +// ManagedCertificatesClientUpdateOptions contains the optional parameters for the ManagedCertificatesClient.Update method. +type ManagedCertificatesClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentDiagnosticsClientGetDetectorOptions contains the optional parameters for the ManagedEnvironmentDiagnosticsClient.GetDetector +// method. +type ManagedEnvironmentDiagnosticsClientGetDetectorOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentDiagnosticsClientListDetectorsOptions contains the optional parameters for the ManagedEnvironmentDiagnosticsClient.ListDetectors +// method. +type ManagedEnvironmentDiagnosticsClientListDetectorsOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentUsagesClientListOptions contains the optional parameters for the ManagedEnvironmentUsagesClient.NewListPager +// method. +type ManagedEnvironmentUsagesClientListOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginCreateOrUpdate +// method. +type ManagedEnvironmentsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ManagedEnvironmentsClientBeginDeleteOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginDelete +// method. +type ManagedEnvironmentsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ManagedEnvironmentsClientBeginUpdateOptions contains the optional parameters for the ManagedEnvironmentsClient.BeginUpdate +// method. +type ManagedEnvironmentsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ManagedEnvironmentsClientGetAuthTokenOptions contains the optional parameters for the ManagedEnvironmentsClient.GetAuthToken +// method. +type ManagedEnvironmentsClientGetAuthTokenOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsClientGetOptions contains the optional parameters for the ManagedEnvironmentsClient.Get method. +type ManagedEnvironmentsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the ManagedEnvironmentsClient.NewListByResourceGroupPager +// method. +type ManagedEnvironmentsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the ManagedEnvironmentsClient.NewListBySubscriptionPager +// method. +type ManagedEnvironmentsClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsClientListWorkloadProfileStatesOptions contains the optional parameters for the ManagedEnvironmentsClient.NewListWorkloadProfileStatesPager +// method. +type ManagedEnvironmentsClientListWorkloadProfileStatesOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsDiagnosticsClientGetRootOptions contains the optional parameters for the ManagedEnvironmentsDiagnosticsClient.GetRoot +// method. +type ManagedEnvironmentsDiagnosticsClientGetRootOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsStoragesClientCreateOrUpdateOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.CreateOrUpdate +// method. +type ManagedEnvironmentsStoragesClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsStoragesClientDeleteOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Delete +// method. +type ManagedEnvironmentsStoragesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsStoragesClientGetOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.Get +// method. +type ManagedEnvironmentsStoragesClientGetOptions struct { + // placeholder for future optional parameters +} + +// ManagedEnvironmentsStoragesClientListOptions contains the optional parameters for the ManagedEnvironmentsStoragesClient.List +// method. +type ManagedEnvironmentsStoragesClientListOptions struct { + // placeholder for future optional parameters +} + +// NamespacesClientCheckNameAvailabilityOptions contains the optional parameters for the NamespacesClient.CheckNameAvailability +// method. +type NamespacesClientCheckNameAvailabilityOptions struct { + // placeholder for future optional parameters +} + +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. +type OperationsClientListOptions struct { + // placeholder for future optional parameters +} + +// UsagesClientListOptions contains the optional parameters for the UsagesClient.NewListPager method. +type UsagesClientListOptions struct { + // placeholder for future optional parameters +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/responses.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/responses.go new file mode 100644 index 00000000..cb1d443a --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/responses.go @@ -0,0 +1,811 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +// AppResiliencyClientCreateOrUpdateResponse contains the response from method AppResiliencyClient.CreateOrUpdate. +type AppResiliencyClientCreateOrUpdateResponse struct { + // Configuration to setup App Resiliency + AppResiliency +} + +// AppResiliencyClientDeleteResponse contains the response from method AppResiliencyClient.Delete. +type AppResiliencyClientDeleteResponse struct { + // placeholder for future response values +} + +// AppResiliencyClientGetResponse contains the response from method AppResiliencyClient.Get. +type AppResiliencyClientGetResponse struct { + // Configuration to setup App Resiliency + AppResiliency +} + +// AppResiliencyClientListResponse contains the response from method AppResiliencyClient.NewListPager. +type AppResiliencyClientListResponse struct { + // Collection of AppResiliency policies + AppResiliencyCollection +} + +// AppResiliencyClientUpdateResponse contains the response from method AppResiliencyClient.Update. +type AppResiliencyClientUpdateResponse struct { + // Configuration to setup App Resiliency + AppResiliency +} + +// AvailableWorkloadProfilesClientGetResponse contains the response from method AvailableWorkloadProfilesClient.NewGetPager. +type AvailableWorkloadProfilesClientGetResponse struct { + // Collection of available workload profiles in the location. + AvailableWorkloadProfilesCollection +} + +// BillingMetersClientGetResponse contains the response from method BillingMetersClient.Get. +type BillingMetersClientGetResponse struct { + // Collection of billing meters. + BillingMeterCollection +} + +// BuildAuthTokenClientListResponse contains the response from method BuildAuthTokenClient.List. +type BuildAuthTokenClientListResponse struct { + // Build Auth Token. + BuildToken +} + +// BuildersClientCreateOrUpdateResponse contains the response from method BuildersClient.BeginCreateOrUpdate. +type BuildersClientCreateOrUpdateResponse struct { + // Information about the SourceToCloud builder resource. + BuilderResource +} + +// BuildersClientDeleteResponse contains the response from method BuildersClient.BeginDelete. +type BuildersClientDeleteResponse struct { + // placeholder for future response values +} + +// BuildersClientGetResponse contains the response from method BuildersClient.Get. +type BuildersClientGetResponse struct { + // Information about the SourceToCloud builder resource. + BuilderResource +} + +// BuildersClientListByResourceGroupResponse contains the response from method BuildersClient.NewListByResourceGroupPager. +type BuildersClientListByResourceGroupResponse struct { + // The response of a BuilderResource list operation. + BuilderCollection +} + +// BuildersClientListBySubscriptionResponse contains the response from method BuildersClient.NewListBySubscriptionPager. +type BuildersClientListBySubscriptionResponse struct { + // The response of a BuilderResource list operation. + BuilderCollection +} + +// BuildersClientUpdateResponse contains the response from method BuildersClient.BeginUpdate. +type BuildersClientUpdateResponse struct { + // Information about the SourceToCloud builder resource. + BuilderResource +} + +// BuildsByBuilderResourceClientListResponse contains the response from method BuildsByBuilderResourceClient.NewListPager. +type BuildsByBuilderResourceClientListResponse struct { + // The response of a BuildResource list operation. + BuildCollection +} + +// BuildsClientCreateOrUpdateResponse contains the response from method BuildsClient.BeginCreateOrUpdate. +type BuildsClientCreateOrUpdateResponse struct { + // Information pertaining to an individual build. + BuildResource +} + +// BuildsClientDeleteResponse contains the response from method BuildsClient.BeginDelete. +type BuildsClientDeleteResponse struct { + // placeholder for future response values +} + +// BuildsClientGetResponse contains the response from method BuildsClient.Get. +type BuildsClientGetResponse struct { + // Information pertaining to an individual build. + BuildResource +} + +// CertificatesClientCreateOrUpdateResponse contains the response from method CertificatesClient.CreateOrUpdate. +type CertificatesClientCreateOrUpdateResponse struct { + // Certificate used for Custom Domain bindings of Container Apps in a Managed Environment + Certificate +} + +// CertificatesClientDeleteResponse contains the response from method CertificatesClient.Delete. +type CertificatesClientDeleteResponse struct { + // placeholder for future response values +} + +// CertificatesClientGetResponse contains the response from method CertificatesClient.Get. +type CertificatesClientGetResponse struct { + // Certificate used for Custom Domain bindings of Container Apps in a Managed Environment + Certificate +} + +// CertificatesClientListResponse contains the response from method CertificatesClient.NewListPager. +type CertificatesClientListResponse struct { + // Collection of Certificates. + CertificateCollection +} + +// CertificatesClientUpdateResponse contains the response from method CertificatesClient.Update. +type CertificatesClientUpdateResponse struct { + // Certificate used for Custom Domain bindings of Container Apps in a Managed Environment + Certificate +} + +// ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse contains the response from method ConnectedEnvironmentsCertificatesClient.CreateOrUpdate. +type ConnectedEnvironmentsCertificatesClientCreateOrUpdateResponse struct { + // Certificate used for Custom Domain bindings of Container Apps in a Managed Environment + Certificate +} + +// ConnectedEnvironmentsCertificatesClientDeleteResponse contains the response from method ConnectedEnvironmentsCertificatesClient.Delete. +type ConnectedEnvironmentsCertificatesClientDeleteResponse struct { + // placeholder for future response values +} + +// ConnectedEnvironmentsCertificatesClientGetResponse contains the response from method ConnectedEnvironmentsCertificatesClient.Get. +type ConnectedEnvironmentsCertificatesClientGetResponse struct { + // Certificate used for Custom Domain bindings of Container Apps in a Managed Environment + Certificate +} + +// ConnectedEnvironmentsCertificatesClientListResponse contains the response from method ConnectedEnvironmentsCertificatesClient.NewListPager. +type ConnectedEnvironmentsCertificatesClientListResponse struct { + // Collection of Certificates. + CertificateCollection +} + +// ConnectedEnvironmentsCertificatesClientUpdateResponse contains the response from method ConnectedEnvironmentsCertificatesClient.Update. +type ConnectedEnvironmentsCertificatesClientUpdateResponse struct { + // Certificate used for Custom Domain bindings of Container Apps in a Managed Environment + Certificate +} + +// ConnectedEnvironmentsClientCheckNameAvailabilityResponse contains the response from method ConnectedEnvironmentsClient.CheckNameAvailability. +type ConnectedEnvironmentsClientCheckNameAvailabilityResponse struct { + // The check availability result. + CheckNameAvailabilityResponse +} + +// ConnectedEnvironmentsClientCreateOrUpdateResponse contains the response from method ConnectedEnvironmentsClient.BeginCreateOrUpdate. +type ConnectedEnvironmentsClientCreateOrUpdateResponse struct { + // An environment for Kubernetes cluster specialized for web workloads by Azure App Service + ConnectedEnvironment +} + +// ConnectedEnvironmentsClientDeleteResponse contains the response from method ConnectedEnvironmentsClient.BeginDelete. +type ConnectedEnvironmentsClientDeleteResponse struct { + // placeholder for future response values +} + +// ConnectedEnvironmentsClientGetResponse contains the response from method ConnectedEnvironmentsClient.Get. +type ConnectedEnvironmentsClientGetResponse struct { + // An environment for Kubernetes cluster specialized for web workloads by Azure App Service + ConnectedEnvironment +} + +// ConnectedEnvironmentsClientListByResourceGroupResponse contains the response from method ConnectedEnvironmentsClient.NewListByResourceGroupPager. +type ConnectedEnvironmentsClientListByResourceGroupResponse struct { + // Collection of connectedEnvironments + ConnectedEnvironmentCollection +} + +// ConnectedEnvironmentsClientListBySubscriptionResponse contains the response from method ConnectedEnvironmentsClient.NewListBySubscriptionPager. +type ConnectedEnvironmentsClientListBySubscriptionResponse struct { + // Collection of connectedEnvironments + ConnectedEnvironmentCollection +} + +// ConnectedEnvironmentsClientUpdateResponse contains the response from method ConnectedEnvironmentsClient.Update. +type ConnectedEnvironmentsClientUpdateResponse struct { + // An environment for Kubernetes cluster specialized for web workloads by Azure App Service + ConnectedEnvironment +} + +// ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse contains the response from method ConnectedEnvironmentsDaprComponentsClient.CreateOrUpdate. +type ConnectedEnvironmentsDaprComponentsClientCreateOrUpdateResponse struct { + // Dapr Component. + DaprComponent +} + +// ConnectedEnvironmentsDaprComponentsClientDeleteResponse contains the response from method ConnectedEnvironmentsDaprComponentsClient.Delete. +type ConnectedEnvironmentsDaprComponentsClientDeleteResponse struct { + // placeholder for future response values +} + +// ConnectedEnvironmentsDaprComponentsClientGetResponse contains the response from method ConnectedEnvironmentsDaprComponentsClient.Get. +type ConnectedEnvironmentsDaprComponentsClientGetResponse struct { + // Dapr Component. + DaprComponent +} + +// ConnectedEnvironmentsDaprComponentsClientListResponse contains the response from method ConnectedEnvironmentsDaprComponentsClient.NewListPager. +type ConnectedEnvironmentsDaprComponentsClientListResponse struct { + // Dapr Components ARM resource. + DaprComponentsCollection +} + +// ConnectedEnvironmentsDaprComponentsClientListSecretsResponse contains the response from method ConnectedEnvironmentsDaprComponentsClient.ListSecrets. +type ConnectedEnvironmentsDaprComponentsClientListSecretsResponse struct { + // Dapr component Secrets Collection for ListSecrets Action. + DaprSecretsCollection +} + +// ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse contains the response from method ConnectedEnvironmentsStoragesClient.CreateOrUpdate. +type ConnectedEnvironmentsStoragesClientCreateOrUpdateResponse struct { + // Storage resource for connectedEnvironment. + ConnectedEnvironmentStorage +} + +// ConnectedEnvironmentsStoragesClientDeleteResponse contains the response from method ConnectedEnvironmentsStoragesClient.Delete. +type ConnectedEnvironmentsStoragesClientDeleteResponse struct { + // placeholder for future response values +} + +// ConnectedEnvironmentsStoragesClientGetResponse contains the response from method ConnectedEnvironmentsStoragesClient.Get. +type ConnectedEnvironmentsStoragesClientGetResponse struct { + // Storage resource for connectedEnvironment. + ConnectedEnvironmentStorage +} + +// ConnectedEnvironmentsStoragesClientListResponse contains the response from method ConnectedEnvironmentsStoragesClient.List. +type ConnectedEnvironmentsStoragesClientListResponse struct { + // Collection of Storage for Environments + ConnectedEnvironmentStoragesCollection +} + +// ContainerAppsAPIClientGetCustomDomainVerificationIDResponse contains the response from method ContainerAppsAPIClient.GetCustomDomainVerificationID. +type ContainerAppsAPIClientGetCustomDomainVerificationIDResponse struct { + // Custom domain verification Id of a subscription + Value *string +} + +// ContainerAppsAPIClientJobExecutionResponse contains the response from method ContainerAppsAPIClient.JobExecution. +type ContainerAppsAPIClientJobExecutionResponse struct { + // Container Apps Job execution. + JobExecution +} + +// ContainerAppsAuthConfigsClientCreateOrUpdateResponse contains the response from method ContainerAppsAuthConfigsClient.CreateOrUpdate. +type ContainerAppsAuthConfigsClientCreateOrUpdateResponse struct { + // Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature. + AuthConfig +} + +// ContainerAppsAuthConfigsClientDeleteResponse contains the response from method ContainerAppsAuthConfigsClient.Delete. +type ContainerAppsAuthConfigsClientDeleteResponse struct { + // placeholder for future response values +} + +// ContainerAppsAuthConfigsClientGetResponse contains the response from method ContainerAppsAuthConfigsClient.Get. +type ContainerAppsAuthConfigsClientGetResponse struct { + // Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature. + AuthConfig +} + +// ContainerAppsAuthConfigsClientListByContainerAppResponse contains the response from method ContainerAppsAuthConfigsClient.NewListByContainerAppPager. +type ContainerAppsAuthConfigsClientListByContainerAppResponse struct { + // AuthConfig collection ARM resource. + AuthConfigCollection +} + +// ContainerAppsClientCreateOrUpdateResponse contains the response from method ContainerAppsClient.BeginCreateOrUpdate. +type ContainerAppsClientCreateOrUpdateResponse struct { + // Container App. + ContainerApp +} + +// ContainerAppsClientDeleteResponse contains the response from method ContainerAppsClient.BeginDelete. +type ContainerAppsClientDeleteResponse struct { + // placeholder for future response values +} + +// ContainerAppsClientGetAuthTokenResponse contains the response from method ContainerAppsClient.GetAuthToken. +type ContainerAppsClientGetAuthTokenResponse struct { + // Container App Auth Token. + ContainerAppAuthToken +} + +// ContainerAppsClientGetResponse contains the response from method ContainerAppsClient.Get. +type ContainerAppsClientGetResponse struct { + // Container App. + ContainerApp +} + +// ContainerAppsClientListByResourceGroupResponse contains the response from method ContainerAppsClient.NewListByResourceGroupPager. +type ContainerAppsClientListByResourceGroupResponse struct { + // Container App collection ARM resource. + ContainerAppCollection +} + +// ContainerAppsClientListBySubscriptionResponse contains the response from method ContainerAppsClient.NewListBySubscriptionPager. +type ContainerAppsClientListBySubscriptionResponse struct { + // Container App collection ARM resource. + ContainerAppCollection +} + +// ContainerAppsClientListCustomHostNameAnalysisResponse contains the response from method ContainerAppsClient.ListCustomHostNameAnalysis. +type ContainerAppsClientListCustomHostNameAnalysisResponse struct { + // Custom domain analysis. + CustomHostnameAnalysisResult +} + +// ContainerAppsClientListSecretsResponse contains the response from method ContainerAppsClient.ListSecrets. +type ContainerAppsClientListSecretsResponse struct { + // Container App Secrets Collection ARM resource. + SecretsCollection +} + +// ContainerAppsClientStartResponse contains the response from method ContainerAppsClient.BeginStart. +type ContainerAppsClientStartResponse struct { + // Container App. + ContainerApp +} + +// ContainerAppsClientStopResponse contains the response from method ContainerAppsClient.BeginStop. +type ContainerAppsClientStopResponse struct { + // Container App. + ContainerApp +} + +// ContainerAppsClientUpdateResponse contains the response from method ContainerAppsClient.BeginUpdate. +type ContainerAppsClientUpdateResponse struct { + // Container App. + ContainerApp +} + +// ContainerAppsDiagnosticsClientGetDetectorResponse contains the response from method ContainerAppsDiagnosticsClient.GetDetector. +type ContainerAppsDiagnosticsClientGetDetectorResponse struct { + // Diagnostics data for a resource. + Diagnostics +} + +// ContainerAppsDiagnosticsClientGetRevisionResponse contains the response from method ContainerAppsDiagnosticsClient.GetRevision. +type ContainerAppsDiagnosticsClientGetRevisionResponse struct { + // Container App Revision. + Revision +} + +// ContainerAppsDiagnosticsClientGetRootResponse contains the response from method ContainerAppsDiagnosticsClient.GetRoot. +type ContainerAppsDiagnosticsClientGetRootResponse struct { + // Container App. + ContainerApp +} + +// ContainerAppsDiagnosticsClientListDetectorsResponse contains the response from method ContainerAppsDiagnosticsClient.NewListDetectorsPager. +type ContainerAppsDiagnosticsClientListDetectorsResponse struct { + // Diagnostics data collection for a resource. + DiagnosticsCollection +} + +// ContainerAppsDiagnosticsClientListRevisionsResponse contains the response from method ContainerAppsDiagnosticsClient.NewListRevisionsPager. +type ContainerAppsDiagnosticsClientListRevisionsResponse struct { + // Container App Revisions collection ARM resource. + RevisionCollection +} + +// ContainerAppsRevisionReplicasClientGetReplicaResponse contains the response from method ContainerAppsRevisionReplicasClient.GetReplica. +type ContainerAppsRevisionReplicasClientGetReplicaResponse struct { + // Container App Revision Replica. + Replica +} + +// ContainerAppsRevisionReplicasClientListReplicasResponse contains the response from method ContainerAppsRevisionReplicasClient.ListReplicas. +type ContainerAppsRevisionReplicasClientListReplicasResponse struct { + // Container App Revision Replicas collection ARM resource. + ReplicaCollection +} + +// ContainerAppsRevisionsClientActivateRevisionResponse contains the response from method ContainerAppsRevisionsClient.ActivateRevision. +type ContainerAppsRevisionsClientActivateRevisionResponse struct { + // placeholder for future response values +} + +// ContainerAppsRevisionsClientDeactivateRevisionResponse contains the response from method ContainerAppsRevisionsClient.DeactivateRevision. +type ContainerAppsRevisionsClientDeactivateRevisionResponse struct { + // placeholder for future response values +} + +// ContainerAppsRevisionsClientGetRevisionResponse contains the response from method ContainerAppsRevisionsClient.GetRevision. +type ContainerAppsRevisionsClientGetRevisionResponse struct { + // Container App Revision. + Revision +} + +// ContainerAppsRevisionsClientListRevisionsResponse contains the response from method ContainerAppsRevisionsClient.NewListRevisionsPager. +type ContainerAppsRevisionsClientListRevisionsResponse struct { + // Container App Revisions collection ARM resource. + RevisionCollection +} + +// ContainerAppsRevisionsClientRestartRevisionResponse contains the response from method ContainerAppsRevisionsClient.RestartRevision. +type ContainerAppsRevisionsClientRestartRevisionResponse struct { + // placeholder for future response values +} + +// ContainerAppsSourceControlsClientCreateOrUpdateResponse contains the response from method ContainerAppsSourceControlsClient.BeginCreateOrUpdate. +type ContainerAppsSourceControlsClientCreateOrUpdateResponse struct { + // Container App SourceControl. + SourceControl +} + +// ContainerAppsSourceControlsClientDeleteResponse contains the response from method ContainerAppsSourceControlsClient.BeginDelete. +type ContainerAppsSourceControlsClientDeleteResponse struct { + // placeholder for future response values +} + +// ContainerAppsSourceControlsClientGetResponse contains the response from method ContainerAppsSourceControlsClient.Get. +type ContainerAppsSourceControlsClientGetResponse struct { + // Container App SourceControl. + SourceControl +} + +// ContainerAppsSourceControlsClientListByContainerAppResponse contains the response from method ContainerAppsSourceControlsClient.NewListByContainerAppPager. +type ContainerAppsSourceControlsClientListByContainerAppResponse struct { + // SourceControl collection ARM resource. + SourceControlCollection +} + +// DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse contains the response from method DaprComponentResiliencyPoliciesClient.CreateOrUpdate. +type DaprComponentResiliencyPoliciesClientCreateOrUpdateResponse struct { + // Dapr Component Resiliency Policy. + DaprComponentResiliencyPolicy +} + +// DaprComponentResiliencyPoliciesClientDeleteResponse contains the response from method DaprComponentResiliencyPoliciesClient.Delete. +type DaprComponentResiliencyPoliciesClientDeleteResponse struct { + // placeholder for future response values +} + +// DaprComponentResiliencyPoliciesClientGetResponse contains the response from method DaprComponentResiliencyPoliciesClient.Get. +type DaprComponentResiliencyPoliciesClientGetResponse struct { + // Dapr Component Resiliency Policy. + DaprComponentResiliencyPolicy +} + +// DaprComponentResiliencyPoliciesClientListResponse contains the response from method DaprComponentResiliencyPoliciesClient.NewListPager. +type DaprComponentResiliencyPoliciesClientListResponse struct { + // Dapr Component Resiliency Policies ARM resource. + DaprComponentResiliencyPoliciesCollection +} + +// DaprComponentsClientCreateOrUpdateResponse contains the response from method DaprComponentsClient.CreateOrUpdate. +type DaprComponentsClientCreateOrUpdateResponse struct { + // Dapr Component. + DaprComponent +} + +// DaprComponentsClientDeleteResponse contains the response from method DaprComponentsClient.Delete. +type DaprComponentsClientDeleteResponse struct { + // placeholder for future response values +} + +// DaprComponentsClientGetResponse contains the response from method DaprComponentsClient.Get. +type DaprComponentsClientGetResponse struct { + // Dapr Component. + DaprComponent +} + +// DaprComponentsClientListResponse contains the response from method DaprComponentsClient.NewListPager. +type DaprComponentsClientListResponse struct { + // Dapr Components ARM resource. + DaprComponentsCollection +} + +// DaprComponentsClientListSecretsResponse contains the response from method DaprComponentsClient.ListSecrets. +type DaprComponentsClientListSecretsResponse struct { + // Dapr component Secrets Collection for ListSecrets Action. + DaprSecretsCollection +} + +// DaprSubscriptionsClientCreateOrUpdateResponse contains the response from method DaprSubscriptionsClient.CreateOrUpdate. +type DaprSubscriptionsClientCreateOrUpdateResponse struct { + // Dapr PubSub Event Subscription. + DaprSubscription +} + +// DaprSubscriptionsClientDeleteResponse contains the response from method DaprSubscriptionsClient.Delete. +type DaprSubscriptionsClientDeleteResponse struct { + // placeholder for future response values +} + +// DaprSubscriptionsClientGetResponse contains the response from method DaprSubscriptionsClient.Get. +type DaprSubscriptionsClientGetResponse struct { + // Dapr PubSub Event Subscription. + DaprSubscription +} + +// DaprSubscriptionsClientListResponse contains the response from method DaprSubscriptionsClient.NewListPager. +type DaprSubscriptionsClientListResponse struct { + // Dapr Subscriptions ARM resource. + DaprSubscriptionsCollection +} + +// DotNetComponentsClientCreateOrUpdateResponse contains the response from method DotNetComponentsClient.BeginCreateOrUpdate. +type DotNetComponentsClientCreateOrUpdateResponse struct { + // .NET Component. + DotNetComponent +} + +// DotNetComponentsClientDeleteResponse contains the response from method DotNetComponentsClient.BeginDelete. +type DotNetComponentsClientDeleteResponse struct { + // placeholder for future response values +} + +// DotNetComponentsClientGetResponse contains the response from method DotNetComponentsClient.Get. +type DotNetComponentsClientGetResponse struct { + // .NET Component. + DotNetComponent +} + +// DotNetComponentsClientListResponse contains the response from method DotNetComponentsClient.NewListPager. +type DotNetComponentsClientListResponse struct { + // .NET Components ARM resource. + DotNetComponentsCollection +} + +// DotNetComponentsClientUpdateResponse contains the response from method DotNetComponentsClient.BeginUpdate. +type DotNetComponentsClientUpdateResponse struct { + // .NET Component. + DotNetComponent +} + +// JavaComponentsClientCreateOrUpdateResponse contains the response from method JavaComponentsClient.BeginCreateOrUpdate. +type JavaComponentsClientCreateOrUpdateResponse struct { + // Java Component. + JavaComponent +} + +// JavaComponentsClientDeleteResponse contains the response from method JavaComponentsClient.BeginDelete. +type JavaComponentsClientDeleteResponse struct { + // placeholder for future response values +} + +// JavaComponentsClientGetResponse contains the response from method JavaComponentsClient.Get. +type JavaComponentsClientGetResponse struct { + // Java Component. + JavaComponent +} + +// JavaComponentsClientListResponse contains the response from method JavaComponentsClient.NewListPager. +type JavaComponentsClientListResponse struct { + // Java Components ARM resource. + JavaComponentsCollection +} + +// JavaComponentsClientUpdateResponse contains the response from method JavaComponentsClient.BeginUpdate. +type JavaComponentsClientUpdateResponse struct { + // Java Component. + JavaComponent +} + +// JobsClientCreateOrUpdateResponse contains the response from method JobsClient.BeginCreateOrUpdate. +type JobsClientCreateOrUpdateResponse struct { + // Container App Job + Job +} + +// JobsClientDeleteResponse contains the response from method JobsClient.BeginDelete. +type JobsClientDeleteResponse struct { + // placeholder for future response values +} + +// JobsClientGetDetectorResponse contains the response from method JobsClient.GetDetector. +type JobsClientGetDetectorResponse struct { + // Diagnostics data for a resource. + Diagnostics +} + +// JobsClientGetResponse contains the response from method JobsClient.Get. +type JobsClientGetResponse struct { + // Container App Job + Job +} + +// JobsClientListByResourceGroupResponse contains the response from method JobsClient.NewListByResourceGroupPager. +type JobsClientListByResourceGroupResponse struct { + // Container Apps Jobs collection ARM resource. + JobsCollection +} + +// JobsClientListBySubscriptionResponse contains the response from method JobsClient.NewListBySubscriptionPager. +type JobsClientListBySubscriptionResponse struct { + // Container Apps Jobs collection ARM resource. + JobsCollection +} + +// JobsClientListDetectorsResponse contains the response from method JobsClient.ListDetectors. +type JobsClientListDetectorsResponse struct { + // Diagnostics data collection for a resource. + DiagnosticsCollection +} + +// JobsClientListSecretsResponse contains the response from method JobsClient.ListSecrets. +type JobsClientListSecretsResponse struct { + // Container Apps Job Secrets Collection ARM resource. + JobSecretsCollection +} + +// JobsClientProxyGetResponse contains the response from method JobsClient.ProxyGet. +type JobsClientProxyGetResponse struct { + // Container App Job + Job +} + +// JobsClientStartResponse contains the response from method JobsClient.BeginStart. +type JobsClientStartResponse struct { + // Container App's Job execution name. + JobExecutionBase +} + +// JobsClientStopExecutionResponse contains the response from method JobsClient.BeginStopExecution. +type JobsClientStopExecutionResponse struct { + // placeholder for future response values +} + +// JobsClientStopMultipleExecutionsResponse contains the response from method JobsClient.BeginStopMultipleExecutions. +type JobsClientStopMultipleExecutionsResponse struct { + // Container App executions collection ARM resource. + ContainerAppJobExecutions +} + +// JobsClientUpdateResponse contains the response from method JobsClient.BeginUpdate. +type JobsClientUpdateResponse struct { + // Container App Job + Job +} + +// JobsExecutionsClientListResponse contains the response from method JobsExecutionsClient.NewListPager. +type JobsExecutionsClientListResponse struct { + // Container App executions collection ARM resource. + ContainerAppJobExecutions +} + +// ManagedCertificatesClientCreateOrUpdateResponse contains the response from method ManagedCertificatesClient.BeginCreateOrUpdate. +type ManagedCertificatesClientCreateOrUpdateResponse struct { + // Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment + ManagedCertificate +} + +// ManagedCertificatesClientDeleteResponse contains the response from method ManagedCertificatesClient.Delete. +type ManagedCertificatesClientDeleteResponse struct { + // placeholder for future response values +} + +// ManagedCertificatesClientGetResponse contains the response from method ManagedCertificatesClient.Get. +type ManagedCertificatesClientGetResponse struct { + // Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment + ManagedCertificate +} + +// ManagedCertificatesClientListResponse contains the response from method ManagedCertificatesClient.NewListPager. +type ManagedCertificatesClientListResponse struct { + // Collection of Managed Certificates. + ManagedCertificateCollection +} + +// ManagedCertificatesClientUpdateResponse contains the response from method ManagedCertificatesClient.Update. +type ManagedCertificatesClientUpdateResponse struct { + // Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment + ManagedCertificate +} + +// ManagedEnvironmentDiagnosticsClientGetDetectorResponse contains the response from method ManagedEnvironmentDiagnosticsClient.GetDetector. +type ManagedEnvironmentDiagnosticsClientGetDetectorResponse struct { + // Diagnostics data for a resource. + Diagnostics +} + +// ManagedEnvironmentDiagnosticsClientListDetectorsResponse contains the response from method ManagedEnvironmentDiagnosticsClient.ListDetectors. +type ManagedEnvironmentDiagnosticsClientListDetectorsResponse struct { + // Diagnostics data collection for a resource. + DiagnosticsCollection +} + +// ManagedEnvironmentUsagesClientListResponse contains the response from method ManagedEnvironmentUsagesClient.NewListPager. +type ManagedEnvironmentUsagesClientListResponse struct { + ListUsagesResult +} + +// ManagedEnvironmentsClientCreateOrUpdateResponse contains the response from method ManagedEnvironmentsClient.BeginCreateOrUpdate. +type ManagedEnvironmentsClientCreateOrUpdateResponse struct { + // An environment for hosting container apps + ManagedEnvironment +} + +// ManagedEnvironmentsClientDeleteResponse contains the response from method ManagedEnvironmentsClient.BeginDelete. +type ManagedEnvironmentsClientDeleteResponse struct { + // placeholder for future response values +} + +// ManagedEnvironmentsClientGetAuthTokenResponse contains the response from method ManagedEnvironmentsClient.GetAuthToken. +type ManagedEnvironmentsClientGetAuthTokenResponse struct { + // Environment Auth Token. + EnvironmentAuthToken +} + +// ManagedEnvironmentsClientGetResponse contains the response from method ManagedEnvironmentsClient.Get. +type ManagedEnvironmentsClientGetResponse struct { + // An environment for hosting container apps + ManagedEnvironment +} + +// ManagedEnvironmentsClientListByResourceGroupResponse contains the response from method ManagedEnvironmentsClient.NewListByResourceGroupPager. +type ManagedEnvironmentsClientListByResourceGroupResponse struct { + // Collection of Environments + ManagedEnvironmentsCollection +} + +// ManagedEnvironmentsClientListBySubscriptionResponse contains the response from method ManagedEnvironmentsClient.NewListBySubscriptionPager. +type ManagedEnvironmentsClientListBySubscriptionResponse struct { + // Collection of Environments + ManagedEnvironmentsCollection +} + +// ManagedEnvironmentsClientListWorkloadProfileStatesResponse contains the response from method ManagedEnvironmentsClient.NewListWorkloadProfileStatesPager. +type ManagedEnvironmentsClientListWorkloadProfileStatesResponse struct { + // Collection of workloadProfileStates + WorkloadProfileStatesCollection +} + +// ManagedEnvironmentsClientUpdateResponse contains the response from method ManagedEnvironmentsClient.BeginUpdate. +type ManagedEnvironmentsClientUpdateResponse struct { + // An environment for hosting container apps + ManagedEnvironment +} + +// ManagedEnvironmentsDiagnosticsClientGetRootResponse contains the response from method ManagedEnvironmentsDiagnosticsClient.GetRoot. +type ManagedEnvironmentsDiagnosticsClientGetRootResponse struct { + // An environment for hosting container apps + ManagedEnvironment +} + +// ManagedEnvironmentsStoragesClientCreateOrUpdateResponse contains the response from method ManagedEnvironmentsStoragesClient.CreateOrUpdate. +type ManagedEnvironmentsStoragesClientCreateOrUpdateResponse struct { + // Storage resource for managedEnvironment. + ManagedEnvironmentStorage +} + +// ManagedEnvironmentsStoragesClientDeleteResponse contains the response from method ManagedEnvironmentsStoragesClient.Delete. +type ManagedEnvironmentsStoragesClientDeleteResponse struct { + // placeholder for future response values +} + +// ManagedEnvironmentsStoragesClientGetResponse contains the response from method ManagedEnvironmentsStoragesClient.Get. +type ManagedEnvironmentsStoragesClientGetResponse struct { + // Storage resource for managedEnvironment. + ManagedEnvironmentStorage +} + +// ManagedEnvironmentsStoragesClientListResponse contains the response from method ManagedEnvironmentsStoragesClient.List. +type ManagedEnvironmentsStoragesClientListResponse struct { + // Collection of Storage for Environments + ManagedEnvironmentStoragesCollection +} + +// NamespacesClientCheckNameAvailabilityResponse contains the response from method NamespacesClient.CheckNameAvailability. +type NamespacesClientCheckNameAvailabilityResponse struct { + // The check availability result. + CheckNameAvailabilityResponse +} + +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. +type OperationsClientListResponse struct { + // Available operations of the service + AvailableOperations +} + +// UsagesClientListResponse contains the response from method UsagesClient.NewListPager. +type UsagesClientListResponse struct { + ListUsagesResult +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/time_rfc3339.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/time_rfc3339.go new file mode 100644 index 00000000..947aa91d --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/time_rfc3339.go @@ -0,0 +1,110 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/usages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/usages_client.go new file mode 100644 index 00000000..19505aaf --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3/usages_client.go @@ -0,0 +1,104 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappcontainers + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// UsagesClient contains the methods for the Usages group. +// Don't use this type directly, use NewUsagesClient() instead. +type UsagesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewUsagesClient creates a new instance of UsagesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &UsagesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// NewListPager - Gets, for the specified location, the current resource usage information as well as the limits under the +// subscription. +// +// Generated from API version 2023-11-02-preview +// - location - The location for which resource usage is queried. +// - options - UsagesClientListOptions contains the optional parameters for the UsagesClient.NewListPager method. +func (client *UsagesClient) NewListPager(location string, options *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[UsagesClientListResponse]{ + More: func(page UsagesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *UsagesClientListResponse) (UsagesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "UsagesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, options) + }, nil) + if err != nil { + return UsagesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *UsagesClient) listCreateRequest(ctx context.Context, location string, options *UsagesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/usages" + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-02-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *UsagesClient) listHandleResponse(resp *http.Response) (UsagesClientListResponse, error) { + result := UsagesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ListUsagesResult); err != nil { + return UsagesClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/CHANGELOG.md deleted file mode 100644 index 051813c3..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/CHANGELOG.md +++ /dev/null @@ -1,7980 +0,0 @@ -# Release History - -## 1.0.0 (2022-05-16) -### Breaking Changes - -- Function `*VirtualMachinesClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientPowerOffResponse], error)` to `(*runtime.Poller[VirtualMachinesClientPowerOffResponse], error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error)` -- Function `*VirtualMachineExtensionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineExtensionsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineExtensionsClientUpdateResponse], error)` -- Function `*GalleryImagesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryImagesClientDeleteResponse], error)` to `(*runtime.Poller[GalleryImagesClientDeleteResponse], error)` -- Function `*VirtualMachinesClient.BeginPerformMaintenance` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error)` to `(*runtime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error)` -- Function `*GalleryApplicationVersionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationVersionsClientDeleteResponse], error)` to `(*runtime.Poller[GalleryApplicationVersionsClientDeleteResponse], error)` -- Function `*VirtualMachineExtensionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineExtensionsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineExtensionsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error)` -- Function `*CapacityReservationsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[CapacityReservationsClientDeleteResponse], error)` to `(*runtime.Poller[CapacityReservationsClientDeleteResponse], error)` -- Function `*CloudServicesClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientPowerOffResponse], error)` to `(*runtime.Poller[CloudServicesClientPowerOffResponse], error)` -- Function `*CloudServicesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientDeleteResponse], error)` to `(*runtime.Poller[CloudServicesClientDeleteResponse], error)` -- Function `*DiskAccessesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientUpdateResponse], error)` to `(*runtime.Poller[DiskAccessesClientUpdateResponse], error)` -- Function `*GalleryImageVersionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImageVersionsClientUpdateResponse], error)` to `(*runtime.Poller[GalleryImageVersionsClientUpdateResponse], error)` -- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error)` to `(*runtime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error)` -- Function `*CloudServiceRoleInstancesClient.BeginRebuild` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error)` -- Function `*DiskAccessesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientDeleteResponse], error)` to `(*runtime.Poller[DiskAccessesClientDeleteResponse], error)` -- Function `*VirtualMachinesClient.BeginDeallocate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientDeallocateResponse], error)` to `(*runtime.Poller[VirtualMachinesClientDeallocateResponse], error)` -- Function `*RestorePointCollectionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[RestorePointCollectionsClientDeleteResponse], error)` to `(*runtime.Poller[RestorePointCollectionsClientDeleteResponse], error)` -- Function `*DisksClient.BeginRevokeAccess` return value(s) have been changed from `(*armruntime.Poller[DisksClientRevokeAccessResponse], error)` to `(*runtime.Poller[DisksClientRevokeAccessResponse], error)` -- Function `*CapacityReservationsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[CapacityReservationsClientUpdateResponse], error)` to `(*runtime.Poller[CapacityReservationsClientUpdateResponse], error)` -- Function `*DiskEncryptionSetsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskEncryptionSetsClientUpdateResponse], error)` to `(*runtime.Poller[DiskEncryptionSetsClientUpdateResponse], error)` -- Function `*GalleryImageVersionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryImageVersionsClientDeleteResponse], error)` to `(*runtime.Poller[GalleryImageVersionsClientDeleteResponse], error)` -- Function `*DiskEncryptionSetsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DiskEncryptionSetsClientDeleteResponse], error)` to `(*runtime.Poller[DiskEncryptionSetsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error)` -- Function `*DisksClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DisksClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DisksClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error)` -- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error)` -- Function `*DisksClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DisksClientUpdateResponse], error)` to `(*runtime.Poller[DisksClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientRestartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientRestartResponse], error)` -- Function `*GalleryImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImagesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryImagesClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error)` -- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error)` -- Function `*RestorePointsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[RestorePointsClientDeleteResponse], error)` to `(*runtime.Poller[RestorePointsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error)` -- Function `*GalleriesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleriesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleriesClientCreateOrUpdateResponse], error)` -- Function `*DiskAccessesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DiskAccessesClientCreateOrUpdateResponse], error)` -- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error)` -- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error)` to `(*runtime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error)` -- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` return value(s) have been changed from `(*armruntime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error)` to `(*runtime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error)` -- Function `*DedicatedHostsClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientRestartResponse], error)` to `(*runtime.Poller[DedicatedHostsClientRestartResponse], error)` -- Function `*GalleriesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleriesClientDeleteResponse], error)` to `(*runtime.Poller[GalleriesClientDeleteResponse], error)` -- Function `*GalleryApplicationVersionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationVersionsClientUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationVersionsClientUpdateResponse], error)` -- Function `*GalleryImagesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImagesClientUpdateResponse], error)` to `(*runtime.Poller[GalleryImagesClientUpdateResponse], error)` -- Function `*CloudServicesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[CloudServicesClientCreateOrUpdateResponse], error)` -- Function `*SnapshotsClient.BeginRevokeAccess` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientRevokeAccessResponse], error)` to `(*runtime.Poller[SnapshotsClientRevokeAccessResponse], error)` -- Function `*SnapshotsClient.BeginGrantAccess` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientGrantAccessResponse], error)` to `(*runtime.Poller[SnapshotsClientGrantAccessResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error)` -- Function `*LogAnalyticsClient.BeginExportThrottledRequests` return value(s) have been changed from `(*armruntime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error)` to `(*runtime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error)` -- Function `*CapacityReservationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error)` -- Function `*CloudServicesClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientReimageResponse], error)` to `(*runtime.Poller[CloudServicesClientReimageResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error)` -- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error)` to `(*runtime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error)` -- Function `*ImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[ImagesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[ImagesClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientReimageResponse], error)` -- Function `*VirtualMachinesClient.BeginCapture` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientCaptureResponse], error)` to `(*runtime.Poller[VirtualMachinesClientCaptureResponse], error)` -- Function `*VirtualMachinesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachinesClientDeleteResponse], error)` -- Function `*VirtualMachineRunCommandsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error)` -- Function `*DisksClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DisksClientDeleteResponse], error)` to `(*runtime.Poller[DisksClientDeleteResponse], error)` -- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientReimageResponse], error)` to `(*runtime.Poller[VirtualMachinesClientReimageResponse], error)` -- Function `*DedicatedHostsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientUpdateResponse], error)` to `(*runtime.Poller[DedicatedHostsClientUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginRunCommand` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientRunCommandResponse], error)` to `(*runtime.Poller[VirtualMachinesClientRunCommandResponse], error)` -- Function `*DisksClient.BeginGrantAccess` return value(s) have been changed from `(*armruntime.Poller[DisksClientGrantAccessResponse], error)` to `(*runtime.Poller[DisksClientGrantAccessResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error)` -- Function `*VirtualMachinesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachinesClientUpdateResponse], error)` -- Function `*CloudServicesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientUpdateResponse], error)` to `(*runtime.Poller[CloudServicesClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error)` -- Function `*CloudServicesClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientRestartResponse], error)` to `(*runtime.Poller[CloudServicesClientRestartResponse], error)` -- Function `*VirtualMachinesClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientStartResponse], error)` to `(*runtime.Poller[VirtualMachinesClientStartResponse], error)` -- Function `*RestorePointsClient.BeginCreate` return value(s) have been changed from `(*armruntime.Poller[RestorePointsClientCreateResponse], error)` to `(*runtime.Poller[RestorePointsClientCreateResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error)` -- Function `*GalleriesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleriesClientUpdateResponse], error)` to `(*runtime.Poller[GalleriesClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error)` -- Function `*VirtualMachinesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error)` -- Function `*ImagesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[ImagesClientDeleteResponse], error)` to `(*runtime.Poller[ImagesClientDeleteResponse], error)` -- Function `*ImagesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[ImagesClientUpdateResponse], error)` to `(*runtime.Poller[ImagesClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginReapply` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientReapplyResponse], error)` to `(*runtime.Poller[VirtualMachinesClientReapplyResponse], error)` -- Function `*DiskRestorePointClient.BeginGrantAccess` return value(s) have been changed from `(*armruntime.Poller[DiskRestorePointClientGrantAccessResponse], error)` to `(*runtime.Poller[DiskRestorePointClientGrantAccessResponse], error)` -- Function `*VirtualMachineRunCommandsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error)` -- Function `*CloudServicesClient.BeginRebuild` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientRebuildResponse], error)` to `(*runtime.Poller[CloudServicesClientRebuildResponse], error)` -- Function `*VirtualMachinesClient.BeginAssessPatches` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientAssessPatchesResponse], error)` to `(*runtime.Poller[VirtualMachinesClientAssessPatchesResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error)` -- Function `*VirtualMachinesClient.BeginRedeploy` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientRedeployResponse], error)` to `(*runtime.Poller[VirtualMachinesClientRedeployResponse], error)` -- Function `*SnapshotsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientUpdateResponse], error)` to `(*runtime.Poller[SnapshotsClientUpdateResponse], error)` -- Function `*SnapshotsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[SnapshotsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginInstallPatches` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientInstallPatchesResponse], error)` to `(*runtime.Poller[VirtualMachinesClientInstallPatchesResponse], error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error)` -- Function `*CloudServicesClient.BeginDeleteInstances` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientDeleteInstancesResponse], error)` to `(*runtime.Poller[CloudServicesClientDeleteInstancesResponse], error)` -- Function `*CloudServiceRoleInstancesClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientRestartResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientRestartResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error)` -- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error)` -- Function `*GalleryApplicationsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationsClientUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationsClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error)` -- Function `*CloudServiceRoleInstancesClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientReimageResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientReimageResponse], error)` -- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` return value(s) have been changed from `(*armruntime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error)` to `(*runtime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error)` -- Function `*DiskRestorePointClient.BeginRevokeAccess` return value(s) have been changed from `(*armruntime.Poller[DiskRestorePointClientRevokeAccessResponse], error)` to `(*runtime.Poller[DiskRestorePointClientRevokeAccessResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error)` -- Function `*SnapshotsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientDeleteResponse], error)` to `(*runtime.Poller[SnapshotsClientDeleteResponse], error)` -- Function `*GallerySharingProfileClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GallerySharingProfileClientUpdateResponse], error)` to `(*runtime.Poller[GallerySharingProfileClientUpdateResponse], error)` -- Function `*GalleryApplicationsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationsClientDeleteResponse], error)` to `(*runtime.Poller[GalleryApplicationsClientDeleteResponse], error)` -- Function `*DedicatedHostsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error)` -- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientRestartResponse], error)` to `(*runtime.Poller[VirtualMachinesClientRestartResponse], error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error)` -- Function `*CloudServicesClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientStartResponse], error)` to `(*runtime.Poller[CloudServicesClientStartResponse], error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error)` -- Function `*DedicatedHostsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientDeleteResponse], error)` to `(*runtime.Poller[DedicatedHostsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error)` -- Function `*CloudServiceRoleInstancesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientStartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientStartResponse], error)` -- Type of `DiskRestorePointInstanceView.ReplicationStatus` has been changed from `interface{}` to `*DiskRestorePointReplicationStatus` -- Type of `DiskRestorePointReplicationStatus.Status` has been changed from `interface{}` to `*InstanceViewStatus` -- Function `DedicatedHostGroupListResult.MarshalJSON` has been removed -- Function `ResourceSKURestrictions.MarshalJSON` has been removed -- Function `RunCommandListResult.MarshalJSON` has been removed -- Function `GalleryApplicationVersionList.MarshalJSON` has been removed -- Function `CommunityGalleryImageProperties.MarshalJSON` has been removed -- Function `VirtualMachineListResult.MarshalJSON` has been removed -- Function `VirtualMachineAssessPatchesResult.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetListResult.MarshalJSON` has been removed -- Function `VirtualMachineExtensionsListResult.MarshalJSON` has been removed -- Function `GalleryImageList.MarshalJSON` has been removed -- Function `DiskRestorePointList.MarshalJSON` has been removed -- Function `VirtualMachineRunCommandsListResult.MarshalJSON` has been removed -- Function `DiskRestorePointProperties.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetInstanceView.MarshalJSON` has been removed -- Function `ResourceSKUZoneDetails.MarshalJSON` has been removed -- Function `VirtualMachineSoftwarePatchProperties.MarshalJSON` has been removed -- Function `RoleInstance.MarshalJSON` has been removed -- Function `GalleryApplicationList.MarshalJSON` has been removed -- Function `GalleryList.MarshalJSON` has been removed -- Function `AvailabilitySetListResult.MarshalJSON` has been removed -- Function `DiskEncryptionSetList.MarshalJSON` has been removed -- Function `PrivateLinkResourceProperties.MarshalJSON` has been removed -- Function `RoleInstanceView.MarshalJSON` has been removed -- Function `RoleInstanceListResult.MarshalJSON` has been removed -- Function `SharedGalleryImageVersionProperties.MarshalJSON` has been removed -- Function `VirtualMachineSizeListResult.MarshalJSON` has been removed -- Function `ResourceSKUsResult.MarshalJSON` has been removed -- Function `SnapshotList.MarshalJSON` has been removed -- Function `RoleInstanceNetworkProfile.MarshalJSON` has been removed -- Function `ResourceSKURestrictionInfo.MarshalJSON` has been removed -- Function `VirtualMachineInstallPatchesResult.MarshalJSON` has been removed -- Function `SharedGalleryImageProperties.MarshalJSON` has been removed -- Function `CommunityGalleryImageVersionProperties.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetVMListResult.MarshalJSON` has been removed -- Function `SharedGalleryImageVersionList.MarshalJSON` has been removed -- Function `ResourceURIList.MarshalJSON` has been removed -- Function `OSVersionListResult.MarshalJSON` has been removed -- Function `ResourceInstanceViewStatus.MarshalJSON` has been removed -- Function `RunCommandResult.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetListOSUpgradeHistory.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetListWithLinkResult.MarshalJSON` has been removed -- Function `PatchInstallationDetail.MarshalJSON` has been removed -- Function `UpgradeOperationHistoryStatus.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetListSKUsResult.MarshalJSON` has been removed -- Function `CloudServiceInstanceView.MarshalJSON` has been removed -- Function `DedicatedHostListResult.MarshalJSON` has been removed -- Function `RestorePointCollectionListResult.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON` has been removed -- Function `PrivateLinkResourceListResult.MarshalJSON` has been removed -- Function `SharedGalleryImageList.MarshalJSON` has been removed -- Function `OSFamilyProperties.MarshalJSON` has been removed -- Function `CapacityReservationGroupListResult.MarshalJSON` has been removed -- Function `ProximityPlacementGroupListResult.MarshalJSON` has been removed -- Function `PrivateEndpointConnectionListResult.MarshalJSON` has been removed -- Function `ResourceSKU.MarshalJSON` has been removed -- Function `OperationListResult.MarshalJSON` has been removed -- Function `CapacityReservationListResult.MarshalJSON` has been removed -- Function `OSFamilyListResult.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetExtensionListResult.MarshalJSON` has been removed -- Function `InstanceViewStatusesSummary.MarshalJSON` has been removed -- Function `CloudServiceRoleListResult.MarshalJSON` has been removed -- Function `ResourceSKULocationInfo.MarshalJSON` has been removed -- Function `CloudServiceListResult.MarshalJSON` has been removed -- Function `RunCommandDocument.MarshalJSON` has been removed -- Function `ListUsagesResult.MarshalJSON` has been removed -- Function `GalleryImageVersionList.MarshalJSON` has been removed -- Function `ImageListResult.MarshalJSON` has been removed -- Function `DiskList.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetVMExtensionsListResult.MarshalJSON` has been removed -- Function `CommunityGalleryInfo.MarshalJSON` has been removed -- Function `DiskAccessList.MarshalJSON` has been removed -- Function `SharedGalleryList.MarshalJSON` has been removed -- Function `UpdateDomainListResult.MarshalJSON` has been removed -- Function `SSHPublicKeysGroupListResult.MarshalJSON` has been removed - -### Features Added - -- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown` -- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever` -- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingIfRequired` -- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingIfRequired` -- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever` -- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingAlways` -- New const `StorageAccountTypesPremiumV2LRS` -- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown` -- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingAlways` -- New function `ProximityPlacementGroupPropertiesIntent.MarshalJSON() ([]byte, error)` -- New function `PossibleLinuxVMGuestPatchAutomaticByPlatformRebootSettingValues() []LinuxVMGuestPatchAutomaticByPlatformRebootSetting` -- New function `PossibleWindowsVMGuestPatchAutomaticByPlatformRebootSettingValues() []WindowsVMGuestPatchAutomaticByPlatformRebootSetting` -- New function `ResourceWithOptionalLocation.MarshalJSON() ([]byte, error)` -- New struct `DedicatedHostGroupPropertiesAdditionalCapabilities` -- New struct `LinuxVMGuestPatchAutomaticByPlatformSettings` -- New struct `ProximityPlacementGroupPropertiesIntent` -- New struct `ResourceWithOptionalLocation` -- New struct `WindowsVMGuestPatchAutomaticByPlatformSettings` -- New field `Zones` in struct `ProximityPlacementGroup` -- New field `Intent` in struct `ProximityPlacementGroupProperties` -- New field `AutomaticByPlatformSettings` in struct `LinuxPatchSettings` -- New field `AdditionalCapabilities` in struct `DedicatedHostGroupProperties` -- New field `DeleteOption` in struct `VirtualMachineScaleSetDataDisk` -- New field `DeleteOption` in struct `VirtualMachineScaleSetOSDisk` -- New field `DeleteOption` in struct `VirtualMachineScaleSetUpdateOSDisk` -- New field `AutomaticByPlatformSettings` in struct `PatchSettings` -- New field `UseRollingUpgradePolicy` in struct `AutomaticOSUpgradePolicy` -- New field `Identity` in struct `VirtualMachineScaleSetVM` -- New field `TreatFailureAsDeploymentFailure` in struct `VMGalleryApplication` -- New field `EnableAutomaticUpgrade` in struct `VMGalleryApplication` -- New field `CompletionPercent` in struct `DiskRestorePointReplicationStatus` - - -## 0.7.0 (2022-04-15) -### Breaking Changes - -- Function `*DisksClient.ListByResourceGroup` has been removed -- Function `*VirtualMachinesClient.ListByLocation` has been removed -- Function `*VirtualMachinesClient.ListAvailableSizes` has been removed -- Function `*DiskAccessesClient.ListPrivateEndpointConnections` has been removed -- Function `*RestorePointCollectionsClient.ListAll` has been removed -- Function `*VirtualMachineScaleSetsClient.List` has been removed -- Function `*SharedGalleryImagesClient.List` has been removed -- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` has been removed -- Function `*SharedGalleriesClient.List` has been removed -- Function `*VirtualMachineScaleSetExtensionsClient.List` has been removed -- Function `*DiskEncryptionSetsClient.ListByResourceGroup` has been removed -- Function `*VirtualMachineScaleSetsClient.ListAll` has been removed -- Function `*ProximityPlacementGroupsClient.ListBySubscription` has been removed -- Function `*DiskEncryptionSetsClient.ListAssociatedResources` has been removed -- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` has been removed -- Function `*GalleriesClient.ListByResourceGroup` has been removed -- Function `*UsageClient.List` has been removed -- Function `*GalleryImagesClient.ListByGallery` has been removed -- Function `*GalleriesClient.List` has been removed -- Function `*CloudServicesClient.List` has been removed -- Function `*SSHPublicKeysClient.ListByResourceGroup` has been removed -- Function `*RestorePointCollectionsClient.List` has been removed -- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` has been removed -- Function `*SnapshotsClient.ListByResourceGroup` has been removed -- Function `*DiskEncryptionSetsClient.List` has been removed -- Function `*ResourceSKUsClient.List` has been removed -- Function `*CloudServiceRolesClient.List` has been removed -- Function `*DisksClient.List` has been removed -- Function `*DiskRestorePointClient.ListByRestorePoint` has been removed -- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` has been removed -- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` has been removed -- Function `*VirtualMachinesClient.ListAll` has been removed -- Function `*VirtualMachineRunCommandsClient.List` has been removed -- Function `*DiskAccessesClient.List` has been removed -- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` has been removed -- Function `*AvailabilitySetsClient.List` has been removed -- Function `*AvailabilitySetsClient.ListBySubscription` has been removed -- Function `*DedicatedHostGroupsClient.ListByResourceGroup` has been removed -- Function `*VirtualMachinesClient.List` has been removed -- Function `*CloudServicesClient.ListAll` has been removed -- Function `*DedicatedHostsClient.ListByHostGroup` has been removed -- Function `*ImagesClient.ListByResourceGroup` has been removed -- Function `*VirtualMachineScaleSetsClient.ListByLocation` has been removed -- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` has been removed -- Function `*AvailabilitySetsClient.ListAvailableSizes` has been removed -- Function `*CloudServiceRoleInstancesClient.List` has been removed -- Function `*DiskAccessesClient.ListByResourceGroup` has been removed -- Function `*SharedGalleryImageVersionsClient.List` has been removed -- Function `*GalleryImageVersionsClient.ListByGalleryImage` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` has been removed -- Function `*SSHPublicKeysClient.ListBySubscription` has been removed -- Function `*GalleryApplicationsClient.ListByGallery` has been removed -- Function `*OperationsClient.List` has been removed -- Function `*CapacityReservationGroupsClient.ListBySubscription` has been removed -- Function `*CapacityReservationGroupsClient.ListByResourceGroup` has been removed -- Function `*ImagesClient.List` has been removed -- Function `*VirtualMachineSizesClient.List` has been removed -- Function `*DedicatedHostGroupsClient.ListBySubscription` has been removed -- Function `*SnapshotsClient.List` has been removed -- Function `*VirtualMachineScaleSetVMsClient.List` has been removed -- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` has been removed -- Function `*VirtualMachineScaleSetsClient.ListSKUs` has been removed - -### Features Added - -- New function `*SharedGalleriesClient.NewListPager(string, *SharedGalleriesClientListOptions) *runtime.Pager[SharedGalleriesClientListResponse]` -- New function `*VirtualMachinesClient.NewListAvailableSizesPager(string, string, *VirtualMachinesClientListAvailableSizesOptions) *runtime.Pager[VirtualMachinesClientListAvailableSizesResponse]` -- New function `*VirtualMachineScaleSetsClient.NewListByLocationPager(string, *VirtualMachineScaleSetsClientListByLocationOptions) *runtime.Pager[VirtualMachineScaleSetsClientListByLocationResponse]` -- New function `*VirtualMachineScaleSetsClient.NewListAllPager(*VirtualMachineScaleSetsClientListAllOptions) *runtime.Pager[VirtualMachineScaleSetsClientListAllResponse]` -- New function `*VirtualMachineScaleSetsClient.NewListPager(string, *VirtualMachineScaleSetsClientListOptions) *runtime.Pager[VirtualMachineScaleSetsClientListResponse]` -- New function `*GalleryApplicationVersionsClient.NewListByGalleryApplicationPager(string, string, string, *GalleryApplicationVersionsClientListByGalleryApplicationOptions) *runtime.Pager[GalleryApplicationVersionsClientListByGalleryApplicationResponse]` -- New function `*GalleryImagesClient.NewListByGalleryPager(string, string, *GalleryImagesClientListByGalleryOptions) *runtime.Pager[GalleryImagesClientListByGalleryResponse]` -- New function `*ProximityPlacementGroupsClient.NewListBySubscriptionPager(*ProximityPlacementGroupsClientListBySubscriptionOptions) *runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse]` -- New function `*DiskAccessesClient.NewListPager(*DiskAccessesClientListOptions) *runtime.Pager[DiskAccessesClientListResponse]` -- New function `*SSHPublicKeysClient.NewListBySubscriptionPager(*SSHPublicKeysClientListBySubscriptionOptions) *runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse]` -- New function `*DiskRestorePointClient.NewListByRestorePointPager(string, string, string, *DiskRestorePointClientListByRestorePointOptions) *runtime.Pager[DiskRestorePointClientListByRestorePointResponse]` -- New function `*CloudServicesClient.NewListAllPager(*CloudServicesClientListAllOptions) *runtime.Pager[CloudServicesClientListAllResponse]` -- New function `*DedicatedHostsClient.NewListByHostGroupPager(string, string, *DedicatedHostsClientListByHostGroupOptions) *runtime.Pager[DedicatedHostsClientListByHostGroupResponse]` -- New function `*VirtualMachinesClient.NewListByLocationPager(string, *VirtualMachinesClientListByLocationOptions) *runtime.Pager[VirtualMachinesClientListByLocationResponse]` -- New function `*GalleryApplicationsClient.NewListByGalleryPager(string, string, *GalleryApplicationsClientListByGalleryOptions) *runtime.Pager[GalleryApplicationsClientListByGalleryResponse]` -- New function `*VirtualMachineScaleSetExtensionsClient.NewListPager(string, string, *VirtualMachineScaleSetExtensionsClientListOptions) *runtime.Pager[VirtualMachineScaleSetExtensionsClientListResponse]` -- New function `*VirtualMachineSizesClient.NewListPager(string, *VirtualMachineSizesClientListOptions) *runtime.Pager[VirtualMachineSizesClientListResponse]` -- New function `*SharedGalleryImageVersionsClient.NewListPager(string, string, string, *SharedGalleryImageVersionsClientListOptions) *runtime.Pager[SharedGalleryImageVersionsClientListResponse]` -- New function `*ImagesClient.NewListByResourceGroupPager(string, *ImagesClientListByResourceGroupOptions) *runtime.Pager[ImagesClientListByResourceGroupResponse]` -- New function `*VirtualMachineRunCommandsClient.NewListPager(string, *VirtualMachineRunCommandsClientListOptions) *runtime.Pager[VirtualMachineRunCommandsClientListResponse]` -- New function `*DisksClient.NewListPager(*DisksClientListOptions) *runtime.Pager[DisksClientListResponse]` -- New function `*VirtualMachineScaleSetVMsClient.NewListPager(string, string, *VirtualMachineScaleSetVMsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMsClientListResponse]` -- New function `*CloudServiceRoleInstancesClient.NewListPager(string, string, *CloudServiceRoleInstancesClientListOptions) *runtime.Pager[CloudServiceRoleInstancesClientListResponse]` -- New function `*SnapshotsClient.NewListPager(*SnapshotsClientListOptions) *runtime.Pager[SnapshotsClientListResponse]` -- New function `*ImagesClient.NewListPager(*ImagesClientListOptions) *runtime.Pager[ImagesClientListResponse]` -- New function `*DiskAccessesClient.NewListByResourceGroupPager(string, *DiskAccessesClientListByResourceGroupOptions) *runtime.Pager[DiskAccessesClientListByResourceGroupResponse]` -- New function `*ResourceSKUsClient.NewListPager(*ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse]` -- New function `*DisksClient.NewListByResourceGroupPager(string, *DisksClientListByResourceGroupOptions) *runtime.Pager[DisksClientListByResourceGroupResponse]` -- New function `*CloudServicesClient.NewListPager(string, *CloudServicesClientListOptions) *runtime.Pager[CloudServicesClientListResponse]` -- New function `*AvailabilitySetsClient.NewListAvailableSizesPager(string, string, *AvailabilitySetsClientListAvailableSizesOptions) *runtime.Pager[AvailabilitySetsClientListAvailableSizesResponse]` -- New function `*CloudServicesUpdateDomainClient.NewListUpdateDomainsPager(string, string, *CloudServicesUpdateDomainClientListUpdateDomainsOptions) *runtime.Pager[CloudServicesUpdateDomainClientListUpdateDomainsResponse]` -- New function `*ProximityPlacementGroupsClient.NewListByResourceGroupPager(string, *ProximityPlacementGroupsClientListByResourceGroupOptions) *runtime.Pager[ProximityPlacementGroupsClientListByResourceGroupResponse]` -- New function `*DiskEncryptionSetsClient.NewListPager(*DiskEncryptionSetsClientListOptions) *runtime.Pager[DiskEncryptionSetsClientListResponse]` -- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` -- New function `*SnapshotsClient.NewListByResourceGroupPager(string, *SnapshotsClientListByResourceGroupOptions) *runtime.Pager[SnapshotsClientListByResourceGroupResponse]` -- New function `*DedicatedHostGroupsClient.NewListBySubscriptionPager(*DedicatedHostGroupsClientListBySubscriptionOptions) *runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse]` -- New function `*CapacityReservationsClient.NewListByCapacityReservationGroupPager(string, string, *CapacityReservationsClientListByCapacityReservationGroupOptions) *runtime.Pager[CapacityReservationsClientListByCapacityReservationGroupResponse]` -- New function `*CapacityReservationGroupsClient.NewListByResourceGroupPager(string, *CapacityReservationGroupsClientListByResourceGroupOptions) *runtime.Pager[CapacityReservationGroupsClientListByResourceGroupResponse]` -- New function `*CloudServiceOperatingSystemsClient.NewListOSVersionsPager(string, *CloudServiceOperatingSystemsClientListOSVersionsOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSVersionsResponse]` -- New function `*VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager(string, string, *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions) *runtime.Pager[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse]` -- New function `*GalleriesClient.NewListByResourceGroupPager(string, *GalleriesClientListByResourceGroupOptions) *runtime.Pager[GalleriesClientListByResourceGroupResponse]` -- New function `*CloudServiceRolesClient.NewListPager(string, string, *CloudServiceRolesClientListOptions) *runtime.Pager[CloudServiceRolesClientListResponse]` -- New function `*VirtualMachinesClient.NewListPager(string, *VirtualMachinesClientListOptions) *runtime.Pager[VirtualMachinesClientListResponse]` -- New function `*DedicatedHostGroupsClient.NewListByResourceGroupPager(string, *DedicatedHostGroupsClientListByResourceGroupOptions) *runtime.Pager[DedicatedHostGroupsClientListByResourceGroupResponse]` -- New function `*RestorePointCollectionsClient.NewListPager(string, *RestorePointCollectionsClientListOptions) *runtime.Pager[RestorePointCollectionsClientListResponse]` -- New function `*AvailabilitySetsClient.NewListBySubscriptionPager(*AvailabilitySetsClientListBySubscriptionOptions) *runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse]` -- New function `*CapacityReservationGroupsClient.NewListBySubscriptionPager(*CapacityReservationGroupsClientListBySubscriptionOptions) *runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse]` -- New function `*RestorePointCollectionsClient.NewListAllPager(*RestorePointCollectionsClientListAllOptions) *runtime.Pager[RestorePointCollectionsClientListAllResponse]` -- New function `*CloudServiceOperatingSystemsClient.NewListOSFamiliesPager(string, *CloudServiceOperatingSystemsClientListOSFamiliesOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSFamiliesResponse]` -- New function `*SharedGalleryImagesClient.NewListPager(string, string, *SharedGalleryImagesClientListOptions) *runtime.Pager[SharedGalleryImagesClientListResponse]` -- New function `*GalleriesClient.NewListPager(*GalleriesClientListOptions) *runtime.Pager[GalleriesClientListResponse]` -- New function `*VirtualMachinesClient.NewListAllPager(*VirtualMachinesClientListAllOptions) *runtime.Pager[VirtualMachinesClientListAllResponse]` -- New function `*SSHPublicKeysClient.NewListByResourceGroupPager(string, *SSHPublicKeysClientListByResourceGroupOptions) *runtime.Pager[SSHPublicKeysClientListByResourceGroupResponse]` -- New function `*VirtualMachineScaleSetsClient.NewListSKUsPager(string, string, *VirtualMachineScaleSetsClientListSKUsOptions) *runtime.Pager[VirtualMachineScaleSetsClientListSKUsResponse]` -- New function `*DiskAccessesClient.NewListPrivateEndpointConnectionsPager(string, string, *DiskAccessesClientListPrivateEndpointConnectionsOptions) *runtime.Pager[DiskAccessesClientListPrivateEndpointConnectionsResponse]` -- New function `*VirtualMachineRunCommandsClient.NewListByVirtualMachinePager(string, string, *VirtualMachineRunCommandsClientListByVirtualMachineOptions) *runtime.Pager[VirtualMachineRunCommandsClientListByVirtualMachineResponse]` -- New function `*VirtualMachineScaleSetVMRunCommandsClient.NewListPager(string, string, string, *VirtualMachineScaleSetVMRunCommandsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMRunCommandsClientListResponse]` -- New function `*DiskEncryptionSetsClient.NewListByResourceGroupPager(string, *DiskEncryptionSetsClientListByResourceGroupOptions) *runtime.Pager[DiskEncryptionSetsClientListByResourceGroupResponse]` -- New function `*UsageClient.NewListPager(string, *UsageClientListOptions) *runtime.Pager[UsageClientListResponse]` -- New function `*DiskEncryptionSetsClient.NewListAssociatedResourcesPager(string, string, *DiskEncryptionSetsClientListAssociatedResourcesOptions) *runtime.Pager[DiskEncryptionSetsClientListAssociatedResourcesResponse]` -- New function `*GalleryImageVersionsClient.NewListByGalleryImagePager(string, string, string, *GalleryImageVersionsClientListByGalleryImageOptions) *runtime.Pager[GalleryImageVersionsClientListByGalleryImageResponse]` -- New function `*AvailabilitySetsClient.NewListPager(string, *AvailabilitySetsClientListOptions) *runtime.Pager[AvailabilitySetsClientListResponse]` - - -## 0.6.0 (2022-04-13) -### Breaking Changes - -- Function `*GalleryImagesClient.ListByGallery` return value(s) have been changed from `(*GalleryImagesClientListByGalleryPager)` to `(*runtime.Pager[GalleryImagesClientListByGalleryResponse])` -- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` return value(s) have been changed from `(*CapacityReservationsClientListByCapacityReservationGroupPager)` to `(*runtime.Pager[CapacityReservationsClientListByCapacityReservationGroupResponse])` -- Function `NewVirtualMachineScaleSetsClient` return value(s) have been changed from `(*VirtualMachineScaleSetsClient)` to `(*VirtualMachineScaleSetsClient, error)` -- Function `*VirtualMachineScaleSetsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListResponse])` -- Function `*CapacityReservationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(CapacityReservationsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error)` -- Function `*SharedGalleriesClient.List` return value(s) have been changed from `(*SharedGalleriesClientListPager)` to `(*runtime.Pager[SharedGalleriesClientListResponse])` -- Function `*VirtualMachinesClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachinesClientDeallocatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientDeallocateResponse], error)` -- Function `*LogAnalyticsClient.BeginExportThrottledRequests` return value(s) have been changed from `(LogAnalyticsClientExportThrottledRequestsPollerResponse, error)` to `(*armruntime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetsClientRestartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientRestartResponse], error)` -- Function `*VirtualMachinesClient.BeginAssessPatches` return value(s) have been changed from `(VirtualMachinesClientAssessPatchesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientAssessPatchesResponse], error)` -- Function `*RestorePointCollectionsClient.List` return value(s) have been changed from `(*RestorePointCollectionsClientListPager)` to `(*runtime.Pager[RestorePointCollectionsClientListResponse])` -- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` return value(s) have been changed from `(*CloudServiceOperatingSystemsClientListOSVersionsPager)` to `(*runtime.Pager[CloudServiceOperatingSystemsClientListOSVersionsResponse])` -- Function `*VirtualMachineScaleSetsClient.ListAll` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListAllPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListAllResponse])` -- Function `NewDedicatedHostGroupsClient` return value(s) have been changed from `(*DedicatedHostGroupsClient)` to `(*DedicatedHostGroupsClient, error)` -- Function `*DisksClient.BeginCreateOrUpdate` return value(s) have been changed from `(DisksClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DisksClientCreateOrUpdateResponse], error)` -- Function `NewLogAnalyticsClient` return value(s) have been changed from `(*LogAnalyticsClient)` to `(*LogAnalyticsClient, error)` -- Function `*CloudServiceRoleInstancesClient.List` return value(s) have been changed from `(*CloudServiceRoleInstancesClientListPager)` to `(*runtime.Pager[CloudServiceRoleInstancesClientListResponse])` -- Function `*DiskEncryptionSetsClient.BeginDelete` return value(s) have been changed from `(DiskEncryptionSetsClientDeletePollerResponse, error)` to `(*armruntime.Poller[DiskEncryptionSetsClientDeleteResponse], error)` -- Function `*GalleryImageVersionsClient.ListByGalleryImage` return value(s) have been changed from `(*GalleryImageVersionsClientListByGalleryImagePager)` to `(*runtime.Pager[GalleryImageVersionsClientListByGalleryImageResponse])` -- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskEncryptionSetsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error)` -- Function `*CloudServiceRoleInstancesClient.BeginDelete` return value(s) have been changed from `(CloudServiceRoleInstancesClientDeletePollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error)` -- Function `*GalleryImageVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryImageVersionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryImageVersionsClientDeleteResponse], error)` -- Function `*VirtualMachinesClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesClientListAvailableSizesOptions)` to `(string, string, *VirtualMachinesClientListAvailableSizesOptions)` -- Function `*VirtualMachinesClient.ListAvailableSizes` return value(s) have been changed from `(VirtualMachinesClientListAvailableSizesResponse, error)` to `(*runtime.Pager[VirtualMachinesClientListAvailableSizesResponse])` -- Function `*CloudServiceRolesClient.List` return value(s) have been changed from `(*CloudServiceRolesClientListPager)` to `(*runtime.Pager[CloudServiceRolesClientListResponse])` -- Function `*DedicatedHostGroupsClient.ListBySubscription` return value(s) have been changed from `(*DedicatedHostGroupsClientListBySubscriptionPager)` to `(*runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse])` -- Function `*CloudServiceRoleInstancesClient.BeginRebuild` return value(s) have been changed from `(CloudServiceRoleInstancesClientRebuildPollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error)` -- Function `NewSSHPublicKeysClient` return value(s) have been changed from `(*SSHPublicKeysClient)` to `(*SSHPublicKeysClient, error)` -- Function `*VirtualMachinesClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachinesClientRedeployPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientRedeployResponse], error)` -- Function `*CloudServicesClient.BeginDelete` return value(s) have been changed from `(CloudServicesClientDeletePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientDeleteResponse], error)` -- Function `*AvailabilitySetsClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsClientListAvailableSizesOptions)` to `(string, string, *AvailabilitySetsClientListAvailableSizesOptions)` -- Function `*AvailabilitySetsClient.ListAvailableSizes` return value(s) have been changed from `(AvailabilitySetsClientListAvailableSizesResponse, error)` to `(*runtime.Pager[AvailabilitySetsClientListAvailableSizesResponse])` -- Function `*DiskAccessesClient.BeginDelete` return value(s) have been changed from `(DiskAccessesClientDeletePollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error)` -- Function `*CloudServicesClient.BeginStart` return value(s) have been changed from `(CloudServicesClientStartPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientStartResponse], error)` -- Function `NewGalleriesClient` return value(s) have been changed from `(*GalleriesClient)` to `(*GalleriesClient, error)` -- Function `NewCommunityGalleryImageVersionsClient` return value(s) have been changed from `(*CommunityGalleryImageVersionsClient)` to `(*CommunityGalleryImageVersionsClient, error)` -- Function `*RestorePointsClient.BeginCreate` return value(s) have been changed from `(RestorePointsClientCreatePollerResponse, error)` to `(*armruntime.Poller[RestorePointsClientCreateResponse], error)` -- Function `*GalleryImagesClient.BeginDelete` return value(s) have been changed from `(GalleryImagesClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryImagesClientDeleteResponse], error)` -- Function `*VirtualMachinesClient.BeginRestart` return value(s) have been changed from `(VirtualMachinesClientRestartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientRestartResponse], error)` -- Function `NewImagesClient` return value(s) have been changed from `(*ImagesClient)` to `(*ImagesClient, error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginReapply` return value(s) have been changed from `(VirtualMachinesClientReapplyPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientReapplyResponse], error)` -- Function `*VirtualMachineScaleSetsClient.ListByLocation` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListByLocationPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListByLocationResponse])` -- Function `*DiskRestorePointClient.BeginRevokeAccess` return value(s) have been changed from `(DiskRestorePointClientRevokeAccessPollerResponse, error)` to `(*armruntime.Poller[DiskRestorePointClientRevokeAccessResponse], error)` -- Function `NewCapacityReservationGroupsClient` return value(s) have been changed from `(*CapacityReservationGroupsClient)` to `(*CapacityReservationGroupsClient, error)` -- Function `*GalleryApplicationsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationsClientUpdateResponse], error)` -- Function `NewUsageClient` return value(s) have been changed from `(*UsageClient)` to `(*UsageClient, error)` -- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` return value(s) have been changed from `(VirtualMachinesClientConvertToManagedDisksPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error)` -- Function `*SharedGalleryImagesClient.List` return value(s) have been changed from `(*SharedGalleryImagesClientListPager)` to `(*runtime.Pager[SharedGalleryImagesClientListResponse])` -- Function `*CapacityReservationGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*CapacityReservationGroupsClientListByResourceGroupPager)` to `(*runtime.Pager[CapacityReservationGroupsClientListByResourceGroupResponse])` -- Function `*UsageClient.List` return value(s) have been changed from `(*UsageClientListPager)` to `(*runtime.Pager[UsageClientListResponse])` -- Function `NewSharedGalleryImagesClient` return value(s) have been changed from `(*SharedGalleryImagesClient)` to `(*SharedGalleryImagesClient, error)` -- Function `*DedicatedHostsClient.BeginUpdate` return value(s) have been changed from `(DedicatedHostsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientUpdateResponse], error)` -- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` return value(s) have been changed from `(*CloudServicesUpdateDomainClientListUpdateDomainsPager)` to `(*runtime.Pager[CloudServicesUpdateDomainClientListUpdateDomainsResponse])` -- Function `*AvailabilitySetsClient.List` return value(s) have been changed from `(*AvailabilitySetsClientListPager)` to `(*runtime.Pager[AvailabilitySetsClientListResponse])` -- Function `*GalleryImageVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryImageVersionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImageVersionsClientUpdateResponse], error)` -- Function `NewCloudServiceRolesClient` return value(s) have been changed from `(*CloudServiceRolesClient)` to `(*CloudServiceRolesClient, error)` -- Function `*DiskAccessesClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskAccessesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientCreateOrUpdateResponse], error)` -- Function `NewVirtualMachinesClient` return value(s) have been changed from `(*VirtualMachinesClient)` to `(*VirtualMachinesClient, error)` -- Function `*RestorePointCollectionsClient.ListAll` return value(s) have been changed from `(*RestorePointCollectionsClientListAllPager)` to `(*runtime.Pager[RestorePointCollectionsClientListAllResponse])` -- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetsClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error)` -- Function `NewDedicatedHostsClient` return value(s) have been changed from `(*DedicatedHostsClient)` to `(*DedicatedHostsClient, error)` -- Function `*VirtualMachineExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineExtensionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineExtensionsClientDeleteResponse], error)` -- Function `NewVirtualMachineScaleSetExtensionsClient` return value(s) have been changed from `(*VirtualMachineScaleSetExtensionsClient)` to `(*VirtualMachineScaleSetExtensionsClient, error)` -- Function `*VirtualMachineRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientRunCommandPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error)` -- Function `*DedicatedHostsClient.BeginRestart` return value(s) have been changed from `(DedicatedHostsClientRestartPollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientRestartResponse], error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error)` -- Function `*GalleryApplicationVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationVersionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationVersionsClientUpdateResponse], error)` -- Function `NewDiskAccessesClient` return value(s) have been changed from `(*DiskAccessesClient)` to `(*DiskAccessesClient, error)` -- Function `NewGalleryApplicationVersionsClient` return value(s) have been changed from `(*GalleryApplicationVersionsClient)` to `(*GalleryApplicationVersionsClient, error)` -- Function `*DiskRestorePointClient.BeginGrantAccess` return value(s) have been changed from `(DiskRestorePointClientGrantAccessPollerResponse, error)` to `(*armruntime.Poller[DiskRestorePointClientGrantAccessResponse], error)` -- Function `*CloudServiceRoleInstancesClient.BeginRestart` return value(s) have been changed from `(CloudServiceRoleInstancesClientRestartPollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientRestartResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientReimageAllPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error)` -- Function `*VirtualMachinesClient.BeginStart` return value(s) have been changed from `(VirtualMachinesClientStartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientStartResponse], error)` -- Function `*VirtualMachineRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineRunCommandsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error)` -- Function `NewVirtualMachineScaleSetRollingUpgradesClient` return value(s) have been changed from `(*VirtualMachineScaleSetRollingUpgradesClient)` to `(*VirtualMachineScaleSetRollingUpgradesClient, error)` -- Function `*GallerySharingProfileClient.BeginUpdate` return value(s) have been changed from `(GallerySharingProfileClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GallerySharingProfileClientUpdateResponse], error)` -- Function `NewCloudServiceRoleInstancesClient` return value(s) have been changed from `(*CloudServiceRoleInstancesClient)` to `(*CloudServiceRoleInstancesClient, error)` -- Function `NewSnapshotsClient` return value(s) have been changed from `(*SnapshotsClient)` to `(*SnapshotsClient, error)` -- Function `NewResourceSKUsClient` return value(s) have been changed from `(*ResourceSKUsClient)` to `(*ResourceSKUsClient, error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetsClientReimagePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageResponse], error)` -- Function `*SnapshotsClient.BeginRevokeAccess` return value(s) have been changed from `(SnapshotsClientRevokeAccessPollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientRevokeAccessResponse], error)` -- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` return value(s) have been changed from `(CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse, error)` to `(*armruntime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error)` -- Function `*GalleryApplicationVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationVersionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationVersionsClientDeleteResponse], error)` -- Function `*DedicatedHostsClient.BeginDelete` return value(s) have been changed from `(DedicatedHostsClientDeletePollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientDeleteResponse], error)` -- Function `*DiskEncryptionSetsClient.ListAssociatedResources` return value(s) have been changed from `(*DiskEncryptionSetsClientListAssociatedResourcesPager)` to `(*runtime.Pager[DiskEncryptionSetsClientListAssociatedResourcesResponse])` -- Function `*SSHPublicKeysClient.ListByResourceGroup` return value(s) have been changed from `(*SSHPublicKeysClientListByResourceGroupPager)` to `(*runtime.Pager[SSHPublicKeysClientListByResourceGroupResponse])` -- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetsClientReimageAllPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error)` -- Function `*VirtualMachinesClient.BeginInstallPatches` return value(s) have been changed from `(VirtualMachinesClientInstallPatchesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientInstallPatchesResponse], error)` -- Function `*AvailabilitySetsClient.ListBySubscription` return value(s) have been changed from `(*AvailabilitySetsClientListBySubscriptionPager)` to `(*runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse])` -- Function `*CloudServicesClient.BeginRebuild` return value(s) have been changed from `(CloudServicesClientRebuildPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientRebuildResponse], error)` -- Function `NewSharedGalleriesClient` return value(s) have been changed from `(*SharedGalleriesClient)` to `(*SharedGalleriesClient, error)` -- Function `*VirtualMachineScaleSetVMsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetVMsClientListResponse])` -- Function `*VirtualMachinesClient.List` return value(s) have been changed from `(*VirtualMachinesClientListPager)` to `(*runtime.Pager[VirtualMachinesClientListResponse])` -- Function `*GalleryApplicationsClient.ListByGallery` return value(s) have been changed from `(*GalleryApplicationsClientListByGalleryPager)` to `(*runtime.Pager[GalleryApplicationsClientListByGalleryResponse])` -- Function `*VirtualMachineExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineExtensionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineExtensionsClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientReimagePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error)` -- Function `*ResourceSKUsClient.List` return value(s) have been changed from `(*ResourceSKUsClientListPager)` to `(*runtime.Pager[ResourceSKUsClientListResponse])` -- Function `NewVirtualMachineScaleSetVMRunCommandsClient` return value(s) have been changed from `(*VirtualMachineScaleSetVMRunCommandsClient)` to `(*VirtualMachineScaleSetVMRunCommandsClient, error)` -- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetsClientPerformMaintenancePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` return value(s) have been changed from `(VirtualMachineScaleSetsClientUpdateInstancesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error)` -- Function `*VirtualMachinesClient.BeginCapture` return value(s) have been changed from `(VirtualMachinesClientCapturePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientCaptureResponse], error)` -- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error)` -- Function `NewDiskEncryptionSetsClient` return value(s) have been changed from `(*DiskEncryptionSetsClient)` to `(*DiskEncryptionSetsClient, error)` -- Function `*SnapshotsClient.BeginCreateOrUpdate` return value(s) have been changed from `(SnapshotsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientCreateOrUpdateResponse], error)` -- Function `NewVirtualMachineRunCommandsClient` return value(s) have been changed from `(*VirtualMachineRunCommandsClient)` to `(*VirtualMachineRunCommandsClient, error)` -- Function `NewCapacityReservationsClient` return value(s) have been changed from `(*CapacityReservationsClient)` to `(*CapacityReservationsClient, error)` -- Function `NewCommunityGalleriesClient` return value(s) have been changed from `(*CommunityGalleriesClient)` to `(*CommunityGalleriesClient, error)` -- Function `*SnapshotsClient.ListByResourceGroup` return value(s) have been changed from `(*SnapshotsClientListByResourceGroupPager)` to `(*runtime.Pager[SnapshotsClientListByResourceGroupResponse])` -- Function `NewRestorePointCollectionsClient` return value(s) have been changed from `(*RestorePointCollectionsClient)` to `(*RestorePointCollectionsClient, error)` -- Function `*DiskAccessesClient.BeginUpdate` return value(s) have been changed from `(DiskAccessesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientUpdateResponse], error)` -- Function `*DedicatedHostsClient.ListByHostGroup` return value(s) have been changed from `(*DedicatedHostsClientListByHostGroupPager)` to `(*runtime.Pager[DedicatedHostsClientListByHostGroupResponse])` -- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` return value(s) have been changed from `(VirtualMachineScaleSetsClientDeleteInstancesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error)` -- Function `*VirtualMachinesClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachinesClientRunCommandPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientRunCommandResponse], error)` -- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` return value(s) have been changed from `(*GalleryApplicationVersionsClientListByGalleryApplicationPager)` to `(*runtime.Pager[GalleryApplicationVersionsClientListByGalleryApplicationResponse])` -- Function `NewCloudServiceOperatingSystemsClient` return value(s) have been changed from `(*CloudServiceOperatingSystemsClient)` to `(*CloudServiceOperatingSystemsClient, error)` -- Function `*ImagesClient.List` return value(s) have been changed from `(*ImagesClientListPager)` to `(*runtime.Pager[ImagesClientListResponse])` -- Function `*GalleriesClient.BeginUpdate` return value(s) have been changed from `(GalleriesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleriesClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error)` -- Function `*DiskEncryptionSetsClient.List` return value(s) have been changed from `(*DiskEncryptionSetsClientListPager)` to `(*runtime.Pager[DiskEncryptionSetsClientListResponse])` -- Function `*DedicatedHostsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DedicatedHostsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error)` -- Function `*DiskAccessesClient.ListByResourceGroup` return value(s) have been changed from `(*DiskAccessesClientListByResourceGroupPager)` to `(*runtime.Pager[DiskAccessesClientListByResourceGroupResponse])` -- Function `NewCloudServicesClient` return value(s) have been changed from `(*CloudServicesClient)` to `(*CloudServicesClient, error)` -- Function `*CloudServicesClient.ListAll` return value(s) have been changed from `(*CloudServicesClientListAllPager)` to `(*runtime.Pager[CloudServicesClientListAllResponse])` -- Function `*VirtualMachinesClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachinesClientPerformMaintenancePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error)` -- Function `*GalleriesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleriesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleriesClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginReimage` return value(s) have been changed from `(VirtualMachinesClientReimagePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientReimageResponse], error)` -- Function `*SnapshotsClient.BeginGrantAccess` return value(s) have been changed from `(SnapshotsClientGrantAccessPollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientGrantAccessResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error)` -- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error)` -- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error)` -- Function `*CloudServicesClient.List` return value(s) have been changed from `(*CloudServicesClientListPager)` to `(*runtime.Pager[CloudServicesClientListResponse])` -- Function `NewProximityPlacementGroupsClient` return value(s) have been changed from `(*ProximityPlacementGroupsClient)` to `(*ProximityPlacementGroupsClient, error)` -- Function `*DiskAccessesClient.ListPrivateEndpointConnections` return value(s) have been changed from `(*DiskAccessesClientListPrivateEndpointConnectionsPager)` to `(*runtime.Pager[DiskAccessesClientListPrivateEndpointConnectionsResponse])` -- Function `NewVirtualMachineScaleSetVMsClient` return value(s) have been changed from `(*VirtualMachineScaleSetVMsClient)` to `(*VirtualMachineScaleSetVMsClient, error)` -- Function `*ProximityPlacementGroupsClient.ListBySubscription` return value(s) have been changed from `(*ProximityPlacementGroupsClientListBySubscriptionPager)` to `(*runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse])` -- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientDeallocatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error)` -- Function `*RestorePointCollectionsClient.BeginDelete` return value(s) have been changed from `(RestorePointCollectionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[RestorePointCollectionsClientDeleteResponse], error)` -- Function `*CloudServicesClient.BeginPowerOff` return value(s) have been changed from `(CloudServicesClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientPowerOffResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error)` -- Function `*CapacityReservationsClient.BeginDelete` return value(s) have been changed from `(CapacityReservationsClientDeletePollerResponse, error)` to `(*armruntime.Poller[CapacityReservationsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientRedeployPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error)` -- Function `NewVirtualMachineSizesClient` return value(s) have been changed from `(*VirtualMachineSizesClient)` to `(*VirtualMachineSizesClient, error)` -- Function `*VirtualMachinesClient.ListAll` return value(s) have been changed from `(*VirtualMachinesClientListAllPager)` to `(*runtime.Pager[VirtualMachinesClientListAllResponse])` -- Function `*CloudServicesClient.BeginDeleteInstances` return value(s) have been changed from `(CloudServicesClientDeleteInstancesPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientDeleteInstancesResponse], error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error)` -- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` return value(s) have been changed from `(*CloudServiceOperatingSystemsClientListOSFamiliesPager)` to `(*runtime.Pager[CloudServiceOperatingSystemsClientListOSFamiliesResponse])` -- Function `*VirtualMachinesClient.BeginUpdate` return value(s) have been changed from `(VirtualMachinesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientUpdateResponse], error)` -- Function `*DiskEncryptionSetsClient.BeginUpdate` return value(s) have been changed from `(DiskEncryptionSetsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskEncryptionSetsClientUpdateResponse], error)` -- Function `NewDisksClient` return value(s) have been changed from `(*DisksClient)` to `(*DisksClient, error)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` return value(s) have been changed from `(*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse])` -- Function `NewDiskRestorePointClient` return value(s) have been changed from `(*DiskRestorePointClient)` to `(*DiskRestorePointClient, error)` -- Function `*SnapshotsClient.List` return value(s) have been changed from `(*SnapshotsClientListPager)` to `(*runtime.Pager[SnapshotsClientListResponse])` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetsClientStartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientStartResponse], error)` -- Function `NewAvailabilitySetsClient` return value(s) have been changed from `(*AvailabilitySetsClient)` to `(*AvailabilitySetsClient, error)` -- Function `*ImagesClient.BeginUpdate` return value(s) have been changed from `(ImagesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[ImagesClientUpdateResponse], error)` -- Function `*ImagesClient.ListByResourceGroup` return value(s) have been changed from `(*ImagesClientListByResourceGroupPager)` to `(*runtime.Pager[ImagesClientListByResourceGroupResponse])` -- Function `*ImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(ImagesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[ImagesClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachinesClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachinesClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientPowerOffResponse], error)` -- Function `NewCloudServicesUpdateDomainClient` return value(s) have been changed from `(*CloudServicesUpdateDomainClient)` to `(*CloudServicesUpdateDomainClient, error)` -- Function `NewGalleryApplicationsClient` return value(s) have been changed from `(*GalleryApplicationsClient)` to `(*GalleryApplicationsClient, error)` -- Function `*VirtualMachineSizesClient.List` parameter(s) have been changed from `(context.Context, string, *VirtualMachineSizesClientListOptions)` to `(string, *VirtualMachineSizesClientListOptions)` -- Function `*VirtualMachineSizesClient.List` return value(s) have been changed from `(VirtualMachineSizesClientListResponse, error)` to `(*runtime.Pager[VirtualMachineSizesClientListResponse])` -- Function `*RestorePointsClient.BeginDelete` return value(s) have been changed from `(RestorePointsClientDeletePollerResponse, error)` to `(*armruntime.Poller[RestorePointsClientDeleteResponse], error)` -- Function `*DiskEncryptionSetsClient.ListByResourceGroup` return value(s) have been changed from `(*DiskEncryptionSetsClientListByResourceGroupPager)` to `(*runtime.Pager[DiskEncryptionSetsClientListByResourceGroupResponse])` -- Function `NewGallerySharingProfileClient` return value(s) have been changed from `(*GallerySharingProfileClient)` to `(*GallerySharingProfileClient, error)` -- Function `*CloudServicesClient.BeginReimage` return value(s) have been changed from `(CloudServicesClientReimagePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientReimageResponse], error)` -- Function `NewGalleryImagesClient` return value(s) have been changed from `(*GalleryImagesClient)` to `(*GalleryImagesClient, error)` -- Function `*DisksClient.BeginRevokeAccess` return value(s) have been changed from `(DisksClientRevokeAccessPollerResponse, error)` to `(*armruntime.Poller[DisksClientRevokeAccessResponse], error)` -- Function `NewGalleryImageVersionsClient` return value(s) have been changed from `(*GalleryImageVersionsClient)` to `(*GalleryImageVersionsClient, error)` -- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationVersionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error)` -- Function `NewVirtualMachineImagesClient` return value(s) have been changed from `(*VirtualMachineImagesClient)` to `(*VirtualMachineImagesClient, error)` -- Function `*DedicatedHostGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*DedicatedHostGroupsClientListByResourceGroupPager)` to `(*runtime.Pager[DedicatedHostGroupsClientListByResourceGroupResponse])` -- Function `*DisksClient.BeginGrantAccess` return value(s) have been changed from `(DisksClientGrantAccessPollerResponse, error)` to `(*armruntime.Poller[DisksClientGrantAccessResponse], error)` -- Function `*OperationsClient.List` parameter(s) have been changed from `(context.Context, *OperationsClientListOptions)` to `(*OperationsClientListOptions)` -- Function `*OperationsClient.List` return value(s) have been changed from `(OperationsClientListResponse, error)` to `(*runtime.Pager[OperationsClientListResponse])` -- Function `NewVirtualMachineScaleSetVMExtensionsClient` return value(s) have been changed from `(*VirtualMachineScaleSetVMExtensionsClient)` to `(*VirtualMachineScaleSetVMExtensionsClient, error)` -- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineExtensionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error)` -- Function `*GalleriesClient.ListByResourceGroup` return value(s) have been changed from `(*GalleriesClientListByResourceGroupPager)` to `(*runtime.Pager[GalleriesClientListByResourceGroupResponse])` -- Function `*DisksClient.BeginUpdate` return value(s) have been changed from `(DisksClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DisksClientUpdateResponse], error)` -- Function `*VirtualMachineRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineRunCommandsClientListPager)` to `(*runtime.Pager[VirtualMachineRunCommandsClientListResponse])` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error)` -- Function `*DisksClient.List` return value(s) have been changed from `(*DisksClientListPager)` to `(*runtime.Pager[DisksClientListResponse])` -- Function `*CapacityReservationsClient.BeginUpdate` return value(s) have been changed from `(CapacityReservationsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[CapacityReservationsClientUpdateResponse], error)` -- Function `*SnapshotsClient.BeginUpdate` return value(s) have been changed from `(SnapshotsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientUpdateResponse], error)` -- Function `*VirtualMachineScaleSetExtensionsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetExtensionsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetExtensionsClientListResponse])` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMRunCommandsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetVMRunCommandsClientListResponse])` -- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` return value(s) have been changed from `(*VirtualMachineRunCommandsClientListByVirtualMachinePager)` to `(*runtime.Pager[VirtualMachineRunCommandsClientListByVirtualMachineResponse])` -- Function `*DiskAccessesClient.List` return value(s) have been changed from `(*DiskAccessesClientListPager)` to `(*runtime.Pager[DiskAccessesClientListResponse])` -- Function `*CloudServicesClient.BeginRestart` return value(s) have been changed from `(CloudServicesClientRestartPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientRestartResponse], error)` -- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*ProximityPlacementGroupsClientListByResourceGroupPager)` to `(*runtime.Pager[ProximityPlacementGroupsClientListByResourceGroupResponse])` -- Function `*GalleriesClient.List` return value(s) have been changed from `(*GalleriesClientListPager)` to `(*runtime.Pager[GalleriesClientListResponse])` -- Function `NewCommunityGalleryImagesClient` return value(s) have been changed from `(*CommunityGalleryImagesClient)` to `(*CommunityGalleryImagesClient, error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error)` -- Function `*VirtualMachinesClient.BeginDelete` return value(s) have been changed from `(VirtualMachinesClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientDeleteResponse], error)` -- Function `NewRestorePointsClient` return value(s) have been changed from `(*RestorePointsClient)` to `(*RestorePointsClient, error)` -- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` return value(s) have been changed from `(LogAnalyticsClientExportRequestRateByIntervalPollerResponse, error)` to `(*armruntime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error)` -- Function `*GalleryImagesClient.BeginUpdate` return value(s) have been changed from `(GalleryImagesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImagesClientUpdateResponse], error)` -- Function `*VirtualMachinesClient.ListByLocation` return value(s) have been changed from `(*VirtualMachinesClientListByLocationPager)` to `(*runtime.Pager[VirtualMachinesClientListByLocationResponse])` -- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientRestartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error)` -- Function `*DisksClient.ListByResourceGroup` return value(s) have been changed from `(*DisksClientListByResourceGroupPager)` to `(*runtime.Pager[DisksClientListByResourceGroupResponse])` -- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error)` -- Function `*GalleryApplicationsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationsClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetsClientRedeployPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error)` -- Function `*GalleriesClient.BeginDelete` return value(s) have been changed from `(GalleriesClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleriesClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error)` -- Function `*SharedGalleryImageVersionsClient.List` return value(s) have been changed from `(*SharedGalleryImageVersionsClientListPager)` to `(*runtime.Pager[SharedGalleryImageVersionsClientListResponse])` -- Function `NewVirtualMachineExtensionsClient` return value(s) have been changed from `(*VirtualMachineExtensionsClient)` to `(*VirtualMachineExtensionsClient, error)` -- Function `*VirtualMachineScaleSetsClient.ListSKUs` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListSKUsPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListSKUsResponse])` -- Function `*SSHPublicKeysClient.ListBySubscription` return value(s) have been changed from `(*SSHPublicKeysClientListBySubscriptionPager)` to `(*runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse])` -- Function `*SnapshotsClient.BeginDelete` return value(s) have been changed from `(SnapshotsClientDeletePollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` return value(s) have been changed from `(VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error)` -- Function `NewOperationsClient` return value(s) have been changed from `(*OperationsClient)` to `(*OperationsClient, error)` -- Function `NewSharedGalleryImageVersionsClient` return value(s) have been changed from `(*SharedGalleryImageVersionsClient)` to `(*SharedGalleryImageVersionsClient, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientStartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error)` -- Function `*CloudServicesClient.BeginCreateOrUpdate` return value(s) have been changed from `(CloudServicesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientCreateOrUpdateResponse], error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error)` -- Function `*DiskRestorePointClient.ListByRestorePoint` return value(s) have been changed from `(*DiskRestorePointClientListByRestorePointPager)` to `(*runtime.Pager[DiskRestorePointClientListByRestorePointResponse])` -- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImageVersionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error)` -- Function `*CloudServicesClient.BeginUpdate` return value(s) have been changed from `(CloudServicesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientUpdateResponse], error)` -- Function `*DisksClient.BeginDelete` return value(s) have been changed from `(DisksClientDeletePollerResponse, error)` to `(*armruntime.Poller[DisksClientDeleteResponse], error)` -- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetsClientDeallocatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error)` -- Function `*VirtualMachinesClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachinesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error)` -- Function `NewVirtualMachineExtensionImagesClient` return value(s) have been changed from `(*VirtualMachineExtensionImagesClient)` to `(*VirtualMachineExtensionImagesClient, error)` -- Function `NewVirtualMachineImagesEdgeZoneClient` return value(s) have been changed from `(*VirtualMachineImagesEdgeZoneClient)` to `(*VirtualMachineImagesEdgeZoneClient, error)` -- Function `*GalleryImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImagesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImagesClientCreateOrUpdateResponse], error)` -- Function `*CloudServiceRoleInstancesClient.BeginReimage` return value(s) have been changed from `(CloudServiceRoleInstancesClientReimagePollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientReimageResponse], error)` -- Function `*ImagesClient.BeginDelete` return value(s) have been changed from `(ImagesClientDeletePollerResponse, error)` to `(*armruntime.Poller[ImagesClientDeleteResponse], error)` -- Function `*CapacityReservationGroupsClient.ListBySubscription` return value(s) have been changed from `(*CapacityReservationGroupsClientListBySubscriptionPager)` to `(*runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse])` -- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error)` -- Function `*SnapshotsClientListPager.NextPage` has been removed -- Function `*ImagesClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Done` has been removed -- Function `*DiskAccessesClientDeletePoller.Poll` has been removed -- Function `*DiskEncryptionSetsClientListByResourceGroupPager.NextPage` has been removed -- Function `DedicatedHostsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsClientDeletePoller.FinalResponse` has been removed -- Function `*SnapshotsClientGrantAccessPollerResponse.Resume` has been removed -- Function `*GalleryImageVersionsClientUpdatePollerResponse.Resume` has been removed -- Function `*ImagesClientUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `SharingState.ToPtr` has been removed -- Function `*VirtualMachineScaleSetsClientReimageAllPoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.ResumeToken` has been removed -- Function `GallerySharingPermissionTypes.ToPtr` has been removed -- Function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientReimagePoller.ResumeToken` has been removed -- Function `DiskAccessesClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientRestartPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.ResumeToken` has been removed -- Function `*AvailabilitySetsClientListPager.Err` has been removed -- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.Resume` has been removed -- Function `*CapacityReservationGroupsClientListBySubscriptionPager.PageResponse` has been removed -- Function `ExpandTypesForGetCapacityReservationGroups.ToPtr` has been removed -- Function `*GalleriesClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*ImagesClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*DiskEncryptionSetsClientUpdatePoller.Done` has been removed -- Function `*DiskEncryptionSetsClientUpdatePoller.FinalResponse` has been removed -- Function `*ImagesClientUpdatePoller.FinalResponse` has been removed -- Function `*CapacityReservationsClientListByCapacityReservationGroupPager.NextPage` has been removed -- Function `*CloudServicesClientPowerOffPoller.Done` has been removed -- Function `*GalleryImageVersionsClientDeletePoller.Done` has been removed -- Function `*DiskAccessesClientListPager.Err` has been removed -- Function `*DedicatedHostsClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientListPager.NextPage` has been removed -- Function `VirtualMachineScaleSetVMsClientStartPollerResponse.PollUntilDone` has been removed -- Function `DiskEncryptionSetsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.PageResponse` has been removed -- Function `*DiskAccessesClientListPrivateEndpointConnectionsPager.NextPage` has been removed -- Function `VirtualMachineSizeTypes.ToPtr` has been removed -- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineExtensionsClientUpdatePoller.FinalResponse` has been removed -- Function `*ProximityPlacementGroupsClientListByResourceGroupPager.NextPage` has been removed -- Function `*SnapshotsClientListByResourceGroupPager.PageResponse` has been removed -- Function `*LogAnalyticsClientExportThrottledRequestsPollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientUpdatePoller.ResumeToken` has been removed -- Function `*DiskEncryptionSetsClientDeletePollerResponse.Resume` has been removed -- Function `EncryptionType.ToPtr` has been removed -- Function `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesClientUpdatePoller.Poll` has been removed -- Function `*DisksClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientStartPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientUpdatePoller.Poll` has been removed -- Function `*DiskAccessesClientDeletePoller.ResumeToken` has been removed -- Function `*CloudServiceRoleInstancesClientRestartPoller.Done` has been removed -- Function `*VirtualMachineScaleSetsClientRestartPoller.FinalResponse` has been removed -- Function `*CloudServicesClientRebuildPollerResponse.Resume` has been removed -- Function `*LogAnalyticsClientExportThrottledRequestsPoller.Poll` has been removed -- Function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.Err` has been removed -- Function `*VirtualMachinesClientPowerOffPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Done` has been removed -- Function `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.PageResponse` has been removed -- Function `*ImagesClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.ResumeToken` has been removed -- Function `*SnapshotsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*SharedGalleryImageVersionsClientListPager.PageResponse` has been removed -- Function `*GalleryImagesClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.PageResponse` has been removed -- Function `*ProximityPlacementGroupsClientListBySubscriptionPager.Err` has been removed -- Function `*DedicatedHostsClientRestartPollerResponse.Resume` has been removed -- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*SSHPublicKeysClientListBySubscriptionPager.NextPage` has been removed -- Function `*CloudServicesClientPowerOffPollerResponse.Resume` has been removed -- Function `CachingTypes.ToPtr` has been removed -- Function `*ImagesClientListByResourceGroupPager.Err` has been removed -- Function `*ImagesClientListByResourceGroupPager.PageResponse` has been removed -- Function `*VirtualMachinesClientRunCommandPoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetExtensionsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientListByLocationPager.Err` has been removed -- Function `*DiskEncryptionSetsClientListByResourceGroupPager.Err` has been removed -- Function `*GalleriesClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientStartPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.ResumeToken` has been removed -- Function `*DiskRestorePointClientGrantAccessPoller.FinalResponse` has been removed -- Function `*AvailabilitySetsClientListPager.PageResponse` has been removed -- Function `*VirtualMachinesClientRedeployPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientStartPoller.FinalResponse` has been removed -- Function `*RestorePointsClientDeletePoller.FinalResponse` has been removed -- Function `DedicatedHostsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `ResourceSKURestrictionsType.ToPtr` has been removed -- Function `*DiskAccessesClientListPrivateEndpointConnectionsPager.Err` has been removed -- Function `IntervalInMins.ToPtr` has been removed -- Function `*SnapshotsClientRevokeAccessPollerResponse.Resume` has been removed -- Function `*VirtualMachineRunCommandsClientListPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientListPager.NextPage` has been removed -- Function `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineRunCommandsClientUpdatePoller.Poll` has been removed -- Function `*CloudServicesClientStartPoller.Done` has been removed -- Function `*VirtualMachinesClientStartPoller.ResumeToken` has been removed -- Function `VirtualMachineRunCommandsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientUpdatePoller.Done` has been removed -- Function `ReplicationStatusTypes.ToPtr` has been removed -- Function `*DiskEncryptionSetsClientListPager.PageResponse` has been removed -- Function `*RestorePointsClientDeletePoller.Done` has been removed -- Function `VirtualMachineScaleSetsClientRestartPollerResponse.PollUntilDone` has been removed -- Function `*GalleryImagesClientCreateOrUpdatePoller.Done` has been removed -- Function `ImagesClientDeletePollerResponse.PollUntilDone` has been removed -- Function `PatchInstallationState.ToPtr` has been removed -- Function `*VirtualMachinesClientListByLocationPager.PageResponse` has been removed -- Function `*GalleryImagesClientUpdatePollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientListByGalleryPager.PageResponse` has been removed -- Function `*CloudServicesClientRebuildPoller.Done` has been removed -- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.Resume` has been removed -- Function `*DiskAccessesClientCreateOrUpdatePoller.Poll` has been removed -- Function `*GalleryApplicationsClientUpdatePoller.Poll` has been removed -- Function `*ImagesClientListPager.NextPage` has been removed -- Function `VirtualMachinesClientStartPollerResponse.PollUntilDone` has been removed -- Function `*SSHPublicKeysClientListBySubscriptionPager.Err` has been removed -- Function `*GallerySharingProfileClientUpdatePollerResponse.Resume` has been removed -- Function `*SnapshotsClientRevokeAccessPoller.ResumeToken` has been removed -- Function `OrchestrationMode.ToPtr` has been removed -- Function `*GalleryImagesClientUpdatePoller.Poll` has been removed -- Function `NetworkAccessPolicy.ToPtr` has been removed -- Function `*VirtualMachinesClientReapplyPoller.Poll` has been removed -- Function `*DisksClientListByResourceGroupPager.PageResponse` has been removed -- Function `GalleryPropertiesProvisioningState.ToPtr` has been removed -- Function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.NextPage` has been removed -- Function `VirtualMachineScaleSetVMsClientReimageAllPollerResponse.PollUntilDone` has been removed -- Function `*ProximityPlacementGroupsClientListByResourceGroupPager.Err` has been removed -- Function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.Err` has been removed -- Function `PrivateEndpointServiceConnectionStatus.ToPtr` has been removed -- Function `*CloudServicesClientReimagePoller.FinalResponse` has been removed -- Function `*CloudServicesClientDeleteInstancesPoller.Poll` has been removed -- Function `DedicatedHostLicenseTypes.ToPtr` has been removed -- Function `*VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*SharedGalleriesClientListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientDeletePoller.ResumeToken` has been removed -- Function `CloudServicesClientReimagePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceRoleInstancesClientReimagePoller.Done` has been removed -- Function `*VirtualMachinesClientRestartPoller.ResumeToken` has been removed -- Function `*DiskEncryptionSetsClientUpdatePoller.Poll` has been removed -- Function `*VirtualMachineExtensionsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientStartPoller.ResumeToken` has been removed -- Function `OrchestrationServiceState.ToPtr` has been removed -- Function `*SSHPublicKeysClientListByResourceGroupPager.Err` has been removed -- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.Resume` has been removed -- Function `*DiskAccessesClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientPowerOffPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeletePoller.Poll` has been removed -- Function `GalleryApplicationVersionsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientRestartPoller.Done` has been removed -- Function `*SnapshotsClientListPager.PageResponse` has been removed -- Function `*DiskAccessesClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientStartPoller.FinalResponse` has been removed -- Function `GalleryImagesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceRoleInstancesClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientListAllPager.NextPage` has been removed -- Function `*SnapshotsClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientStartPoller.Poll` has been removed -- Function `HyperVGenerationType.ToPtr` has been removed -- Function `OperatingSystemType.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientDeletePoller.Poll` has been removed -- Function `*DedicatedHostsClientUpdatePollerResponse.Resume` has been removed -- Function `VirtualMachinesClientAssessPatchesPollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesClientDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimagePoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsClientDeletePoller.Done` has been removed -- Function `*VirtualMachinesClientCapturePoller.ResumeToken` has been removed -- Function `*VirtualMachinesClientReapplyPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*GalleryImageVersionsClientUpdatePoller.Poll` has been removed -- Function `VirtualMachinesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineExtensionsClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientListPager.PageResponse` has been removed -- Function `*DiskEncryptionSetsClientUpdatePoller.ResumeToken` has been removed -- Function `ExtendedLocationType.ToPtr` has been removed -- Function `VirtualMachinesClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostGroupsClientListBySubscriptionPager.NextPage` has been removed -- Function `*GalleryApplicationVersionsClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.ResumeToken` has been removed -- Function `OperatingSystemTypes.ToPtr` has been removed -- Function `*DisksClientRevokeAccessPoller.ResumeToken` has been removed -- Function `OrchestrationServiceNames.ToPtr` has been removed -- Function `*GalleryImagesClientListByGalleryPager.Err` has been removed -- Function `*VirtualMachineScaleSetsClientDeallocatePoller.Done` has been removed -- Function `*VirtualMachinesClientDeletePoller.FinalResponse` has been removed -- Function `*CloudServicesClientRestartPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientRedeployPoller.Poll` has been removed -- Function `*DiskAccessesClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimagePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientReapplyPoller.ResumeToken` has been removed -- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Poll` has been removed -- Function `*DiskRestorePointClientRevokeAccessPoller.FinalResponse` has been removed -- Function `*CloudServicesClientDeleteInstancesPoller.ResumeToken` has been removed -- Function `*DedicatedHostsClientUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.FinalResponse` has been removed -- Function `*DiskAccessesClientUpdatePollerResponse.Resume` has been removed -- Function `*DiskRestorePointClientRevokeAccessPoller.Poll` has been removed -- Function `CloudServiceRoleInstancesClientRestartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.Done` has been removed -- Function `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `DiffDiskOptions.ToPtr` has been removed -- Function `*VirtualMachinesClientRedeployPoller.Poll` has been removed -- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*CloudServicesClientUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientDeallocatePoller.Poll` has been removed -- Function `*DiskRestorePointClientGrantAccessPollerResponse.Resume` has been removed -- Function `StorageAccountTypes.ToPtr` has been removed -- Function `CapacityReservationGroupInstanceViewTypes.ToPtr` has been removed -- Function `CapacityReservationsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `HostCaching.ToPtr` has been removed -- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.Resume` has been removed -- Function `VirtualMachineScaleSetVMsClientPowerOffPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Done` has been removed -- Function `*GallerySharingProfileClientUpdatePoller.Poll` has been removed -- Function `*VirtualMachineRunCommandsClientListPager.NextPage` has been removed -- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientStartPoller.Done` has been removed -- Function `DedicatedHostsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*AvailabilitySetsClientListBySubscriptionPager.Err` has been removed -- Function `VirtualMachineScaleSetsClientRedeployPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientConvertToManagedDisksPoller.Poll` has been removed -- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.FinalResponse` has been removed -- Function `*GalleryImagesClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `VirtualMachineExtensionsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientDeallocatePoller.Poll` has been removed -- Function `CapacityReservationsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientReimagePoller.FinalResponse` has been removed -- Function `*SnapshotsClientRevokeAccessPoller.Done` has been removed -- Function `*CloudServicesClientCreateOrUpdatePoller.Done` has been removed -- Function `*CloudServiceRolesClientListPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientRestartPoller.FinalResponse` has been removed -- Function `*GalleryApplicationVersionsClientDeletePoller.ResumeToken` has been removed -- Function `*DedicatedHostsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `DiskDeleteOptionTypes.ToPtr` has been removed -- Function `DeleteOptions.ToPtr` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Poll` has been removed -- Function `*CapacityReservationGroupsClientListByResourceGroupPager.Err` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientReimagePoller.Poll` has been removed -- Function `NetworkAPIVersion.ToPtr` has been removed -- Function `InstanceViewTypes.ToPtr` has been removed -- Function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.Err` has been removed -- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Poll` has been removed -- Function `SnapshotsClientGrantAccessPollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsClientCreateOrUpdatePoller.Poll` has been removed -- Function `RestorePointsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Done` has been removed -- Function `*VirtualMachineRunCommandsClientUpdatePoller.Done` has been removed -- Function `GalleryApplicationVersionsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `DiskCreateOptionTypes.ToPtr` has been removed -- Function `VirtualMachinesClientRunCommandPollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesClientRebuildPoller.ResumeToken` has been removed -- Function `RollingUpgradeActionType.ToPtr` has been removed -- Function `AggregatedReplicationState.ToPtr` has been removed -- Function `*CloudServicesClientStartPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientListByLocationPager.PageResponse` has been removed -- Function `*GalleryImageVersionsClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientListPager.Err` has been removed -- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `DiskEncryptionSetsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesClientDeleteInstancesPoller.Done` has been removed -- Function `*DiskRestorePointClientGrantAccessPoller.Done` has been removed -- Function `VirtualMachinesClientDeallocatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.Poll` has been removed -- Function `*CloudServicesClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.FinalResponse` has been removed -- Function `*DedicatedHostsClientRestartPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachinesClientStartPoller.Poll` has been removed -- Function `*CapacityReservationsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*GalleriesClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `VirtualMachinesClientConvertToManagedDisksPollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsClientUpdatePoller.Done` has been removed -- Function `*CloudServicesClientPowerOffPoller.ResumeToken` has been removed -- Function `*SnapshotsClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Poll` has been removed -- Function `*VirtualMachinesClientCreateOrUpdatePoller.Poll` has been removed -- Function `*DiskEncryptionSetsClientListAssociatedResourcesPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientPowerOffPoller.Poll` has been removed -- Function `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsClientDeletePoller.Poll` has been removed -- Function `*DisksClientListByResourceGroupPager.NextPage` has been removed -- Function `ImagesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientReapplyPoller.FinalResponse` has been removed -- Function `*VirtualMachineExtensionsClientUpdatePoller.Done` has been removed -- Function `*SnapshotsClientDeletePollerResponse.Resume` has been removed -- Function `*GalleryImageVersionsClientUpdatePoller.FinalResponse` has been removed -- Function `*DedicatedHostsClientListByHostGroupPager.Err` has been removed -- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.ResumeToken` has been removed -- Function `*DiskRestorePointClientRevokeAccessPollerResponse.Resume` has been removed -- Function `*DiskRestorePointClientListByRestorePointPager.NextPage` has been removed -- Function `*RestorePointsClientDeletePollerResponse.Resume` has been removed -- Function `VirtualMachineScaleSetsClientStartPollerResponse.PollUntilDone` has been removed -- Function `*DisksClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientListPager.PageResponse` has been removed -- Function `*SnapshotsClientListByResourceGroupPager.NextPage` has been removed -- Function `*CloudServicesClientListAllPager.NextPage` has been removed -- Function `*RestorePointsClientCreatePollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientCreateOrUpdatePoller.Poll` has been removed -- Function `GalleriesClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*GalleriesClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientRedeployPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientRestartPoller.Poll` has been removed -- Function `*GalleryApplicationVersionsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineExtensionsClientDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.FinalResponse` has been removed -- Function `*SnapshotsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.FinalResponse` has been removed -- Function `RepairAction.ToPtr` has been removed -- Function `DiskSecurityTypes.ToPtr` has been removed -- Function `VirtualMachinePriorityTypes.ToPtr` has been removed -- Function `VirtualMachineScaleSetsClientDeallocatePollerResponse.PollUntilDone` has been removed -- Function `*SnapshotsClientGrantAccessPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientDeallocatePoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesClientListPager.PageResponse` has been removed -- Function `*CapacityReservationsClientDeletePoller.FinalResponse` has been removed -- Function `*DiskRestorePointClientGrantAccessPoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `MaintenanceOperationResultCodeTypes.ToPtr` has been removed -- Function `*SnapshotsClientUpdatePoller.ResumeToken` has been removed -- Function `*GalleriesClientListPager.NextPage` has been removed -- Function `*GalleriesClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientDeallocatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.FinalResponse` has been removed -- Function `*DisksClientCreateOrUpdatePoller.Done` has been removed -- Function `*SnapshotsClientListPager.Err` has been removed -- Function `*CloudServicesClientStartPollerResponse.Resume` has been removed -- Function `SnapshotsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*CloudServicesClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*DiskRestorePointClientListByRestorePointPager.Err` has been removed -- Function `VirtualMachineScaleSetsClientReimagePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceOperatingSystemsClientListOSVersionsPager.PageResponse` has been removed -- Function `CloudServicesClientDeleteInstancesPollerResponse.PollUntilDone` has been removed -- Function `IPVersion.ToPtr` has been removed -- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Poll` has been removed -- Function `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.PollUntilDone` has been removed -- Function `StatusLevelTypes.ToPtr` has been removed -- Function `*CloudServicesClientUpdatePollerResponse.Resume` has been removed -- Function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.Err` has been removed -- Function `*DiskEncryptionSetsClientDeletePoller.ResumeToken` has been removed -- Function `*ImagesClientDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.Resume` has been removed -- Function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.NextPage` has been removed -- Function `*VirtualMachinesClientAssessPatchesPoller.Done` has been removed -- Function `*DedicatedHostsClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientCreateOrUpdatePoller.Done` has been removed -- Function `GalleryExpandParams.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMsClientRestartPoller.ResumeToken` has been removed -- Function `*DisksClientGrantAccessPoller.Poll` has been removed -- Function `*VirtualMachineExtensionsClientDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientPowerOffPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientListPager.PageResponse` has been removed -- Function `*CloudServiceRoleInstancesClientRestartPollerResponse.Resume` has been removed -- Function `*CloudServiceRolesClientListPager.PageResponse` has been removed -- Function `*SharedGalleryImagesClientListPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Done` has been removed -- Function `*VirtualMachinesClientAssessPatchesPoller.FinalResponse` has been removed -- Function `ExecutionState.ToPtr` has been removed -- Function `*CapacityReservationsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetScaleInRules.ToPtr` has been removed -- Function `*CloudServicesClientListPager.PageResponse` has been removed -- Function `*GalleriesClientListPager.Err` has been removed -- Function `SharingUpdateOperationTypes.ToPtr` has been removed -- Function `*CapacityReservationsClientUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientInstallPatchesPoller.Poll` has been removed -- Function `*GalleryApplicationVersionsClientDeletePoller.Done` has been removed -- Function `*VirtualMachinesClientUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientRunCommandPoller.Done` has been removed -- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Done` has been removed -- Function `*DiskEncryptionSetsClientListAssociatedResourcesPager.PageResponse` has been removed -- Function `*CloudServicesClientDeleteInstancesPollerResponse.Resume` has been removed -- Function `*GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*DiskRestorePointClientRevokeAccessPoller.Done` has been removed -- Function `*RestorePointCollectionsClientListAllPager.PageResponse` has been removed -- Function `*DisksClientDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimagePoller.ResumeToken` has been removed -- Function `*CloudServicesClientDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.ResumeToken` has been removed -- Function `GalleryApplicationsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientReimagePoller.Done` has been removed -- Function `*DisksClientRevokeAccessPoller.FinalResponse` has been removed -- Function `CloudServicesClientPowerOffPollerResponse.PollUntilDone` has been removed -- Function `DataAccessAuthMode.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeletePollerResponse.Resume` has been removed -- Function `*SnapshotsClientGrantAccessPoller.Done` has been removed -- Function `*VirtualMachinesClientConvertToManagedDisksPollerResponse.Resume` has been removed -- Function `*CapacityReservationsClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientPerformMaintenancePoller.Poll` has been removed -- Function `*RestorePointsClientDeletePoller.ResumeToken` has been removed -- Function `AvailabilitySetSKUTypes.ToPtr` has been removed -- Function `*VirtualMachinesClientAssessPatchesPoller.ResumeToken` has been removed -- Function `*DiskAccessesClientListPrivateEndpointConnectionsPager.PageResponse` has been removed -- Function `*GalleryApplicationsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*DisksClientUpdatePoller.Done` has been removed -- Function `VirtualMachineScaleSetVMsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleriesClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientInstallPatchesPoller.FinalResponse` has been removed -- Function `*CapacityReservationsClientUpdatePoller.ResumeToken` has been removed -- Function `*DisksClientListPager.NextPage` has been removed -- Function `*CloudServiceRolesClientListPager.NextPage` has been removed -- Function `*CloudServiceRoleInstancesClientReimagePoller.FinalResponse` has been removed -- Function `*SnapshotsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*GalleryImagesClientListByGalleryPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientPowerOffPollerResponse.Resume` has been removed -- Function `*CloudServicesClientListPager.NextPage` has been removed -- Function `SharedToValues.ToPtr` has been removed -- Function `*DiskEncryptionSetsClientDeletePoller.Poll` has been removed -- Function `GalleryApplicationsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientStartPollerResponse.Resume` has been removed -- Function `CloudServicesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImagesClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*DisksClientDeletePoller.Poll` has been removed -- Function `*DedicatedHostGroupsClientListBySubscriptionPager.Err` has been removed -- Function `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.PollUntilDone` has been removed -- Function `*AvailabilitySetsClientListBySubscriptionPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetsClientListSKUsPager.NextPage` has been removed -- Function `*VirtualMachinesClientInstallPatchesPollerResponse.Resume` has been removed -- Function `ExtendedLocationTypes.ToPtr` has been removed -- Function `*DiskEncryptionSetsClientListPager.Err` has been removed -- Function `*VirtualMachinesClientDeletePoller.Done` has been removed -- Function `*CloudServicesClientStartPoller.ResumeToken` has been removed -- Function `VMGuestPatchRebootSetting.ToPtr` has been removed -- Function `*ImagesClientDeletePoller.ResumeToken` has been removed -- Function `*DiskAccessesClientUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Done` has been removed -- Function `CloudServiceUpgradeMode.ToPtr` has been removed -- Function `*CloudServiceRoleInstancesClientReimagePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientRunCommandPollerResponse.Resume` has been removed -- Function `*ImagesClientUpdatePoller.ResumeToken` has been removed -- Function `VirtualMachinesClientRestartPollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationsClientDeletePoller.Poll` has been removed -- Function `VirtualMachineScaleSetVMsClientRestartPollerResponse.PollUntilDone` has been removed -- Function `DisksClientRevokeAccessPollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesClientStartPoller.FinalResponse` has been removed -- Function `*LogAnalyticsClientExportThrottledRequestsPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimageAllPollerResponse.Resume` has been removed -- Function `*GalleryApplicationVersionsClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientListByLocationPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientDeletePoller.Done` has been removed -- Function `*CloudServicesClientUpdatePoller.FinalResponse` has been removed -- Function `CloudServicesClientRestartPollerResponse.PollUntilDone` has been removed -- Function `*DisksClientGrantAccessPoller.FinalResponse` has been removed -- Function `DiskEncryptionSetType.ToPtr` has been removed -- Function `*GalleryImagesClientDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientDeallocatePollerResponse.Resume` has been removed -- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.FinalResponse` has been removed -- Function `HyperVGeneration.ToPtr` has been removed -- Function `*ResourceSKUsClientListPager.NextPage` has been removed -- Function `*DedicatedHostsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachinesClientPerformMaintenancePollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientDeletePoller.Done` has been removed -- Function `*ImagesClientDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Done` has been removed -- Function `*GalleryImagesClientListByGalleryPager.PageResponse` has been removed -- Function `VirtualMachineScaleSetsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsClientDeletePoller.ResumeToken` has been removed -- Function `*SnapshotsClientUpdatePollerResponse.Resume` has been removed -- Function `*CloudServicesClientUpdatePoller.ResumeToken` has been removed -- Function `*GalleryApplicationsClientUpdatePoller.FinalResponse` has been removed -- Function `*ImagesClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*DisksClientListByResourceGroupPager.Err` has been removed -- Function `*VirtualMachinesClientReimagePollerResponse.Resume` has been removed -- Function `*CloudServicesClientRestartPollerResponse.Resume` has been removed -- Function `*CloudServicesClientListAllPager.Err` has been removed -- Function `CloudServiceRoleInstancesClientRebuildPollerResponse.PollUntilDone` has been removed -- Function `DiskRestorePointClientRevokeAccessPollerResponse.PollUntilDone` has been removed -- Function `*GalleryImageVersionsClientListByGalleryImagePager.PageResponse` has been removed -- Function `LinuxVMGuestPatchMode.ToPtr` has been removed -- Function `VMGuestPatchClassificationWindows.ToPtr` has been removed -- Function `VirtualMachinesClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `DisksClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceRoleInstancesClientRebuildPoller.ResumeToken` has been removed -- Function `*GalleryImagesClientDeletePoller.ResumeToken` has been removed -- Function `ReplicationMode.ToPtr` has been removed -- Function `*AvailabilitySetsClientListBySubscriptionPager.NextPage` has been removed -- Function `*ProximityPlacementGroupsClientListBySubscriptionPager.PageResponse` has been removed -- Function `*CloudServiceRoleInstancesClientRebuildPoller.Done` has been removed -- Function `*RestorePointsClientCreatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.ResumeToken` has been removed -- Function `SnapshotsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `RestorePointCollectionsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientListPager.Err` has been removed -- Function `*RestorePointCollectionsClientListPager.NextPage` has been removed -- Function `*VirtualMachinesClientAssessPatchesPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeallocatePollerResponse.Resume` has been removed -- Function `*DedicatedHostsClientDeletePoller.Done` has been removed -- Function `*DisksClientDeletePoller.FinalResponse` has been removed -- Function `*SnapshotsClientListByResourceGroupPager.Err` has been removed -- Function `VirtualMachineExtensionsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleriesClientUpdatePollerResponse.Resume` has been removed -- Function `SettingNames.ToPtr` has been removed -- Function `UpgradeMode.ToPtr` has been removed -- Function `*DisksClientUpdatePoller.ResumeToken` has been removed -- Function `*SharedGalleriesClientListPager.PageResponse` has been removed -- Function `*VirtualMachinesClientInstallPatchesPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientReimageAllPoller.FinalResponse` has been removed -- Function `DiskEncryptionSetIdentityType.ToPtr` has been removed -- Function `*GalleriesClientCreateOrUpdatePoller.Poll` has been removed -- Function `*SnapshotsClientRevokeAccessPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.FinalResponse` has been removed -- Function `ResourceIdentityType.ToPtr` has been removed -- Function `PublicIPAddressSKUTier.ToPtr` has been removed -- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Poll` has been removed -- Function `CapacityReservationInstanceViewTypes.ToPtr` has been removed -- Function `*VirtualMachinesClientUpdatePoller.ResumeToken` has been removed -- Function `*CapacityReservationsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineExtensionsClientUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.Resume` has been removed -- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineRunCommandsClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientCapturePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.Done` has been removed -- Function `*SSHPublicKeysClientListBySubscriptionPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetsClientUpdatePoller.ResumeToken` has been removed -- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.ResumeToken` has been removed -- Function `*DiskRestorePointClientRevokeAccessPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientRestartPoller.Poll` has been removed -- Function `*CloudServiceRoleInstancesClientRebuildPoller.Poll` has been removed -- Function `*ImagesClientListPager.Err` has been removed -- Function `*VirtualMachineScaleSetsClientRestartPoller.ResumeToken` has been removed -- Function `*CloudServicesClientDeletePollerResponse.Resume` has been removed -- Function `*DisksClientCreateOrUpdatePoller.Poll` has been removed -- Function `*SnapshotsClientUpdatePoller.Poll` has been removed -- Function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.PageResponse` has been removed -- Function `ResourceSKUCapacityScaleType.ToPtr` has been removed -- Function `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientRedeployPoller.ResumeToken` has been removed -- Function `*SnapshotsClientUpdatePoller.FinalResponse` has been removed -- Function `*DedicatedHostsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientDeletePoller.ResumeToken` has been removed -- Function `PrivateEndpointConnectionProvisioningState.ToPtr` has been removed -- Function `SecurityTypes.ToPtr` has been removed -- Function `*ImagesClientDeletePollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientCreateOrUpdatePoller.Done` has been removed -- Function `*CloudServicesClientRebuildPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientListPager.Err` has been removed -- Function `*CloudServiceRoleInstancesClientRestartPoller.Poll` has been removed -- Function `*DedicatedHostsClientRestartPoller.FinalResponse` has been removed -- Function `*ImagesClientListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachinesClientRedeployPoller.Done` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientDeallocatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientUpdatePoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesClientDeletePoller.ResumeToken` has been removed -- Function `*DiskRestorePointClientGrantAccessPoller.Poll` has been removed -- Function `*GallerySharingProfileClientUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientListByLocationPager.Err` has been removed -- Function `*GalleriesClientUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.ResumeToken` has been removed -- Function `VirtualMachinesClientCapturePollerResponse.PollUntilDone` has been removed -- Function `CloudServiceRoleInstancesClientReimagePollerResponse.PollUntilDone` has been removed -- Function `*DisksClientGrantAccessPoller.ResumeToken` has been removed -- Function `VirtualMachinesClientRedeployPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientListSKUsPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientListPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Done` has been removed -- Function `ProximityPlacementGroupType.ToPtr` has been removed -- Function `*RestorePointCollectionsClientListPager.PageResponse` has been removed -- Function `*DiskAccessesClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineRunCommandsClientUpdatePoller.ResumeToken` has been removed -- Function `*DisksClientUpdatePollerResponse.Resume` has been removed -- Function `*DiskEncryptionSetsClientListAssociatedResourcesPager.Err` has been removed -- Function `*CloudServicesClientDeletePoller.FinalResponse` has been removed -- Function `*DisksClientListPager.PageResponse` has been removed -- Function `CapacityReservationsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Poll` has been removed -- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*CloudServicesClientCreateOrUpdatePoller.Poll` has been removed -- Function `VirtualMachineScaleSetVMsClientRunCommandPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientRestartPoller.Done` has been removed -- Function `GalleryApplicationsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientReapplyPollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientConvertToManagedDisksPoller.ResumeToken` has been removed -- Function `*VirtualMachinesClientStartPoller.Done` has been removed -- Function `GalleryImageVersionsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `CloudServicesClientStartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientDeletePoller.ResumeToken` has been removed -- Function `VMGuestPatchRebootStatus.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientDeallocatePoller.Done` has been removed -- Function `*VirtualMachinesClientReimagePoller.FinalResponse` has been removed -- Function `*VirtualMachineExtensionsClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientListSKUsPager.PageResponse` has been removed -- Function `*CloudServiceRoleInstancesClientRebuildPollerResponse.Resume` has been removed -- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientInstallPatchesPoller.Done` has been removed -- Function `*GalleryImageVersionsClientDeletePollerResponse.Resume` has been removed -- Function `VirtualMachinesClientPowerOffPollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesClientRestartPoller.Poll` has been removed -- Function `OrchestrationServiceStateAction.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMsClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientPowerOffPoller.Done` has been removed -- Function `*LogAnalyticsClientExportRequestRateByIntervalPollerResponse.Resume` has been removed -- Function `OperatingSystemStateTypes.ToPtr` has been removed -- Function `CloudServicesClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*SnapshotsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `DiskStorageAccountTypes.ToPtr` has been removed -- Function `GalleryImageVersionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientPowerOffPoller.Poll` has been removed -- Function `*GalleryImageVersionsClientDeletePoller.Poll` has been removed -- Function `*CloudServiceRoleInstancesClientRestartPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientReimageAllPoller.Poll` has been removed -- Function `WindowsVMGuestPatchMode.ToPtr` has been removed -- Function `*DisksClientGrantAccessPollerResponse.Resume` has been removed -- Function `ArchitectureTypes.ToPtr` has been removed -- Function `GalleryImageVersionsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsClientListByHostGroupPager.NextPage` has been removed -- Function `*CloudServicesClientReimagePoller.ResumeToken` has been removed -- Function `*DedicatedHostsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*DiskAccessesClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineRunCommandsClientListPager.PageResponse` has been removed -- Function `*GalleriesClientUpdatePoller.FinalResponse` has been removed -- Function `DiskAccessesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Poll` has been removed -- Function `DiskDetachOptionTypes.ToPtr` has been removed -- Function `DiskState.ToPtr` has been removed -- Function `*DiskEncryptionSetsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `PatchOperationStatus.ToPtr` has been removed -- Function `*CloudServiceRoleInstancesClientDeletePoller.Poll` has been removed -- Function `*VirtualMachinesClientCapturePoller.Done` has been removed -- Function `*DiskAccessesClientUpdatePoller.Done` has been removed -- Function `*CloudServiceRoleInstancesClientListPager.Err` has been removed -- Function `LinuxPatchAssessmentMode.ToPtr` has been removed -- Function `SharingProfileGroupTypes.ToPtr` has been removed -- Function `*GalleryImageVersionsClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineRunCommandsClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsClientDeletePoller.Poll` has been removed -- Function `*DedicatedHostGroupsClientListBySubscriptionPager.PageResponse` has been removed -- Function `*RestorePointCollectionsClientDeletePoller.Done` has been removed -- Function `GallerySharingProfileClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesClientRestartPoller.ResumeToken` has been removed -- Function `VirtualMachinesClientReapplyPollerResponse.PollUntilDone` has been removed -- Function `DiskEncryptionSetsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `RestorePointCollectionExpandOptions.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Poll` has been removed -- Function `*CloudServiceOperatingSystemsClientListOSVersionsPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.ResumeToken` has been removed -- Function `*DiskAccessesClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `ImagesClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DisksClientRevokeAccessPoller.Done` has been removed -- Function `*VirtualMachineScaleSetsClientReimageAllPollerResponse.Resume` has been removed -- Function `*GalleryApplicationsClientListByGalleryPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.FinalResponse` has been removed -- Function `*GalleryImagesClientCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimagePoller.Poll` has been removed -- Function `ExpandTypesForGetVMScaleSets.ToPtr` has been removed -- Function `*VirtualMachineRunCommandsClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientStartPoller.Done` has been removed -- Function `*VirtualMachinesClientListByLocationPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Done` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Done` has been removed -- Function `LogAnalyticsClientExportRequestRateByIntervalPollerResponse.PollUntilDone` has been removed -- Function `*GalleryImageVersionsClientUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.ResumeToken` has been removed -- Function `*CloudServiceRoleInstancesClientReimagePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Poll` has been removed -- Function `HyperVGenerationTypes.ToPtr` has been removed -- Function `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.PollUntilDone` has been removed -- Function `Architecture.ToPtr` has been removed -- Function `PublicIPAddressSKUName.ToPtr` has been removed -- Function `VirtualMachineScaleSetVMsClientDeallocatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Done` has been removed -- Function `*CapacityReservationsClientListByCapacityReservationGroupPager.Err` has been removed -- Function `*VirtualMachinesClientListPager.Err` has been removed -- Function `*DedicatedHostsClientRestartPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*DisksClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.ResumeToken` has been removed -- Function `*GalleryApplicationVersionsClientDeletePoller.Poll` has been removed -- Function `*DiskAccessesClientListPager.NextPage` has been removed -- Function `*DiskAccessesClientListByResourceGroupPager.Err` has been removed -- Function `*VirtualMachinesClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientRedeployPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Poll` has been removed -- Function `*RestorePointsClientDeletePoller.Poll` has been removed -- Function `*ImagesClientCreateOrUpdatePoller.Poll` has been removed -- Function `*GalleryImageVersionsClientListByGalleryImagePager.Err` has been removed -- Function `*DiskEncryptionSetsClientListByResourceGroupPager.PageResponse` has been removed -- Function `*GalleryApplicationsClientDeletePollerResponse.Resume` has been removed -- Function `*GalleriesClientUpdatePoller.Done` has been removed -- Function `*CapacityReservationGroupsClientListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Done` has been removed -- Function `*VirtualMachineScaleSetsClientReimagePollerResponse.Resume` has been removed -- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.ResumeToken` has been removed -- Function `*DedicatedHostsClientRestartPoller.ResumeToken` has been removed -- Function `SnapshotStorageAccountTypes.ToPtr` has been removed -- Function `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*RestorePointCollectionsClientDeletePoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesClientRestartPoller.ResumeToken` has been removed -- Function `DisksClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsClientListAllPager.Err` has been removed -- Function `*GalleryApplicationVersionsClientUpdatePoller.Done` has been removed -- Function `*LogAnalyticsClientExportThrottledRequestsPoller.Done` has been removed -- Function `DisksClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesClientPowerOffPoller.Poll` has been removed -- Function `*GalleryApplicationVersionsClientUpdatePoller.Poll` has been removed -- Function `*ImagesClientListPager.PageResponse` has been removed -- Function `AccessLevel.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Poll` has been removed -- Function `DiskCreateOption.ToPtr` has been removed -- Function `*DedicatedHostsClientCreateOrUpdatePoller.Done` has been removed -- Function `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientRedeployPoller.ResumeToken` has been removed -- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Done` has been removed -- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Done` has been removed -- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.FinalResponse` has been removed -- Function `*CloudServicesClientListPager.Err` has been removed -- Function `*VirtualMachineScaleSetsClientListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsClientPowerOffPoller.FinalResponse` has been removed -- Function `*RestorePointCollectionsClientListAllPager.Err` has been removed -- Function `VirtualMachineEvictionPolicyTypes.ToPtr` has been removed -- Function `*ProximityPlacementGroupsClientListBySubscriptionPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.ResumeToken` has been removed -- Function `*DisksClientListPager.Err` has been removed -- Function `*ProximityPlacementGroupsClientListByResourceGroupPager.PageResponse` has been removed -- Function `*DisksClientRevokeAccessPollerResponse.Resume` has been removed -- Function `*CloudServiceRoleInstancesClientReimagePollerResponse.Resume` has been removed -- Function `GalleryImagesClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*GalleriesClientDeletePoller.Poll` has been removed -- Function `*DiskAccessesClientListByResourceGroupPager.PageResponse` has been removed -- Function `SnapshotsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientPowerOffPoller.ResumeToken` has been removed -- Function `*UsageClientListPager.Err` has been removed -- Function `PublicIPAllocationMethod.ToPtr` has been removed -- Function `*SharedGalleryImageVersionsClientListPager.Err` has been removed -- Function `*VirtualMachinesClientListAllPager.NextPage` has been removed -- Function `*VirtualMachinesClientRunCommandPollerResponse.Resume` has been removed -- Function `StorageAccountType.ToPtr` has been removed -- Function `*GalleryImageVersionsClientUpdatePoller.Done` has been removed -- Function `GalleryApplicationVersionPropertiesProvisioningState.ToPtr` has been removed -- Function `*RestorePointCollectionsClientListPager.Err` has been removed -- Function `*CapacityReservationGroupsClientListBySubscriptionPager.Err` has been removed -- Function `*RestorePointsClientCreatePoller.ResumeToken` has been removed -- Function `*CloudServicesClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `SnapshotsClientRevokeAccessPollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsClientListByHostGroupPager.PageResponse` has been removed -- Function `*SnapshotsClientDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientRestartPollerResponse.Resume` has been removed -- Function `IPVersions.ToPtr` has been removed -- Function `VirtualMachineScaleSetVMsClientReimagePollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsClientDeletePoller.Poll` has been removed -- Function `PublicNetworkAccess.ToPtr` has been removed -- Function `CloudServiceRoleInstancesClientDeletePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientListPager.PageResponse` has been removed -- Function `PatchAssessmentState.ToPtr` has been removed -- Function `*GalleryApplicationsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientRedeployPoller.Done` has been removed -- Function `*GallerySharingProfileClientUpdatePoller.ResumeToken` has been removed -- Function `*CloudServicesClientReimagePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Poll` has been removed -- Function `*CloudServicesClientListAllPager.PageResponse` has been removed -- Function `*VirtualMachinesClientReimagePoller.ResumeToken` has been removed -- Function `*VirtualMachinesClientListAllPager.Err` has been removed -- Function `ResourceSKURestrictionsReasonCode.ToPtr` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.Resume` has been removed -- Function `UpgradeState.ToPtr` has been removed -- Function `*VirtualMachinesClientConvertToManagedDisksPoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientCapturePoller.FinalResponse` has been removed -- Function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.PageResponse` has been removed -- Function `*DedicatedHostsClientUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientRestartPollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientStartPoller.FinalResponse` has been removed -- Function `*RestorePointsClientCreatePoller.FinalResponse` has been removed -- Function `*DisksClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientDeallocatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.FinalResponse` has been removed -- Function `*GalleriesClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientAssessPatchesPoller.Poll` has been removed -- Function `*DisksClientUpdatePoller.Poll` has been removed -- Function `*GalleryImagesClientDeletePollerResponse.Resume` has been removed -- Function `*UsageClientListPager.PageResponse` has been removed -- Function `VMDiskTypes.ToPtr` has been removed -- Function `CloudServicesClientRebuildPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientConvertToManagedDisksPoller.Done` has been removed -- Function `*CloudServicesClientPowerOffPoller.FinalResponse` has been removed -- Function `*ImagesClientCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientReimagePoller.Done` has been removed -- Function `*LogAnalyticsClientExportThrottledRequestsPoller.FinalResponse` has been removed -- Function `*CapacityReservationsClientUpdatePoller.Poll` has been removed -- Function `*AvailabilitySetsClientListPager.NextPage` has been removed -- Function `*VirtualMachinesClientPerformMaintenancePoller.FinalResponse` has been removed -- Function `*CapacityReservationsClientUpdatePollerResponse.Resume` has been removed -- Function `*CloudServicesClientReimagePoller.Poll` has been removed -- Function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.NextPage` has been removed -- Function `*GalleryImagesClientUpdatePoller.Done` has been removed -- Function `*VirtualMachinesClientUpdatePoller.Poll` has been removed -- Function `DisksClientGrantAccessPollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationVersionsClientUpdatePoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientPerformMaintenancePoller.Done` has been removed -- Function `*GalleriesClientListPager.PageResponse` has been removed -- Function `*VirtualMachinesClientPowerOffPoller.ResumeToken` has been removed -- Function `*GalleriesClientListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Poll` has been removed -- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `RestorePointExpandOptions.ToPtr` has been removed -- Function `*DedicatedHostGroupsClientListByResourceGroupPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.FinalResponse` has been removed -- Function `*UsageClientListPager.NextPage` has been removed -- Function `*VirtualMachinesClientListPager.NextPage` has been removed -- Function `*CapacityReservationGroupsClientListByResourceGroupPager.PageResponse` has been removed -- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Done` has been removed -- Function `*SSHPublicKeysClientListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsClientRestartPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsClientStartPollerResponse.Resume` has been removed -- Function `*SnapshotsClientUpdatePoller.Done` has been removed -- Function `RestorePointsClientCreatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Done` has been removed -- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetSKUScaleType.ToPtr` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.FinalResponse` has been removed -- Function `CloudServicesClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineExtensionsClientUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.ResumeToken` has been removed -- Function `*CloudServicesClientDeletePoller.ResumeToken` has been removed -- Function `*RestorePointCollectionsClientListAllPager.NextPage` has been removed -- Function `*ResourceSKUsClientListPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.Resume` has been removed -- Function `GalleryImagePropertiesProvisioningState.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMsClientStartPoller.ResumeToken` has been removed -- Function `*VirtualMachineRunCommandsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Done` has been removed -- Function `GalleriesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientRunCommandPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.ResumeToken` has been removed -- Function `*SharedGalleryImagesClientListPager.NextPage` has been removed -- Function `ConfidentialVMEncryptionType.ToPtr` has been removed -- Function `VirtualMachineScaleSetVMsClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImagesClientUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachinesClientRedeployPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.NextPage` has been removed -- Function `*CapacityReservationsClientDeletePoller.ResumeToken` has been removed -- Function `*DedicatedHostGroupsClientListByResourceGroupPager.NextPage` has been removed -- Function `*SnapshotsClientGrantAccessPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsClientReimagePoller.Done` has been removed -- Function `*CapacityReservationGroupsClientListBySubscriptionPager.NextPage` has been removed -- Function `*RestorePointCollectionsClientDeletePoller.Poll` has been removed -- Function `*DedicatedHostGroupsClientListByResourceGroupPager.Err` has been removed -- Function `*DiskRestorePointClientListByRestorePointPager.PageResponse` has been removed -- Function `*GalleryApplicationsClientListByGalleryPager.Err` has been removed -- Function `*CloudServiceRoleInstancesClientDeletePoller.Done` has been removed -- Function `*CloudServiceRoleInstancesClientRebuildPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Poll` has been removed -- Function `*DisksClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineRunCommandsClientDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.Resume` has been removed -- Function `*ImagesClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetsClientPowerOffPollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsClientDeletePollerResponse.Resume` has been removed -- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.ResumeToken` has been removed -- Function `*SharedGalleryImagesClientListPager.Err` has been removed -- Function `*GallerySharingProfileClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsClientRestartPoller.FinalResponse` has been removed -- Function `*GalleryImagesClientDeletePoller.Done` has been removed -- Function `*VirtualMachinesClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*DedicatedHostsClientDeletePollerResponse.Resume` has been removed -- Function `VirtualMachinesClientReimagePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*GalleryImagesClientCreateOrUpdatePollerResponse.Resume` has been removed -- Function `VirtualMachinesClientInstallPatchesPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.FinalResponse` has been removed -- Function `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed -- Function `*SnapshotsClientDeletePoller.FinalResponse` has been removed -- Function `VMGuestPatchRebootBehavior.ToPtr` has been removed -- Function `*RestorePointCollectionsClientDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineRunCommandsClientUpdatePoller.FinalResponse` has been removed -- Function `DedicatedHostsClientRestartPollerResponse.PollUntilDone` has been removed -- Function `*DiskEncryptionSetsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientListPager.PageResponse` has been removed -- Function `SelectPermissions.ToPtr` has been removed -- Function `GalleriesClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceOperatingSystemsClientListOSVersionsPager.Err` has been removed -- Function `*ImagesClientUpdatePoller.Poll` has been removed -- Function `*RestorePointCollectionsClientDeletePollerResponse.Resume` has been removed -- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.ResumeToken` has been removed -- Function `*VirtualMachinesClientCapturePollerResponse.Resume` has been removed -- Function `*DiskAccessesClientListByResourceGroupPager.NextPage` has been removed -- Function `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `VMGuestPatchClassificationLinux.ToPtr` has been removed -- Function `*DiskEncryptionSetsClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachinesClientListAllPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsClientDeletePollerResponse.Resume` has been removed -- Function `*GalleryImageVersionsClientDeletePoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesClientListPager.NextPage` has been removed -- Function `*DisksClientGrantAccessPoller.Done` has been removed -- Function `*GalleryApplicationsClientUpdatePoller.Done` has been removed -- Function `*CloudServicesClientUpdatePoller.Done` has been removed -- Function `*SharedGalleriesClientListPager.Err` has been removed -- Function `UpgradeOperationInvoker.ToPtr` has been removed -- Function `SecurityEncryptionTypes.ToPtr` has been removed -- Function `*VirtualMachinesClientPowerOffPoller.Done` has been removed -- Function `*VirtualMachinesClientReimagePoller.Poll` has been removed -- Function `ReplicationState.ToPtr` has been removed -- Function `*VirtualMachineScaleSetsClientListAllPager.PageResponse` has been removed -- Function `*SnapshotsClientDeletePoller.Done` has been removed -- Function `*GalleryImageVersionsClientListByGalleryImagePager.NextPage` has been removed -- Function `*GalleriesClientListByResourceGroupPager.Err` has been removed -- Function `VirtualMachineScaleSetVMsClientRedeployPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Done` has been removed -- Function `*SharedGalleryImageVersionsClientListPager.NextPage` has been removed -- Function `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsClientReimageAllPoller.ResumeToken` has been removed -- Function `*DiskEncryptionSetsClientDeletePoller.Done` has been removed -- Function `*VirtualMachinesClientDeletePoller.Poll` has been removed -- Function `*GalleryImagesClientDeletePoller.FinalResponse` has been removed -- Function `DiskAccessesClientUpdatePollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationsClientDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Poll` has been removed -- Function `*GalleriesClientUpdatePoller.Poll` has been removed -- Function `DiskRestorePointClientGrantAccessPollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesClientDeletePoller.Done` has been removed -- Function `*DisksClientRevokeAccessPoller.Poll` has been removed -- Function `*DisksClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*CapacityReservationsClientListByCapacityReservationGroupPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Poll` has been removed -- Function `*SnapshotsClientGrantAccessPoller.ResumeToken` has been removed -- Function `ConsistencyModeTypes.ToPtr` has been removed -- Function `VirtualMachinesClientPerformMaintenancePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetsClientReimageAllPollerResponse.PollUntilDone` has been removed -- Function `GalleryImagesClientDeletePollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesClientUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientDeallocatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.FinalResponse` has been removed -- Function `*RestorePointsClientCreatePoller.Poll` has been removed -- Function `DiffDiskPlacement.ToPtr` has been removed -- Function `WindowsPatchAssessmentMode.ToPtr` has been removed -- Function `*GalleriesClientDeletePoller.Done` has been removed -- Function `*ResourceSKUsClientListPager.Err` has been removed -- Function `*SSHPublicKeysClientListByResourceGroupPager.PageResponse` has been removed -- Function `*DiskEncryptionSetsClientListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.Err` has been removed -- Function `GalleryImageVersionPropertiesProvisioningState.ToPtr` has been removed -- Function `GalleryExtendedLocationType.ToPtr` has been removed -- Function `*VirtualMachineScaleSetsClientRedeployPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsClientUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientRestartPoller.Poll` has been removed -- Function `*GalleryApplicationVersionsClientUpdatePoller.ResumeToken` has been removed -- Function `*DiskAccessesClientListPager.PageResponse` has been removed -- Function `*CloudServicesClientDeleteInstancesPoller.FinalResponse` has been removed -- Function `RollingUpgradeStatusCode.ToPtr` has been removed -- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.ResumeToken` has been removed -- Function `ProtocolTypes.ToPtr` has been removed -- Function `*CloudServicesClientRestartPoller.Done` has been removed -- Function `*SnapshotsClientRevokeAccessPoller.Poll` has been removed -- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*GalleriesClientListByResourceGroupPager.PageResponse` has been removed -- Function `*CloudServicesClientReimagePollerResponse.Resume` has been removed -- Function `*VirtualMachinesClientRunCommandPoller.Poll` has been removed -- Function `*CloudServicesClientRebuildPoller.FinalResponse` has been removed -- Function `LogAnalyticsClientExportThrottledRequestsPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesClientPerformMaintenancePoller.ResumeToken` has been removed -- Function `*VirtualMachineExtensionsClientDeletePoller.FinalResponse` has been removed -- Struct `AvailabilitySetsClientCreateOrUpdateResult` has been removed -- Struct `AvailabilitySetsClientGetResult` has been removed -- Struct `AvailabilitySetsClientListAvailableSizesResult` has been removed -- Struct `AvailabilitySetsClientListBySubscriptionPager` has been removed -- Struct `AvailabilitySetsClientListBySubscriptionResult` has been removed -- Struct `AvailabilitySetsClientListPager` has been removed -- Struct `AvailabilitySetsClientListResult` has been removed -- Struct `AvailabilitySetsClientUpdateResult` has been removed -- Struct `CapacityReservationGroupsClientCreateOrUpdateResult` has been removed -- Struct `CapacityReservationGroupsClientGetResult` has been removed -- Struct `CapacityReservationGroupsClientListByResourceGroupPager` has been removed -- Struct `CapacityReservationGroupsClientListByResourceGroupResult` has been removed -- Struct `CapacityReservationGroupsClientListBySubscriptionPager` has been removed -- Struct `CapacityReservationGroupsClientListBySubscriptionResult` has been removed -- Struct `CapacityReservationGroupsClientUpdateResult` has been removed -- Struct `CapacityReservationsClientCreateOrUpdatePoller` has been removed -- Struct `CapacityReservationsClientCreateOrUpdatePollerResponse` has been removed -- Struct `CapacityReservationsClientCreateOrUpdateResult` has been removed -- Struct `CapacityReservationsClientDeletePoller` has been removed -- Struct `CapacityReservationsClientDeletePollerResponse` has been removed -- Struct `CapacityReservationsClientGetResult` has been removed -- Struct `CapacityReservationsClientListByCapacityReservationGroupPager` has been removed -- Struct `CapacityReservationsClientListByCapacityReservationGroupResult` has been removed -- Struct `CapacityReservationsClientUpdatePoller` has been removed -- Struct `CapacityReservationsClientUpdatePollerResponse` has been removed -- Struct `CapacityReservationsClientUpdateResult` has been removed -- Struct `CloudServiceOperatingSystemsClientGetOSFamilyResult` has been removed -- Struct `CloudServiceOperatingSystemsClientGetOSVersionResult` has been removed -- Struct `CloudServiceOperatingSystemsClientListOSFamiliesPager` has been removed -- Struct `CloudServiceOperatingSystemsClientListOSFamiliesResult` has been removed -- Struct `CloudServiceOperatingSystemsClientListOSVersionsPager` has been removed -- Struct `CloudServiceOperatingSystemsClientListOSVersionsResult` has been removed -- Struct `CloudServiceRoleInstancesClientDeletePoller` has been removed -- Struct `CloudServiceRoleInstancesClientDeletePollerResponse` has been removed -- Struct `CloudServiceRoleInstancesClientGetInstanceViewResult` has been removed -- Struct `CloudServiceRoleInstancesClientGetResult` has been removed -- Struct `CloudServiceRoleInstancesClientListPager` has been removed -- Struct `CloudServiceRoleInstancesClientListResult` has been removed -- Struct `CloudServiceRoleInstancesClientRebuildPoller` has been removed -- Struct `CloudServiceRoleInstancesClientRebuildPollerResponse` has been removed -- Struct `CloudServiceRoleInstancesClientReimagePoller` has been removed -- Struct `CloudServiceRoleInstancesClientReimagePollerResponse` has been removed -- Struct `CloudServiceRoleInstancesClientRestartPoller` has been removed -- Struct `CloudServiceRoleInstancesClientRestartPollerResponse` has been removed -- Struct `CloudServiceRolesClientGetResult` has been removed -- Struct `CloudServiceRolesClientListPager` has been removed -- Struct `CloudServiceRolesClientListResult` has been removed -- Struct `CloudServicesClientCreateOrUpdatePoller` has been removed -- Struct `CloudServicesClientCreateOrUpdatePollerResponse` has been removed -- Struct `CloudServicesClientCreateOrUpdateResult` has been removed -- Struct `CloudServicesClientDeleteInstancesPoller` has been removed -- Struct `CloudServicesClientDeleteInstancesPollerResponse` has been removed -- Struct `CloudServicesClientDeletePoller` has been removed -- Struct `CloudServicesClientDeletePollerResponse` has been removed -- Struct `CloudServicesClientGetInstanceViewResult` has been removed -- Struct `CloudServicesClientGetResult` has been removed -- Struct `CloudServicesClientListAllPager` has been removed -- Struct `CloudServicesClientListAllResult` has been removed -- Struct `CloudServicesClientListPager` has been removed -- Struct `CloudServicesClientListResult` has been removed -- Struct `CloudServicesClientPowerOffPoller` has been removed -- Struct `CloudServicesClientPowerOffPollerResponse` has been removed -- Struct `CloudServicesClientRebuildPoller` has been removed -- Struct `CloudServicesClientRebuildPollerResponse` has been removed -- Struct `CloudServicesClientReimagePoller` has been removed -- Struct `CloudServicesClientReimagePollerResponse` has been removed -- Struct `CloudServicesClientRestartPoller` has been removed -- Struct `CloudServicesClientRestartPollerResponse` has been removed -- Struct `CloudServicesClientStartPoller` has been removed -- Struct `CloudServicesClientStartPollerResponse` has been removed -- Struct `CloudServicesClientUpdatePoller` has been removed -- Struct `CloudServicesClientUpdatePollerResponse` has been removed -- Struct `CloudServicesClientUpdateResult` has been removed -- Struct `CloudServicesUpdateDomainClientGetUpdateDomainResult` has been removed -- Struct `CloudServicesUpdateDomainClientListUpdateDomainsPager` has been removed -- Struct `CloudServicesUpdateDomainClientListUpdateDomainsResult` has been removed -- Struct `CloudServicesUpdateDomainClientWalkUpdateDomainPoller` has been removed -- Struct `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse` has been removed -- Struct `CommunityGalleriesClientGetResult` has been removed -- Struct `CommunityGalleryImageVersionsClientGetResult` has been removed -- Struct `CommunityGalleryImagesClientGetResult` has been removed -- Struct `DedicatedHostGroupsClientCreateOrUpdateResult` has been removed -- Struct `DedicatedHostGroupsClientGetResult` has been removed -- Struct `DedicatedHostGroupsClientListByResourceGroupPager` has been removed -- Struct `DedicatedHostGroupsClientListByResourceGroupResult` has been removed -- Struct `DedicatedHostGroupsClientListBySubscriptionPager` has been removed -- Struct `DedicatedHostGroupsClientListBySubscriptionResult` has been removed -- Struct `DedicatedHostGroupsClientUpdateResult` has been removed -- Struct `DedicatedHostsClientCreateOrUpdatePoller` has been removed -- Struct `DedicatedHostsClientCreateOrUpdatePollerResponse` has been removed -- Struct `DedicatedHostsClientCreateOrUpdateResult` has been removed -- Struct `DedicatedHostsClientDeletePoller` has been removed -- Struct `DedicatedHostsClientDeletePollerResponse` has been removed -- Struct `DedicatedHostsClientGetResult` has been removed -- Struct `DedicatedHostsClientListByHostGroupPager` has been removed -- Struct `DedicatedHostsClientListByHostGroupResult` has been removed -- Struct `DedicatedHostsClientRestartPoller` has been removed -- Struct `DedicatedHostsClientRestartPollerResponse` has been removed -- Struct `DedicatedHostsClientUpdatePoller` has been removed -- Struct `DedicatedHostsClientUpdatePollerResponse` has been removed -- Struct `DedicatedHostsClientUpdateResult` has been removed -- Struct `DiskAccessesClientCreateOrUpdatePoller` has been removed -- Struct `DiskAccessesClientCreateOrUpdatePollerResponse` has been removed -- Struct `DiskAccessesClientCreateOrUpdateResult` has been removed -- Struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPoller` has been removed -- Struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse` has been removed -- Struct `DiskAccessesClientDeletePoller` has been removed -- Struct `DiskAccessesClientDeletePollerResponse` has been removed -- Struct `DiskAccessesClientGetAPrivateEndpointConnectionResult` has been removed -- Struct `DiskAccessesClientGetPrivateLinkResourcesResult` has been removed -- Struct `DiskAccessesClientGetResult` has been removed -- Struct `DiskAccessesClientListByResourceGroupPager` has been removed -- Struct `DiskAccessesClientListByResourceGroupResult` has been removed -- Struct `DiskAccessesClientListPager` has been removed -- Struct `DiskAccessesClientListPrivateEndpointConnectionsPager` has been removed -- Struct `DiskAccessesClientListPrivateEndpointConnectionsResult` has been removed -- Struct `DiskAccessesClientListResult` has been removed -- Struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPoller` has been removed -- Struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse` has been removed -- Struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResult` has been removed -- Struct `DiskAccessesClientUpdatePoller` has been removed -- Struct `DiskAccessesClientUpdatePollerResponse` has been removed -- Struct `DiskAccessesClientUpdateResult` has been removed -- Struct `DiskEncryptionSetsClientCreateOrUpdatePoller` has been removed -- Struct `DiskEncryptionSetsClientCreateOrUpdatePollerResponse` has been removed -- Struct `DiskEncryptionSetsClientCreateOrUpdateResult` has been removed -- Struct `DiskEncryptionSetsClientDeletePoller` has been removed -- Struct `DiskEncryptionSetsClientDeletePollerResponse` has been removed -- Struct `DiskEncryptionSetsClientGetResult` has been removed -- Struct `DiskEncryptionSetsClientListAssociatedResourcesPager` has been removed -- Struct `DiskEncryptionSetsClientListAssociatedResourcesResult` has been removed -- Struct `DiskEncryptionSetsClientListByResourceGroupPager` has been removed -- Struct `DiskEncryptionSetsClientListByResourceGroupResult` has been removed -- Struct `DiskEncryptionSetsClientListPager` has been removed -- Struct `DiskEncryptionSetsClientListResult` has been removed -- Struct `DiskEncryptionSetsClientUpdatePoller` has been removed -- Struct `DiskEncryptionSetsClientUpdatePollerResponse` has been removed -- Struct `DiskEncryptionSetsClientUpdateResult` has been removed -- Struct `DiskRestorePointClientGetResult` has been removed -- Struct `DiskRestorePointClientGrantAccessPoller` has been removed -- Struct `DiskRestorePointClientGrantAccessPollerResponse` has been removed -- Struct `DiskRestorePointClientGrantAccessResult` has been removed -- Struct `DiskRestorePointClientListByRestorePointPager` has been removed -- Struct `DiskRestorePointClientListByRestorePointResult` has been removed -- Struct `DiskRestorePointClientRevokeAccessPoller` has been removed -- Struct `DiskRestorePointClientRevokeAccessPollerResponse` has been removed -- Struct `DisksClientCreateOrUpdatePoller` has been removed -- Struct `DisksClientCreateOrUpdatePollerResponse` has been removed -- Struct `DisksClientCreateOrUpdateResult` has been removed -- Struct `DisksClientDeletePoller` has been removed -- Struct `DisksClientDeletePollerResponse` has been removed -- Struct `DisksClientGetResult` has been removed -- Struct `DisksClientGrantAccessPoller` has been removed -- Struct `DisksClientGrantAccessPollerResponse` has been removed -- Struct `DisksClientGrantAccessResult` has been removed -- Struct `DisksClientListByResourceGroupPager` has been removed -- Struct `DisksClientListByResourceGroupResult` has been removed -- Struct `DisksClientListPager` has been removed -- Struct `DisksClientListResult` has been removed -- Struct `DisksClientRevokeAccessPoller` has been removed -- Struct `DisksClientRevokeAccessPollerResponse` has been removed -- Struct `DisksClientUpdatePoller` has been removed -- Struct `DisksClientUpdatePollerResponse` has been removed -- Struct `DisksClientUpdateResult` has been removed -- Struct `GalleriesClientCreateOrUpdatePoller` has been removed -- Struct `GalleriesClientCreateOrUpdatePollerResponse` has been removed -- Struct `GalleriesClientCreateOrUpdateResult` has been removed -- Struct `GalleriesClientDeletePoller` has been removed -- Struct `GalleriesClientDeletePollerResponse` has been removed -- Struct `GalleriesClientGetResult` has been removed -- Struct `GalleriesClientListByResourceGroupPager` has been removed -- Struct `GalleriesClientListByResourceGroupResult` has been removed -- Struct `GalleriesClientListPager` has been removed -- Struct `GalleriesClientListResult` has been removed -- Struct `GalleriesClientUpdatePoller` has been removed -- Struct `GalleriesClientUpdatePollerResponse` has been removed -- Struct `GalleriesClientUpdateResult` has been removed -- Struct `GalleryApplicationVersionsClientCreateOrUpdatePoller` has been removed -- Struct `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryApplicationVersionsClientCreateOrUpdateResult` has been removed -- Struct `GalleryApplicationVersionsClientDeletePoller` has been removed -- Struct `GalleryApplicationVersionsClientDeletePollerResponse` has been removed -- Struct `GalleryApplicationVersionsClientGetResult` has been removed -- Struct `GalleryApplicationVersionsClientListByGalleryApplicationPager` has been removed -- Struct `GalleryApplicationVersionsClientListByGalleryApplicationResult` has been removed -- Struct `GalleryApplicationVersionsClientUpdatePoller` has been removed -- Struct `GalleryApplicationVersionsClientUpdatePollerResponse` has been removed -- Struct `GalleryApplicationVersionsClientUpdateResult` has been removed -- Struct `GalleryApplicationsClientCreateOrUpdatePoller` has been removed -- Struct `GalleryApplicationsClientCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryApplicationsClientCreateOrUpdateResult` has been removed -- Struct `GalleryApplicationsClientDeletePoller` has been removed -- Struct `GalleryApplicationsClientDeletePollerResponse` has been removed -- Struct `GalleryApplicationsClientGetResult` has been removed -- Struct `GalleryApplicationsClientListByGalleryPager` has been removed -- Struct `GalleryApplicationsClientListByGalleryResult` has been removed -- Struct `GalleryApplicationsClientUpdatePoller` has been removed -- Struct `GalleryApplicationsClientUpdatePollerResponse` has been removed -- Struct `GalleryApplicationsClientUpdateResult` has been removed -- Struct `GalleryImageVersionsClientCreateOrUpdatePoller` has been removed -- Struct `GalleryImageVersionsClientCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryImageVersionsClientCreateOrUpdateResult` has been removed -- Struct `GalleryImageVersionsClientDeletePoller` has been removed -- Struct `GalleryImageVersionsClientDeletePollerResponse` has been removed -- Struct `GalleryImageVersionsClientGetResult` has been removed -- Struct `GalleryImageVersionsClientListByGalleryImagePager` has been removed -- Struct `GalleryImageVersionsClientListByGalleryImageResult` has been removed -- Struct `GalleryImageVersionsClientUpdatePoller` has been removed -- Struct `GalleryImageVersionsClientUpdatePollerResponse` has been removed -- Struct `GalleryImageVersionsClientUpdateResult` has been removed -- Struct `GalleryImagesClientCreateOrUpdatePoller` has been removed -- Struct `GalleryImagesClientCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryImagesClientCreateOrUpdateResult` has been removed -- Struct `GalleryImagesClientDeletePoller` has been removed -- Struct `GalleryImagesClientDeletePollerResponse` has been removed -- Struct `GalleryImagesClientGetResult` has been removed -- Struct `GalleryImagesClientListByGalleryPager` has been removed -- Struct `GalleryImagesClientListByGalleryResult` has been removed -- Struct `GalleryImagesClientUpdatePoller` has been removed -- Struct `GalleryImagesClientUpdatePollerResponse` has been removed -- Struct `GalleryImagesClientUpdateResult` has been removed -- Struct `GallerySharingProfileClientUpdatePoller` has been removed -- Struct `GallerySharingProfileClientUpdatePollerResponse` has been removed -- Struct `GallerySharingProfileClientUpdateResult` has been removed -- Struct `ImagesClientCreateOrUpdatePoller` has been removed -- Struct `ImagesClientCreateOrUpdatePollerResponse` has been removed -- Struct `ImagesClientCreateOrUpdateResult` has been removed -- Struct `ImagesClientDeletePoller` has been removed -- Struct `ImagesClientDeletePollerResponse` has been removed -- Struct `ImagesClientGetResult` has been removed -- Struct `ImagesClientListByResourceGroupPager` has been removed -- Struct `ImagesClientListByResourceGroupResult` has been removed -- Struct `ImagesClientListPager` has been removed -- Struct `ImagesClientListResult` has been removed -- Struct `ImagesClientUpdatePoller` has been removed -- Struct `ImagesClientUpdatePollerResponse` has been removed -- Struct `ImagesClientUpdateResult` has been removed -- Struct `LogAnalyticsClientExportRequestRateByIntervalPoller` has been removed -- Struct `LogAnalyticsClientExportRequestRateByIntervalPollerResponse` has been removed -- Struct `LogAnalyticsClientExportRequestRateByIntervalResult` has been removed -- Struct `LogAnalyticsClientExportThrottledRequestsPoller` has been removed -- Struct `LogAnalyticsClientExportThrottledRequestsPollerResponse` has been removed -- Struct `LogAnalyticsClientExportThrottledRequestsResult` has been removed -- Struct `OperationsClientListResult` has been removed -- Struct `ProximityPlacementGroupsClientCreateOrUpdateResult` has been removed -- Struct `ProximityPlacementGroupsClientGetResult` has been removed -- Struct `ProximityPlacementGroupsClientListByResourceGroupPager` has been removed -- Struct `ProximityPlacementGroupsClientListByResourceGroupResult` has been removed -- Struct `ProximityPlacementGroupsClientListBySubscriptionPager` has been removed -- Struct `ProximityPlacementGroupsClientListBySubscriptionResult` has been removed -- Struct `ProximityPlacementGroupsClientUpdateResult` has been removed -- Struct `ResourceSKUsClientListPager` has been removed -- Struct `ResourceSKUsClientListResult` has been removed -- Struct `RestorePointCollectionsClientCreateOrUpdateResult` has been removed -- Struct `RestorePointCollectionsClientDeletePoller` has been removed -- Struct `RestorePointCollectionsClientDeletePollerResponse` has been removed -- Struct `RestorePointCollectionsClientGetResult` has been removed -- Struct `RestorePointCollectionsClientListAllPager` has been removed -- Struct `RestorePointCollectionsClientListAllResult` has been removed -- Struct `RestorePointCollectionsClientListPager` has been removed -- Struct `RestorePointCollectionsClientListResult` has been removed -- Struct `RestorePointCollectionsClientUpdateResult` has been removed -- Struct `RestorePointsClientCreatePoller` has been removed -- Struct `RestorePointsClientCreatePollerResponse` has been removed -- Struct `RestorePointsClientCreateResult` has been removed -- Struct `RestorePointsClientDeletePoller` has been removed -- Struct `RestorePointsClientDeletePollerResponse` has been removed -- Struct `RestorePointsClientGetResult` has been removed -- Struct `SSHPublicKeysClientCreateResult` has been removed -- Struct `SSHPublicKeysClientGenerateKeyPairResult` has been removed -- Struct `SSHPublicKeysClientGetResult` has been removed -- Struct `SSHPublicKeysClientListByResourceGroupPager` has been removed -- Struct `SSHPublicKeysClientListByResourceGroupResult` has been removed -- Struct `SSHPublicKeysClientListBySubscriptionPager` has been removed -- Struct `SSHPublicKeysClientListBySubscriptionResult` has been removed -- Struct `SSHPublicKeysClientUpdateResult` has been removed -- Struct `SharedGalleriesClientGetResult` has been removed -- Struct `SharedGalleriesClientListPager` has been removed -- Struct `SharedGalleriesClientListResult` has been removed -- Struct `SharedGalleryImageVersionsClientGetResult` has been removed -- Struct `SharedGalleryImageVersionsClientListPager` has been removed -- Struct `SharedGalleryImageVersionsClientListResult` has been removed -- Struct `SharedGalleryImagesClientGetResult` has been removed -- Struct `SharedGalleryImagesClientListPager` has been removed -- Struct `SharedGalleryImagesClientListResult` has been removed -- Struct `SnapshotsClientCreateOrUpdatePoller` has been removed -- Struct `SnapshotsClientCreateOrUpdatePollerResponse` has been removed -- Struct `SnapshotsClientCreateOrUpdateResult` has been removed -- Struct `SnapshotsClientDeletePoller` has been removed -- Struct `SnapshotsClientDeletePollerResponse` has been removed -- Struct `SnapshotsClientGetResult` has been removed -- Struct `SnapshotsClientGrantAccessPoller` has been removed -- Struct `SnapshotsClientGrantAccessPollerResponse` has been removed -- Struct `SnapshotsClientGrantAccessResult` has been removed -- Struct `SnapshotsClientListByResourceGroupPager` has been removed -- Struct `SnapshotsClientListByResourceGroupResult` has been removed -- Struct `SnapshotsClientListPager` has been removed -- Struct `SnapshotsClientListResult` has been removed -- Struct `SnapshotsClientRevokeAccessPoller` has been removed -- Struct `SnapshotsClientRevokeAccessPollerResponse` has been removed -- Struct `SnapshotsClientUpdatePoller` has been removed -- Struct `SnapshotsClientUpdatePollerResponse` has been removed -- Struct `SnapshotsClientUpdateResult` has been removed -- Struct `UsageClientListPager` has been removed -- Struct `UsageClientListResult` has been removed -- Struct `VirtualMachineExtensionImagesClientGetResult` has been removed -- Struct `VirtualMachineExtensionImagesClientListTypesResult` has been removed -- Struct `VirtualMachineExtensionImagesClientListVersionsResult` has been removed -- Struct `VirtualMachineExtensionsClientCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineExtensionsClientCreateOrUpdateResult` has been removed -- Struct `VirtualMachineExtensionsClientDeletePoller` has been removed -- Struct `VirtualMachineExtensionsClientDeletePollerResponse` has been removed -- Struct `VirtualMachineExtensionsClientGetResult` has been removed -- Struct `VirtualMachineExtensionsClientListResult` has been removed -- Struct `VirtualMachineExtensionsClientUpdatePoller` has been removed -- Struct `VirtualMachineExtensionsClientUpdatePollerResponse` has been removed -- Struct `VirtualMachineExtensionsClientUpdateResult` has been removed -- Struct `VirtualMachineImagesClientGetResult` has been removed -- Struct `VirtualMachineImagesClientListOffersResult` has been removed -- Struct `VirtualMachineImagesClientListPublishersResult` has been removed -- Struct `VirtualMachineImagesClientListResult` has been removed -- Struct `VirtualMachineImagesClientListSKUsResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneClientGetResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneClientListOffersResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneClientListPublishersResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneClientListResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneClientListSKUsResult` has been removed -- Struct `VirtualMachineRunCommandsClientCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineRunCommandsClientCreateOrUpdateResult` has been removed -- Struct `VirtualMachineRunCommandsClientDeletePoller` has been removed -- Struct `VirtualMachineRunCommandsClientDeletePollerResponse` has been removed -- Struct `VirtualMachineRunCommandsClientGetByVirtualMachineResult` has been removed -- Struct `VirtualMachineRunCommandsClientGetResult` has been removed -- Struct `VirtualMachineRunCommandsClientListByVirtualMachinePager` has been removed -- Struct `VirtualMachineRunCommandsClientListByVirtualMachineResult` has been removed -- Struct `VirtualMachineRunCommandsClientListPager` has been removed -- Struct `VirtualMachineRunCommandsClientListResult` has been removed -- Struct `VirtualMachineRunCommandsClientUpdatePoller` has been removed -- Struct `VirtualMachineRunCommandsClientUpdatePollerResponse` has been removed -- Struct `VirtualMachineRunCommandsClientUpdateResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientDeletePoller` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientGetResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientListPager` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientListResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsClientUpdateResult` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesClientCancelPoller` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResult` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientDeletePoller` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientGetResult` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientListResult` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsClientUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientDeletePoller` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientGetResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientListPager` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientListResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMsClientDeallocatePoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientDeallocatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientDeletePoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientGetInstanceViewResult` has been removed -- Struct `VirtualMachineScaleSetVMsClientGetResult` has been removed -- Struct `VirtualMachineScaleSetVMsClientListPager` has been removed -- Struct `VirtualMachineScaleSetVMsClientListResult` has been removed -- Struct `VirtualMachineScaleSetVMsClientPerformMaintenancePoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientPowerOffPoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientPowerOffPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientRedeployPoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientRedeployPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientReimageAllPoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientReimageAllPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientReimagePoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientReimagePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientRestartPoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientRestartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResult` has been removed -- Struct `VirtualMachineScaleSetVMsClientRunCommandPoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientRunCommandPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientRunCommandResult` has been removed -- Struct `VirtualMachineScaleSetVMsClientStartPoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientStartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMsClientUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsClientUpdateResult` has been removed -- Struct `VirtualMachineScaleSetsClientCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetsClientDeallocatePoller` has been removed -- Struct `VirtualMachineScaleSetsClientDeallocatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientDeleteInstancesPoller` has been removed -- Struct `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientDeletePoller` has been removed -- Struct `VirtualMachineScaleSetsClientDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResult` has been removed -- Struct `VirtualMachineScaleSetsClientGetInstanceViewResult` has been removed -- Struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager` has been removed -- Struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResult` has been removed -- Struct `VirtualMachineScaleSetsClientGetResult` has been removed -- Struct `VirtualMachineScaleSetsClientListAllPager` has been removed -- Struct `VirtualMachineScaleSetsClientListAllResult` has been removed -- Struct `VirtualMachineScaleSetsClientListByLocationPager` has been removed -- Struct `VirtualMachineScaleSetsClientListByLocationResult` has been removed -- Struct `VirtualMachineScaleSetsClientListPager` has been removed -- Struct `VirtualMachineScaleSetsClientListResult` has been removed -- Struct `VirtualMachineScaleSetsClientListSKUsPager` has been removed -- Struct `VirtualMachineScaleSetsClientListSKUsResult` has been removed -- Struct `VirtualMachineScaleSetsClientPerformMaintenancePoller` has been removed -- Struct `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientPowerOffPoller` has been removed -- Struct `VirtualMachineScaleSetsClientPowerOffPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientRedeployPoller` has been removed -- Struct `VirtualMachineScaleSetsClientRedeployPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientReimageAllPoller` has been removed -- Struct `VirtualMachineScaleSetsClientReimageAllPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientReimagePoller` has been removed -- Struct `VirtualMachineScaleSetsClientReimagePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientRestartPoller` has been removed -- Struct `VirtualMachineScaleSetsClientRestartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller` has been removed -- Struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientStartPoller` has been removed -- Struct `VirtualMachineScaleSetsClientStartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientUpdateInstancesPoller` has been removed -- Struct `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetsClientUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsClientUpdateResult` has been removed -- Struct `VirtualMachineSizesClientListResult` has been removed -- Struct `VirtualMachinesClientAssessPatchesPoller` has been removed -- Struct `VirtualMachinesClientAssessPatchesPollerResponse` has been removed -- Struct `VirtualMachinesClientAssessPatchesResult` has been removed -- Struct `VirtualMachinesClientCapturePoller` has been removed -- Struct `VirtualMachinesClientCapturePollerResponse` has been removed -- Struct `VirtualMachinesClientCaptureResult` has been removed -- Struct `VirtualMachinesClientConvertToManagedDisksPoller` has been removed -- Struct `VirtualMachinesClientConvertToManagedDisksPollerResponse` has been removed -- Struct `VirtualMachinesClientCreateOrUpdatePoller` has been removed -- Struct `VirtualMachinesClientCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachinesClientCreateOrUpdateResult` has been removed -- Struct `VirtualMachinesClientDeallocatePoller` has been removed -- Struct `VirtualMachinesClientDeallocatePollerResponse` has been removed -- Struct `VirtualMachinesClientDeletePoller` has been removed -- Struct `VirtualMachinesClientDeletePollerResponse` has been removed -- Struct `VirtualMachinesClientGetResult` has been removed -- Struct `VirtualMachinesClientInstallPatchesPoller` has been removed -- Struct `VirtualMachinesClientInstallPatchesPollerResponse` has been removed -- Struct `VirtualMachinesClientInstallPatchesResult` has been removed -- Struct `VirtualMachinesClientInstanceViewResult` has been removed -- Struct `VirtualMachinesClientListAllPager` has been removed -- Struct `VirtualMachinesClientListAllResult` has been removed -- Struct `VirtualMachinesClientListAvailableSizesResult` has been removed -- Struct `VirtualMachinesClientListByLocationPager` has been removed -- Struct `VirtualMachinesClientListByLocationResult` has been removed -- Struct `VirtualMachinesClientListPager` has been removed -- Struct `VirtualMachinesClientListResult` has been removed -- Struct `VirtualMachinesClientPerformMaintenancePoller` has been removed -- Struct `VirtualMachinesClientPerformMaintenancePollerResponse` has been removed -- Struct `VirtualMachinesClientPowerOffPoller` has been removed -- Struct `VirtualMachinesClientPowerOffPollerResponse` has been removed -- Struct `VirtualMachinesClientReapplyPoller` has been removed -- Struct `VirtualMachinesClientReapplyPollerResponse` has been removed -- Struct `VirtualMachinesClientRedeployPoller` has been removed -- Struct `VirtualMachinesClientRedeployPollerResponse` has been removed -- Struct `VirtualMachinesClientReimagePoller` has been removed -- Struct `VirtualMachinesClientReimagePollerResponse` has been removed -- Struct `VirtualMachinesClientRestartPoller` has been removed -- Struct `VirtualMachinesClientRestartPollerResponse` has been removed -- Struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResult` has been removed -- Struct `VirtualMachinesClientRunCommandPoller` has been removed -- Struct `VirtualMachinesClientRunCommandPollerResponse` has been removed -- Struct `VirtualMachinesClientRunCommandResult` has been removed -- Struct `VirtualMachinesClientStartPoller` has been removed -- Struct `VirtualMachinesClientStartPollerResponse` has been removed -- Struct `VirtualMachinesClientUpdatePoller` has been removed -- Struct `VirtualMachinesClientUpdatePollerResponse` has been removed -- Struct `VirtualMachinesClientUpdateResult` has been removed -- Field `RawResponse` of struct `CloudServicesClientReimageResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientRestartResponse` has been removed -- Field `VirtualMachineRunCommandsClientUpdateResult` of struct `VirtualMachineRunCommandsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineRunCommandsClientUpdateResponse` has been removed -- Field `CommunityGalleryImageVersionsClientGetResult` of struct `CommunityGalleryImageVersionsClientGetResponse` has been removed -- Field `RawResponse` of struct `CommunityGalleryImageVersionsClientGetResponse` has been removed -- Field `DiskAccessesClientGetResult` of struct `DiskAccessesClientGetResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientGetResponse` has been removed -- Field `GalleryApplicationVersionsClientCreateOrUpdateResult` of struct `GalleryApplicationVersionsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationVersionsClientCreateOrUpdateResponse` has been removed -- Field `CloudServicesUpdateDomainClientGetUpdateDomainResult` of struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse` has been removed -- Field `RawResponse` of struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse` has been removed -- Field `VirtualMachineScaleSetsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse` has been removed -- Field `DiskRestorePointClientGrantAccessResult` of struct `DiskRestorePointClientGrantAccessResponse` has been removed -- Field `RawResponse` of struct `DiskRestorePointClientGrantAccessResponse` has been removed -- Field `ImagesClientListResult` of struct `ImagesClientListResponse` has been removed -- Field `RawResponse` of struct `ImagesClientListResponse` has been removed -- Field `SharedGalleriesClientListResult` of struct `SharedGalleriesClientListResponse` has been removed -- Field `RawResponse` of struct `SharedGalleriesClientListResponse` has been removed -- Field `VirtualMachineExtensionsClientUpdateResult` of struct `VirtualMachineExtensionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientDeleteResponse` has been removed -- Field `VirtualMachineScaleSetRollingUpgradesClientGetLatestResult` of struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse` has been removed -- Field `RawResponse` of struct `DisksClientDeleteResponse` has been removed -- Field `DiskAccessesClientListResult` of struct `DiskAccessesClientListResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientRestartResponse` has been removed -- Field `GallerySharingProfileClientUpdateResult` of struct `GallerySharingProfileClientUpdateResponse` has been removed -- Field `RawResponse` of struct `GallerySharingProfileClientUpdateResponse` has been removed -- Field `VirtualMachineExtensionsClientListResult` of struct `VirtualMachineExtensionsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionsClientListResponse` has been removed -- Field `GalleryImageVersionsClientListByGalleryImageResult` of struct `GalleryImageVersionsClientListByGalleryImageResponse` has been removed -- Field `RawResponse` of struct `GalleryImageVersionsClientListByGalleryImageResponse` has been removed -- Field `DedicatedHostGroupsClientListByResourceGroupResult` of struct `DedicatedHostGroupsClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostGroupsClientListByResourceGroupResponse` has been removed -- Field `VirtualMachineRunCommandsClientGetByVirtualMachineResult` of struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse` has been removed -- Field `CloudServicesClientGetInstanceViewResult` of struct `CloudServicesClientGetInstanceViewResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientGetInstanceViewResponse` has been removed -- Field `VirtualMachineImagesClientListPublishersResult` of struct `VirtualMachineImagesClientListPublishersResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesClientListPublishersResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientPerformMaintenanceResponse` has been removed -- Field `VirtualMachineImagesClientListSKUsResult` of struct `VirtualMachineImagesClientListSKUsResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesClientListSKUsResponse` has been removed -- Field `SSHPublicKeysClientCreateResult` of struct `SSHPublicKeysClientCreateResponse` has been removed -- Field `RawResponse` of struct `SSHPublicKeysClientCreateResponse` has been removed -- Field `CloudServiceOperatingSystemsClientGetOSVersionResult` of struct `CloudServiceOperatingSystemsClientGetOSVersionResponse` has been removed -- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientGetOSVersionResponse` has been removed -- Field `VirtualMachineImagesEdgeZoneClientListResult` of struct `VirtualMachineImagesEdgeZoneClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListResponse` has been removed -- Field `VirtualMachineScaleSetVMsClientGetResult` of struct `VirtualMachineScaleSetVMsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientGetResponse` has been removed -- Field `GalleriesClientListByResourceGroupResult` of struct `GalleriesClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `GalleriesClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientGeneralizeResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientRebuildResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientDeleteResponse` has been removed -- Field `VirtualMachineScaleSetVMsClientListResult` of struct `VirtualMachineScaleSetVMsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientListResponse` has been removed -- Field `CapacityReservationGroupsClientListByResourceGroupResult` of struct `CapacityReservationGroupsClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationGroupsClientListByResourceGroupResponse` has been removed -- Field `CloudServicesUpdateDomainClientListUpdateDomainsResult` of struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse` has been removed -- Field `RawResponse` of struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse` has been removed -- Field `VirtualMachineScaleSetsClientGetResult` of struct `VirtualMachineScaleSetsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientDeleteResponse` has been removed -- Field `CloudServiceRoleInstancesClientGetResult` of struct `CloudServiceRoleInstancesClientGetResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientGetResponse` has been removed -- Field `AvailabilitySetsClientListResult` of struct `AvailabilitySetsClientListResponse` has been removed -- Field `RawResponse` of struct `AvailabilitySetsClientListResponse` has been removed -- Field `VirtualMachineExtensionsClientGetResult` of struct `VirtualMachineExtensionsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionsClientGetResponse` has been removed -- Field `VirtualMachineScaleSetVMRunCommandsClientListResult` of struct `VirtualMachineScaleSetVMRunCommandsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientListResponse` has been removed -- Field `VirtualMachinesClientAssessPatchesResult` of struct `VirtualMachinesClientAssessPatchesResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientAssessPatchesResponse` has been removed -- Field `DiskAccessesClientGetAPrivateEndpointConnectionResult` of struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientUpdateInstancesResponse` has been removed -- Field `CapacityReservationGroupsClientListBySubscriptionResult` of struct `CapacityReservationGroupsClientListBySubscriptionResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationGroupsClientListBySubscriptionResponse` has been removed -- Field `SSHPublicKeysClientGenerateKeyPairResult` of struct `SSHPublicKeysClientGenerateKeyPairResponse` has been removed -- Field `RawResponse` of struct `SSHPublicKeysClientGenerateKeyPairResponse` has been removed -- Field `DiskEncryptionSetsClientListByResourceGroupResult` of struct `DiskEncryptionSetsClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `DiskEncryptionSetsClientListByResourceGroupResponse` has been removed -- Field `GalleryImageVersionsClientCreateOrUpdateResult` of struct `GalleryImageVersionsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryImageVersionsClientCreateOrUpdateResponse` has been removed -- Field `SharedGalleryImageVersionsClientListResult` of struct `SharedGalleryImageVersionsClientListResponse` has been removed -- Field `RawResponse` of struct `SharedGalleryImageVersionsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientPerformMaintenanceResponse` has been removed -- Field `VirtualMachinesClientRetrieveBootDiagnosticsDataResult` of struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientSimulateEvictionResponse` has been removed -- Field `VirtualMachineImagesEdgeZoneClientGetResult` of struct `VirtualMachineImagesEdgeZoneClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientGetResponse` has been removed -- Field `VirtualMachineImagesEdgeZoneClientListSKUsResult` of struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse` has been removed -- Field `CommunityGalleriesClientGetResult` of struct `CommunityGalleriesClientGetResponse` has been removed -- Field `RawResponse` of struct `CommunityGalleriesClientGetResponse` has been removed -- Field `GalleryApplicationsClientCreateOrUpdateResult` of struct `GalleryApplicationsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationsClientCreateOrUpdateResponse` has been removed -- Field `VirtualMachinesClientInstanceViewResult` of struct `VirtualMachinesClientInstanceViewResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientInstanceViewResponse` has been removed -- Field `DiskRestorePointClientGetResult` of struct `DiskRestorePointClientGetResponse` has been removed -- Field `RawResponse` of struct `DiskRestorePointClientGetResponse` has been removed -- Field `SharedGalleriesClientGetResult` of struct `SharedGalleriesClientGetResponse` has been removed -- Field `RawResponse` of struct `SharedGalleriesClientGetResponse` has been removed -- Field `DiskAccessesClientGetPrivateLinkResourcesResult` of struct `DiskAccessesClientGetPrivateLinkResourcesResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientGetPrivateLinkResourcesResponse` has been removed -- Field `CloudServiceOperatingSystemsClientListOSFamiliesResult` of struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse` has been removed -- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse` has been removed -- Field `VirtualMachineScaleSetVMExtensionsClientGetResult` of struct `VirtualMachineScaleSetVMExtensionsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientSimulateEvictionResponse` has been removed -- Field `RawResponse` of struct `RestorePointCollectionsClientDeleteResponse` has been removed -- Field `VirtualMachinesClientCaptureResult` of struct `VirtualMachinesClientCaptureResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientCaptureResponse` has been removed -- Field `GalleryApplicationsClientListByGalleryResult` of struct `GalleryApplicationsClientListByGalleryResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationsClientListByGalleryResponse` has been removed -- Field `VirtualMachineScaleSetsClientListByLocationResult` of struct `VirtualMachineScaleSetsClientListByLocationResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListByLocationResponse` has been removed -- Field `CloudServiceRolesClientGetResult` of struct `CloudServiceRolesClientGetResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRolesClientGetResponse` has been removed -- Field `CommunityGalleryImagesClientGetResult` of struct `CommunityGalleryImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `CommunityGalleryImagesClientGetResponse` has been removed -- Field `SharedGalleryImagesClientGetResult` of struct `SharedGalleryImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `SharedGalleryImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientReimageAllResponse` has been removed -- Field `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResult` of struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientConvertToManagedDisksResponse` has been removed -- Field `DisksClientGrantAccessResult` of struct `DisksClientGrantAccessResponse` has been removed -- Field `RawResponse` of struct `DisksClientGrantAccessResponse` has been removed -- Field `RestorePointCollectionsClientGetResult` of struct `RestorePointCollectionsClientGetResponse` has been removed -- Field `RawResponse` of struct `RestorePointCollectionsClientGetResponse` has been removed -- Field `VirtualMachineSizesClientListResult` of struct `VirtualMachineSizesClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineSizesClientListResponse` has been removed -- Field `SSHPublicKeysClientListByResourceGroupResult` of struct `SSHPublicKeysClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `SSHPublicKeysClientListByResourceGroupResponse` has been removed -- Field `VirtualMachinesClientInstallPatchesResult` of struct `VirtualMachinesClientInstallPatchesResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientInstallPatchesResponse` has been removed -- Field `RawResponse` of struct `RestorePointsClientDeleteResponse` has been removed -- Field `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResult` of struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse` has been removed -- Field `GalleriesClientGetResult` of struct `GalleriesClientGetResponse` has been removed -- Field `RawResponse` of struct `GalleriesClientGetResponse` has been removed -- Field `CloudServiceRoleInstancesClientGetInstanceViewResult` of struct `CloudServiceRoleInstancesClientGetInstanceViewResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientGetInstanceViewResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientDeleteAPrivateEndpointConnectionResponse` has been removed -- Field `DisksClientGetResult` of struct `DisksClientGetResponse` has been removed -- Field `RawResponse` of struct `DisksClientGetResponse` has been removed -- Field `VirtualMachineScaleSetVMsClientGetInstanceViewResult` of struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientDeleteInstancesResponse` has been removed -- Field `CapacityReservationGroupsClientUpdateResult` of struct `CapacityReservationGroupsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationGroupsClientUpdateResponse` has been removed -- Field `VirtualMachineScaleSetVMExtensionsClientUpdateResult` of struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse` has been removed -- Field `DiskRestorePointClientListByRestorePointResult` of struct `DiskRestorePointClientListByRestorePointResponse` has been removed -- Field `RawResponse` of struct `DiskRestorePointClientListByRestorePointResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientRebuildResponse` has been removed -- Field `VirtualMachinesClientListByLocationResult` of struct `VirtualMachinesClientListByLocationResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientListByLocationResponse` has been removed -- Field `DedicatedHostGroupsClientUpdateResult` of struct `DedicatedHostGroupsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostGroupsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientRedeployResponse` has been removed -- Field `VirtualMachineScaleSetExtensionsClientListResult` of struct `VirtualMachineScaleSetExtensionsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientListResponse` has been removed -- Field `RestorePointCollectionsClientUpdateResult` of struct `RestorePointCollectionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `RestorePointCollectionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientDeleteResponse` has been removed -- Field `DisksClientCreateOrUpdateResult` of struct `DisksClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `DisksClientCreateOrUpdateResponse` has been removed -- Field `AvailabilitySetsClientCreateOrUpdateResult` of struct `AvailabilitySetsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `AvailabilitySetsClientCreateOrUpdateResponse` has been removed -- Field `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse` has been removed -- Field `SharedGalleryImageVersionsClientGetResult` of struct `SharedGalleryImageVersionsClientGetResponse` has been removed -- Field `RawResponse` of struct `SharedGalleryImageVersionsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientRedeployResponse` has been removed -- Field `CapacityReservationsClientListByCapacityReservationGroupResult` of struct `CapacityReservationsClientListByCapacityReservationGroupResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationsClientListByCapacityReservationGroupResponse` has been removed -- Field `VirtualMachineScaleSetsClientListSKUsResult` of struct `VirtualMachineScaleSetsClientListSKUsResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListSKUsResponse` has been removed -- Field `DiskEncryptionSetsClientListAssociatedResourcesResult` of struct `DiskEncryptionSetsClientListAssociatedResourcesResponse` has been removed -- Field `RawResponse` of struct `DiskEncryptionSetsClientListAssociatedResourcesResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientDeleteResponse` has been removed -- Field `VirtualMachineScaleSetsClientUpdateResult` of struct `VirtualMachineScaleSetsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientUpdateResponse` has been removed -- Field `GalleriesClientListResult` of struct `GalleriesClientListResponse` has been removed -- Field `RawResponse` of struct `GalleriesClientListResponse` has been removed -- Field `RawResponse` of struct `ImagesClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientStartResponse` has been removed -- Field `CloudServicesClientUpdateResult` of struct `CloudServicesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientUpdateResponse` has been removed -- Field `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse` has been removed -- Field `ResourceSKUsClientListResult` of struct `ResourceSKUsClientListResponse` has been removed -- Field `RawResponse` of struct `ResourceSKUsClientListResponse` has been removed -- Field `RestorePointCollectionsClientListAllResult` of struct `RestorePointCollectionsClientListAllResponse` has been removed -- Field `RawResponse` of struct `RestorePointCollectionsClientListAllResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostsClientRestartResponse` has been removed -- Field `RestorePointCollectionsClientListResult` of struct `RestorePointCollectionsClientListResponse` has been removed -- Field `RawResponse` of struct `RestorePointCollectionsClientListResponse` has been removed -- Field `ImagesClientCreateOrUpdateResult` of struct `ImagesClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `ImagesClientCreateOrUpdateResponse` has been removed -- Field `VirtualMachineRunCommandsClientListResult` of struct `VirtualMachineRunCommandsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineRunCommandsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientReimageResponse` has been removed -- Field `VirtualMachineScaleSetVMExtensionsClientListResult` of struct `VirtualMachineScaleSetVMExtensionsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientListResponse` has been removed -- Field `DiskAccessesClientUpdateResult` of struct `DiskAccessesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientDeleteResponse` has been removed -- Field `VirtualMachineScaleSetVMRunCommandsClientGetResult` of struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse` has been removed -- Field `VirtualMachinesClientListResult` of struct `VirtualMachinesClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientListResponse` has been removed -- Field `GalleryApplicationsClientUpdateResult` of struct `GalleryApplicationsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationsClientDeleteResponse` has been removed -- Field `RawResponse` of struct `DiskRestorePointClientRevokeAccessResponse` has been removed -- Field `GalleriesClientUpdateResult` of struct `GalleriesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleriesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `DiskEncryptionSetsClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse` has been removed -- Field `CloudServiceRolesClientListResult` of struct `CloudServiceRolesClientListResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRolesClientListResponse` has been removed -- Field `RawResponse` of struct `GalleryImagesClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientReimageResponse` has been removed -- Field `DiskEncryptionSetsClientListResult` of struct `DiskEncryptionSetsClientListResponse` has been removed -- Field `RawResponse` of struct `DiskEncryptionSetsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientRestartResponse` has been removed -- Field `GalleryImagesClientUpdateResult` of struct `GalleryImagesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryImagesClientUpdateResponse` has been removed -- Field `DiskEncryptionSetsClientCreateOrUpdateResult` of struct `DiskEncryptionSetsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `DiskEncryptionSetsClientCreateOrUpdateResponse` has been removed -- Field `DedicatedHostGroupsClientCreateOrUpdateResult` of struct `DedicatedHostGroupsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostGroupsClientCreateOrUpdateResponse` has been removed -- Field `ProximityPlacementGroupsClientListByResourceGroupResult` of struct `ProximityPlacementGroupsClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `ProximityPlacementGroupsClientListByResourceGroupResponse` has been removed -- Field `VirtualMachinesClientListAllResult` of struct `VirtualMachinesClientListAllResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientListAllResponse` has been removed -- Field `SSHPublicKeysClientGetResult` of struct `SSHPublicKeysClientGetResponse` has been removed -- Field `RawResponse` of struct `SSHPublicKeysClientGetResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientRestartResponse` has been removed -- Field `VirtualMachineImagesEdgeZoneClientListOffersResult` of struct `VirtualMachineImagesEdgeZoneClientListOffersResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListOffersResponse` has been removed -- Field `VirtualMachineImagesClientListResult` of struct `VirtualMachineImagesClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesClientListResponse` has been removed -- Field `RestorePointCollectionsClientCreateOrUpdateResult` of struct `RestorePointCollectionsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `RestorePointCollectionsClientCreateOrUpdateResponse` has been removed -- Field `CloudServicesClientListResult` of struct `CloudServicesClientListResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientListResponse` has been removed -- Field `VirtualMachinesClientRunCommandResult` of struct `VirtualMachinesClientRunCommandResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientRunCommandResponse` has been removed -- Field `CapacityReservationsClientCreateOrUpdateResult` of struct `CapacityReservationsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationsClientCreateOrUpdateResponse` has been removed -- Field `VirtualMachineScaleSetsClientListAllResult` of struct `VirtualMachineScaleSetsClientListAllResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListAllResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientRevokeAccessResponse` has been removed -- Field `VirtualMachinesClientCreateOrUpdateResult` of struct `VirtualMachinesClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientDeleteResponse` has been removed -- Field `CloudServiceRoleInstancesClientListResult` of struct `CloudServiceRoleInstancesClientListResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientListResponse` has been removed -- Field `GalleryImageVersionsClientUpdateResult` of struct `GalleryImageVersionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryImageVersionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientStartResponse` has been removed -- Field `ImagesClientListByResourceGroupResult` of struct `ImagesClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `ImagesClientListByResourceGroupResponse` has been removed -- Field `SharedGalleryImagesClientListResult` of struct `SharedGalleryImagesClientListResponse` has been removed -- Field `RawResponse` of struct `SharedGalleryImagesClientListResponse` has been removed -- Field `ProximityPlacementGroupsClientGetResult` of struct `ProximityPlacementGroupsClientGetResponse` has been removed -- Field `RawResponse` of struct `ProximityPlacementGroupsClientGetResponse` has been removed -- Field `GalleryApplicationsClientGetResult` of struct `GalleryApplicationsClientGetResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationsClientGetResponse` has been removed -- Field `DiskEncryptionSetsClientGetResult` of struct `DiskEncryptionSetsClientGetResponse` has been removed -- Field `RawResponse` of struct `DiskEncryptionSetsClientGetResponse` has been removed -- Field `DedicatedHostsClientGetResult` of struct `DedicatedHostsClientGetResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostsClientGetResponse` has been removed -- Field `VirtualMachinesClientUpdateResult` of struct `VirtualMachinesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientUpdateResponse` has been removed -- Field `CapacityReservationsClientGetResult` of struct `CapacityReservationsClientGetResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationsClientGetResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientReimageResponse` has been removed -- Field `RawResponse` of struct `GalleryImageVersionsClientDeleteResponse` has been removed -- Field `CloudServiceOperatingSystemsClientGetOSFamilyResult` of struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse` has been removed -- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientStartResponse` has been removed -- Field `SSHPublicKeysClientListBySubscriptionResult` of struct `SSHPublicKeysClientListBySubscriptionResponse` has been removed -- Field `RawResponse` of struct `SSHPublicKeysClientListBySubscriptionResponse` has been removed -- Field `VirtualMachinesClientGetResult` of struct `VirtualMachinesClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientDeallocateResponse` has been removed -- Field `VirtualMachineRunCommandsClientCreateOrUpdateResult` of struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationVersionsClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientDeleteResponse` has been removed -- Field `GalleryImagesClientCreateOrUpdateResult` of struct `GalleryImagesClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryImagesClientCreateOrUpdateResponse` has been removed -- Field `DiskAccessesClientUpdateAPrivateEndpointConnectionResult` of struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse` has been removed -- Field `UsageClientListResult` of struct `UsageClientListResponse` has been removed -- Field `RawResponse` of struct `UsageClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRestartResponse` has been removed -- Field `AvailabilitySetsClientUpdateResult` of struct `AvailabilitySetsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `AvailabilitySetsClientUpdateResponse` has been removed -- Field `RestorePointsClientCreateResult` of struct `RestorePointsClientCreateResponse` has been removed -- Field `RawResponse` of struct `RestorePointsClientCreateResponse` has been removed -- Field `ImagesClientGetResult` of struct `ImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `ImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionsClientDeleteResponse` has been removed -- Field `RawResponse` of struct `CloudServicesUpdateDomainClientWalkUpdateDomainResponse` has been removed -- Field `CapacityReservationGroupsClientGetResult` of struct `CapacityReservationGroupsClientGetResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationGroupsClientGetResponse` has been removed -- Field `ProximityPlacementGroupsClientCreateOrUpdateResult` of struct `ProximityPlacementGroupsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `ProximityPlacementGroupsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientCancelResponse` has been removed -- Field `VirtualMachineScaleSetExtensionsClientGetResult` of struct `VirtualMachineScaleSetExtensionsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientGetResponse` has been removed -- Field `RawResponse` of struct `AvailabilitySetsClientDeleteResponse` has been removed -- Field `LogAnalyticsClientExportThrottledRequestsResult` of struct `LogAnalyticsClientExportThrottledRequestsResponse` has been removed -- Field `RawResponse` of struct `LogAnalyticsClientExportThrottledRequestsResponse` has been removed -- Field `OperationsClientListResult` of struct `OperationsClientListResponse` has been removed -- Field `RawResponse` of struct `OperationsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse` has been removed -- Field `SnapshotsClientGetResult` of struct `SnapshotsClientGetResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientGetResponse` has been removed -- Field `VirtualMachinesClientListAvailableSizesResult` of struct `VirtualMachinesClientListAvailableSizesResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientListAvailableSizesResponse` has been removed -- Field `CloudServicesClientCreateOrUpdateResult` of struct `CloudServicesClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientCreateOrUpdateResponse` has been removed -- Field `DisksClientListResult` of struct `DisksClientListResponse` has been removed -- Field `RawResponse` of struct `DisksClientListResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientDeleteResponse` has been removed -- Field `CloudServicesClientGetResult` of struct `CloudServicesClientGetResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientGetResponse` has been removed -- Field `VirtualMachineImagesClientGetResult` of struct `VirtualMachineImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesClientGetResponse` has been removed -- Field `DiskEncryptionSetsClientUpdateResult` of struct `DiskEncryptionSetsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `DiskEncryptionSetsClientUpdateResponse` has been removed -- Field `VirtualMachineScaleSetVMRunCommandsClientUpdateResult` of struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse` has been removed -- Field `DisksClientListByResourceGroupResult` of struct `DisksClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `DisksClientListByResourceGroupResponse` has been removed -- Field `VirtualMachineExtensionImagesClientGetResult` of struct `VirtualMachineExtensionImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineRunCommandsClientDeleteResponse` has been removed -- Field `VirtualMachineScaleSetsClientListResult` of struct `VirtualMachineScaleSetsClientListResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListResponse` has been removed -- Field `GalleryApplicationVersionsClientListByGalleryApplicationResult` of struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse` has been removed -- Field `RawResponse` of struct `ProximityPlacementGroupsClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientDeleteInstancesResponse` has been removed -- Field `GalleryApplicationVersionsClientGetResult` of struct `GalleryApplicationVersionsClientGetResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationVersionsClientGetResponse` has been removed -- Field `DiskAccessesClientListPrivateEndpointConnectionsResult` of struct `DiskAccessesClientListPrivateEndpointConnectionsResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientListPrivateEndpointConnectionsResponse` has been removed -- Field `VirtualMachineScaleSetVMsClientUpdateResult` of struct `VirtualMachineScaleSetVMsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientUpdateResponse` has been removed -- Field `DedicatedHostsClientUpdateResult` of struct `DedicatedHostsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostsClientUpdateResponse` has been removed -- Field `VirtualMachineScaleSetsClientGetInstanceViewResult` of struct `VirtualMachineScaleSetsClientGetInstanceViewResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientGetInstanceViewResponse` has been removed -- Field `DedicatedHostGroupsClientListBySubscriptionResult` of struct `DedicatedHostGroupsClientListBySubscriptionResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostGroupsClientListBySubscriptionResponse` has been removed -- Field `DiskAccessesClientCreateOrUpdateResult` of struct `DiskAccessesClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientCreateOrUpdateResponse` has been removed -- Field `DiskAccessesClientListByResourceGroupResult` of struct `DiskAccessesClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `DiskAccessesClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientPowerOffResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRedeployResponse` has been removed -- Field `RestorePointsClientGetResult` of struct `RestorePointsClientGetResponse` has been removed -- Field `RawResponse` of struct `RestorePointsClientGetResponse` has been removed -- Field `ProximityPlacementGroupsClientUpdateResult` of struct `ProximityPlacementGroupsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `ProximityPlacementGroupsClientUpdateResponse` has been removed -- Field `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResult` of struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientPowerOffResponse` has been removed -- Field `VirtualMachineImagesClientListOffersResult` of struct `VirtualMachineImagesClientListOffersResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesClientListOffersResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientDeallocateResponse` has been removed -- Field `RawResponse` of struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse` has been removed -- Field `SnapshotsClientListResult` of struct `SnapshotsClientListResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientListResponse` has been removed -- Field `CapacityReservationsClientUpdateResult` of struct `CapacityReservationsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientReimageAllResponse` has been removed -- Field `VirtualMachineExtensionImagesClientListVersionsResult` of struct `VirtualMachineExtensionImagesClientListVersionsResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionImagesClientListVersionsResponse` has been removed -- Field `VirtualMachineExtensionImagesClientListTypesResult` of struct `VirtualMachineExtensionImagesClientListTypesResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionImagesClientListTypesResponse` has been removed -- Field `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostsClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientStartResponse` has been removed -- Field `VirtualMachineScaleSetVMsClientRunCommandResult` of struct `VirtualMachineScaleSetVMsClientRunCommandResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRunCommandResponse` has been removed -- Field `ProximityPlacementGroupsClientListBySubscriptionResult` of struct `ProximityPlacementGroupsClientListBySubscriptionResponse` has been removed -- Field `RawResponse` of struct `ProximityPlacementGroupsClientListBySubscriptionResponse` has been removed -- Field `SnapshotsClientGrantAccessResult` of struct `SnapshotsClientGrantAccessResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientGrantAccessResponse` has been removed -- Field `VirtualMachineRunCommandsClientGetResult` of struct `VirtualMachineRunCommandsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineRunCommandsClientGetResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientPowerOffResponse` has been removed -- Field `GalleriesClientCreateOrUpdateResult` of struct `GalleriesClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleriesClientCreateOrUpdateResponse` has been removed -- Field `SnapshotsClientUpdateResult` of struct `SnapshotsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientUpdateResponse` has been removed -- Field `GalleryImagesClientGetResult` of struct `GalleryImagesClientGetResponse` has been removed -- Field `RawResponse` of struct `GalleryImagesClientGetResponse` has been removed -- Field `CloudServiceOperatingSystemsClientListOSVersionsResult` of struct `CloudServiceOperatingSystemsClientListOSVersionsResponse` has been removed -- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientListOSVersionsResponse` has been removed -- Field `DedicatedHostsClientCreateOrUpdateResult` of struct `DedicatedHostsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostsClientCreateOrUpdateResponse` has been removed -- Field `LogAnalyticsClientExportRequestRateByIntervalResult` of struct `LogAnalyticsClientExportRequestRateByIntervalResponse` has been removed -- Field `RawResponse` of struct `LogAnalyticsClientExportRequestRateByIntervalResponse` has been removed -- Field `RawResponse` of struct `GalleriesClientDeleteResponse` has been removed -- Field `AvailabilitySetsClientListAvailableSizesResult` of struct `AvailabilitySetsClientListAvailableSizesResponse` has been removed -- Field `RawResponse` of struct `AvailabilitySetsClientListAvailableSizesResponse` has been removed -- Field `DedicatedHostsClientListByHostGroupResult` of struct `DedicatedHostsClientListByHostGroupResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostsClientListByHostGroupResponse` has been removed -- Field `CloudServicesClientListAllResult` of struct `CloudServicesClientListAllResponse` has been removed -- Field `RawResponse` of struct `CloudServicesClientListAllResponse` has been removed -- Field `AvailabilitySetsClientGetResult` of struct `AvailabilitySetsClientGetResponse` has been removed -- Field `RawResponse` of struct `AvailabilitySetsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientReapplyResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientDeallocateResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationsClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse` has been removed -- Field `VirtualMachineExtensionsClientCreateOrUpdateResult` of struct `VirtualMachineExtensionsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineExtensionsClientCreateOrUpdateResponse` has been removed -- Field `AvailabilitySetsClientListBySubscriptionResult` of struct `AvailabilitySetsClientListBySubscriptionResponse` has been removed -- Field `RawResponse` of struct `AvailabilitySetsClientListBySubscriptionResponse` has been removed -- Field `ImagesClientUpdateResult` of struct `ImagesClientUpdateResponse` has been removed -- Field `RawResponse` of struct `ImagesClientUpdateResponse` has been removed -- Field `VirtualMachineScaleSetExtensionsClientUpdateResult` of struct `VirtualMachineScaleSetExtensionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationGroupsClientDeleteResponse` has been removed -- Field `GalleryImagesClientListByGalleryResult` of struct `GalleryImagesClientListByGalleryResponse` has been removed -- Field `RawResponse` of struct `GalleryImagesClientListByGalleryResponse` has been removed -- Field `VirtualMachineRunCommandsClientListByVirtualMachineResult` of struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse` has been removed -- Field `DisksClientUpdateResult` of struct `DisksClientUpdateResponse` has been removed -- Field `RawResponse` of struct `DisksClientUpdateResponse` has been removed -- Field `GalleryImageVersionsClientGetResult` of struct `GalleryImageVersionsClientGetResponse` has been removed -- Field `RawResponse` of struct `GalleryImageVersionsClientGetResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientDeleteResponse` has been removed -- Field `SnapshotsClientListByResourceGroupResult` of struct `SnapshotsClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientListByResourceGroupResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostGroupsClientDeleteResponse` has been removed -- Field `DedicatedHostGroupsClientGetResult` of struct `DedicatedHostGroupsClientGetResponse` has been removed -- Field `RawResponse` of struct `DedicatedHostGroupsClientGetResponse` has been removed -- Field `SSHPublicKeysClientUpdateResult` of struct `SSHPublicKeysClientUpdateResponse` has been removed -- Field `RawResponse` of struct `SSHPublicKeysClientUpdateResponse` has been removed -- Field `VirtualMachineImagesEdgeZoneClientListPublishersResult` of struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse` has been removed -- Field `RawResponse` of struct `SSHPublicKeysClientDeleteResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetsClientPowerOffResponse` has been removed -- Field `SnapshotsClientCreateOrUpdateResult` of struct `SnapshotsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `SnapshotsClientCreateOrUpdateResponse` has been removed -- Field `CapacityReservationGroupsClientCreateOrUpdateResult` of struct `CapacityReservationGroupsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `CapacityReservationGroupsClientCreateOrUpdateResponse` has been removed -- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientReimageResponse` has been removed -- Field `RawResponse` of struct `DisksClientRevokeAccessResponse` has been removed -- Field `RawResponse` of struct `VirtualMachinesClientPerformMaintenanceResponse` has been removed -- Field `GalleryApplicationVersionsClientUpdateResult` of struct `GalleryApplicationVersionsClientUpdateResponse` has been removed -- Field `RawResponse` of struct `GalleryApplicationVersionsClientUpdateResponse` has been removed - -### Features Added - -- New function `CommunityGalleryInfo.MarshalJSON() ([]byte, error)` -- New struct `CloudError` -- New struct `CommunityGalleryInfo` -- New struct `DiskRestorePointReplicationStatus` -- New struct `GalleryArtifactSource` -- New struct `ManagedArtifact` -- New field `ResumeToken` in struct `DedicatedHostsClientBeginUpdateOptions` -- New anonymous field `VirtualMachine` in struct `VirtualMachinesClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions` -- New anonymous field `GalleryList` in struct `GalleriesClientListResponse` -- New field `ResumeToken` in struct `VirtualMachineRunCommandsClientBeginUpdateOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginReimageOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginReimageAllOptions` -- New anonymous field `VirtualMachineScaleSetListResult` in struct `VirtualMachineScaleSetsClientListResponse` -- New anonymous field `GalleryImage` in struct `GalleryImagesClientUpdateResponse` -- New anonymous field `AvailabilitySet` in struct `AvailabilitySetsClientCreateOrUpdateResponse` -- New anonymous field `VirtualMachineScaleSetListSKUsResult` in struct `VirtualMachineScaleSetsClientListSKUsResponse` -- New anonymous field `DiskAccessList` in struct `DiskAccessesClientListResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginStartOptions` -- New field `VirtualMachineExtensionImageArray` in struct `VirtualMachineExtensionImagesClientListVersionsResponse` -- New anonymous field `VirtualMachineScaleSetVMInstanceView` in struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse` -- New field `Body` in struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions` -- New anonymous field `DiskAccess` in struct `DiskAccessesClientGetResponse` -- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginRestartOptions` -- New field `ResumeToken` in struct `RestorePointsClientBeginCreateOptions` -- New field `ResumeToken` in struct `DiskRestorePointClientBeginRevokeAccessOptions` -- New anonymous field `SSHPublicKeyGenerateKeyPairResult` in struct `SSHPublicKeysClientGenerateKeyPairResponse` -- New anonymous field `AvailabilitySetListResult` in struct `AvailabilitySetsClientListBySubscriptionResponse` -- New field `ResumeToken` in struct `CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions` -- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse` -- New field `ResumeToken` in struct `CloudServicesClientBeginDeleteOptions` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginConvertToManagedDisksOptions` -- New field `ResumeToken` in struct `CloudServicesClientBeginStartOptions` -- New field `ResumeToken` in struct `GalleryApplicationVersionsClientBeginDeleteOptions` -- New anonymous field `AccessURI` in struct `SnapshotsClientGrantAccessResponse` -- New anonymous field `Disk` in struct `DisksClientCreateOrUpdateResponse` -- New anonymous field `VirtualMachineListResult` in struct `VirtualMachinesClientListResponse` -- New field `ResumeToken` in struct `GalleryApplicationsClientBeginDeleteOptions` -- New anonymous field `VirtualMachineCaptureResult` in struct `VirtualMachinesClientCaptureResponse` -- New anonymous field `DiskEncryptionSetList` in struct `DiskEncryptionSetsClientListByResourceGroupResponse` -- New field `ResumeToken` in struct `CloudServicesClientBeginRebuildOptions` -- New anonymous field `VirtualMachineSizeListResult` in struct `VirtualMachineSizesClientListResponse` -- New anonymous field `RestorePointCollection` in struct `RestorePointCollectionsClientCreateOrUpdateResponse` -- New anonymous field `Snapshot` in struct `SnapshotsClientCreateOrUpdateResponse` -- New field `ResumeToken` in struct `GalleriesClientBeginCreateOrUpdateOptions` -- New anonymous field `ListUsagesResult` in struct `UsageClientListResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginRestartOptions` -- New anonymous field `DiskList` in struct `DisksClientListResponse` -- New field `ResumeToken` in struct `GalleryApplicationVersionsClientBeginCreateOrUpdateOptions` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginPerformMaintenanceOptions` -- New anonymous field `SharingUpdate` in struct `GallerySharingProfileClientUpdateResponse` -- New anonymous field `RetrieveBootDiagnosticsDataResult` in struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse` -- New field `ResumeToken` in struct `LogAnalyticsClientBeginExportRequestRateByIntervalOptions` -- New field `ResumeToken` in struct `SnapshotsClientBeginGrantAccessOptions` -- New anonymous field `CloudServiceInstanceView` in struct `CloudServicesClientGetInstanceViewResponse` -- New anonymous field `CapacityReservation` in struct `CapacityReservationsClientGetResponse` -- New anonymous field `ProximityPlacementGroup` in struct `ProximityPlacementGroupsClientCreateOrUpdateResponse` -- New anonymous field `DedicatedHostListResult` in struct `DedicatedHostsClientListByHostGroupResponse` -- New anonymous field `Disk` in struct `DisksClientUpdateResponse` -- New anonymous field `OperationListResult` in struct `OperationsClientListResponse` -- New anonymous field `VirtualMachineScaleSetVMListResult` in struct `VirtualMachineScaleSetVMsClientListResponse` -- New anonymous field `Image` in struct `ImagesClientUpdateResponse` -- New field `VirtualMachineExtensionImageArray` in struct `VirtualMachineExtensionImagesClientListTypesResponse` -- New anonymous field `SharedGalleryImageVersion` in struct `SharedGalleryImageVersionsClientGetResponse` -- New field `ResumeToken` in struct `DisksClientBeginCreateOrUpdateOptions` -- New anonymous field `CapacityReservationGroup` in struct `CapacityReservationGroupsClientCreateOrUpdateResponse` -- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse` -- New field `ResumeToken` in struct `DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions` -- New anonymous field `DiskRestorePointList` in struct `DiskRestorePointClientListByRestorePointResponse` -- New anonymous field `VirtualMachineScaleSet` in struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse` -- New anonymous field `VirtualMachineExtensionImage` in struct `VirtualMachineExtensionImagesClientGetResponse` -- New anonymous field `AccessURI` in struct `DisksClientGrantAccessResponse` -- New anonymous field `DedicatedHostGroupListResult` in struct `DedicatedHostGroupsClientListByResourceGroupResponse` -- New anonymous field `SSHPublicKeysGroupListResult` in struct `SSHPublicKeysClientListBySubscriptionResponse` -- New anonymous field `VirtualMachineImage` in struct `VirtualMachineImagesClientGetResponse` -- New anonymous field `RestorePointCollectionListResult` in struct `RestorePointCollectionsClientListAllResponse` -- New anonymous field `CapacityReservation` in struct `CapacityReservationsClientCreateOrUpdateResponse` -- New field `ResumeToken` in struct `RestorePointsClientBeginDeleteOptions` -- New anonymous field `VirtualMachineExtensionsListResult` in struct `VirtualMachineExtensionsClientListResponse` -- New anonymous field `RollingUpgradeStatusInfo` in struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions` -- New field `ResumeToken` in struct `GalleriesClientBeginUpdateOptions` -- New anonymous field `VirtualMachineListResult` in struct `VirtualMachinesClientListAllResponse` -- New anonymous field `Gallery` in struct `GalleriesClientUpdateResponse` -- New field `ResumeToken` in struct `CloudServicesClientBeginRestartOptions` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse` -- New anonymous field `VirtualMachineScaleSet` in struct `VirtualMachineScaleSetsClientGetResponse` -- New field `ResumeToken` in struct `GalleryImagesClientBeginDeleteOptions` -- New anonymous field `CapacityReservationGroupListResult` in struct `CapacityReservationGroupsClientListByResourceGroupResponse` -- New anonymous field `ImageListResult` in struct `ImagesClientListResponse` -- New anonymous field `DedicatedHost` in struct `DedicatedHostsClientGetResponse` -- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginDeleteOptions` -- New anonymous field `VirtualMachineScaleSetExtension` in struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse` -- New field `ResumeToken` in struct `CapacityReservationsClientBeginDeleteOptions` -- New anonymous field `VirtualMachineExtension` in struct `VirtualMachineExtensionsClientUpdateResponse` -- New field `ResumeToken` in struct `DisksClientBeginGrantAccessOptions` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListSKUsResponse` -- New anonymous field `ResourceURIList` in struct `DiskEncryptionSetsClientListAssociatedResourcesResponse` -- New anonymous field `OSFamily` in struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse` -- New anonymous field `GalleryApplicationVersion` in struct `GalleryApplicationVersionsClientCreateOrUpdateResponse` -- New anonymous field `RestorePoint` in struct `RestorePointsClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginRedeployOptions` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginUpdateOptions` -- New anonymous field `LogAnalyticsOperationResult` in struct `LogAnalyticsClientExportThrottledRequestsResponse` -- New anonymous field `UpdateDomain` in struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse` -- New anonymous field `VirtualMachineScaleSetVMExtension` in struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse` -- New anonymous field `CloudServiceRoleListResult` in struct `CloudServiceRolesClientListResponse` -- New field `ResumeToken` in struct `DiskEncryptionSetsClientBeginDeleteOptions` -- New anonymous field `DiskEncryptionSetList` in struct `DiskEncryptionSetsClientListResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginCreateOrUpdateOptions` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginDeallocateOptions` -- New anonymous field `CommunityGalleryImage` in struct `CommunityGalleryImagesClientGetResponse` -- New anonymous field `ImageListResult` in struct `ImagesClientListByResourceGroupResponse` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListPublishersResponse` -- New anonymous field `GalleryImageVersion` in struct `GalleryImageVersionsClientGetResponse` -- New anonymous field `VirtualMachineAssessPatchesResult` in struct `VirtualMachinesClientAssessPatchesResponse` -- New anonymous field `VirtualMachineScaleSetExtension` in struct `VirtualMachineScaleSetExtensionsClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginReimageOptions` -- New field `ResumeToken` in struct `DiskEncryptionSetsClientBeginUpdateOptions` -- New anonymous field `DiskRestorePoint` in struct `DiskRestorePointClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginRunCommandOptions` -- New anonymous field `VirtualMachineSizeListResult` in struct `VirtualMachinesClientListAvailableSizesResponse` -- New anonymous field `OSVersion` in struct `CloudServiceOperatingSystemsClientGetOSVersionResponse` -- New anonymous field `PrivateLinkResourceListResult` in struct `DiskAccessesClientGetPrivateLinkResourcesResponse` -- New anonymous field `GalleryApplication` in struct `GalleryApplicationsClientUpdateResponse` -- New anonymous field `CapacityReservationGroupListResult` in struct `CapacityReservationGroupsClientListBySubscriptionResponse` -- New field `ResumeToken` in struct `GalleryApplicationVersionsClientBeginUpdateOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions` -- New anonymous field `CloudService` in struct `CloudServicesClientUpdateResponse` -- New anonymous field `GalleryImageVersionList` in struct `GalleryImageVersionsClientListByGalleryImageResponse` -- New field `ResumeToken` in struct `SnapshotsClientBeginCreateOrUpdateOptions` -- New anonymous field `CloudService` in struct `CloudServicesClientCreateOrUpdateResponse` -- New anonymous field `CapacityReservation` in struct `CapacityReservationsClientUpdateResponse` -- New anonymous field `RestorePointCollection` in struct `RestorePointCollectionsClientGetResponse` -- New anonymous field `DiskAccessList` in struct `DiskAccessesClientListByResourceGroupResponse` -- New field `ResumeToken` in struct `GalleryImageVersionsClientBeginUpdateOptions` -- New anonymous field `SharedGallery` in struct `SharedGalleriesClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginRestartOptions` -- New field `ResumeToken` in struct `SnapshotsClientBeginUpdateOptions` -- New anonymous field `RoleInstanceListResult` in struct `CloudServiceRoleInstancesClientListResponse` -- New anonymous field `CommunityGalleryImageVersion` in struct `CommunityGalleryImageVersionsClientGetResponse` -- New anonymous field `VirtualMachineScaleSetVMExtension` in struct `VirtualMachineScaleSetVMExtensionsClientGetResponse` -- New anonymous field `DiskEncryptionSet` in struct `DiskEncryptionSetsClientGetResponse` -- New anonymous field `VirtualMachineScaleSetVM` in struct `VirtualMachineScaleSetVMsClientGetResponse` -- New field `ResumeToken` in struct `CloudServicesClientBeginReimageOptions` -- New field `ResumeToken` in struct `GalleryApplicationsClientBeginCreateOrUpdateOptions` -- New anonymous field `GalleryApplicationList` in struct `GalleryApplicationsClientListByGalleryResponse` -- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginReimageOptions` -- New field `ResumeToken` in struct `CloudServicesClientBeginPowerOffOptions` -- New field `ResumeToken` in struct `VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions` -- New anonymous field `DedicatedHost` in struct `DedicatedHostsClientCreateOrUpdateResponse` -- New anonymous field `GalleryList` in struct `GalleriesClientListByResourceGroupResponse` -- New anonymous field `RunCommandResult` in struct `VirtualMachineScaleSetVMsClientRunCommandResponse` -- New anonymous field `VirtualMachineRunCommandsListResult` in struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse` -- New anonymous field `UpdateDomainListResult` in struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse` -- New anonymous field `VirtualMachineScaleSet` in struct `VirtualMachineScaleSetsClientUpdateResponse` -- New anonymous field `SSHPublicKeyResource` in struct `SSHPublicKeysClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginReimageOptions` -- New anonymous field `RunCommandDocument` in struct `VirtualMachineRunCommandsClientGetResponse` -- New anonymous field `VirtualMachineInstallPatchesResult` in struct `VirtualMachinesClientInstallPatchesResponse` -- New anonymous field `SharedGalleryList` in struct `SharedGalleriesClientListResponse` -- New anonymous field `VirtualMachineScaleSetListResult` in struct `VirtualMachineScaleSetsClientListByLocationResponse` -- New field `ResumeToken` in struct `DiskRestorePointClientBeginGrantAccessOptions` -- New anonymous field `DedicatedHostGroup` in struct `DedicatedHostGroupsClientUpdateResponse` -- New anonymous field `ProximityPlacementGroup` in struct `ProximityPlacementGroupsClientGetResponse` -- New field `ResumeToken` in struct `GalleryImagesClientBeginUpdateOptions` -- New field `ResumeToken` in struct `DedicatedHostsClientBeginCreateOrUpdateOptions` -- New anonymous field `GalleryApplicationVersionList` in struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse` -- New anonymous field `GalleryApplication` in struct `GalleryApplicationsClientCreateOrUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions` -- New anonymous field `PrivateEndpointConnectionListResult` in struct `DiskAccessesClientListPrivateEndpointConnectionsResponse` -- New field `ResumeToken` in struct `CloudServicesClientBeginDeleteInstancesOptions` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginAssessPatchesOptions` -- New field `ResumeToken` in struct `DiskAccessesClientBeginDeleteOptions` -- New anonymous field `VirtualMachineExtension` in struct `VirtualMachineExtensionsClientCreateOrUpdateResponse` -- New anonymous field `DedicatedHost` in struct `DedicatedHostsClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions` -- New anonymous field `VirtualMachineScaleSetVMExtensionsListResult` in struct `VirtualMachineScaleSetVMExtensionsClientListResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions` -- New field `ResumeToken` in struct `GalleriesClientBeginDeleteOptions` -- New field `ResumeToken` in struct `ImagesClientBeginUpdateOptions` -- New field `ResumeToken` in struct `DisksClientBeginRevokeAccessOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginStartOptions` -- New anonymous field `SSHPublicKeysGroupListResult` in struct `SSHPublicKeysClientListByResourceGroupResponse` -- New field `ResumeToken` in struct `SnapshotsClientBeginRevokeAccessOptions` -- New field `ResumeToken` in struct `ImagesClientBeginDeleteOptions` -- New anonymous field `VirtualMachineScaleSetExtension` in struct `VirtualMachineScaleSetExtensionsClientUpdateResponse` -- New anonymous field `Disk` in struct `DisksClientGetResponse` -- New field `ResumeToken` in struct `GalleryImageVersionsClientBeginCreateOrUpdateOptions` -- New anonymous field `VirtualMachineSizeListResult` in struct `AvailabilitySetsClientListAvailableSizesResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginDeleteOptions` -- New anonymous field `SnapshotList` in struct `SnapshotsClientListResponse` -- New field `ResumeToken` in struct `VirtualMachineExtensionsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `VirtualMachineExtensionsClientBeginUpdateOptions` -- New field `ResumeToken` in struct `GalleryApplicationsClientBeginUpdateOptions` -- New anonymous field `SharedGalleryImageList` in struct `SharedGalleryImagesClientListResponse` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListResponse` -- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginRebuildOptions` -- New anonymous field `CapacityReservationGroup` in struct `CapacityReservationGroupsClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions` -- New field `ResumeToken` in struct `DisksClientBeginUpdateOptions` -- New anonymous field `ProximityPlacementGroupListResult` in struct `ProximityPlacementGroupsClientListByResourceGroupResponse` -- New anonymous field `VirtualMachine` in struct `VirtualMachinesClientCreateOrUpdateResponse` -- New anonymous field `Gallery` in struct `GalleriesClientGetResponse` -- New anonymous field `GalleryImage` in struct `GalleryImagesClientCreateOrUpdateResponse` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListOffersResponse` -- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse` -- New anonymous field `VirtualMachineRunCommandsListResult` in struct `VirtualMachineScaleSetVMRunCommandsClientListResponse` -- New anonymous field `CapacityReservationGroup` in struct `CapacityReservationGroupsClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginDeallocateOptions` -- New anonymous field `CloudServiceListResult` in struct `CloudServicesClientListResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginPowerOffOptions` -- New anonymous field `CapacityReservationListResult` in struct `CapacityReservationsClientListByCapacityReservationGroupResponse` -- New anonymous field `SharedGalleryImage` in struct `SharedGalleryImagesClientGetResponse` -- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse` -- New anonymous field `RestorePointCollectionListResult` in struct `RestorePointCollectionsClientListResponse` -- New anonymous field `RoleInstance` in struct `CloudServiceRoleInstancesClientGetResponse` -- New anonymous field `VirtualMachineScaleSetExtensionListResult` in struct `VirtualMachineScaleSetExtensionsClientListResponse` -- New anonymous field `AvailabilitySet` in struct `AvailabilitySetsClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions` -- New field `ResumeToken` in struct `LogAnalyticsClientBeginExportThrottledRequestsOptions` -- New field `ResumeToken` in struct `DedicatedHostsClientBeginRestartOptions` -- New field `ResumeToken` in struct `ImagesClientBeginCreateOrUpdateOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginDeallocateOptions` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListResponse` -- New anonymous field `GalleryImageList` in struct `GalleryImagesClientListByGalleryResponse` -- New anonymous field `AccessURI` in struct `DiskRestorePointClientGrantAccessResponse` -- New anonymous field `RunCommandResult` in struct `VirtualMachinesClientRunCommandResponse` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListOffersResponse` -- New field `ResumeToken` in struct `DiskAccessesClientBeginCreateOrUpdateOptions` -- New anonymous field `CloudServiceListResult` in struct `CloudServicesClientListAllResponse` -- New anonymous field `RestorePoint` in struct `RestorePointsClientCreateResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginRunCommandOptions` -- New anonymous field `RunCommandListResult` in struct `VirtualMachineRunCommandsClientListResponse` -- New anonymous field `GalleryImageVersion` in struct `GalleryImageVersionsClientUpdateResponse` -- New anonymous field `Image` in struct `ImagesClientCreateOrUpdateResponse` -- New field `ResumeToken` in struct `SnapshotsClientBeginDeleteOptions` -- New anonymous field `LogAnalyticsOperationResult` in struct `LogAnalyticsClientExportRequestRateByIntervalResponse` -- New anonymous field `VirtualMachineInstanceView` in struct `VirtualMachinesClientInstanceViewResponse` -- New anonymous field `CloudServiceRole` in struct `CloudServiceRolesClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginDeleteInstancesOptions` -- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse` -- New anonymous field `RecoveryWalkResponse` in struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` -- New anonymous field `DedicatedHostGroup` in struct `DedicatedHostGroupsClientCreateOrUpdateResponse` -- New field `ResumeToken` in struct `DiskEncryptionSetsClientBeginCreateOrUpdateOptions` -- New anonymous field `Snapshot` in struct `SnapshotsClientUpdateResponse` -- New anonymous field `ResourceSKUsResult` in struct `ResourceSKUsClientListResponse` -- New anonymous field `SnapshotList` in struct `SnapshotsClientListByResourceGroupResponse` -- New anonymous field `GalleryImageVersion` in struct `GalleryImageVersionsClientCreateOrUpdateResponse` -- New anonymous field `ProximityPlacementGroup` in struct `ProximityPlacementGroupsClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginReimageAllOptions` -- New anonymous field `Gallery` in struct `GalleriesClientCreateOrUpdateResponse` -- New anonymous field `SharedGalleryImageVersionList` in struct `SharedGalleryImageVersionsClientListResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginCaptureOptions` -- New anonymous field `ProximityPlacementGroupListResult` in struct `ProximityPlacementGroupsClientListBySubscriptionResponse` -- New anonymous field `OSVersionListResult` in struct `CloudServiceOperatingSystemsClientListOSVersionsResponse` -- New anonymous field `GalleryImage` in struct `GalleryImagesClientGetResponse` -- New field `ResumeToken` in struct `DiskAccessesClientBeginUpdateOptions` -- New field `ResumeToken` in struct `DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions` -- New field `ResumeToken` in struct `CapacityReservationsClientBeginUpdateOptions` -- New anonymous field `AvailabilitySetListResult` in struct `AvailabilitySetsClientListResponse` -- New field `ResumeToken` in struct `DedicatedHostsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions` -- New anonymous field `VirtualMachineScaleSetListOSUpgradeHistory` in struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse` -- New anonymous field `VirtualMachineScaleSetVM` in struct `VirtualMachineScaleSetVMsClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginUpdateInstancesOptions` -- New anonymous field `GalleryApplicationVersion` in struct `GalleryApplicationVersionsClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginUpdateOptions` -- New anonymous field `RetrieveBootDiagnosticsDataResult` in struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse` -- New field `ResumeToken` in struct `CloudServicesClientBeginUpdateOptions` -- New anonymous field `DiskList` in struct `DisksClientListByResourceGroupResponse` -- New anonymous field `GalleryApplication` in struct `GalleryApplicationsClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginUpdateOptions` -- New anonymous field `Snapshot` in struct `SnapshotsClientGetResponse` -- New anonymous field `VirtualMachineListResult` in struct `VirtualMachinesClientListByLocationResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginReapplyOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions` -- New anonymous field `RoleInstanceView` in struct `CloudServiceRoleInstancesClientGetInstanceViewResponse` -- New field `ResumeToken` in struct `RestorePointCollectionsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `CapacityReservationsClientBeginCreateOrUpdateOptions` -- New anonymous field `DiskEncryptionSet` in struct `DiskEncryptionSetsClientCreateOrUpdateResponse` -- New anonymous field `SSHPublicKeyResource` in struct `SSHPublicKeysClientCreateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginPowerOffOptions` -- New anonymous field `DiskEncryptionSet` in struct `DiskEncryptionSetsClientUpdateResponse` -- New anonymous field `DedicatedHostGroup` in struct `DedicatedHostGroupsClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginRedeployOptions` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginRedeployOptions` -- New anonymous field `VirtualMachineScaleSetListWithLinkResult` in struct `VirtualMachineScaleSetsClientListAllResponse` -- New field `ResumeToken` in struct `GalleryImagesClientBeginCreateOrUpdateOptions` -- New anonymous field `VirtualMachineImage` in struct `VirtualMachineImagesEdgeZoneClientGetResponse` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginInstallPatchesOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetExtensionsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions` -- New field `ResumeToken` in struct `VirtualMachinesClientBeginRestartOptions` -- New anonymous field `DedicatedHostGroupListResult` in struct `DedicatedHostGroupsClientListBySubscriptionResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginStartOptions` -- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse` -- New field `ResumeToken` in struct `GallerySharingProfileClientBeginUpdateOptions` -- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineRunCommandsClientUpdateResponse` -- New field `ResumeToken` in struct `GalleryImageVersionsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `VirtualMachineScaleSetExtensionsClientBeginUpdateOptions` -- New anonymous field `RestorePointCollection` in struct `RestorePointCollectionsClientUpdateResponse` -- New anonymous field `VirtualMachineExtension` in struct `VirtualMachineExtensionsClientGetResponse` -- New anonymous field `DiskAccess` in struct `DiskAccessesClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginDeleteOptions` -- New field `ResumeToken` in struct `CloudServicesClientBeginCreateOrUpdateOptions` -- New anonymous field `Image` in struct `ImagesClientGetResponse` -- New anonymous field `GalleryApplicationVersion` in struct `GalleryApplicationVersionsClientUpdateResponse` -- New anonymous field `PrivateEndpointConnection` in struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse` -- New anonymous field `VirtualMachineScaleSetInstanceView` in struct `VirtualMachineScaleSetsClientGetInstanceViewResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginPowerOffOptions` -- New field `ResumeToken` in struct `DisksClientBeginDeleteOptions` -- New anonymous field `VirtualMachine` in struct `VirtualMachinesClientGetResponse` -- New anonymous field `DiskAccess` in struct `DiskAccessesClientCreateOrUpdateResponse` -- New anonymous field `OSFamilyListResult` in struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse` -- New field `ResumeToken` in struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions` -- New field `ResumeToken` in struct `VirtualMachineExtensionsClientBeginCreateOrUpdateOptions` -- New anonymous field `CommunityGallery` in struct `CommunityGalleriesClientGetResponse` -- New anonymous field `PrivateEndpointConnection` in struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse` -- New anonymous field `AvailabilitySet` in struct `AvailabilitySetsClientGetResponse` -- New anonymous field `VirtualMachineScaleSetVMExtension` in struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse` -- New field `ResumeToken` in struct `VirtualMachineRunCommandsClientBeginDeleteOptions` -- New anonymous field `SSHPublicKeyResource` in struct `SSHPublicKeysClientGetResponse` -- New anonymous field `CloudService` in struct `CloudServicesClientGetResponse` - - -## 0.5.0 (2022-03-07) -### Features Added - -- New const `DataAccessAuthModeAzureActiveDirectory` -- New const `DataAccessAuthModeNone` -- New function `PossibleDataAccessAuthModeValues() []DataAccessAuthMode` -- New function `DataAccessAuthMode.ToPtr() *DataAccessAuthMode` -- New field `DataAccessAuthMode` in struct `SnapshotProperties` -- New field `DataAccessAuthMode` in struct `DiskProperties` -- New field `Architecture` in struct `SupportedCapabilities` -- New field `DataAccessAuthMode` in struct `SnapshotUpdateProperties` -- New field `DataAccessAuthMode` in struct `DiskUpdateProperties` - - -## 0.4.0 (2022-03-02) -### Breaking Changes - -- Type of `VirtualMachineExtensionProperties.ProtectedSettings` has been changed from `map[string]interface{}` to `interface{}` -- Type of `VirtualMachineExtensionProperties.Settings` has been changed from `map[string]interface{}` to `interface{}` -- Type of `VirtualMachineScaleSetExtensionProperties.ProtectedSettings` has been changed from `map[string]interface{}` to `interface{}` -- Type of `VirtualMachineScaleSetExtensionProperties.Settings` has been changed from `map[string]interface{}` to `interface{}` -- Type of `VirtualMachineCaptureResult.Parameters` has been changed from `map[string]interface{}` to `interface{}` -- Type of `VirtualMachineCaptureResult.Resources` has been changed from `[]map[string]interface{}` to `[]interface{}` -- Type of `VirtualMachineExtensionUpdateProperties.ProtectedSettings` has been changed from `map[string]interface{}` to `interface{}` -- Type of `VirtualMachineExtensionUpdateProperties.Settings` has been changed from `map[string]interface{}` to `interface{}` -- Struct `CloudError` has been removed -- Struct `GalleryArtifactSource` has been removed -- Struct `ManagedArtifact` has been removed - -### Features Added - -- New const `RepairActionReplace` -- New const `RestorePointExpandOptionsInstanceView` -- New const `GalleryExtendedLocationTypeEdgeZone` -- New const `ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk` -- New const `SharingProfileGroupTypesCommunity` -- New const `ArchitectureTypesArm64` -- New const `RepairActionReimage` -- New const `ArchitectureX64` -- New const `SecurityEncryptionTypesDiskWithVMGuestState` -- New const `SecurityTypesConfidentialVM` -- New const `SharingStateSucceeded` -- New const `RepairActionRestart` -- New const `SecurityEncryptionTypesVMGuestStateOnly` -- New const `SharingUpdateOperationTypesEnableCommunity` -- New const `SharingStateUnknown` -- New const `SharingStateInProgress` -- New const `ConfidentialVMEncryptionTypeEncryptedWithPmk` -- New const `SharingStateFailed` -- New const `ConfidentialVMEncryptionTypeEncryptedWithCmk` -- New const `ArchitectureTypesX64` -- New const `GalleryExtendedLocationTypeUnknown` -- New const `GalleryExpandParamsSharingProfileGroups` -- New const `ArchitectureArm64` -- New function `RestorePointExpandOptions.ToPtr() *RestorePointExpandOptions` -- New function `PossibleGalleryExtendedLocationTypeValues() []GalleryExtendedLocationType` -- New function `PossibleGalleryExpandParamsValues() []GalleryExpandParams` -- New function `PossibleSharingStateValues() []SharingState` -- New function `PossibleSecurityEncryptionTypesValues() []SecurityEncryptionTypes` -- New function `PossibleArchitectureTypesValues() []ArchitectureTypes` -- New function `*DedicatedHostsClientRestartPollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error` -- New function `DedicatedHostsClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientRestartResponse, error)` -- New function `ConfidentialVMEncryptionType.ToPtr() *ConfidentialVMEncryptionType` -- New function `SharingState.ToPtr() *SharingState` -- New function `PossibleConfidentialVMEncryptionTypeValues() []ConfidentialVMEncryptionType` -- New function `*DedicatedHostsClient.BeginRestart(context.Context, string, string, string, *DedicatedHostsClientBeginRestartOptions) (DedicatedHostsClientRestartPollerResponse, error)` -- New function `RestorePointInstanceView.MarshalJSON() ([]byte, error)` -- New function `*DedicatedHostsClientRestartPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineProperties.UnmarshalJSON([]byte) error` -- New function `SharingStatus.MarshalJSON() ([]byte, error)` -- New function `SecurityEncryptionTypes.ToPtr() *SecurityEncryptionTypes` -- New function `PossibleArchitectureValues() []Architecture` -- New function `PossibleRestorePointExpandOptionsValues() []RestorePointExpandOptions` -- New function `GalleryExtendedLocationType.ToPtr() *GalleryExtendedLocationType` -- New function `ArchitectureTypes.ToPtr() *ArchitectureTypes` -- New function `GalleryExpandParams.ToPtr() *GalleryExpandParams` -- New function `*DedicatedHostsClientRestartPoller.Done() bool` -- New function `RepairAction.ToPtr() *RepairAction` -- New function `PossibleRepairActionValues() []RepairAction` -- New function `VirtualMachineScaleSetProperties.MarshalJSON() ([]byte, error)` -- New function `*VirtualMachineScaleSetProperties.UnmarshalJSON([]byte) error` -- New function `*DedicatedHostsClientRestartPoller.FinalResponse(context.Context) (DedicatedHostsClientRestartResponse, error)` -- New function `*DedicatedHostsClientRestartPoller.Poll(context.Context) (*http.Response, error)` -- New function `Architecture.ToPtr() *Architecture` -- New function `VirtualMachineProperties.MarshalJSON() ([]byte, error)` -- New struct `DedicatedHostsClientBeginRestartOptions` -- New struct `DedicatedHostsClientRestartPoller` -- New struct `DedicatedHostsClientRestartPollerResponse` -- New struct `DedicatedHostsClientRestartResponse` -- New struct `DiskRestorePointInstanceView` -- New struct `GalleryExtendedLocation` -- New struct `GalleryTargetExtendedLocation` -- New struct `OSDiskImageSecurityProfile` -- New struct `RegionalSharingStatus` -- New struct `RestorePointInstanceView` -- New struct `SharingStatus` -- New struct `VMDiskSecurityProfile` -- New struct `VirtualMachineScaleSetHardwareProfile` -- New field `SourceRestorePoint` in struct `RestorePointProperties` -- New field `InstanceView` in struct `RestorePointProperties` -- New field `SecurityProfile` in struct `VirtualMachineScaleSetManagedDiskParameters` -- New field `TimeCreated` in struct `VirtualMachineProperties` -- New field `ProtectedSettingsFromKeyVault` in struct `VirtualMachineExtensionUpdateProperties` -- New field `SecurityProfile` in struct `ManagedDiskParameters` -- New field `TimeCreated` in struct `CapacityReservationProperties` -- New field `Expand` in struct `RestorePointsClientGetOptions` -- New field `PlacementGroupID` in struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions` -- New field `Zone` in struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions` -- New field `TimeCreated` in struct `VirtualMachineScaleSetProperties` -- New field `CommunityGalleryImageID` in struct `ImageReference` -- New field `AllowExtensionOperations` in struct `VirtualMachineScaleSetOSProfile` -- New field `ProtectedSettingsFromKeyVault` in struct `VirtualMachineScaleSetExtensionProperties` -- New field `PublicIPPrefix` in struct `VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties` -- New field `Filter` in struct `VirtualMachinesClientListOptions` -- New field `TargetExtendedLocations` in struct `GalleryImageVersionPublishingProfile` -- New field `Architecture` in struct `VirtualMachineImageProperties` -- New field `HardwareProfile` in struct `VirtualMachineScaleSetVMProfile` -- New field `Architecture` in struct `GalleryImageProperties` -- New field `SecurityProfile` in struct `OSDiskImageEncryption` -- New field `TimeCreated` in struct `DedicatedHostProperties` -- New field `TargetExtendedLocations` in struct `GalleryArtifactPublishingProfileBase` -- New field `TargetExtendedLocations` in struct `GalleryApplicationVersionPublishingProfile` -- New field `Expand` in struct `GalleriesClientGetOptions` -- New field `Filter` in struct `VirtualMachinesClientListAllOptions` -- New field `RepairAction` in struct `AutomaticRepairsPolicy` -- New field `SharingStatus` in struct `GalleryProperties` -- New field `CommunityGalleryInfo` in struct `SharingProfile` -- New field `ProtectedSettingsFromKeyVault` in struct `VirtualMachineExtensionProperties` - - -## 0.3.1 (2022-02-22) - -### Other Changes - -- Remove the go_mod_tidy_hack.go file. - -## 0.3.0 (2022-01-13) -### Breaking Changes - -- Function `*VirtualMachineScaleSetsClient.ListAll` parameter(s) have been changed from `(*VirtualMachineScaleSetsListAllOptions)` to `(*VirtualMachineScaleSetsClientListAllOptions)` -- Function `*VirtualMachineScaleSetsClient.ListAll` return value(s) have been changed from `(*VirtualMachineScaleSetsListAllPager)` to `(*VirtualMachineScaleSetsClientListAllPager)` -- Function `*VirtualMachinesClient.Generalize` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesGeneralizeOptions)` to `(context.Context, string, string, *VirtualMachinesClientGeneralizeOptions)` -- Function `*VirtualMachinesClient.Generalize` return value(s) have been changed from `(VirtualMachinesGeneralizeResponse, error)` to `(VirtualMachinesClientGeneralizeResponse, error)` -- Function `*DedicatedHostsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *DedicatedHostsGetOptions)` to `(context.Context, string, string, string, *DedicatedHostsClientGetOptions)` -- Function `*DedicatedHostsClient.Get` return value(s) have been changed from `(DedicatedHostsGetResponse, error)` to `(DedicatedHostsClientGetResponse, error)` -- Function `*ProximityPlacementGroupsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *ProximityPlacementGroupsGetOptions)` to `(context.Context, string, string, *ProximityPlacementGroupsClientGetOptions)` -- Function `*ProximityPlacementGroupsClient.Get` return value(s) have been changed from `(ProximityPlacementGroupsGetResponse, error)` to `(ProximityPlacementGroupsClientGetResponse, error)` -- Function `*VirtualMachinesClient.ListByLocation` parameter(s) have been changed from `(string, *VirtualMachinesListByLocationOptions)` to `(string, *VirtualMachinesClientListByLocationOptions)` -- Function `*VirtualMachinesClient.ListByLocation` return value(s) have been changed from `(*VirtualMachinesListByLocationPager)` to `(*VirtualMachinesClientListByLocationPager)` -- Function `*DiskEncryptionSetsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *DiskEncryptionSetsBeginDeleteOptions)` to `(context.Context, string, string, *DiskEncryptionSetsClientBeginDeleteOptions)` -- Function `*DiskEncryptionSetsClient.BeginDelete` return value(s) have been changed from `(DiskEncryptionSetsDeletePollerResponse, error)` to `(DiskEncryptionSetsClientDeletePollerResponse, error)` -- Function `*AvailabilitySetsClient.List` parameter(s) have been changed from `(string, *AvailabilitySetsListOptions)` to `(string, *AvailabilitySetsClientListOptions)` -- Function `*AvailabilitySetsClient.List` return value(s) have been changed from `(*AvailabilitySetsListPager)` to `(*AvailabilitySetsClientListPager)` -- Function `*VirtualMachinesClient.SimulateEviction` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesSimulateEvictionOptions)` to `(context.Context, string, string, *VirtualMachinesClientSimulateEvictionOptions)` -- Function `*VirtualMachinesClient.SimulateEviction` return value(s) have been changed from `(VirtualMachinesSimulateEvictionResponse, error)` to `(VirtualMachinesClientSimulateEvictionResponse, error)` -- Function `*VirtualMachineImagesClient.ListOffers` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineImagesListOffersOptions)` to `(context.Context, string, string, *VirtualMachineImagesClientListOffersOptions)` -- Function `*VirtualMachineImagesClient.ListOffers` return value(s) have been changed from `(VirtualMachineImagesListOffersResponse, error)` to `(VirtualMachineImagesClientListOffersResponse, error)` -- Function `*CloudServiceOperatingSystemsClient.GetOSVersion` parameter(s) have been changed from `(context.Context, string, string, *CloudServiceOperatingSystemsGetOSVersionOptions)` to `(context.Context, string, string, *CloudServiceOperatingSystemsClientGetOSVersionOptions)` -- Function `*CloudServiceOperatingSystemsClient.GetOSVersion` return value(s) have been changed from `(CloudServiceOperatingSystemsGetOSVersionResponse, error)` to `(CloudServiceOperatingSystemsClientGetOSVersionResponse, error)` -- Function `*VirtualMachinesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesGetOptions)` to `(context.Context, string, string, *VirtualMachinesClientGetOptions)` -- Function `*VirtualMachinesClient.Get` return value(s) have been changed from `(VirtualMachinesGetResponse, error)` to `(VirtualMachinesClientGetResponse, error)` -- Function `*VirtualMachinesClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginRestartOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginRestartOptions)` -- Function `*VirtualMachinesClient.BeginRestart` return value(s) have been changed from `(VirtualMachinesRestartPollerResponse, error)` to `(VirtualMachinesClientRestartPollerResponse, error)` -- Function `*DedicatedHostsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, DedicatedHost, *DedicatedHostsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, DedicatedHost, *DedicatedHostsClientBeginCreateOrUpdateOptions)` -- Function `*DedicatedHostsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DedicatedHostsCreateOrUpdatePollerResponse, error)` to `(DedicatedHostsClientCreateOrUpdatePollerResponse, error)` -- Function `*SharedGalleriesClient.List` parameter(s) have been changed from `(string, *SharedGalleriesListOptions)` to `(string, *SharedGalleriesClientListOptions)` -- Function `*SharedGalleriesClient.List` return value(s) have been changed from `(*SharedGalleriesListPager)` to `(*SharedGalleriesClientListPager)` -- Function `*VirtualMachinesClient.BeginRunCommand` parameter(s) have been changed from `(context.Context, string, string, RunCommandInput, *VirtualMachinesBeginRunCommandOptions)` to `(context.Context, string, string, RunCommandInput, *VirtualMachinesClientBeginRunCommandOptions)` -- Function `*VirtualMachinesClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachinesRunCommandPollerResponse, error)` to `(VirtualMachinesClientRunCommandPollerResponse, error)` -- Function `*CloudServicesClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginRestartOptions)` to `(context.Context, string, string, *CloudServicesClientBeginRestartOptions)` -- Function `*CloudServicesClient.BeginRestart` return value(s) have been changed from `(CloudServicesRestartPollerResponse, error)` to `(CloudServicesClientRestartPollerResponse, error)` -- Function `*DiskRestorePointClient.ListByRestorePoint` parameter(s) have been changed from `(string, string, string, *DiskRestorePointListByRestorePointOptions)` to `(string, string, string, *DiskRestorePointClientListByRestorePointOptions)` -- Function `*DiskRestorePointClient.ListByRestorePoint` return value(s) have been changed from `(*DiskRestorePointListByRestorePointPager)` to `(*DiskRestorePointClientListByRestorePointPager)` -- Function `*VirtualMachinesClient.BeginReapply` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginReapplyOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginReapplyOptions)` -- Function `*VirtualMachinesClient.BeginReapply` return value(s) have been changed from `(VirtualMachinesReapplyPollerResponse, error)` to `(VirtualMachinesClientReapplyPollerResponse, error)` -- Function `*SnapshotsClient.BeginGrantAccess` parameter(s) have been changed from `(context.Context, string, string, GrantAccessData, *SnapshotsBeginGrantAccessOptions)` to `(context.Context, string, string, GrantAccessData, *SnapshotsClientBeginGrantAccessOptions)` -- Function `*SnapshotsClient.BeginGrantAccess` return value(s) have been changed from `(SnapshotsGrantAccessPollerResponse, error)` to `(SnapshotsClientGrantAccessPollerResponse, error)` -- Function `*VirtualMachinesClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesListAvailableSizesOptions)` to `(context.Context, string, string, *VirtualMachinesClientListAvailableSizesOptions)` -- Function `*VirtualMachinesClient.ListAvailableSizes` return value(s) have been changed from `(VirtualMachinesListAvailableSizesResponse, error)` to `(VirtualMachinesClientListAvailableSizesResponse, error)` -- Function `*CloudServicesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesGetOptions)` to `(context.Context, string, string, *CloudServicesClientGetOptions)` -- Function `*CloudServicesClient.Get` return value(s) have been changed from `(CloudServicesGetResponse, error)` to `(CloudServicesClientGetResponse, error)` -- Function `*GalleryImageVersionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryImageVersionUpdate, *GalleryImageVersionsBeginUpdateOptions)` to `(context.Context, string, string, string, string, GalleryImageVersionUpdate, *GalleryImageVersionsClientBeginUpdateOptions)` -- Function `*GalleryImageVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryImageVersionsUpdatePollerResponse, error)` to `(GalleryImageVersionsClientUpdatePollerResponse, error)` -- Function `*CloudServicesClient.ListAll` parameter(s) have been changed from `(*CloudServicesListAllOptions)` to `(*CloudServicesClientListAllOptions)` -- Function `*CloudServicesClient.ListAll` return value(s) have been changed from `(*CloudServicesListAllPager)` to `(*CloudServicesClientListAllPager)` -- Function `*SharedGalleryImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *SharedGalleryImagesGetOptions)` to `(context.Context, string, string, string, *SharedGalleryImagesClientGetOptions)` -- Function `*SharedGalleryImagesClient.Get` return value(s) have been changed from `(SharedGalleryImagesGetResponse, error)` to `(SharedGalleryImagesClientGetResponse, error)` -- Function `*CapacityReservationGroupsClient.ListBySubscription` parameter(s) have been changed from `(*CapacityReservationGroupsListBySubscriptionOptions)` to `(*CapacityReservationGroupsClientListBySubscriptionOptions)` -- Function `*CapacityReservationGroupsClient.ListBySubscription` return value(s) have been changed from `(*CapacityReservationGroupsListBySubscriptionPager)` to `(*CapacityReservationGroupsClientListBySubscriptionPager)` -- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` parameter(s) have been changed from `(string, *CloudServiceOperatingSystemsListOSFamiliesOptions)` to `(string, *CloudServiceOperatingSystemsClientListOSFamiliesOptions)` -- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` return value(s) have been changed from `(*CloudServiceOperatingSystemsListOSFamiliesPager)` to `(*CloudServiceOperatingSystemsClientListOSFamiliesPager)` -- Function `*VirtualMachinesClient.BeginCapture` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineCaptureParameters, *VirtualMachinesBeginCaptureOptions)` to `(context.Context, string, string, VirtualMachineCaptureParameters, *VirtualMachinesClientBeginCaptureOptions)` -- Function `*VirtualMachinesClient.BeginCapture` return value(s) have been changed from `(VirtualMachinesCapturePollerResponse, error)` to `(VirtualMachinesClientCapturePollerResponse, error)` -- Function `*CapacityReservationGroupsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *CapacityReservationGroupsDeleteOptions)` to `(context.Context, string, string, *CapacityReservationGroupsClientDeleteOptions)` -- Function `*CapacityReservationGroupsClient.Delete` return value(s) have been changed from `(CapacityReservationGroupsDeleteResponse, error)` to `(CapacityReservationGroupsClientDeleteResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginReimageAllOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginReimageAllOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetVMsReimageAllPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientReimageAllPollerResponse, error)` -- Function `*DisksClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DisksListByResourceGroupOptions)` to `(string, *DisksClientListByResourceGroupOptions)` -- Function `*DisksClient.ListByResourceGroup` return value(s) have been changed from `(*DisksListByResourceGroupPager)` to `(*DisksClientListByResourceGroupPager)` -- Function `*VirtualMachinesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineUpdate, *VirtualMachinesBeginUpdateOptions)` to `(context.Context, string, string, VirtualMachineUpdate, *VirtualMachinesClientBeginUpdateOptions)` -- Function `*VirtualMachinesClient.BeginUpdate` return value(s) have been changed from `(VirtualMachinesUpdatePollerResponse, error)` to `(VirtualMachinesClientUpdatePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginRestartOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginRestartOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetVMsRestartPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientRestartPollerResponse, error)` -- Function `*VirtualMachineImagesEdgeZoneClient.List` parameter(s) have been changed from `(context.Context, string, string, string, string, string, *VirtualMachineImagesEdgeZoneListOptions)` to `(context.Context, string, string, string, string, string, *VirtualMachineImagesEdgeZoneClientListOptions)` -- Function `*VirtualMachineImagesEdgeZoneClient.List` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListResponse, error)` -- Function `*DisksClient.List` parameter(s) have been changed from `(*DisksListOptions)` to `(*DisksClientListOptions)` -- Function `*DisksClient.List` return value(s) have been changed from `(*DisksListPager)` to `(*DisksClientListPager)` -- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetsGetOSUpgradeHistoryOptions)` to `(string, string, *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions)` -- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` return value(s) have been changed from `(*VirtualMachineScaleSetsGetOSUpgradeHistoryPager)` to `(*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager)` -- Function `*GalleryApplicationVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryApplicationVersionsGetOptions)` to `(context.Context, string, string, string, string, *GalleryApplicationVersionsClientGetOptions)` -- Function `*GalleryApplicationVersionsClient.Get` return value(s) have been changed from `(GalleryApplicationVersionsGetResponse, error)` to `(GalleryApplicationVersionsClientGetResponse, error)` -- Function `*VirtualMachineImagesEdgeZoneClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, string, string, *VirtualMachineImagesEdgeZoneGetOptions)` to `(context.Context, string, string, string, string, string, string, *VirtualMachineImagesEdgeZoneClientGetOptions)` -- Function `*VirtualMachineImagesEdgeZoneClient.Get` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneGetResponse, error)` to `(VirtualMachineImagesEdgeZoneClientGetResponse, error)` -- Function `*VirtualMachineScaleSetsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsGetOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientGetOptions)` -- Function `*VirtualMachineScaleSetsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetsGetResponse, error)` to `(VirtualMachineScaleSetsClientGetResponse, error)` -- Function `*LogAnalyticsClient.BeginExportThrottledRequests` parameter(s) have been changed from `(context.Context, string, ThrottledRequestsInput, *LogAnalyticsBeginExportThrottledRequestsOptions)` to `(context.Context, string, ThrottledRequestsInput, *LogAnalyticsClientBeginExportThrottledRequestsOptions)` -- Function `*LogAnalyticsClient.BeginExportThrottledRequests` return value(s) have been changed from `(LogAnalyticsExportThrottledRequestsPollerResponse, error)` to `(LogAnalyticsClientExportThrottledRequestsPollerResponse, error)` -- Function `*VirtualMachineImagesEdgeZoneClient.ListPublishers` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineImagesEdgeZoneListPublishersOptions)` to `(context.Context, string, string, *VirtualMachineImagesEdgeZoneClientListPublishersOptions)` -- Function `*VirtualMachineImagesEdgeZoneClient.ListPublishers` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListPublishersResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListPublishersResponse, error)` -- Function `*CloudServicesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, *CloudServicesClientBeginCreateOrUpdateOptions)` -- Function `*CloudServicesClient.BeginCreateOrUpdate` return value(s) have been changed from `(CloudServicesCreateOrUpdatePollerResponse, error)` to `(CloudServicesClientCreateOrUpdatePollerResponse, error)` -- Function `*CapacityReservationGroupsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, CapacityReservationGroup, *CapacityReservationGroupsCreateOrUpdateOptions)` to `(context.Context, string, string, CapacityReservationGroup, *CapacityReservationGroupsClientCreateOrUpdateOptions)` -- Function `*CapacityReservationGroupsClient.CreateOrUpdate` return value(s) have been changed from `(CapacityReservationGroupsCreateOrUpdateResponse, error)` to `(CapacityReservationGroupsClientCreateOrUpdateResponse, error)` -- Function `*VirtualMachinesClient.List` parameter(s) have been changed from `(string, *VirtualMachinesListOptions)` to `(string, *VirtualMachinesClientListOptions)` -- Function `*VirtualMachinesClient.List` return value(s) have been changed from `(*VirtualMachinesListPager)` to `(*VirtualMachinesClientListPager)` -- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, *DiskAccessesBeginDeleteAPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, *DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions)` -- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse, error)` to `(DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse, error)` -- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` parameter(s) have been changed from `(context.Context, string, RequestRateByIntervalInput, *LogAnalyticsBeginExportRequestRateByIntervalOptions)` to `(context.Context, string, RequestRateByIntervalInput, *LogAnalyticsClientBeginExportRequestRateByIntervalOptions)` -- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` return value(s) have been changed from `(LogAnalyticsExportRequestRateByIntervalPollerResponse, error)` to `(LogAnalyticsClientExportRequestRateByIntervalPollerResponse, error)` -- Function `*AvailabilitySetsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsDeleteOptions)` to `(context.Context, string, string, *AvailabilitySetsClientDeleteOptions)` -- Function `*AvailabilitySetsClient.Delete` return value(s) have been changed from `(AvailabilitySetsDeleteResponse, error)` to `(AvailabilitySetsClientDeleteResponse, error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsDeletePollerResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse, error)` -- Function `*ImagesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Image, *ImagesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Image, *ImagesClientBeginCreateOrUpdateOptions)` -- Function `*ImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(ImagesCreateOrUpdatePollerResponse, error)` to `(ImagesClientCreateOrUpdatePollerResponse, error)` -- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *ProximityPlacementGroupsListByResourceGroupOptions)` to `(string, *ProximityPlacementGroupsClientListByResourceGroupOptions)` -- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*ProximityPlacementGroupsListByResourceGroupPager)` to `(*ProximityPlacementGroupsClientListByResourceGroupPager)` -- Function `*AvailabilitySetsClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsListAvailableSizesOptions)` to `(context.Context, string, string, *AvailabilitySetsClientListAvailableSizesOptions)` -- Function `*AvailabilitySetsClient.ListAvailableSizes` return value(s) have been changed from `(AvailabilitySetsListAvailableSizesResponse, error)` to `(AvailabilitySetsClientListAvailableSizesResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginPowerOffOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginPowerOffOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetsPowerOffPollerResponse, error)` to `(VirtualMachineScaleSetsClientPowerOffPollerResponse, error)` -- Function `*VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup` parameter(s) have been changed from `(context.Context, string, string, VMScaleSetConvertToSinglePlacementGroupInput, *VirtualMachineScaleSetsConvertToSinglePlacementGroupOptions)` to `(context.Context, string, string, VMScaleSetConvertToSinglePlacementGroupInput, *VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions)` -- Function `*VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup` return value(s) have been changed from `(VirtualMachineScaleSetsConvertToSinglePlacementGroupResponse, error)` to `(VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse, error)` -- Function `*CapacityReservationsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CapacityReservationsGetOptions)` to `(context.Context, string, string, string, *CapacityReservationsClientGetOptions)` -- Function `*CapacityReservationsClient.Get` return value(s) have been changed from `(CapacityReservationsGetResponse, error)` to `(CapacityReservationsClientGetResponse, error)` -- Function `*SnapshotsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *SnapshotsGetOptions)` to `(context.Context, string, string, *SnapshotsClientGetOptions)` -- Function `*SnapshotsClient.Get` return value(s) have been changed from `(SnapshotsGetResponse, error)` to `(SnapshotsClientGetResponse, error)` -- Function `*GalleryImagesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryImage, *GalleryImagesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, GalleryImage, *GalleryImagesClientBeginCreateOrUpdateOptions)` -- Function `*GalleryImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImagesCreateOrUpdatePollerResponse, error)` to `(GalleryImagesClientCreateOrUpdatePollerResponse, error)` -- Function `*AvailabilitySetsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsGetOptions)` to `(context.Context, string, string, *AvailabilitySetsClientGetOptions)` -- Function `*AvailabilitySetsClient.Get` return value(s) have been changed from `(AvailabilitySetsGetResponse, error)` to `(AvailabilitySetsClientGetResponse, error)` -- Function `*CloudServicesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginUpdateOptions)` to `(context.Context, string, string, *CloudServicesClientBeginUpdateOptions)` -- Function `*CloudServicesClient.BeginUpdate` return value(s) have been changed from `(CloudServicesUpdatePollerResponse, error)` to `(CloudServicesClientUpdatePollerResponse, error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesBeginStartExtensionUpgradeOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse, error)` -- Function `*VirtualMachineExtensionsClient.List` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineExtensionsListOptions)` to `(context.Context, string, string, *VirtualMachineExtensionsClientListOptions)` -- Function `*VirtualMachineExtensionsClient.List` return value(s) have been changed from `(VirtualMachineExtensionsListResponse, error)` to `(VirtualMachineExtensionsClientListResponse, error)` -- Function `*GalleriesClient.List` parameter(s) have been changed from `(*GalleriesListOptions)` to `(*GalleriesClientListOptions)` -- Function `*GalleriesClient.List` return value(s) have been changed from `(*GalleriesListPager)` to `(*GalleriesClientListPager)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginReimageOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginReimageOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetVMsReimagePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientReimagePollerResponse, error)` -- Function `*ImagesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, ImageUpdate, *ImagesBeginUpdateOptions)` to `(context.Context, string, string, ImageUpdate, *ImagesClientBeginUpdateOptions)` -- Function `*ImagesClient.BeginUpdate` return value(s) have been changed from `(ImagesUpdatePollerResponse, error)` to `(ImagesClientUpdatePollerResponse, error)` -- Function `*VirtualMachinesClient.BeginInstallPatches` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineInstallPatchesParameters, *VirtualMachinesBeginInstallPatchesOptions)` to `(context.Context, string, string, VirtualMachineInstallPatchesParameters, *VirtualMachinesClientBeginInstallPatchesOptions)` -- Function `*VirtualMachinesClient.BeginInstallPatches` return value(s) have been changed from `(VirtualMachinesInstallPatchesPollerResponse, error)` to `(VirtualMachinesClientInstallPatchesPollerResponse, error)` -- Function `*VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk` parameter(s) have been changed from `(context.Context, string, string, int32, *VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions)` to `(context.Context, string, string, int32, *VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions)` -- Function `*VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk` return value(s) have been changed from `(VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, error)` to `(VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, error)` -- Function `*VirtualMachineScaleSetsClient.ListByLocation` parameter(s) have been changed from `(string, *VirtualMachineScaleSetsListByLocationOptions)` to `(string, *VirtualMachineScaleSetsClientListByLocationOptions)` -- Function `*VirtualMachineScaleSetsClient.ListByLocation` return value(s) have been changed from `(*VirtualMachineScaleSetsListByLocationPager)` to `(*VirtualMachineScaleSetsClientListByLocationPager)` -- Function `*VirtualMachineScaleSetVMsClient.List` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetVMsListOptions)` to `(string, string, *VirtualMachineScaleSetVMsClientListOptions)` -- Function `*VirtualMachineScaleSetVMsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMsListPager)` to `(*VirtualMachineScaleSetVMsClientListPager)` -- Function `*GalleryImagesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryImagesBeginDeleteOptions)` to `(context.Context, string, string, string, *GalleryImagesClientBeginDeleteOptions)` -- Function `*GalleryImagesClient.BeginDelete` return value(s) have been changed from `(GalleryImagesDeletePollerResponse, error)` to `(GalleryImagesClientDeletePollerResponse, error)` -- Function `*GalleryImageVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryImageVersionsGetOptions)` to `(context.Context, string, string, string, string, *GalleryImageVersionsClientGetOptions)` -- Function `*GalleryImageVersionsClient.Get` return value(s) have been changed from `(GalleryImageVersionsGetResponse, error)` to `(GalleryImageVersionsClientGetResponse, error)` -- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryApplication, *GalleryApplicationsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, GalleryApplication, *GalleryApplicationsClientBeginCreateOrUpdateOptions)` -- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationsCreateOrUpdatePollerResponse, error)` to `(GalleryApplicationsClientCreateOrUpdatePollerResponse, error)` -- Function `*CloudServiceRoleInstancesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginDeleteOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginDeleteOptions)` -- Function `*CloudServiceRoleInstancesClient.BeginDelete` return value(s) have been changed from `(CloudServiceRoleInstancesDeletePollerResponse, error)` to `(CloudServiceRoleInstancesClientDeletePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsGetOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientGetOptions)` -- Function `*VirtualMachineScaleSetVMsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetVMsGetResponse, error)` to `(VirtualMachineScaleSetVMsClientGetResponse, error)` -- Function `*GalleriesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *GalleriesGetOptions)` to `(context.Context, string, string, *GalleriesClientGetOptions)` -- Function `*GalleriesClient.Get` return value(s) have been changed from `(GalleriesGetResponse, error)` to `(GalleriesClientGetResponse, error)` -- Function `*VirtualMachineRunCommandsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineRunCommandsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineRunCommandsClientBeginDeleteOptions)` -- Function `*VirtualMachineRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineRunCommandsDeletePollerResponse, error)` to `(VirtualMachineRunCommandsClientDeletePollerResponse, error)` -- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` parameter(s) have been changed from `(string, string, string, *GalleryApplicationVersionsListByGalleryApplicationOptions)` to `(string, string, string, *GalleryApplicationVersionsClientListByGalleryApplicationOptions)` -- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` return value(s) have been changed from `(*GalleryApplicationVersionsListByGalleryApplicationPager)` to `(*GalleryApplicationVersionsClientListByGalleryApplicationPager)` -- Function `*DedicatedHostGroupsClient.Update` parameter(s) have been changed from `(context.Context, string, string, DedicatedHostGroupUpdate, *DedicatedHostGroupsUpdateOptions)` to `(context.Context, string, string, DedicatedHostGroupUpdate, *DedicatedHostGroupsClientUpdateOptions)` -- Function `*DedicatedHostGroupsClient.Update` return value(s) have been changed from `(DedicatedHostGroupsUpdateResponse, error)` to `(DedicatedHostGroupsClientUpdateResponse, error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.List` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMExtensionsListOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMExtensionsClientListOptions)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.List` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsListResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientListResponse, error)` -- Function `*RestorePointsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *RestorePointsGetOptions)` to `(context.Context, string, string, string, *RestorePointsClientGetOptions)` -- Function `*RestorePointsClient.Get` return value(s) have been changed from `(RestorePointsGetResponse, error)` to `(RestorePointsClientGetResponse, error)` -- Function `*GalleriesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Gallery, *GalleriesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Gallery, *GalleriesClientBeginCreateOrUpdateOptions)` -- Function `*GalleriesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleriesCreateOrUpdatePollerResponse, error)` to `(GalleriesClientCreateOrUpdatePollerResponse, error)` -- Function `*VirtualMachinesClient.BeginDeallocate` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginDeallocateOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginDeallocateOptions)` -- Function `*VirtualMachinesClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachinesDeallocatePollerResponse, error)` to `(VirtualMachinesClientDeallocatePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineRunCommand, *VirtualMachineScaleSetVMRunCommandsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineRunCommand, *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse, error)` -- Function `*VirtualMachinesClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginStartOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginStartOptions)` -- Function `*VirtualMachinesClient.BeginStart` return value(s) have been changed from `(VirtualMachinesStartPollerResponse, error)` to `(VirtualMachinesClientStartPollerResponse, error)` -- Function `*SharedGalleryImageVersionsClient.List` parameter(s) have been changed from `(string, string, string, *SharedGalleryImageVersionsListOptions)` to `(string, string, string, *SharedGalleryImageVersionsClientListOptions)` -- Function `*SharedGalleryImageVersionsClient.List` return value(s) have been changed from `(*SharedGalleryImageVersionsListPager)` to `(*SharedGalleryImageVersionsClientListPager)` -- Function `*DiskEncryptionSetsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskEncryptionSetUpdate, *DiskEncryptionSetsBeginUpdateOptions)` to `(context.Context, string, string, DiskEncryptionSetUpdate, *DiskEncryptionSetsClientBeginUpdateOptions)` -- Function `*DiskEncryptionSetsClient.BeginUpdate` return value(s) have been changed from `(DiskEncryptionSetsUpdatePollerResponse, error)` to `(DiskEncryptionSetsClientUpdatePollerResponse, error)` -- Function `*DiskEncryptionSetsClient.ListAssociatedResources` parameter(s) have been changed from `(string, string, *DiskEncryptionSetsListAssociatedResourcesOptions)` to `(string, string, *DiskEncryptionSetsClientListAssociatedResourcesOptions)` -- Function `*DiskEncryptionSetsClient.ListAssociatedResources` return value(s) have been changed from `(*DiskEncryptionSetsListAssociatedResourcesPager)` to `(*DiskEncryptionSetsClientListAssociatedResourcesPager)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginDeleteOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMsDeletePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientDeletePollerResponse, error)` -- Function `*SnapshotsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, SnapshotUpdate, *SnapshotsBeginUpdateOptions)` to `(context.Context, string, string, SnapshotUpdate, *SnapshotsClientBeginUpdateOptions)` -- Function `*SnapshotsClient.BeginUpdate` return value(s) have been changed from `(SnapshotsUpdatePollerResponse, error)` to `(SnapshotsClientUpdatePollerResponse, error)` -- Function `*DedicatedHostsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, DedicatedHostUpdate, *DedicatedHostsBeginUpdateOptions)` to `(context.Context, string, string, string, DedicatedHostUpdate, *DedicatedHostsClientBeginUpdateOptions)` -- Function `*DedicatedHostsClient.BeginUpdate` return value(s) have been changed from `(DedicatedHostsUpdatePollerResponse, error)` to `(DedicatedHostsClientUpdatePollerResponse, error)` -- Function `*VirtualMachinesClient.InstanceView` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesInstanceViewOptions)` to `(context.Context, string, string, *VirtualMachinesClientInstanceViewOptions)` -- Function `*VirtualMachinesClient.InstanceView` return value(s) have been changed from `(VirtualMachinesInstanceViewResponse, error)` to `(VirtualMachinesClientInstanceViewResponse, error)` -- Function `*OperationsClient.List` parameter(s) have been changed from `(context.Context, *OperationsListOptions)` to `(context.Context, *OperationsClientListOptions)` -- Function `*OperationsClient.List` return value(s) have been changed from `(OperationsListResponse, error)` to `(OperationsClientListResponse, error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtension, *VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtension, *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse, error)` -- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryImageVersion, *GalleryImageVersionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, GalleryImageVersion, *GalleryImageVersionsClientBeginCreateOrUpdateOptions)` -- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImageVersionsCreateOrUpdatePollerResponse, error)` to `(GalleryImageVersionsClientCreateOrUpdatePollerResponse, error)` -- Function `*DiskAccessesClient.GetAPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, *DiskAccessesGetAPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, *DiskAccessesClientGetAPrivateEndpointConnectionOptions)` -- Function `*DiskAccessesClient.GetAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesGetAPrivateEndpointConnectionResponse, error)` to `(DiskAccessesClientGetAPrivateEndpointConnectionResponse, error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsDeletePollerResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse, error)` -- Function `*VirtualMachineRunCommandsClient.GetByVirtualMachine` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineRunCommandsGetByVirtualMachineOptions)` to `(context.Context, string, string, string, *VirtualMachineRunCommandsClientGetByVirtualMachineOptions)` -- Function `*VirtualMachineRunCommandsClient.GetByVirtualMachine` return value(s) have been changed from `(VirtualMachineRunCommandsGetByVirtualMachineResponse, error)` to `(VirtualMachineRunCommandsClientGetByVirtualMachineResponse, error)` -- Function `*SnapshotsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *SnapshotsBeginDeleteOptions)` to `(context.Context, string, string, *SnapshotsClientBeginDeleteOptions)` -- Function `*SnapshotsClient.BeginDelete` return value(s) have been changed from `(SnapshotsDeletePollerResponse, error)` to `(SnapshotsClientDeletePollerResponse, error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesBeginCancelOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesCancelPollerResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse, error)` -- Function `*VirtualMachinesClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginPowerOffOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginPowerOffOptions)` -- Function `*VirtualMachinesClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachinesPowerOffPollerResponse, error)` to `(VirtualMachinesClientPowerOffPollerResponse, error)` -- Function `*VirtualMachineExtensionImagesClient.ListTypes` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineExtensionImagesListTypesOptions)` to `(context.Context, string, string, *VirtualMachineExtensionImagesClientListTypesOptions)` -- Function `*VirtualMachineExtensionImagesClient.ListTypes` return value(s) have been changed from `(VirtualMachineExtensionImagesListTypesResponse, error)` to `(VirtualMachineExtensionImagesClientListTypesResponse, error)` -- Function `*SSHPublicKeysClient.ListBySubscription` parameter(s) have been changed from `(*SSHPublicKeysListBySubscriptionOptions)` to `(*SSHPublicKeysClientListBySubscriptionOptions)` -- Function `*SSHPublicKeysClient.ListBySubscription` return value(s) have been changed from `(*SSHPublicKeysListBySubscriptionPager)` to `(*SSHPublicKeysClientListBySubscriptionPager)` -- Function `*VirtualMachineImagesClient.ListSKUs` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineImagesListSKUsOptions)` to `(context.Context, string, string, string, *VirtualMachineImagesClientListSKUsOptions)` -- Function `*VirtualMachineImagesClient.ListSKUs` return value(s) have been changed from `(VirtualMachineImagesListSKUsResponse, error)` to `(VirtualMachineImagesClientListSKUsResponse, error)` -- Function `*RestorePointCollectionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *RestorePointCollectionsBeginDeleteOptions)` to `(context.Context, string, string, *RestorePointCollectionsClientBeginDeleteOptions)` -- Function `*RestorePointCollectionsClient.BeginDelete` return value(s) have been changed from `(RestorePointCollectionsDeletePollerResponse, error)` to `(RestorePointCollectionsClientDeletePollerResponse, error)` -- Function `*VirtualMachineExtensionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineExtensionUpdate, *VirtualMachineExtensionsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineExtensionUpdate, *VirtualMachineExtensionsClientBeginUpdateOptions)` -- Function `*VirtualMachineExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineExtensionsUpdatePollerResponse, error)` to `(VirtualMachineExtensionsClientUpdatePollerResponse, error)` -- Function `*DisksClient.BeginGrantAccess` parameter(s) have been changed from `(context.Context, string, string, GrantAccessData, *DisksBeginGrantAccessOptions)` to `(context.Context, string, string, GrantAccessData, *DisksClientBeginGrantAccessOptions)` -- Function `*DisksClient.BeginGrantAccess` return value(s) have been changed from `(DisksGrantAccessPollerResponse, error)` to `(DisksClientGrantAccessPollerResponse, error)` -- Function `*SharedGalleriesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *SharedGalleriesGetOptions)` to `(context.Context, string, string, *SharedGalleriesClientGetOptions)` -- Function `*SharedGalleriesClient.Get` return value(s) have been changed from `(SharedGalleriesGetResponse, error)` to `(SharedGalleriesClientGetResponse, error)` -- Function `*VirtualMachineExtensionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineExtensionsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineExtensionsClientBeginDeleteOptions)` -- Function `*VirtualMachineExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineExtensionsDeletePollerResponse, error)` to `(VirtualMachineExtensionsClientDeletePollerResponse, error)` -- Function `*CloudServiceRoleInstancesClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesGetInstanceViewOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientGetInstanceViewOptions)` -- Function `*CloudServiceRoleInstancesClient.GetInstanceView` return value(s) have been changed from `(CloudServiceRoleInstancesGetInstanceViewResponse, error)` to `(CloudServiceRoleInstancesClientGetInstanceViewResponse, error)` -- Function `*VirtualMachineScaleSetsClient.List` parameter(s) have been changed from `(string, *VirtualMachineScaleSetsListOptions)` to `(string, *VirtualMachineScaleSetsClientListOptions)` -- Function `*VirtualMachineScaleSetsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetsListPager)` to `(*VirtualMachineScaleSetsClientListPager)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineScaleSetVMRunCommandsBeginUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse, error)` -- Function `*DedicatedHostGroupsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DedicatedHostGroupsListByResourceGroupOptions)` to `(string, *DedicatedHostGroupsClientListByResourceGroupOptions)` -- Function `*DedicatedHostGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*DedicatedHostGroupsListByResourceGroupPager)` to `(*DedicatedHostGroupsClientListByResourceGroupPager)` -- Function `*CommunityGalleriesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *CommunityGalleriesGetOptions)` to `(context.Context, string, string, *CommunityGalleriesClientGetOptions)` -- Function `*CommunityGalleriesClient.Get` return value(s) have been changed from `(CommunityGalleriesGetResponse, error)` to `(CommunityGalleriesClientGetResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` parameter(s) have been changed from `(context.Context, string, string, string, RunCommandInput, *VirtualMachineScaleSetVMsBeginRunCommandOptions)` to `(context.Context, string, string, string, RunCommandInput, *VirtualMachineScaleSetVMsClientBeginRunCommandOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachineScaleSetVMsRunCommandPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientRunCommandPollerResponse, error)` -- Function `*CapacityReservationGroupsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *CapacityReservationGroupsGetOptions)` to `(context.Context, string, string, *CapacityReservationGroupsClientGetOptions)` -- Function `*CapacityReservationGroupsClient.Get` return value(s) have been changed from `(CapacityReservationGroupsGetResponse, error)` to `(CapacityReservationGroupsClientGetResponse, error)` -- Function `*AvailabilitySetsClient.ListBySubscription` parameter(s) have been changed from `(*AvailabilitySetsListBySubscriptionOptions)` to `(*AvailabilitySetsClientListBySubscriptionOptions)` -- Function `*AvailabilitySetsClient.ListBySubscription` return value(s) have been changed from `(*AvailabilitySetsListBySubscriptionPager)` to `(*AvailabilitySetsClientListBySubscriptionPager)` -- Function `*VirtualMachineScaleSetsClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginReimageOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginReimageOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetsReimagePollerResponse, error)` to `(VirtualMachineScaleSetsClientReimagePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginRedeployOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginRedeployOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetVMsRedeployPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientRedeployPollerResponse, error)` -- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineExtension, *VirtualMachineExtensionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineExtension, *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions)` -- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineExtensionsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineExtensionsClientCreateOrUpdatePollerResponse, error)` -- Function `*RestorePointCollectionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *RestorePointCollectionsGetOptions)` to `(context.Context, string, string, *RestorePointCollectionsClientGetOptions)` -- Function `*RestorePointCollectionsClient.Get` return value(s) have been changed from `(RestorePointCollectionsGetResponse, error)` to `(RestorePointCollectionsClientGetResponse, error)` -- Function `*VirtualMachinesClient.BeginAssessPatches` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginAssessPatchesOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginAssessPatchesOptions)` -- Function `*VirtualMachinesClient.BeginAssessPatches` return value(s) have been changed from `(VirtualMachinesAssessPatchesPollerResponse, error)` to `(VirtualMachinesClientAssessPatchesPollerResponse, error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` parameter(s) have been changed from `(string, string, string, *VirtualMachineScaleSetVMRunCommandsListOptions)` to `(string, string, string, *VirtualMachineScaleSetVMRunCommandsClientListOptions)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMRunCommandsListPager)` to `(*VirtualMachineScaleSetVMRunCommandsClientListPager)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineScaleSetExtension, *VirtualMachineScaleSetExtensionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineScaleSetExtension, *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse, error)` -- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` parameter(s) have been changed from `(string, *CloudServiceOperatingSystemsListOSVersionsOptions)` to `(string, *CloudServiceOperatingSystemsClientListOSVersionsOptions)` -- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` return value(s) have been changed from `(*CloudServiceOperatingSystemsListOSVersionsPager)` to `(*CloudServiceOperatingSystemsClientListOSVersionsPager)` -- Function `*VirtualMachinesClient.BeginPerformMaintenance` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginPerformMaintenanceOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginPerformMaintenanceOptions)` -- Function `*VirtualMachinesClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachinesPerformMaintenancePollerResponse, error)` to `(VirtualMachinesClientPerformMaintenancePollerResponse, error)` -- Function `*VirtualMachineScaleSetExtensionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsGetOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsClientGetOptions)` -- Function `*VirtualMachineScaleSetExtensionsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsGetResponse, error)` to `(VirtualMachineScaleSetExtensionsClientGetResponse, error)` -- Function `*CapacityReservationsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *CapacityReservationsBeginDeleteOptions)` to `(context.Context, string, string, string, *CapacityReservationsClientBeginDeleteOptions)` -- Function `*CapacityReservationsClient.BeginDelete` return value(s) have been changed from `(CapacityReservationsDeletePollerResponse, error)` to `(CapacityReservationsClientDeletePollerResponse, error)` -- Function `*GalleryApplicationsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryApplicationUpdate, *GalleryApplicationsBeginUpdateOptions)` to `(context.Context, string, string, string, GalleryApplicationUpdate, *GalleryApplicationsClientBeginUpdateOptions)` -- Function `*GalleryApplicationsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationsUpdatePollerResponse, error)` to `(GalleryApplicationsClientUpdatePollerResponse, error)` -- Function `*VirtualMachineExtensionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineExtensionsGetOptions)` to `(context.Context, string, string, string, *VirtualMachineExtensionsClientGetOptions)` -- Function `*VirtualMachineExtensionsClient.Get` return value(s) have been changed from `(VirtualMachineExtensionsGetResponse, error)` to `(VirtualMachineExtensionsClientGetResponse, error)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsGetOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsClientGetOptions)` -- Function `*VirtualMachineScaleSetVMRunCommandsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsGetResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientGetResponse, error)` -- Function `*DiskAccessesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskAccess, *DiskAccessesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, DiskAccess, *DiskAccessesClientBeginCreateOrUpdateOptions)` -- Function `*DiskAccessesClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskAccessesCreateOrUpdatePollerResponse, error)` to `(DiskAccessesClientCreateOrUpdatePollerResponse, error)` -- Function `*SSHPublicKeysClient.GenerateKeyPair` parameter(s) have been changed from `(context.Context, string, string, *SSHPublicKeysGenerateKeyPairOptions)` to `(context.Context, string, string, *SSHPublicKeysClientGenerateKeyPairOptions)` -- Function `*SSHPublicKeysClient.GenerateKeyPair` return value(s) have been changed from `(SSHPublicKeysGenerateKeyPairResponse, error)` to `(SSHPublicKeysClientGenerateKeyPairResponse, error)` -- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` parameter(s) have been changed from `(string, string, *VirtualMachineRunCommandsListByVirtualMachineOptions)` to `(string, string, *VirtualMachineRunCommandsClientListByVirtualMachineOptions)` -- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` return value(s) have been changed from `(*VirtualMachineRunCommandsListByVirtualMachinePager)` to `(*VirtualMachineRunCommandsClientListByVirtualMachinePager)` -- Function `*VirtualMachinesClient.ListAll` parameter(s) have been changed from `(*VirtualMachinesListAllOptions)` to `(*VirtualMachinesClientListAllOptions)` -- Function `*VirtualMachinesClient.ListAll` return value(s) have been changed from `(*VirtualMachinesListAllPager)` to `(*VirtualMachinesClientListAllPager)` -- Function `*SSHPublicKeysClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *SSHPublicKeysDeleteOptions)` to `(context.Context, string, string, *SSHPublicKeysClientDeleteOptions)` -- Function `*SSHPublicKeysClient.Delete` return value(s) have been changed from `(SSHPublicKeysDeleteResponse, error)` to `(SSHPublicKeysClientDeleteResponse, error)` -- Function `*SnapshotsClient.List` parameter(s) have been changed from `(*SnapshotsListOptions)` to `(*SnapshotsClientListOptions)` -- Function `*SnapshotsClient.List` return value(s) have been changed from `(*SnapshotsListPager)` to `(*SnapshotsClientListPager)` -- Function `*SnapshotsClient.BeginRevokeAccess` parameter(s) have been changed from `(context.Context, string, string, *SnapshotsBeginRevokeAccessOptions)` to `(context.Context, string, string, *SnapshotsClientBeginRevokeAccessOptions)` -- Function `*SnapshotsClient.BeginRevokeAccess` return value(s) have been changed from `(SnapshotsRevokeAccessPollerResponse, error)` to `(SnapshotsClientRevokeAccessPollerResponse, error)` -- Function `*CapacityReservationsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, CapacityReservationUpdate, *CapacityReservationsBeginUpdateOptions)` to `(context.Context, string, string, string, CapacityReservationUpdate, *CapacityReservationsClientBeginUpdateOptions)` -- Function `*CapacityReservationsClient.BeginUpdate` return value(s) have been changed from `(CapacityReservationsUpdatePollerResponse, error)` to `(CapacityReservationsClientUpdatePollerResponse, error)` -- Function `*CloudServiceRolesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRolesGetOptions)` to `(context.Context, string, string, string, *CloudServiceRolesClientGetOptions)` -- Function `*CloudServiceRolesClient.Get` return value(s) have been changed from `(CloudServiceRolesGetResponse, error)` to `(CloudServiceRolesClientGetResponse, error)` -- Function `*ImagesClient.List` parameter(s) have been changed from `(*ImagesListOptions)` to `(*ImagesClientListOptions)` -- Function `*ImagesClient.List` return value(s) have been changed from `(*ImagesListPager)` to `(*ImagesClientListPager)` -- Function `*RestorePointCollectionsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, RestorePointCollection, *RestorePointCollectionsCreateOrUpdateOptions)` to `(context.Context, string, string, RestorePointCollection, *RestorePointCollectionsClientCreateOrUpdateOptions)` -- Function `*RestorePointCollectionsClient.CreateOrUpdate` return value(s) have been changed from `(RestorePointCollectionsCreateOrUpdateResponse, error)` to `(RestorePointCollectionsClientCreateOrUpdateResponse, error)` -- Function `*ProximityPlacementGroupsClient.Update` parameter(s) have been changed from `(context.Context, string, string, ProximityPlacementGroupUpdate, *ProximityPlacementGroupsUpdateOptions)` to `(context.Context, string, string, ProximityPlacementGroupUpdate, *ProximityPlacementGroupsClientUpdateOptions)` -- Function `*ProximityPlacementGroupsClient.Update` return value(s) have been changed from `(ProximityPlacementGroupsUpdateResponse, error)` to `(ProximityPlacementGroupsClientUpdateResponse, error)` -- Function `*RestorePointsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *RestorePointsBeginDeleteOptions)` to `(context.Context, string, string, string, *RestorePointsClientBeginDeleteOptions)` -- Function `*RestorePointsClient.BeginDelete` return value(s) have been changed from `(RestorePointsDeletePollerResponse, error)` to `(RestorePointsClientDeletePollerResponse, error)` -- Function `*DiskAccessesClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DiskAccessesListByResourceGroupOptions)` to `(string, *DiskAccessesClientListByResourceGroupOptions)` -- Function `*DiskAccessesClient.ListByResourceGroup` return value(s) have been changed from `(*DiskAccessesListByResourceGroupPager)` to `(*DiskAccessesClientListByResourceGroupPager)` -- Function `*GallerySharingProfileClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, SharingUpdate, *GallerySharingProfileBeginUpdateOptions)` to `(context.Context, string, string, SharingUpdate, *GallerySharingProfileClientBeginUpdateOptions)` -- Function `*GallerySharingProfileClient.BeginUpdate` return value(s) have been changed from `(GallerySharingProfileUpdatePollerResponse, error)` to `(GallerySharingProfileClientUpdatePollerResponse, error)` -- Function `*GalleryApplicationsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryApplicationsBeginDeleteOptions)` to `(context.Context, string, string, string, *GalleryApplicationsClientBeginDeleteOptions)` -- Function `*GalleryApplicationsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationsDeletePollerResponse, error)` to `(GalleryApplicationsClientDeletePollerResponse, error)` -- Function `*ProximityPlacementGroupsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *ProximityPlacementGroupsDeleteOptions)` to `(context.Context, string, string, *ProximityPlacementGroupsClientDeleteOptions)` -- Function `*ProximityPlacementGroupsClient.Delete` return value(s) have been changed from `(ProximityPlacementGroupsDeleteResponse, error)` to `(ProximityPlacementGroupsClientDeleteResponse, error)` -- Function `*DiskAccessesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskAccessUpdate, *DiskAccessesBeginUpdateOptions)` to `(context.Context, string, string, DiskAccessUpdate, *DiskAccessesClientBeginUpdateOptions)` -- Function `*DiskAccessesClient.BeginUpdate` return value(s) have been changed from `(DiskAccessesUpdatePollerResponse, error)` to `(DiskAccessesClientUpdatePollerResponse, error)` -- Function `*DedicatedHostGroupsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, DedicatedHostGroup, *DedicatedHostGroupsCreateOrUpdateOptions)` to `(context.Context, string, string, DedicatedHostGroup, *DedicatedHostGroupsClientCreateOrUpdateOptions)` -- Function `*DedicatedHostGroupsClient.CreateOrUpdate` return value(s) have been changed from `(DedicatedHostGroupsCreateOrUpdateResponse, error)` to `(DedicatedHostGroupsClientCreateOrUpdateResponse, error)` -- Function `*RestorePointCollectionsClient.ListAll` parameter(s) have been changed from `(*RestorePointCollectionsListAllOptions)` to `(*RestorePointCollectionsClientListAllOptions)` -- Function `*RestorePointCollectionsClient.ListAll` return value(s) have been changed from `(*RestorePointCollectionsListAllPager)` to `(*RestorePointCollectionsClientListAllPager)` -- Function `*VirtualMachineScaleSetExtensionsClient.List` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetExtensionsListOptions)` to `(string, string, *VirtualMachineScaleSetExtensionsClientListOptions)` -- Function `*VirtualMachineScaleSetExtensionsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetExtensionsListPager)` to `(*VirtualMachineScaleSetExtensionsClientListPager)` -- Function `*CloudServicesClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginReimageOptions)` to `(context.Context, string, string, *CloudServicesClientBeginReimageOptions)` -- Function `*CloudServicesClient.BeginReimage` return value(s) have been changed from `(CloudServicesReimagePollerResponse, error)` to `(CloudServicesClientReimagePollerResponse, error)` -- Function `*GalleryApplicationsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryApplicationsGetOptions)` to `(context.Context, string, string, string, *GalleryApplicationsClientGetOptions)` -- Function `*GalleryApplicationsClient.Get` return value(s) have been changed from `(GalleryApplicationsGetResponse, error)` to `(GalleryApplicationsClientGetResponse, error)` -- Function `*RestorePointsClient.BeginCreate` parameter(s) have been changed from `(context.Context, string, string, string, RestorePoint, *RestorePointsBeginCreateOptions)` to `(context.Context, string, string, string, RestorePoint, *RestorePointsClientBeginCreateOptions)` -- Function `*RestorePointsClient.BeginCreate` return value(s) have been changed from `(RestorePointsCreatePollerResponse, error)` to `(RestorePointsClientCreatePollerResponse, error)` -- Function `*DiskRestorePointClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *DiskRestorePointGetOptions)` to `(context.Context, string, string, string, string, *DiskRestorePointClientGetOptions)` -- Function `*DiskRestorePointClient.Get` return value(s) have been changed from `(DiskRestorePointGetResponse, error)` to `(DiskRestorePointClientGetResponse, error)` -- Function `*GalleryApplicationsClient.ListByGallery` parameter(s) have been changed from `(string, string, *GalleryApplicationsListByGalleryOptions)` to `(string, string, *GalleryApplicationsClientListByGalleryOptions)` -- Function `*GalleryApplicationsClient.ListByGallery` return value(s) have been changed from `(*GalleryApplicationsListByGalleryPager)` to `(*GalleryApplicationsClientListByGalleryPager)` -- Function `*DedicatedHostsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *DedicatedHostsBeginDeleteOptions)` to `(context.Context, string, string, string, *DedicatedHostsClientBeginDeleteOptions)` -- Function `*DedicatedHostsClient.BeginDelete` return value(s) have been changed from `(DedicatedHostsDeletePollerResponse, error)` to `(DedicatedHostsClientDeletePollerResponse, error)` -- Function `*VirtualMachineImagesEdgeZoneClient.ListOffers` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineImagesEdgeZoneListOffersOptions)` to `(context.Context, string, string, string, *VirtualMachineImagesEdgeZoneClientListOffersOptions)` -- Function `*VirtualMachineImagesEdgeZoneClient.ListOffers` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListOffersResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListOffersResponse, error)` -- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` parameter(s) have been changed from `(string, string, *CloudServicesUpdateDomainListUpdateDomainsOptions)` to `(string, string, *CloudServicesUpdateDomainClientListUpdateDomainsOptions)` -- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` return value(s) have been changed from `(*CloudServicesUpdateDomainListUpdateDomainsPager)` to `(*CloudServicesUpdateDomainClientListUpdateDomainsPager)` -- Function `*ResourceSKUsClient.List` parameter(s) have been changed from `(*ResourceSKUsListOptions)` to `(*ResourceSKUsClientListOptions)` -- Function `*ResourceSKUsClient.List` return value(s) have been changed from `(*ResourceSKUsListPager)` to `(*ResourceSKUsClientListPager)` -- Function `*VirtualMachineScaleSetVMsClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsGetInstanceViewOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientGetInstanceViewOptions)` -- Function `*VirtualMachineScaleSetVMsClient.GetInstanceView` return value(s) have been changed from `(VirtualMachineScaleSetVMsGetInstanceViewResponse, error)` to `(VirtualMachineScaleSetVMsClientGetInstanceViewResponse, error)` -- Function `*VirtualMachineScaleSetsClient.ListSKUs` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetsListSKUsOptions)` to `(string, string, *VirtualMachineScaleSetsClientListSKUsOptions)` -- Function `*VirtualMachineScaleSetsClient.ListSKUs` return value(s) have been changed from `(*VirtualMachineScaleSetsListSKUsPager)` to `(*VirtualMachineScaleSetsClientListSKUsPager)` -- Function `*SnapshotsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *SnapshotsListByResourceGroupOptions)` to `(string, *SnapshotsClientListByResourceGroupOptions)` -- Function `*SnapshotsClient.ListByResourceGroup` return value(s) have been changed from `(*SnapshotsListByResourceGroupPager)` to `(*SnapshotsClientListByResourceGroupPager)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsBeginUpdateInstancesOptions)` to `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` return value(s) have been changed from `(VirtualMachineScaleSetsUpdateInstancesPollerResponse, error)` to `(VirtualMachineScaleSetsClientUpdateInstancesPollerResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginPerformMaintenanceOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetsPerformMaintenancePollerResponse, error)` to `(VirtualMachineScaleSetsClientPerformMaintenancePollerResponse, error)` -- Function `*DiskAccessesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DiskAccessesGetOptions)` to `(context.Context, string, string, *DiskAccessesClientGetOptions)` -- Function `*DiskAccessesClient.Get` return value(s) have been changed from `(DiskAccessesGetResponse, error)` to `(DiskAccessesClientGetResponse, error)` -- Function `*CapacityReservationGroupsClient.Update` parameter(s) have been changed from `(context.Context, string, string, CapacityReservationGroupUpdate, *CapacityReservationGroupsUpdateOptions)` to `(context.Context, string, string, CapacityReservationGroupUpdate, *CapacityReservationGroupsClientUpdateOptions)` -- Function `*CapacityReservationGroupsClient.Update` return value(s) have been changed from `(CapacityReservationGroupsUpdateResponse, error)` to `(CapacityReservationGroupsClientUpdateResponse, error)` -- Function `*CloudServicesClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesGetInstanceViewOptions)` to `(context.Context, string, string, *CloudServicesClientGetInstanceViewOptions)` -- Function `*CloudServicesClient.GetInstanceView` return value(s) have been changed from `(CloudServicesGetInstanceViewResponse, error)` to `(CloudServicesClientGetInstanceViewResponse, error)` -- Function `*VirtualMachinesClient.BeginRedeploy` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginRedeployOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginRedeployOptions)` -- Function `*VirtualMachinesClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachinesRedeployPollerResponse, error)` to `(VirtualMachinesClientRedeployPollerResponse, error)` -- Function `*SSHPublicKeysClient.ListByResourceGroup` parameter(s) have been changed from `(string, *SSHPublicKeysListByResourceGroupOptions)` to `(string, *SSHPublicKeysClientListByResourceGroupOptions)` -- Function `*SSHPublicKeysClient.ListByResourceGroup` return value(s) have been changed from `(*SSHPublicKeysListByResourceGroupPager)` to `(*SSHPublicKeysClientListByResourceGroupPager)` -- Function `*VirtualMachineImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, string, *VirtualMachineImagesGetOptions)` to `(context.Context, string, string, string, string, string, *VirtualMachineImagesClientGetOptions)` -- Function `*VirtualMachineImagesClient.Get` return value(s) have been changed from `(VirtualMachineImagesGetResponse, error)` to `(VirtualMachineImagesClientGetResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsBeginDeleteInstancesOptions)` to `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` return value(s) have been changed from `(VirtualMachineScaleSetsDeleteInstancesPollerResponse, error)` to `(VirtualMachineScaleSetsClientDeleteInstancesPollerResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginStartOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginStartOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetsStartPollerResponse, error)` to `(VirtualMachineScaleSetsClientStartPollerResponse, error)` -- Function `*GalleryImagesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryImageUpdate, *GalleryImagesBeginUpdateOptions)` to `(context.Context, string, string, string, GalleryImageUpdate, *GalleryImagesClientBeginUpdateOptions)` -- Function `*GalleryImagesClient.BeginUpdate` return value(s) have been changed from `(GalleryImagesUpdatePollerResponse, error)` to `(GalleryImagesClientUpdatePollerResponse, error)` -- Function `*DiskRestorePointClient.BeginRevokeAccess` parameter(s) have been changed from `(context.Context, string, string, string, string, *DiskRestorePointBeginRevokeAccessOptions)` to `(context.Context, string, string, string, string, *DiskRestorePointClientBeginRevokeAccessOptions)` -- Function `*DiskRestorePointClient.BeginRevokeAccess` return value(s) have been changed from `(DiskRestorePointRevokeAccessPollerResponse, error)` to `(DiskRestorePointClientRevokeAccessPollerResponse, error)` -- Function `*VirtualMachineExtensionImagesClient.ListVersions` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineExtensionImagesListVersionsOptions)` to `(context.Context, string, string, string, *VirtualMachineExtensionImagesClientListVersionsOptions)` -- Function `*VirtualMachineExtensionImagesClient.ListVersions` return value(s) have been changed from `(VirtualMachineExtensionImagesListVersionsResponse, error)` to `(VirtualMachineExtensionImagesClientListVersionsResponse, error)` -- Function `*DiskEncryptionSetsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DiskEncryptionSetsGetOptions)` to `(context.Context, string, string, *DiskEncryptionSetsClientGetOptions)` -- Function `*DiskEncryptionSetsClient.Get` return value(s) have been changed from `(DiskEncryptionSetsGetResponse, error)` to `(DiskEncryptionSetsClientGetResponse, error)` -- Function `*GalleriesClient.ListByResourceGroup` parameter(s) have been changed from `(string, *GalleriesListByResourceGroupOptions)` to `(string, *GalleriesClientListByResourceGroupOptions)` -- Function `*GalleriesClient.ListByResourceGroup` return value(s) have been changed from `(*GalleriesListByResourceGroupPager)` to `(*GalleriesClientListByResourceGroupPager)` -- Function `*VirtualMachineRunCommandsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineRunCommandsGetOptions)` to `(context.Context, string, string, *VirtualMachineRunCommandsClientGetOptions)` -- Function `*VirtualMachineRunCommandsClient.Get` return value(s) have been changed from `(VirtualMachineRunCommandsGetResponse, error)` to `(VirtualMachineRunCommandsClientGetResponse, error)` -- Function `*GalleriesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *GalleriesBeginDeleteOptions)` to `(context.Context, string, string, *GalleriesClientBeginDeleteOptions)` -- Function `*GalleriesClient.BeginDelete` return value(s) have been changed from `(GalleriesDeletePollerResponse, error)` to `(GalleriesClientDeletePollerResponse, error)` -- Function `*SnapshotsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Snapshot, *SnapshotsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Snapshot, *SnapshotsClientBeginCreateOrUpdateOptions)` -- Function `*SnapshotsClient.BeginCreateOrUpdate` return value(s) have been changed from `(SnapshotsCreateOrUpdatePollerResponse, error)` to `(SnapshotsClientCreateOrUpdatePollerResponse, error)` -- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` parameter(s) have been changed from `(string, string, *CapacityReservationsListByCapacityReservationGroupOptions)` to `(string, string, *CapacityReservationsClientListByCapacityReservationGroupOptions)` -- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` return value(s) have been changed from `(*CapacityReservationsListByCapacityReservationGroupPager)` to `(*CapacityReservationsClientListByCapacityReservationGroupPager)` -- Function `*VirtualMachinesClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginReimageOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginReimageOptions)` -- Function `*VirtualMachinesClient.BeginReimage` return value(s) have been changed from `(VirtualMachinesReimagePollerResponse, error)` to `(VirtualMachinesClientReimagePollerResponse, error)` -- Function `*VirtualMachineExtensionImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineExtensionImagesGetOptions)` to `(context.Context, string, string, string, string, *VirtualMachineExtensionImagesClientGetOptions)` -- Function `*VirtualMachineExtensionImagesClient.Get` return value(s) have been changed from `(VirtualMachineExtensionImagesGetResponse, error)` to `(VirtualMachineExtensionImagesClientGetResponse, error)` -- Function `*CloudServiceRoleInstancesClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginReimageOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginReimageOptions)` -- Function `*CloudServiceRoleInstancesClient.BeginReimage` return value(s) have been changed from `(CloudServiceRoleInstancesReimagePollerResponse, error)` to `(CloudServiceRoleInstancesClientReimagePollerResponse, error)` -- Function `*ImagesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *ImagesBeginDeleteOptions)` to `(context.Context, string, string, *ImagesClientBeginDeleteOptions)` -- Function `*ImagesClient.BeginDelete` return value(s) have been changed from `(ImagesDeletePollerResponse, error)` to `(ImagesClientDeletePollerResponse, error)` -- Function `*GalleryImagesClient.ListByGallery` parameter(s) have been changed from `(string, string, *GalleryImagesListByGalleryOptions)` to `(string, string, *GalleryImagesClientListByGalleryOptions)` -- Function `*GalleryImagesClient.ListByGallery` return value(s) have been changed from `(*GalleryImagesListByGalleryPager)` to `(*GalleryImagesClientListByGalleryPager)` -- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSet, *VirtualMachineScaleSetsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, VirtualMachineScaleSet, *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse, error)` -- Function `*DiskEncryptionSetsClient.List` parameter(s) have been changed from `(*DiskEncryptionSetsListOptions)` to `(*DiskEncryptionSetsClientListOptions)` -- Function `*DiskEncryptionSetsClient.List` return value(s) have been changed from `(*DiskEncryptionSetsListPager)` to `(*DiskEncryptionSetsClientListPager)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSetUpdate, *VirtualMachineScaleSetsBeginUpdateOptions)` to `(context.Context, string, string, VirtualMachineScaleSetUpdate, *VirtualMachineScaleSetsClientBeginUpdateOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetsClientUpdatePollerResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginReimageAllOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginReimageAllOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetsReimageAllPollerResponse, error)` to `(VirtualMachineScaleSetsClientReimageAllPollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginStartOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginStartOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetVMsStartPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientStartPollerResponse, error)` -- Function `*CloudServicesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginDeleteOptions)` to `(context.Context, string, string, *CloudServicesClientBeginDeleteOptions)` -- Function `*CloudServicesClient.BeginDelete` return value(s) have been changed from `(CloudServicesDeletePollerResponse, error)` to `(CloudServicesClientDeletePollerResponse, error)` -- Function `*CommunityGalleryImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CommunityGalleryImagesGetOptions)` to `(context.Context, string, string, string, *CommunityGalleryImagesClientGetOptions)` -- Function `*CommunityGalleryImagesClient.Get` return value(s) have been changed from `(CommunityGalleryImagesGetResponse, error)` to `(CommunityGalleryImagesClientGetResponse, error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsGetOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsClientGetOptions)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsGetResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientGetResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.SimulateEviction` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsSimulateEvictionOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientSimulateEvictionOptions)` -- Function `*VirtualMachineScaleSetVMsClient.SimulateEviction` return value(s) have been changed from `(VirtualMachineScaleSetVMsSimulateEvictionResponse, error)` to `(VirtualMachineScaleSetVMsClientSimulateEvictionResponse, error)` -- Function `*ProximityPlacementGroupsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, ProximityPlacementGroup, *ProximityPlacementGroupsCreateOrUpdateOptions)` to `(context.Context, string, string, ProximityPlacementGroup, *ProximityPlacementGroupsClientCreateOrUpdateOptions)` -- Function `*ProximityPlacementGroupsClient.CreateOrUpdate` return value(s) have been changed from `(ProximityPlacementGroupsCreateOrUpdateResponse, error)` to `(ProximityPlacementGroupsClientCreateOrUpdateResponse, error)` -- Function `*VirtualMachineScaleSetsClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsGetInstanceViewOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientGetInstanceViewOptions)` -- Function `*VirtualMachineScaleSetsClient.GetInstanceView` return value(s) have been changed from `(VirtualMachineScaleSetsGetInstanceViewResponse, error)` to `(VirtualMachineScaleSetsClientGetInstanceViewResponse, error)` -- Function `*ProximityPlacementGroupsClient.ListBySubscription` parameter(s) have been changed from `(*ProximityPlacementGroupsListBySubscriptionOptions)` to `(*ProximityPlacementGroupsClientListBySubscriptionOptions)` -- Function `*ProximityPlacementGroupsClient.ListBySubscription` return value(s) have been changed from `(*ProximityPlacementGroupsListBySubscriptionPager)` to `(*ProximityPlacementGroupsClientListBySubscriptionPager)` -- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskEncryptionSet, *DiskEncryptionSetsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, DiskEncryptionSet, *DiskEncryptionSetsClientBeginCreateOrUpdateOptions)` -- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskEncryptionSetsCreateOrUpdatePollerResponse, error)` to `(DiskEncryptionSetsClientCreateOrUpdatePollerResponse, error)` -- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` parameter(s) have been changed from `(context.Context, string, string, int32, *CloudServicesUpdateDomainBeginWalkUpdateDomainOptions)` to `(context.Context, string, string, int32, *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions)` -- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` return value(s) have been changed from `(CloudServicesUpdateDomainWalkUpdateDomainPollerResponse, error)` to `(CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse, error)` -- Function `*VirtualMachinesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginDeleteOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginDeleteOptions)` -- Function `*VirtualMachinesClient.BeginDelete` return value(s) have been changed from `(VirtualMachinesDeletePollerResponse, error)` to `(VirtualMachinesClientDeletePollerResponse, error)` -- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, PrivateEndpointConnection, *DiskAccessesBeginUpdateAPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, PrivateEndpointConnection, *DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions)` -- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse, error)` to `(DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse, error)` -- Function `*CloudServiceRolesClient.List` parameter(s) have been changed from `(string, string, *CloudServiceRolesListOptions)` to `(string, string, *CloudServiceRolesClientListOptions)` -- Function `*CloudServiceRolesClient.List` return value(s) have been changed from `(*CloudServiceRolesListPager)` to `(*CloudServiceRolesClientListPager)` -- Function `*CloudServicesClient.BeginDeleteInstances` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginDeleteInstancesOptions)` to `(context.Context, string, string, *CloudServicesClientBeginDeleteInstancesOptions)` -- Function `*CloudServicesClient.BeginDeleteInstances` return value(s) have been changed from `(CloudServicesDeleteInstancesPollerResponse, error)` to `(CloudServicesClientDeleteInstancesPollerResponse, error)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtensionUpdate, *VirtualMachineScaleSetVMExtensionsBeginUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtensionUpdate, *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions)` -- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse, error)` -- Function `*CommunityGalleryImageVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *CommunityGalleryImageVersionsGetOptions)` to `(context.Context, string, string, string, string, *CommunityGalleryImageVersionsClientGetOptions)` -- Function `*CommunityGalleryImageVersionsClient.Get` return value(s) have been changed from `(CommunityGalleryImageVersionsGetResponse, error)` to `(CommunityGalleryImageVersionsClientGetResponse, error)` -- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryApplicationVersion, *GalleryApplicationVersionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, GalleryApplicationVersion, *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions)` -- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationVersionsCreateOrUpdatePollerResponse, error)` to `(GalleryApplicationVersionsClientCreateOrUpdatePollerResponse, error)` -- Function `*DisksClient.BeginRevokeAccess` parameter(s) have been changed from `(context.Context, string, string, *DisksBeginRevokeAccessOptions)` to `(context.Context, string, string, *DisksClientBeginRevokeAccessOptions)` -- Function `*DisksClient.BeginRevokeAccess` return value(s) have been changed from `(DisksRevokeAccessPollerResponse, error)` to `(DisksClientRevokeAccessPollerResponse, error)` -- Function `*CloudServiceOperatingSystemsClient.GetOSFamily` parameter(s) have been changed from `(context.Context, string, string, *CloudServiceOperatingSystemsGetOSFamilyOptions)` to `(context.Context, string, string, *CloudServiceOperatingSystemsClientGetOSFamilyOptions)` -- Function `*CloudServiceOperatingSystemsClient.GetOSFamily` return value(s) have been changed from `(CloudServiceOperatingSystemsGetOSFamilyResponse, error)` to `(CloudServiceOperatingSystemsClientGetOSFamilyResponse, error)` -- Function `*SSHPublicKeysClient.Create` parameter(s) have been changed from `(context.Context, string, string, SSHPublicKeyResource, *SSHPublicKeysCreateOptions)` to `(context.Context, string, string, SSHPublicKeyResource, *SSHPublicKeysClientCreateOptions)` -- Function `*SSHPublicKeysClient.Create` return value(s) have been changed from `(SSHPublicKeysCreateResponse, error)` to `(SSHPublicKeysClientCreateResponse, error)` -- Function `*DedicatedHostGroupsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DedicatedHostGroupsGetOptions)` to `(context.Context, string, string, *DedicatedHostGroupsClientGetOptions)` -- Function `*DedicatedHostGroupsClient.Get` return value(s) have been changed from `(DedicatedHostGroupsGetResponse, error)` to `(DedicatedHostGroupsClientGetResponse, error)` -- Function `*GalleryApplicationVersionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryApplicationVersionUpdate, *GalleryApplicationVersionsBeginUpdateOptions)` to `(context.Context, string, string, string, string, GalleryApplicationVersionUpdate, *GalleryApplicationVersionsClientBeginUpdateOptions)` -- Function `*GalleryApplicationVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationVersionsUpdatePollerResponse, error)` to `(GalleryApplicationVersionsClientUpdatePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginPerformMaintenanceOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetVMsPerformMaintenancePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse, error)` -- Function `*DedicatedHostsClient.ListByHostGroup` parameter(s) have been changed from `(string, string, *DedicatedHostsListByHostGroupOptions)` to `(string, string, *DedicatedHostsClientListByHostGroupOptions)` -- Function `*DedicatedHostsClient.ListByHostGroup` return value(s) have been changed from `(*DedicatedHostsListByHostGroupPager)` to `(*DedicatedHostsClientListByHostGroupPager)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.GetLatest` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesGetLatestOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.GetLatest` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesGetLatestResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse, error)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesBeginStartOSUpgradeOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions)` -- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions)` -- Function `*VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData` return value(s) have been changed from `(VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse, error)` to `(VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse, error)` -- Function `*UsageClient.List` parameter(s) have been changed from `(string, *UsageListOptions)` to `(string, *UsageClientListOptions)` -- Function `*UsageClient.List` return value(s) have been changed from `(*UsageListPager)` to `(*UsageClientListPager)` -- Function `*VirtualMachineImagesClient.ListPublishers` parameter(s) have been changed from `(context.Context, string, *VirtualMachineImagesListPublishersOptions)` to `(context.Context, string, *VirtualMachineImagesClientListPublishersOptions)` -- Function `*VirtualMachineImagesClient.ListPublishers` return value(s) have been changed from `(VirtualMachineImagesListPublishersResponse, error)` to `(VirtualMachineImagesClientListPublishersResponse, error)` -- Function `*DisksClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskUpdate, *DisksBeginUpdateOptions)` to `(context.Context, string, string, DiskUpdate, *DisksClientBeginUpdateOptions)` -- Function `*DisksClient.BeginUpdate` return value(s) have been changed from `(DisksUpdatePollerResponse, error)` to `(DisksClientUpdatePollerResponse, error)` -- Function `*CloudServiceRoleInstancesClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginRestartOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginRestartOptions)` -- Function `*CloudServiceRoleInstancesClient.BeginRestart` return value(s) have been changed from `(CloudServiceRoleInstancesRestartPollerResponse, error)` to `(CloudServiceRoleInstancesClientRestartPollerResponse, error)` -- Function `*DiskEncryptionSetsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DiskEncryptionSetsListByResourceGroupOptions)` to `(string, *DiskEncryptionSetsClientListByResourceGroupOptions)` -- Function `*DiskEncryptionSetsClient.ListByResourceGroup` return value(s) have been changed from `(*DiskEncryptionSetsListByResourceGroupPager)` to `(*DiskEncryptionSetsClientListByResourceGroupPager)` -- Function `*VirtualMachineScaleSetsClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginRestartOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginRestartOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetsRestartPollerResponse, error)` to `(VirtualMachineScaleSetsClientRestartPollerResponse, error)` -- Function `*VirtualMachinesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachine, *VirtualMachinesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, VirtualMachine, *VirtualMachinesClientBeginCreateOrUpdateOptions)` -- Function `*VirtualMachinesClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachinesCreateOrUpdatePollerResponse, error)` to `(VirtualMachinesClientCreateOrUpdatePollerResponse, error)` -- Function `*CapacityReservationGroupsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *CapacityReservationGroupsListByResourceGroupOptions)` to `(string, *CapacityReservationGroupsClientListByResourceGroupOptions)` -- Function `*CapacityReservationGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*CapacityReservationGroupsListByResourceGroupPager)` to `(*CapacityReservationGroupsClientListByResourceGroupPager)` -- Function `*GalleryImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryImagesGetOptions)` to `(context.Context, string, string, string, *GalleryImagesClientGetOptions)` -- Function `*GalleryImagesClient.Get` return value(s) have been changed from `(GalleryImagesGetResponse, error)` to `(GalleryImagesClientGetResponse, error)` -- Function `*CloudServicesClient.List` parameter(s) have been changed from `(string, *CloudServicesListOptions)` to `(string, *CloudServicesClientListOptions)` -- Function `*CloudServicesClient.List` return value(s) have been changed from `(*CloudServicesListPager)` to `(*CloudServicesClientListPager)` -- Function `*CloudServiceRoleInstancesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesGetOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientGetOptions)` -- Function `*CloudServiceRoleInstancesClient.Get` return value(s) have been changed from `(CloudServiceRoleInstancesGetResponse, error)` to `(CloudServiceRoleInstancesClientGetResponse, error)` -- Function `*DiskAccessesClient.GetPrivateLinkResources` parameter(s) have been changed from `(context.Context, string, string, *DiskAccessesGetPrivateLinkResourcesOptions)` to `(context.Context, string, string, *DiskAccessesClientGetPrivateLinkResourcesOptions)` -- Function `*DiskAccessesClient.GetPrivateLinkResources` return value(s) have been changed from `(DiskAccessesGetPrivateLinkResourcesResponse, error)` to `(DiskAccessesClientGetPrivateLinkResourcesResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginRedeployOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginRedeployOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetsRedeployPollerResponse, error)` to `(VirtualMachineScaleSetsClientRedeployPollerResponse, error)` -- Function `*DedicatedHostGroupsClient.ListBySubscription` parameter(s) have been changed from `(*DedicatedHostGroupsListBySubscriptionOptions)` to `(*DedicatedHostGroupsClientListBySubscriptionOptions)` -- Function `*DedicatedHostGroupsClient.ListBySubscription` return value(s) have been changed from `(*DedicatedHostGroupsListBySubscriptionPager)` to `(*DedicatedHostGroupsClientListBySubscriptionPager)` -- Function `*ImagesClient.ListByResourceGroup` parameter(s) have been changed from `(string, *ImagesListByResourceGroupOptions)` to `(string, *ImagesClientListByResourceGroupOptions)` -- Function `*ImagesClient.ListByResourceGroup` return value(s) have been changed from `(*ImagesListByResourceGroupPager)` to `(*ImagesClientListByResourceGroupPager)` -- Function `*DiskRestorePointClient.BeginGrantAccess` parameter(s) have been changed from `(context.Context, string, string, string, string, GrantAccessData, *DiskRestorePointBeginGrantAccessOptions)` to `(context.Context, string, string, string, string, GrantAccessData, *DiskRestorePointClientBeginGrantAccessOptions)` -- Function `*DiskRestorePointClient.BeginGrantAccess` return value(s) have been changed from `(DiskRestorePointGrantAccessPollerResponse, error)` to `(DiskRestorePointClientGrantAccessPollerResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginDeallocateOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginDeallocateOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetsDeallocatePollerResponse, error)` to `(VirtualMachineScaleSetsClientDeallocatePollerResponse, error)` -- Function `*ImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *ImagesGetOptions)` to `(context.Context, string, string, *ImagesClientGetOptions)` -- Function `*ImagesClient.Get` return value(s) have been changed from `(ImagesGetResponse, error)` to `(ImagesClientGetResponse, error)` -- Function `*DisksClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Disk, *DisksBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Disk, *DisksClientBeginCreateOrUpdateOptions)` -- Function `*DisksClient.BeginCreateOrUpdate` return value(s) have been changed from `(DisksCreateOrUpdatePollerResponse, error)` to `(DisksClientCreateOrUpdatePollerResponse, error)` -- Function `*CloudServiceRoleInstancesClient.BeginRebuild` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginRebuildOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginRebuildOptions)` -- Function `*CloudServiceRoleInstancesClient.BeginRebuild` return value(s) have been changed from `(CloudServiceRoleInstancesRebuildPollerResponse, error)` to `(CloudServiceRoleInstancesClientRebuildPollerResponse, error)` -- Function `*CloudServicesClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginStartOptions)` to `(context.Context, string, string, *CloudServicesClientBeginStartOptions)` -- Function `*CloudServicesClient.BeginStart` return value(s) have been changed from `(CloudServicesStartPollerResponse, error)` to `(CloudServicesClientStartPollerResponse, error)` -- Function `*DedicatedHostGroupsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *DedicatedHostGroupsDeleteOptions)` to `(context.Context, string, string, *DedicatedHostGroupsClientDeleteOptions)` -- Function `*DedicatedHostGroupsClient.Delete` return value(s) have been changed from `(DedicatedHostGroupsDeleteResponse, error)` to `(DedicatedHostGroupsClientDeleteResponse, error)` -- Function `*DiskAccessesClient.ListPrivateEndpointConnections` parameter(s) have been changed from `(string, string, *DiskAccessesListPrivateEndpointConnectionsOptions)` to `(string, string, *DiskAccessesClientListPrivateEndpointConnectionsOptions)` -- Function `*DiskAccessesClient.ListPrivateEndpointConnections` return value(s) have been changed from `(*DiskAccessesListPrivateEndpointConnectionsPager)` to `(*DiskAccessesClientListPrivateEndpointConnectionsPager)` -- Function `*GalleryImageVersionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryImageVersionsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *GalleryImageVersionsClientBeginDeleteOptions)` -- Function `*GalleryImageVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryImageVersionsDeletePollerResponse, error)` to `(GalleryImageVersionsClientDeletePollerResponse, error)` -- Function `*CloudServicesClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginPowerOffOptions)` to `(context.Context, string, string, *CloudServicesClientBeginPowerOffOptions)` -- Function `*CloudServicesClient.BeginPowerOff` return value(s) have been changed from `(CloudServicesPowerOffPollerResponse, error)` to `(CloudServicesClientPowerOffPollerResponse, error)` -- Function `*GalleryApplicationVersionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryApplicationVersionsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *GalleryApplicationVersionsClientBeginDeleteOptions)` -- Function `*GalleryApplicationVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationVersionsDeletePollerResponse, error)` to `(GalleryApplicationVersionsClientDeletePollerResponse, error)` -- Function `*CapacityReservationsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, CapacityReservation, *CapacityReservationsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, CapacityReservation, *CapacityReservationsClientBeginCreateOrUpdateOptions)` -- Function `*CapacityReservationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(CapacityReservationsCreateOrUpdatePollerResponse, error)` to `(CapacityReservationsClientCreateOrUpdatePollerResponse, error)` -- Function `*DisksClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *DisksBeginDeleteOptions)` to `(context.Context, string, string, *DisksClientBeginDeleteOptions)` -- Function `*DisksClient.BeginDelete` return value(s) have been changed from `(DisksDeletePollerResponse, error)` to `(DisksClientDeletePollerResponse, error)` -- Function `*AvailabilitySetsClient.Update` parameter(s) have been changed from `(context.Context, string, string, AvailabilitySetUpdate, *AvailabilitySetsUpdateOptions)` to `(context.Context, string, string, AvailabilitySetUpdate, *AvailabilitySetsClientUpdateOptions)` -- Function `*AvailabilitySetsClient.Update` return value(s) have been changed from `(AvailabilitySetsUpdateResponse, error)` to `(AvailabilitySetsClientUpdateResponse, error)` -- Function `*SharedGalleryImageVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *SharedGalleryImageVersionsGetOptions)` to `(context.Context, string, string, string, string, *SharedGalleryImageVersionsClientGetOptions)` -- Function `*SharedGalleryImageVersionsClient.Get` return value(s) have been changed from `(SharedGalleryImageVersionsGetResponse, error)` to `(SharedGalleryImageVersionsClientGetResponse, error)` -- Function `*VirtualMachineSizesClient.List` parameter(s) have been changed from `(context.Context, string, *VirtualMachineSizesListOptions)` to `(context.Context, string, *VirtualMachineSizesClientListOptions)` -- Function `*VirtualMachineSizesClient.List` return value(s) have been changed from `(VirtualMachineSizesListResponse, error)` to `(VirtualMachineSizesClientListResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginDeleteOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginDeleteOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetsDeletePollerResponse, error)` to `(VirtualMachineScaleSetsClientDeletePollerResponse, error)` -- Function `*VirtualMachineRunCommandsClient.List` parameter(s) have been changed from `(string, *VirtualMachineRunCommandsListOptions)` to `(string, *VirtualMachineRunCommandsClientListOptions)` -- Function `*VirtualMachineRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineRunCommandsListPager)` to `(*VirtualMachineRunCommandsClientListPager)` -- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineRunCommand, *VirtualMachineRunCommandsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineRunCommand, *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions)` -- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse, error)` -- Function `*SSHPublicKeysClient.Update` parameter(s) have been changed from `(context.Context, string, string, SSHPublicKeyUpdateResource, *SSHPublicKeysUpdateOptions)` to `(context.Context, string, string, SSHPublicKeyUpdateResource, *SSHPublicKeysClientUpdateOptions)` -- Function `*SSHPublicKeysClient.Update` return value(s) have been changed from `(SSHPublicKeysUpdateResponse, error)` to `(SSHPublicKeysClientUpdateResponse, error)` -- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` parameter(s) have been changed from `(context.Context, string, string, OrchestrationServiceStateInput, *VirtualMachineScaleSetsBeginSetOrchestrationServiceStateOptions)` to `(context.Context, string, string, OrchestrationServiceStateInput, *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions)` -- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` return value(s) have been changed from `(VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse, error)` to `(VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginPowerOffOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginPowerOffOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetVMsPowerOffPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientPowerOffPollerResponse, error)` -- Function `*AvailabilitySetsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, AvailabilitySet, *AvailabilitySetsCreateOrUpdateOptions)` to `(context.Context, string, string, AvailabilitySet, *AvailabilitySetsClientCreateOrUpdateOptions)` -- Function `*AvailabilitySetsClient.CreateOrUpdate` return value(s) have been changed from `(AvailabilitySetsCreateOrUpdateResponse, error)` to `(AvailabilitySetsClientCreateOrUpdateResponse, error)` -- Function `*CloudServiceRoleInstancesClient.GetRemoteDesktopFile` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesGetRemoteDesktopFileOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions)` -- Function `*CloudServiceRoleInstancesClient.GetRemoteDesktopFile` return value(s) have been changed from `(CloudServiceRoleInstancesGetRemoteDesktopFileResponse, error)` to `(CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse, error)` -- Function `*CloudServicesUpdateDomainClient.GetUpdateDomain` parameter(s) have been changed from `(context.Context, string, string, int32, *CloudServicesUpdateDomainGetUpdateDomainOptions)` to `(context.Context, string, string, int32, *CloudServicesUpdateDomainClientGetUpdateDomainOptions)` -- Function `*CloudServicesUpdateDomainClient.GetUpdateDomain` return value(s) have been changed from `(CloudServicesUpdateDomainGetUpdateDomainResponse, error)` to `(CloudServicesUpdateDomainClientGetUpdateDomainResponse, error)` -- Function `*RestorePointCollectionsClient.List` parameter(s) have been changed from `(string, *RestorePointCollectionsListOptions)` to `(string, *RestorePointCollectionsClientListOptions)` -- Function `*RestorePointCollectionsClient.List` return value(s) have been changed from `(*RestorePointCollectionsListPager)` to `(*RestorePointCollectionsClientListPager)` -- Function `*CloudServicesClient.BeginRebuild` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginRebuildOptions)` to `(context.Context, string, string, *CloudServicesClientBeginRebuildOptions)` -- Function `*CloudServicesClient.BeginRebuild` return value(s) have been changed from `(CloudServicesRebuildPollerResponse, error)` to `(CloudServicesClientRebuildPollerResponse, error)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineScaleSetExtensionUpdate, *VirtualMachineScaleSetExtensionsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineScaleSetExtensionUpdate, *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetExtensionsClientUpdatePollerResponse, error)` -- Function `*VirtualMachinesClient.RetrieveBootDiagnosticsData` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesRetrieveBootDiagnosticsDataOptions)` to `(context.Context, string, string, *VirtualMachinesClientRetrieveBootDiagnosticsDataOptions)` -- Function `*VirtualMachinesClient.RetrieveBootDiagnosticsData` return value(s) have been changed from `(VirtualMachinesRetrieveBootDiagnosticsDataResponse, error)` to `(VirtualMachinesClientRetrieveBootDiagnosticsDataResponse, error)` -- Function `*DiskAccessesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *DiskAccessesBeginDeleteOptions)` to `(context.Context, string, string, *DiskAccessesClientBeginDeleteOptions)` -- Function `*DiskAccessesClient.BeginDelete` return value(s) have been changed from `(DiskAccessesDeletePollerResponse, error)` to `(DiskAccessesClientDeletePollerResponse, error)` -- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginConvertToManagedDisksOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginConvertToManagedDisksOptions)` -- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` return value(s) have been changed from `(VirtualMachinesConvertToManagedDisksPollerResponse, error)` to `(VirtualMachinesClientConvertToManagedDisksPollerResponse, error)` -- Function `*SSHPublicKeysClient.Get` parameter(s) have been changed from `(context.Context, string, string, *SSHPublicKeysGetOptions)` to `(context.Context, string, string, *SSHPublicKeysClientGetOptions)` -- Function `*SSHPublicKeysClient.Get` return value(s) have been changed from `(SSHPublicKeysGetResponse, error)` to `(SSHPublicKeysClientGetResponse, error)` -- Function `*DisksClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DisksGetOptions)` to `(context.Context, string, string, *DisksClientGetOptions)` -- Function `*DisksClient.Get` return value(s) have been changed from `(DisksGetResponse, error)` to `(DisksClientGetResponse, error)` -- Function `*VirtualMachineImagesClient.List` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineImagesListOptions)` to `(context.Context, string, string, string, string, *VirtualMachineImagesClientListOptions)` -- Function `*VirtualMachineImagesClient.List` return value(s) have been changed from `(VirtualMachineImagesListResponse, error)` to `(VirtualMachineImagesClientListResponse, error)` -- Function `*SharedGalleryImagesClient.List` parameter(s) have been changed from `(string, string, *SharedGalleryImagesListOptions)` to `(string, string, *SharedGalleryImagesClientListOptions)` -- Function `*SharedGalleryImagesClient.List` return value(s) have been changed from `(*SharedGalleryImagesListPager)` to `(*SharedGalleryImagesClientListPager)` -- Function `*VirtualMachineRunCommandsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineRunCommandsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineRunCommandsClientBeginUpdateOptions)` -- Function `*VirtualMachineRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsUpdatePollerResponse, error)` to `(VirtualMachineRunCommandsClientUpdatePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginDeallocateOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginDeallocateOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetVMsDeallocatePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientDeallocatePollerResponse, error)` -- Function `*DiskAccessesClient.List` parameter(s) have been changed from `(*DiskAccessesListOptions)` to `(*DiskAccessesClientListOptions)` -- Function `*DiskAccessesClient.List` return value(s) have been changed from `(*DiskAccessesListPager)` to `(*DiskAccessesClientListPager)` -- Function `*CloudServiceRoleInstancesClient.List` parameter(s) have been changed from `(string, string, *CloudServiceRoleInstancesListOptions)` to `(string, string, *CloudServiceRoleInstancesClientListOptions)` -- Function `*CloudServiceRoleInstancesClient.List` return value(s) have been changed from `(*CloudServiceRoleInstancesListPager)` to `(*CloudServiceRoleInstancesClientListPager)` -- Function `*RestorePointCollectionsClient.Update` parameter(s) have been changed from `(context.Context, string, string, RestorePointCollectionUpdate, *RestorePointCollectionsUpdateOptions)` to `(context.Context, string, string, RestorePointCollectionUpdate, *RestorePointCollectionsClientUpdateOptions)` -- Function `*RestorePointCollectionsClient.Update` return value(s) have been changed from `(RestorePointCollectionsUpdateResponse, error)` to `(RestorePointCollectionsClientUpdateResponse, error)` -- Function `*GalleriesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, GalleryUpdate, *GalleriesBeginUpdateOptions)` to `(context.Context, string, string, GalleryUpdate, *GalleriesClientBeginUpdateOptions)` -- Function `*GalleriesClient.BeginUpdate` return value(s) have been changed from `(GalleriesUpdatePollerResponse, error)` to `(GalleriesClientUpdatePollerResponse, error)` -- Function `*GalleryImageVersionsClient.ListByGalleryImage` parameter(s) have been changed from `(string, string, string, *GalleryImageVersionsListByGalleryImageOptions)` to `(string, string, string, *GalleryImageVersionsClientListByGalleryImageOptions)` -- Function `*GalleryImageVersionsClient.ListByGalleryImage` return value(s) have been changed from `(*GalleryImageVersionsListByGalleryImagePager)` to `(*GalleryImageVersionsClientListByGalleryImagePager)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions)` -- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsDeletePollerResponse, error)` to `(VirtualMachineScaleSetExtensionsClientDeletePollerResponse, error)` -- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineScaleSetVM, *VirtualMachineScaleSetVMsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineScaleSetVM, *VirtualMachineScaleSetVMsClientBeginUpdateOptions)` -- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientUpdatePollerResponse, error)` -- Function `*VirtualMachineImagesEdgeZoneClient.ListSKUs` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineImagesEdgeZoneListSKUsOptions)` to `(context.Context, string, string, string, string, *VirtualMachineImagesEdgeZoneClientListSKUsOptions)` -- Function `*VirtualMachineImagesEdgeZoneClient.ListSKUs` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListSKUsResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListSKUsResponse, error)` -- Function `VirtualMachinesPerformMaintenancePollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsReimageAllPoller.Poll` has been removed -- Function `*DedicatedHostsUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesListPager.Err` has been removed -- Function `VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesDeletePollerResponse.Resume` has been removed -- Function `*CloudServiceRoleInstancesReimagePoller.ResumeToken` has been removed -- Function `*SnapshotsUpdatePoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetsRestartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesConvertToManagedDisksPoller.Poll` has been removed -- Function `*GalleryImageVersionsListByGalleryImagePager.PageResponse` has been removed -- Function `VirtualMachineScaleSetVMExtensionsDeletePollerResponse.PollUntilDone` has been removed -- Function `*RestorePointCollectionsListPager.PageResponse` has been removed -- Function `*DedicatedHostsDeletePollerResponse.Resume` has been removed -- Function `*ImagesListPager.Err` has been removed -- Function `*VirtualMachinesReimagePoller.Poll` has been removed -- Function `*DedicatedHostsCreateOrUpdatePoller.Done` has been removed -- Function `VirtualMachinesReimagePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesReimagePoller.FinalResponse` has been removed -- Function `*CloudServicesRebuildPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsRestartPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsStartPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsDeletePoller.Poll` has been removed -- Function `*VirtualMachinesListAllPager.PageResponse` has been removed -- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineExtensionsUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.Poll` has been removed -- Function `VirtualMachinesAssessPatchesPollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.Done` has been removed -- Function `*VirtualMachineRunCommandsDeletePollerResponse.Resume` has been removed -- Function `ImagesUpdatePollerResponse.PollUntilDone` has been removed -- Function `*AvailabilitySetsListPager.PageResponse` has been removed -- Function `*GalleryApplicationVersionsUpdatePoller.ResumeToken` has been removed -- Function `*AvailabilitySetsListBySubscriptionPager.Err` has been removed -- Function `*VirtualMachineScaleSetsListByLocationPager.NextPage` has been removed -- Function `*CloudServicesRestartPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsListAllPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsDeletePoller.ResumeToken` has been removed -- Function `*GalleryImageVersionsDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse.Resume` has been removed -- Function `*GalleriesUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineRunCommandsUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsUpdatePollerResponse.Resume` has been removed -- Function `*CapacityReservationGroupsListBySubscriptionPager.PageResponse` has been removed -- Function `VirtualMachineScaleSetsStartPollerResponse.PollUntilDone` has been removed -- Function `*SnapshotsListPager.NextPage` has been removed -- Function `VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse.PollUntilDone` has been removed -- Function `GalleryApplicationVersionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesReimagePoller.Done` has been removed -- Function `*CloudServicesCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*CloudServicesRebuildPoller.FinalResponse` has been removed -- Function `*VirtualMachineExtensionsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetExtensionsListPager.NextPage` has been removed -- Function `*RestorePointsCreatePoller.ResumeToken` has been removed -- Function `*GalleryImagesUpdatePoller.Done` has been removed -- Function `*DisksGrantAccessPollerResponse.Resume` has been removed -- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.ResumeToken` has been removed -- Function `*ImagesCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.ResumeToken` has been removed -- Function `*RestorePointCollectionsListAllPager.Err` has been removed -- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.ResumeToken` has been removed -- Function `*DiskAccessesUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesStartPoller.FinalResponse` has been removed -- Function `*ImagesUpdatePoller.FinalResponse` has been removed -- Function `*GalleriesUpdatePoller.FinalResponse` has been removed -- Function `*SharedGalleryImageVersionsListPager.NextPage` has been removed -- Function `*SnapshotsListPager.PageResponse` has been removed -- Function `*GalleryImagesUpdatePoller.Poll` has been removed -- Function `*VirtualMachineRunCommandsListByVirtualMachinePager.Err` has been removed -- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.Poll` has been removed -- Function `*CloudServicesDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*GalleryImageVersionsCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachinesRestartPoller.ResumeToken` has been removed -- Function `*GalleryApplicationVersionsDeletePoller.FinalResponse` has been removed -- Function `*RestorePointCollectionsListAllPager.PageResponse` has been removed -- Function `*CloudServiceRoleInstancesRestartPoller.ResumeToken` has been removed -- Function `*CloudServiceRoleInstancesRestartPollerResponse.Resume` has been removed -- Function `VirtualMachineScaleSetVMsDeallocatePollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsListAllPager.PageResponse` has been removed -- Function `*DiskAccessesListPrivateEndpointConnectionsPager.PageResponse` has been removed -- Function `*VirtualMachinesCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*ResourceSKUsListPager.PageResponse` has been removed -- Function `*CloudServiceRoleInstancesRebuildPoller.ResumeToken` has been removed -- Function `*GalleryImagesListByGalleryPager.Err` has been removed -- Function `*DedicatedHostGroupsListByResourceGroupPager.Err` has been removed -- Function `*SnapshotsListByResourceGroupPager.NextPage` has been removed -- Function `CloudError.Error` has been removed -- Function `VirtualMachineScaleSetUpdateNetworkConfiguration.MarshalJSON` has been removed -- Function `*CloudServicesDeleteInstancesPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.Done` has been removed -- Function `*ImagesDeletePoller.ResumeToken` has been removed -- Function `*DiskAccessesCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachinesListAllPager.Err` has been removed -- Function `VirtualMachinesStartPollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.Poll` has been removed -- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsDeletePoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetsPowerOffPollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetUpdateIPConfiguration.MarshalJSON` has been removed -- Function `*VirtualMachineExtensionsUpdatePoller.Done` has been removed -- Function `*VirtualMachineRunCommandsDeletePoller.ResumeToken` has been removed -- Function `VirtualMachinesDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsPowerOffPollerResponse.Resume` has been removed -- Function `*SnapshotsDeletePoller.Done` has been removed -- Function `VirtualMachineScaleSetNetworkConfiguration.MarshalJSON` has been removed -- Function `*CapacityReservationsUpdatePoller.ResumeToken` has been removed -- Function `*DedicatedHostsUpdatePoller.Poll` has been removed -- Function `*CapacityReservationsUpdatePoller.Poll` has been removed -- Function `*DiskEncryptionSetsCreateOrUpdatePoller.Done` has been removed -- Function `*DiskRestorePointListByRestorePointPager.Err` has been removed -- Function `VirtualMachineScaleSetsDeleteInstancesPollerResponse.PollUntilDone` has been removed -- Function `*GalleriesUpdatePoller.Poll` has been removed -- Function `VirtualMachineRunCommandsDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesDeallocatePoller.FinalResponse` has been removed -- Function `*GalleriesUpdatePoller.Done` has been removed -- Function `VirtualMachineScaleSetVMExtensionsUpdatePollerResponse.PollUntilDone` has been removed -- Function `CloudServiceRoleInstancesRestartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.Done` has been removed -- Function `*CapacityReservationsDeletePoller.Poll` has been removed -- Function `*GalleriesListPager.NextPage` has been removed -- Function `*DiskEncryptionSetsDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineRunCommandsDeletePoller.Done` has been removed -- Function `*VirtualMachinesPowerOffPoller.Poll` has been removed -- Function `*GalleryImagesCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachinesCreateOrUpdatePoller.Poll` has been removed -- Function `*ImagesDeletePoller.Poll` has been removed -- Function `*VirtualMachinesUpdatePoller.Poll` has been removed -- Function `*GalleryApplicationsDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsGetOSUpgradeHistoryPager.PageResponse` has been removed -- Function `*SharedGalleryImagesListPager.PageResponse` has been removed -- Function `*GalleryImagesUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetExtensionsUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsReimageAllPollerResponse.Resume` has been removed -- Function `*CloudServiceRoleInstancesDeletePoller.Done` has been removed -- Function `CloudServicesPowerOffPollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesReimagePoller.ResumeToken` has been removed -- Function `*CloudServicesUpdateDomainListUpdateDomainsPager.NextPage` has been removed -- Function `*DedicatedHostsUpdatePoller.FinalResponse` has been removed -- Function `ManagedDiskParameters.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetVMsPowerOffPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesRedeployPollerResponse.Resume` has been removed -- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse.Resume` has been removed -- Function `VirtualMachinesInstallPatchesPollerResponse.PollUntilDone` has been removed -- Function `*DiskEncryptionSetsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesCapturePollerResponse.Resume` has been removed -- Function `*DiskAccessesListPrivateEndpointConnectionsPager.Err` has been removed -- Function `*DiskAccessesDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsListSKUsPager.PageResponse` has been removed -- Function `VirtualMachineScaleSetsPerformMaintenancePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesDeletePollerResponse.Resume` has been removed -- Function `*CloudServicesListAllPager.NextPage` has been removed -- Function `*VirtualMachinesUpdatePoller.FinalResponse` has been removed -- Function `*DisksUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsPowerOffPoller.ResumeToken` has been removed -- Function `*DedicatedHostsDeletePoller.Poll` has been removed -- Function `CapacityReservationsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.ResumeToken` has been removed -- Function `*CloudServiceOperatingSystemsListOSFamiliesPager.Err` has been removed -- Function `*VirtualMachineScaleSetsRedeployPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsDeletePoller.Done` has been removed -- Function `*LogAnalyticsExportThrottledRequestsPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsRunCommandPoller.FinalResponse` has been removed -- Function `*VirtualMachinesRunCommandPollerResponse.Resume` has been removed -- Function `*ImagesListByResourceGroupPager.Err` has been removed -- Function `*DisksGrantAccessPoller.ResumeToken` has been removed -- Function `*DisksCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineExtensionsDeletePoller.FinalResponse` has been removed -- Function `*DiskEncryptionSetsListAssociatedResourcesPager.PageResponse` has been removed -- Function `*VirtualMachinesAssessPatchesPoller.ResumeToken` has been removed -- Function `*GalleryImageVersionsCreateOrUpdatePoller.Poll` has been removed -- Function `*DiskEncryptionSetsUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsUpdatePollerResponse.Resume` has been removed -- Function `*DiskAccessesUpdatePoller.FinalResponse` has been removed -- Function `*DiskAccessesDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsRestartPoller.Poll` has been removed -- Function `*CloudServicesDeleteInstancesPoller.ResumeToken` has been removed -- Function `CapacityReservationsDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsGetOSUpgradeHistoryPager.NextPage` has been removed -- Function `*CloudServicesCreateOrUpdatePoller.ResumeToken` has been removed -- Function `LogAnalyticsExportThrottledRequestsPollerResponse.PollUntilDone` has been removed -- Function `*GalleriesCreateOrUpdatePoller.FinalResponse` has been removed -- Function `DiskAccessesCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsPowerOffPoller.Poll` has been removed -- Function `*DisksCreateOrUpdatePoller.Done` has been removed -- Function `*DisksUpdatePoller.Poll` has been removed -- Function `*RestorePointsDeletePoller.FinalResponse` has been removed -- Function `*CloudServicesStartPoller.ResumeToken` has been removed -- Function `*VirtualMachinesReapplyPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsReimagePoller.ResumeToken` has been removed -- Function `*CloudServicesUpdateDomainListUpdateDomainsPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetsUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachinesRedeployPoller.ResumeToken` has been removed -- Function `*VirtualMachinesRedeployPoller.Done` has been removed -- Function `GalleryApplicationsDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.Poll` has been removed -- Function `DisksDeletePollerResponse.PollUntilDone` has been removed -- Function `*SnapshotsDeletePoller.ResumeToken` has been removed -- Function `*DisksListByResourceGroupPager.Err` has been removed -- Function `*VirtualMachinesConvertToManagedDisksPoller.ResumeToken` has been removed -- Function `*CloudServicesCreateOrUpdatePoller.Done` has been removed -- Function `*DisksCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsPowerOffPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsPowerOffPoller.FinalResponse` has been removed -- Function `GalleriesCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.Done` has been removed -- Function `*ImagesListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachinesStartPoller.ResumeToken` has been removed -- Function `*VirtualMachineRunCommandsListByVirtualMachinePager.NextPage` has been removed -- Function `*DisksDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsDeallocatePoller.Poll` has been removed -- Function `*VirtualMachinesCapturePoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachinesListByLocationPager.Err` has been removed -- Function `*CloudServiceOperatingSystemsListOSVersionsPager.PageResponse` has been removed -- Function `*SharedGalleryImageVersionsListPager.Err` has been removed -- Function `VirtualMachineScaleSetVMExtension.MarshalJSON` has been removed -- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.Done` has been removed -- Function `*GalleryApplicationVersionsListByGalleryApplicationPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetsReimagePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsReimagePoller.Done` has been removed -- Function `*AvailabilitySetsListPager.Err` has been removed -- Function `VirtualMachineScaleSetVMRunCommandsDeletePollerResponse.PollUntilDone` has been removed -- Function `*DisksDeletePoller.Done` has been removed -- Function `VirtualMachineScaleSetExtensionsDeletePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesRestartPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsReimageAllPoller.Done` has been removed -- Function `NetworkInterfaceReference.MarshalJSON` has been removed -- Function `*CloudServicesDeletePoller.FinalResponse` has been removed -- Function `*DiskEncryptionSetsUpdatePoller.Poll` has been removed -- Function `*VirtualMachinesConvertToManagedDisksPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetExtensionsDeletePoller.Done` has been removed -- Function `GalleryApplicationsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DisksCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*AvailabilitySetsListBySubscriptionPager.PageResponse` has been removed -- Function `*DiskEncryptionSetsListPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetVMsReimagePoller.Poll` has been removed -- Function `*VirtualMachineRunCommandsDeletePoller.Poll` has been removed -- Function `*DiskRestorePointListByRestorePointPager.PageResponse` has been removed -- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.Done` has been removed -- Function `*CapacityReservationsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesPerformMaintenancePoller.FinalResponse` has been removed -- Function `*GalleryApplicationsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesDeletePoller.Poll` has been removed -- Function `VirtualMachineExtensionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsRestartPoller.FinalResponse` has been removed -- Function `*CloudServicesRebuildPoller.ResumeToken` has been removed -- Function `GalleryApplicationVersionsUpdatePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsRunCommandPoller.ResumeToken` has been removed -- Function `*DedicatedHostsListByHostGroupPager.Err` has been removed -- Function `*CloudServicesUpdatePoller.ResumeToken` has been removed -- Function `*SSHPublicKeysListByResourceGroupPager.PageResponse` has been removed -- Function `*DisksRevokeAccessPoller.FinalResponse` has been removed -- Function `*DisksDeletePoller.ResumeToken` has been removed -- Function `*DedicatedHostGroupsListBySubscriptionPager.PageResponse` has been removed -- Function `*DisksRevokeAccessPollerResponse.Resume` has been removed -- Function `*CapacityReservationGroupsListByResourceGroupPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetsListPager.Err` has been removed -- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.FinalResponse` has been removed -- Function `*VirtualMachinesAssessPatchesPoller.FinalResponse` has been removed -- Function `*VirtualMachinesRunCommandPoller.Done` has been removed -- Function `DedicatedHostsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `GalleriesDeletePollerResponse.PollUntilDone` has been removed -- Function `DedicatedHostsDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImageVersionsDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachinesListPager.NextPage` has been removed -- Function `*DiskRestorePointRevokeAccessPollerResponse.Resume` has been removed -- Function `*CloudServicesUpdateDomainWalkUpdateDomainPollerResponse.Resume` has been removed -- Function `*CapacityReservationsDeletePoller.Done` has been removed -- Function `*CapacityReservationsListByCapacityReservationGroupPager.Err` has been removed -- Function `*VirtualMachinesCapturePoller.Done` has been removed -- Function `*CloudServiceRoleInstancesRebuildPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsListByLocationPager.Err` has been removed -- Function `*GalleriesListByResourceGroupPager.NextPage` has been removed -- Function `*CloudServicesPowerOffPoller.FinalResponse` has been removed -- Function `*CloudServicesListAllPager.PageResponse` has been removed -- Function `*SharedGalleryImageVersionsListPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetsReimagePoller.Done` has been removed -- Function `VirtualMachineScaleSetRollingUpgradesCancelPollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachinesPerformMaintenancePoller.ResumeToken` has been removed -- Function `CapacityReservationsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesConvertToManagedDisksPoller.FinalResponse` has been removed -- Function `*DisksGrantAccessPoller.FinalResponse` has been removed -- Function `*LogAnalyticsExportThrottledRequestsPoller.Done` has been removed -- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachinesCapturePoller.ResumeToken` has been removed -- Function `*VirtualMachinesRunCommandPoller.FinalResponse` has been removed -- Function `*SharedGalleriesListPager.Err` has been removed -- Function `*DiskRestorePointRevokeAccessPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsDeletePollerResponse.Resume` has been removed -- Function `*RestorePointCollectionsListAllPager.NextPage` has been removed -- Function `*VirtualMachineExtensionsUpdatePoller.Poll` has been removed -- Function `*LogAnalyticsExportRequestRateByIntervalPoller.ResumeToken` has been removed -- Function `*RestorePointCollectionsDeletePoller.FinalResponse` has been removed -- Function `*CapacityReservationsListByCapacityReservationGroupPager.NextPage` has been removed -- Function `CloudServiceRoleInstancesRebuildPollerResponse.PollUntilDone` has been removed -- Function `*DiskEncryptionSetsDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachinesInstallPatchesPoller.FinalResponse` has been removed -- Function `*CloudServicesPowerOffPoller.Done` has been removed -- Function `*VirtualMachinesPerformMaintenancePoller.Done` has been removed -- Function `*VirtualMachinesPerformMaintenancePoller.Poll` has been removed -- Function `*ImagesDeletePoller.Done` has been removed -- Function `*CloudServicesRestartPoller.Done` has been removed -- Function `*VirtualMachineRunCommandsListPager.NextPage` has been removed -- Function `VirtualMachineScaleSetsRedeployPollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsUpdatePoller.ResumeToken` has been removed -- Function `*CapacityReservationGroupsListByResourceGroupPager.Err` has been removed -- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.Done` has been removed -- Function `*GalleryApplicationsDeletePollerResponse.Resume` has been removed -- Function `*GalleryApplicationVersionsListByGalleryApplicationPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsDeallocatePoller.Done` has been removed -- Function `*DiskEncryptionSetsUpdatePoller.FinalResponse` has been removed -- Function `LogAnalyticsExportRequestRateByIntervalPollerResponse.PollUntilDone` has been removed -- Function `*DiskRestorePointGrantAccessPoller.Done` has been removed -- Function `CloudServicesUpdateDomainWalkUpdateDomainPollerResponse.PollUntilDone` has been removed -- Function `DiskAccessesUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DedicatedHostsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*SnapshotsRevokeAccessPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.Done` has been removed -- Function `VirtualMachineExtensionsDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationVersionsUpdatePollerResponse.Resume` has been removed -- Function `*AvailabilitySetsListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsRedeployPoller.Done` has been removed -- Function `*VirtualMachineRunCommandsUpdatePoller.FinalResponse` has been removed -- Function `*GalleryApplicationVersionsDeletePollerResponse.Resume` has been removed -- Function `*CloudServicesReimagePoller.Poll` has been removed -- Function `*VirtualMachinesStartPoller.Poll` has been removed -- Function `*SSHPublicKeysListBySubscriptionPager.NextPage` has been removed -- Function `*CloudServicesRebuildPoller.Done` has been removed -- Function `*GalleryApplicationVersionsUpdatePoller.Poll` has been removed -- Function `*DedicatedHostsDeletePoller.ResumeToken` has been removed -- Function `*DiskAccessesCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.Poll` has been removed -- Function `*GalleriesCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*GalleryApplicationsListByGalleryPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsStartPoller.Poll` has been removed -- Function `ImageReference.MarshalJSON` has been removed -- Function `DiskRestorePointGrantAccessPollerResponse.PollUntilDone` has been removed -- Function `*DisksRevokeAccessPoller.Poll` has been removed -- Function `*CloudServiceRoleInstancesRebuildPollerResponse.Resume` has been removed -- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.Done` has been removed -- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachinesRedeployPoller.FinalResponse` has been removed -- Function `*VirtualMachinesUpdatePoller.Done` has been removed -- Function `*SnapshotsRevokeAccessPoller.FinalResponse` has been removed -- Function `*GalleryImagesCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*CapacityReservationGroupsListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachinesUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetExtensionsDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachinesListAllPager.NextPage` has been removed -- Function `*DiskEncryptionSetsDeletePoller.FinalResponse` has been removed -- Function `*CapacityReservationsUpdatePoller.Done` has been removed -- Function `VirtualMachinesUpdatePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImageVersionsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*DiskEncryptionSetsListAssociatedResourcesPager.NextPage` has been removed -- Function `VirtualMachinesCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DisksUpdatePoller.Done` has been removed -- Function `*SnapshotsGrantAccessPoller.Done` has been removed -- Function `*CloudServiceRoleInstancesDeletePoller.ResumeToken` has been removed -- Function `*CloudServicesDeleteInstancesPoller.Poll` has been removed -- Function `*DiskAccessesDeletePollerResponse.Resume` has been removed -- Function `*GalleryImagesDeletePoller.ResumeToken` has been removed -- Function `*GalleryImageVersionsDeletePoller.Done` has been removed -- Function `*CapacityReservationsDeletePoller.ResumeToken` has been removed -- Function `*DiskEncryptionSetsListAssociatedResourcesPager.Err` has been removed -- Function `*CloudServiceRoleInstancesRebuildPoller.FinalResponse` has been removed -- Function `*VirtualMachinesCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetVMsRunCommandPollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationsUpdatePoller.FinalResponse` has been removed -- Function `*DiskEncryptionSetsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsReimageAllPoller.FinalResponse` has been removed -- Function `*GalleriesDeletePoller.FinalResponse` has been removed -- Function `*ImagesCreateOrUpdatePoller.Poll` has been removed -- Function `*GalleryApplicationVersionsListByGalleryApplicationPager.Err` has been removed -- Function `*CloudServicesUpdatePoller.Poll` has been removed -- Function `*GalleryImagesCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsRunCommandPollerResponse.Resume` has been removed -- Function `*CloudServiceRoleInstancesReimagePollerResponse.Resume` has been removed -- Function `*CapacityReservationsUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesPowerOffPollerResponse.Resume` has been removed -- Function `*DedicatedHostGroupsListByResourceGroupPager.NextPage` has been removed -- Function `*GalleryImagesListByGalleryPager.PageResponse` has been removed -- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.Poll` has been removed -- Function `*DedicatedHostGroupsListBySubscriptionPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMsRedeployPoller.Done` has been removed -- Function `*GalleriesDeletePollerResponse.Resume` has been removed -- Function `*DedicatedHostGroupsListByResourceGroupPager.PageResponse` has been removed -- Function `*DisksDeletePoller.Poll` has been removed -- Function `*DiskRestorePointRevokeAccessPoller.ResumeToken` has been removed -- Function `*ImagesDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.FinalResponse` has been removed -- Function `*DiskRestorePointRevokeAccessPoller.Poll` has been removed -- Function `*DiskAccessesListPrivateEndpointConnectionsPager.NextPage` has been removed -- Function `*SnapshotsCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.FinalResponse` has been removed -- Function `*RestorePointsDeletePollerResponse.Resume` has been removed -- Function `*CloudServiceOperatingSystemsListOSFamiliesPager.PageResponse` has been removed -- Function `*SnapshotsDeletePollerResponse.Resume` has been removed -- Function `*DedicatedHostsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsReimageAllPoller.FinalResponse` has been removed -- Function `*CloudServiceRoleInstancesRestartPoller.Poll` has been removed -- Function `*VirtualMachinesRestartPoller.Poll` has been removed -- Function `CloudServicesDeleteInstancesPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse.Resume` has been removed -- Function `*CapacityReservationGroupsListBySubscriptionPager.Err` has been removed -- Function `*GalleryApplicationsDeletePoller.Poll` has been removed -- Function `*GalleryImagesDeletePoller.Poll` has been removed -- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.FinalResponse` has been removed -- Function `*CloudServiceRolesListPager.PageResponse` has been removed -- Function `*DiskEncryptionSetsUpdatePoller.Done` has been removed -- Function `*ImagesListPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsListPager.NextPage` has been removed -- Function `VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachinesReimagePoller.FinalResponse` has been removed -- Function `SnapshotsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsRunCommandPoller.Done` has been removed -- Function `GalleriesUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineRunCommandsUpdatePoller.Poll` has been removed -- Function `*ImagesCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachinesRedeployPoller.Poll` has been removed -- Function `*GalleriesListByResourceGroupPager.Err` has been removed -- Function `*DiskEncryptionSetsDeletePoller.Poll` has been removed -- Function `*SnapshotsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsUpdatePoller.FinalResponse` has been removed -- Function `*DiskEncryptionSetsListByResourceGroupPager.PageResponse` has been removed -- Function `*CloudServicesReimagePollerResponse.Resume` has been removed -- Function `VirtualMachineScaleSetVMsStartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsUpdatePoller.Done` has been removed -- Function `*SnapshotsListPager.Err` has been removed -- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.Poll` has been removed -- Function `*DiskAccessesListPager.Err` has been removed -- Function `*DisksUpdatePoller.FinalResponse` has been removed -- Function `*CloudServiceRolesListPager.NextPage` has been removed -- Function `*CloudServiceRoleInstancesListPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*DiskRestorePointRevokeAccessPoller.Done` has been removed -- Function `*VirtualMachinesReimagePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.Done` has been removed -- Function `*RestorePointsCreatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsDeallocatePoller.FinalResponse` has been removed -- Function `CloudServicesReimagePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceOperatingSystemsListOSVersionsPager.NextPage` has been removed -- Function `*RestorePointsDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsReimageAllPollerResponse.Resume` has been removed -- Function `*DisksUpdatePollerResponse.Resume` has been removed -- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.Poll` has been removed -- Function `*GalleriesCreateOrUpdatePoller.Poll` has been removed -- Function `*SnapshotsDeletePoller.FinalResponse` has been removed -- Function `*GalleryImagesDeletePollerResponse.Resume` has been removed -- Function `*GallerySharingProfileUpdatePoller.ResumeToken` has been removed -- Function `*GallerySharingProfileUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsStartPollerResponse.Resume` has been removed -- Function `VirtualMachinesRunCommandPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsStartPollerResponse.Resume` has been removed -- Function `*VirtualMachinesDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsListPager.PageResponse` has been removed -- Function `*DisksGrantAccessPoller.Poll` has been removed -- Function `*CloudServicesUpdatePoller.Done` has been removed -- Function `VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsDeallocatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineExtensionsDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsRedeployPoller.Poll` has been removed -- Function `*GalleryImageVersionsDeletePoller.ResumeToken` has been removed -- Function `SnapshotsRevokeAccessPollerResponse.PollUntilDone` has been removed -- Function `*ResourceSKUsListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsReimagePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsReimagePollerResponse.Resume` has been removed -- Function `VirtualMachinesPowerOffPollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationsCreateOrUpdatePoller.Poll` has been removed -- Function `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceRoleInstancesListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsDeleteInstancesPollerResponse.Resume` has been removed -- Function `GalleryImagesDeletePollerResponse.PollUntilDone` has been removed -- Function `*SnapshotsGrantAccessPoller.Poll` has been removed -- Function `*GalleryImageVersionsListByGalleryImagePager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsRedeployPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.ResumeToken` has been removed -- Function `*RestorePointCollectionsListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsListByLocationPager.PageResponse` has been removed -- Function `*GalleriesDeletePoller.Poll` has been removed -- Function `*SnapshotsListByResourceGroupPager.PageResponse` has been removed -- Function `*SharedGalleryImagesListPager.Err` has been removed -- Function `*CloudServicesListPager.Err` has been removed -- Function `*CloudServicesListPager.PageResponse` has been removed -- Function `*DiskAccessesCreateOrUpdatePollerResponse.Resume` has been removed -- Function `RunCommandDocumentBase.MarshalJSON` has been removed -- Function `*VirtualMachineScaleSetsPowerOffPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsReimageAllPoller.ResumeToken` has been removed -- Function `SnapshotsDeletePollerResponse.PollUntilDone` has been removed -- Function `RestorePointsDeletePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineReimageParameters.MarshalJSON` has been removed -- Function `DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceRoleInstancesReimagePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*CapacityReservationsCreateOrUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsReimagePoller.FinalResponse` has been removed -- Function `*VirtualMachineExtensionsUpdatePoller.ResumeToken` has been removed -- Function `*DisksListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsDeallocatePollerResponse.Resume` has been removed -- Function `*SnapshotsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `CloudServicesDeletePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetVMsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*RestorePointsCreatePoller.Poll` has been removed -- Function `*SnapshotsRevokeAccessPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.Poll` has been removed -- Function `*LogAnalyticsExportThrottledRequestsPoller.FinalResponse` has been removed -- Function `*VirtualMachinesReimagePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsStartPoller.ResumeToken` has been removed -- Function `*CloudServiceRoleInstancesReimagePoller.Done` has been removed -- Function `*VirtualMachineRunCommandsUpdatePollerResponse.Resume` has been removed -- Function `*GalleryImageVersionsUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesListByLocationPager.NextPage` has been removed -- Function `*DiskAccessesListByResourceGroupPager.Err` has been removed -- Function `*GalleryApplicationVersionsUpdatePoller.Done` has been removed -- Function `*CloudServiceRoleInstancesDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.Done` has been removed -- Function `*DiskEncryptionSetsListByResourceGroupPager.Err` has been removed -- Function `ImagesDeletePollerResponse.PollUntilDone` has been removed -- Function `*RestorePointCollectionsDeletePoller.Done` has been removed -- Function `*CloudServicesDeleteInstancesPollerResponse.Resume` has been removed -- Function `VirtualMachineScaleSetsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*CloudServicesStartPollerResponse.Resume` has been removed -- Function `VirtualMachinesRestartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.ResumeToken` has been removed -- Function `RestorePointCollectionsDeletePollerResponse.PollUntilDone` has been removed -- Function `*RestorePointsCreatePoller.Done` has been removed -- Function `DisksCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*ImagesCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*GalleryApplicationVersionsDeletePoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetVMsReimageAllPollerResponse.PollUntilDone` has been removed -- Function `*SnapshotsListByResourceGroupPager.Err` has been removed -- Function `*CloudServiceRoleInstancesRestartPoller.FinalResponse` has been removed -- Function `*DiskRestorePointGrantAccessPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.Done` has been removed -- Function `*GalleryApplicationsUpdatePoller.ResumeToken` has been removed -- Function `*UsageListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsDeletePoller.FinalResponse` has been removed -- Function `*SnapshotsDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsDeallocatePoller.ResumeToken` has been removed -- Function `*SSHPublicKeysListByResourceGroupPager.Err` has been removed -- Function `*VirtualMachinesRestartPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsDeletePollerResponse.Resume` has been removed -- Function `*DisksCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*ImagesDeletePollerResponse.Resume` has been removed -- Function `*ProximityPlacementGroupsListBySubscriptionPager.Err` has been removed -- Function `*VirtualMachinesDeletePoller.Done` has been removed -- Function `*CloudServicesRestartPollerResponse.Resume` has been removed -- Function `*LogAnalyticsExportRequestRateByIntervalPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsUpdatePoller.ResumeToken` has been removed -- Function `*DiskRestorePointGrantAccessPoller.ResumeToken` has been removed -- Function `CloudServicesRebuildPollerResponse.PollUntilDone` has been removed -- Function `*DisksListByResourceGroupPager.NextPage` has been removed -- Function `*GalleryImageVersionsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*SSHPublicKeysListBySubscriptionPager.PageResponse` has been removed -- Function `*CapacityReservationsListByCapacityReservationGroupPager.PageResponse` has been removed -- Function `*VirtualMachineRunCommandsListByVirtualMachinePager.PageResponse` has been removed -- Function `*DiskRestorePointListByRestorePointPager.NextPage` has been removed -- Function `*VirtualMachinesConvertToManagedDisksPoller.Done` has been removed -- Function `*DisksRevokeAccessPoller.ResumeToken` has been removed -- Function `*CloudServicesUpdateDomainListUpdateDomainsPager.Err` has been removed -- Function `*AvailabilitySetsListBySubscriptionPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsPowerOffPoller.Done` has been removed -- Function `*GalleryApplicationsListByGalleryPager.Err` has been removed -- Function `*ImagesUpdatePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsRestartPoller.FinalResponse` has been removed -- Function `*GalleryImagesCreateOrUpdatePoller.Poll` has been removed -- Function `*CloudServiceRoleInstancesReimagePoller.FinalResponse` has been removed -- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.Poll` has been removed -- Function `*DisksListPager.PageResponse` has been removed -- Function `*ProximityPlacementGroupsListBySubscriptionPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.Done` has been removed -- Function `*GalleryApplicationVersionsDeletePoller.Done` has been removed -- Function `*GalleryApplicationsCreateOrUpdatePoller.Done` has been removed -- Function `*DisksListPager.Err` has been removed -- Function `*VirtualMachineScaleSetExtensionsListPager.Err` has been removed -- Function `VirtualMachineScaleSetVMsRedeployPollerResponse.PollUntilDone` has been removed -- Function `DiskAccessesDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImageVersionsUpdatePoller.Done` has been removed -- Function `*DiskEncryptionSetsUpdatePoller.ResumeToken` has been removed -- Function `*GalleryApplicationsUpdatePoller.Done` has been removed -- Function `*SnapshotsRevokeAccessPoller.Poll` has been removed -- Function `*VirtualMachinesUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsStartPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.Poll` has been removed -- Function `*VirtualMachinesRestartPollerResponse.Resume` has been removed -- Function `CloudServicesStartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsRestartPoller.Done` has been removed -- Function `*GalleryImageVersionsDeletePollerResponse.Resume` has been removed -- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse.Resume` has been removed -- Function `*CloudServicesStartPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.Poll` has been removed -- Function `*VirtualMachinesReimagePoller.Done` has been removed -- Function `*DiskAccessesCreateOrUpdatePoller.ResumeToken` has been removed -- Function `GalleryImageVersionsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*ImagesUpdatePoller.ResumeToken` has been removed -- Function `*RestorePointCollectionsDeletePoller.Poll` has been removed -- Function `*DiskEncryptionSetsListByResourceGroupPager.NextPage` has been removed -- Function `DisksGrantAccessPollerResponse.PollUntilDone` has been removed -- Function `*CapacityReservationsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsUpdatePoller.Poll` has been removed -- Function `*DiskAccessesListPager.PageResponse` has been removed -- Function `*CapacityReservationsDeletePoller.FinalResponse` has been removed -- Function `*SnapshotsUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsListPager.NextPage` has been removed -- Function `GallerySharingProfileUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*GalleryImageVersionsUpdatePoller.FinalResponse` has been removed -- Function `VirtualMachineRunCommandsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetIPConfiguration.MarshalJSON` has been removed -- Function `GalleryApplicationsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `GalleryImageVersionsDeletePollerResponse.PollUntilDone` has been removed -- Function `*CloudServiceRoleInstancesRebuildPoller.Done` has been removed -- Function `VirtualMachinesRedeployPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesRunCommandPoller.Poll` has been removed -- Function `*ProximityPlacementGroupsListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsListSKUsPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsListPager.Err` has been removed -- Function `*CloudServicesListAllPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsListPager.Err` has been removed -- Function `*CloudServicesPowerOffPollerResponse.Resume` has been removed -- Function `*GalleriesListPager.PageResponse` has been removed -- Function `*DiskAccessesDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachinesRestartPoller.Done` has been removed -- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.ResumeToken` has been removed -- Function `*SnapshotsUpdatePoller.Poll` has been removed -- Function `*GalleryImagesListByGalleryPager.NextPage` has been removed -- Function `*SnapshotsUpdatePoller.Done` has been removed -- Function `*GalleryImagesUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesDeletePoller.ResumeToken` has been removed -- Function `*GalleryImageVersionsListByGalleryImagePager.Err` has been removed -- Function `*VirtualMachineScaleSetVMsDeallocatePoller.Done` has been removed -- Function `*DiskEncryptionSetsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*CloudServicesPowerOffPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*DedicatedHostsCreateOrUpdatePoller.Poll` has been removed -- Function `*SSHPublicKeysListBySubscriptionPager.Err` has been removed -- Function `*VirtualMachineScaleSetsReimageAllPoller.Done` has been removed -- Function `DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsStartPoller.FinalResponse` has been removed -- Function `*DiskAccessesUpdatePoller.Done` has been removed -- Function `*VirtualMachinesInstallPatchesPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMsStartPoller.Done` has been removed -- Function `ComputeOperationListResult.MarshalJSON` has been removed -- Function `DisksUpdatePollerResponse.PollUntilDone` has been removed -- Function `*UsageListPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetVMsPowerOffPoller.Done` has been removed -- Function `*DisksGrantAccessPoller.Done` has been removed -- Function `*GallerySharingProfileUpdatePoller.Done` has been removed -- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.Done` has been removed -- Function `*LogAnalyticsExportThrottledRequestsPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsStartPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMsRestartPoller.Done` has been removed -- Function `*DiskAccessesCreateOrUpdatePoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetExtension.MarshalJSON` has been removed -- Function `*CloudServicesPowerOffPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsListPager.PageResponse` has been removed -- Function `*SnapshotsGrantAccessPoller.ResumeToken` has been removed -- Function `DiskEncryptionSetsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachinesReapplyPoller.ResumeToken` has been removed -- Function `*CloudServicesDeletePoller.Poll` has been removed -- Function `*VirtualMachinesInstallPatchesPoller.Poll` has been removed -- Function `*LogAnalyticsExportRequestRateByIntervalPoller.FinalResponse` has been removed -- Function `*VirtualMachineRunCommandsUpdatePoller.Done` has been removed -- Function `VirtualMachineScaleSetsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesPowerOffPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsRestartPoller.ResumeToken` has been removed -- Function `*GalleriesDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsListSKUsPager.Err` has been removed -- Function `*VirtualMachinesAssessPatchesPoller.Done` has been removed -- Function `*DedicatedHostsDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsUpdatePollerResponse.Resume` has been removed -- Function `*LogAnalyticsExportRequestRateByIntervalPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.ResumeToken` has been removed -- Function `*VirtualMachinesReapplyPoller.Done` has been removed -- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.FinalResponse` has been removed -- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `RestorePointsCreatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsReimageAllPoller.ResumeToken` has been removed -- Function `*CapacityReservationsCreateOrUpdatePoller.Poll` has been removed -- Function `VirtualMachineScaleSetVMsDeletePollerResponse.PollUntilDone` has been removed -- Function `*GalleriesListPager.Err` has been removed -- Function `*RestorePointsDeletePoller.ResumeToken` has been removed -- Function `*SnapshotsCreateOrUpdatePoller.Poll` has been removed -- Function `SnapshotsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesUpdatePollerResponse.Resume` has been removed -- Function `*GalleryImageVersionsUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsRedeployPoller.ResumeToken` has been removed -- Function `*GalleryApplicationVersionsUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachinesRunCommandPoller.ResumeToken` has been removed -- Function `*CloudServicesListPager.NextPage` has been removed -- Function `*DiskAccessesListPager.NextPage` has been removed -- Function `*VirtualMachinesPerformMaintenancePollerResponse.Resume` has been removed -- Function `*DiskAccessesUpdatePoller.Poll` has been removed -- Function `*VirtualMachinesReapplyPollerResponse.Resume` has been removed -- Function `*GalleryApplicationsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*ResourceSKUsListPager.Err` has been removed -- Function `*VirtualMachineScaleSetVMsDeletePoller.Poll` has been removed -- Function `*VirtualMachinesReapplyPoller.FinalResponse` has been removed -- Function `*DedicatedHostsListByHostGroupPager.PageResponse` has been removed -- Function `DiskEncryptionSetsDeletePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesListPager.PageResponse` has been removed -- Function `*DedicatedHostsListByHostGroupPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetsRedeployPollerResponse.Resume` has been removed -- Function `*SnapshotsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetExtensionsDeletePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsPerformMaintenancePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsReimageAllPoller.Poll` has been removed -- Function `*ImagesUpdatePoller.Poll` has been removed -- Function `*RestorePointsCreatePoller.FinalResponse` has been removed -- Function `*GalleryApplicationsDeletePoller.ResumeToken` has been removed -- Function `*SharedGalleryImagesListPager.NextPage` has been removed -- Function `*SnapshotsGrantAccessPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsRedeployPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.Done` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesCancelPollerResponse.Resume` has been removed -- Function `*CloudServicesStartPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsReimagePoller.ResumeToken` has been removed -- Function `CloudServicesUpdatePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImagesDeletePoller.FinalResponse` has been removed -- Function `VirtualMachineScaleSetsUpdateInstancesPollerResponse.PollUntilDone` has been removed -- Function `*SSHPublicKeysListByResourceGroupPager.NextPage` has been removed -- Function `*VirtualMachineExtensionsDeletePoller.Done` has been removed -- Function `*VirtualMachineScaleSetsUpdateInstancesPollerResponse.Resume` has been removed -- Function `DiskRestorePointRevokeAccessPollerResponse.PollUntilDone` has been removed -- Function `*GalleryImagesUpdatePollerResponse.Resume` has been removed -- Function `VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.Poll` has been removed -- Function `*VirtualMachinesPowerOffPoller.Done` has been removed -- Function `CloudServicesCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `GalleryImagesUpdatePollerResponse.PollUntilDone` has been removed -- Function `DisksRevokeAccessPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsGetOSUpgradeHistoryPager.Err` has been removed -- Function `*ProximityPlacementGroupsListByResourceGroupPager.PageResponse` has been removed -- Function `*DiskEncryptionSetsCreateOrUpdatePoller.Poll` has been removed -- Function `*GallerySharingProfileUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsPerformMaintenancePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsRestartPoller.ResumeToken` has been removed -- Function `*ImagesCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*CloudServiceRoleInstancesListPager.PageResponse` has been removed -- Function `*GalleryApplicationsDeletePoller.Done` has been removed -- Function `*DedicatedHostsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*UsageListPager.Err` has been removed -- Function `*VirtualMachinesDeallocatePoller.Poll` has been removed -- Function `*LogAnalyticsExportThrottledRequestsPoller.ResumeToken` has been removed -- Function `*DisksRevokeAccessPoller.Done` has been removed -- Function `*VirtualMachineRunCommandsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*DiskAccessesDeletePoller.Done` has been removed -- Function `*CloudServiceOperatingSystemsListOSFamiliesPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.ResumeToken` has been removed -- Function `VirtualMachinesConvertToManagedDisksPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.ResumeToken` has been removed -- Function `*VirtualMachinesListByLocationPager.PageResponse` has been removed -- Function `VirtualMachinesCapturePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.FinalResponse` has been removed -- Function `*GalleryApplicationsUpdatePollerResponse.Resume` has been removed -- Function `*SnapshotsUpdatePoller.FinalResponse` has been removed -- Function `*GalleryApplicationsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetExtensionsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.Done` has been removed -- Function `*LogAnalyticsExportRequestRateByIntervalPoller.Poll` has been removed -- Function `SubResource.MarshalJSON` has been removed -- Function `*VirtualMachineScaleSetVMsDeletePoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetsReimageAllPollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsRedeployPoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.FinalResponse` has been removed -- Function `DedicatedHostsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*CloudServicesDeleteInstancesPoller.Done` has been removed -- Function `*VirtualMachineExtensionsDeletePoller.ResumeToken` has been removed -- Function `*CapacityReservationsDeletePollerResponse.Resume` has been removed -- Function `*RestorePointCollectionsDeletePollerResponse.Resume` has been removed -- Function `*VirtualMachinesInstallPatchesPoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsDeallocatePollerResponse.Resume` has been removed -- Function `*VirtualMachinesAssessPatchesPoller.Poll` has been removed -- Function `*VirtualMachinesDeallocatePoller.Done` has been removed -- Function `VirtualMachineScaleSetVMsReimagePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsRunCommandPoller.Poll` has been removed -- Function `*VirtualMachinesCreateOrUpdatePoller.Done` has been removed -- Function `*DiskEncryptionSetsListPager.Err` has been removed -- Function `*GalleriesCreateOrUpdatePoller.Done` has been removed -- Function `DiskEncryptionSetsUpdatePollerResponse.PollUntilDone` has been removed -- Function `*GalleryImageVersionsUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetVMsDeallocatePoller.FinalResponse` has been removed -- Function `VirtualMachinesDeallocatePollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationsListByGalleryPager.NextPage` has been removed -- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.FinalResponse` has been removed -- Function `*GalleryImageVersionsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsDeletePoller.Done` has been removed -- Function `*DiskEncryptionSetsListPager.NextPage` has been removed -- Function `*VirtualMachinesDeletePoller.Poll` has been removed -- Function `*VirtualMachineExtensionsUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMsListPager.PageResponse` has been removed -- Function `*CloudServicesUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.Poll` has been removed -- Function `*CapacityReservationGroupsListBySubscriptionPager.NextPage` has been removed -- Function `*CloudServiceOperatingSystemsListOSVersionsPager.Err` has been removed -- Function `*VirtualMachinesStartPoller.Done` has been removed -- Function `*CloudServicesStartPoller.Done` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*SharedGalleriesListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachinesPowerOffPoller.ResumeToken` has been removed -- Function `*DisksDeletePollerResponse.Resume` has been removed -- Function `*GalleryImagesCreateOrUpdatePoller.Done` has been removed -- Function `SubResourceWithColocationStatus.MarshalJSON` has been removed -- Function `VirtualMachineScaleSetVMsRestartPollerResponse.PollUntilDone` has been removed -- Function `*GalleryApplicationVersionsCreateOrUpdatePollerResponse.Resume` has been removed -- Function `ImagesCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetsPowerOffPoller.Poll` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.ResumeToken` has been removed -- Function `*ImagesListByResourceGroupPager.PageResponse` has been removed -- Function `*VirtualMachinesCapturePoller.Poll` has been removed -- Function `*ProximityPlacementGroupsListByResourceGroupPager.Err` has been removed -- Function `*VirtualMachineScaleSetsRedeployPoller.Poll` has been removed -- Function `*SnapshotsRevokeAccessPoller.Done` has been removed -- Function `CloudServicesRestartPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsUpdatePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.ResumeToken` has been removed -- Function `*VirtualMachineRunCommandsListPager.PageResponse` has been removed -- Function `*GalleriesUpdatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.Poll` has been removed -- Function `CloudServiceRoleInstancesReimagePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.Poll` has been removed -- Function `*VirtualMachineScaleSetsReimagePoller.Poll` has been removed -- Function `*DedicatedHostsDeletePoller.FinalResponse` has been removed -- Function `*VirtualMachineScaleSetsListPager.PageResponse` has been removed -- Function `*DiskAccessesUpdatePoller.ResumeToken` has been removed -- Function `*SharedGalleriesListPager.PageResponse` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.FinalResponse` has been removed -- Function `*DisksListByResourceGroupPager.PageResponse` has been removed -- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.Poll` has been removed -- Function `*ImagesUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.FinalResponse` has been removed -- Function `*RestorePointsDeletePoller.Poll` has been removed -- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.ResumeToken` has been removed -- Function `VirtualMachineScaleSetVMsPerformMaintenancePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsRestartPollerResponse.Resume` has been removed -- Function `GalleryImagesCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesInstallPatchesPoller.Done` has been removed -- Function `*VirtualMachinesStartPollerResponse.Resume` has been removed -- Function `SnapshotsGrantAccessPollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineScaleSetVMsPowerOffPoller.FinalResponse` has been removed -- Function `*DedicatedHostGroupsListBySubscriptionPager.NextPage` has been removed -- Function `*ImagesListPager.NextPage` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.Done` has been removed -- Function `*DiskAccessesListByResourceGroupPager.PageResponse` has been removed -- Function `GalleryImageVersionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachinesAssessPatchesPollerResponse.Resume` has been removed -- Function `*CloudServiceRoleInstancesRestartPoller.Done` has been removed -- Function `*CloudServicesCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*VirtualMachineRunCommandsListPager.Err` has been removed -- Function `*GalleriesListByResourceGroupPager.PageResponse` has been removed -- Function `*GalleriesCreateOrUpdatePollerResponse.Resume` has been removed -- Function `*GalleryApplicationVersionsDeletePoller.Poll` has been removed -- Function `*CloudServicesRestartPoller.ResumeToken` has been removed -- Function `*DiskRestorePointGrantAccessPoller.FinalResponse` has been removed -- Function `*GalleryApplicationsUpdatePoller.Poll` has been removed -- Function `*GalleryImagesDeletePoller.Done` has been removed -- Function `*SnapshotsGrantAccessPollerResponse.Resume` has been removed -- Function `*CloudServiceRolesListPager.Err` has been removed -- Function `*VirtualMachinesDeallocatePollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsRestartPoller.Poll` has been removed -- Function `*VirtualMachinesDeallocatePoller.ResumeToken` has been removed -- Function `*VirtualMachineScaleSetsListAllPager.Err` has been removed -- Function `VirtualMachineScaleSetsReimagePollerResponse.PollUntilDone` has been removed -- Function `CloudServiceRoleInstancesDeletePollerResponse.PollUntilDone` has been removed -- Function `*DiskEncryptionSetsDeletePoller.Done` has been removed -- Function `*RestorePointCollectionsDeletePoller.ResumeToken` has been removed -- Function `GalleryApplicationVersionsDeletePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetsDeletePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachinesReapplyPollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineExtensionsUpdatePollerResponse.PollUntilDone` has been removed -- Function `VirtualMachineScaleSetsDeallocatePollerResponse.PollUntilDone` has been removed -- Function `*VirtualMachineExtensionsDeletePollerResponse.Resume` has been removed -- Function `*GalleriesDeletePoller.Done` has been removed -- Function `*CloudServicesRebuildPollerResponse.Resume` has been removed -- Function `*RestorePointCollectionsListPager.Err` has been removed -- Function `*VirtualMachineScaleSetsDeallocatePoller.Poll` has been removed -- Function `*DiskRestorePointGrantAccessPollerResponse.Resume` has been removed -- Function `*VirtualMachineScaleSetsStartPoller.FinalResponse` has been removed -- Function `*GallerySharingProfileUpdatePoller.FinalResponse` has been removed -- Function `*ProximityPlacementGroupsListBySubscriptionPager.NextPage` has been removed -- Function `VirtualMachineRunCommandsUpdatePollerResponse.PollUntilDone` has been removed -- Function `SubResourceReadOnly.MarshalJSON` has been removed -- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.Done` has been removed -- Struct `AvailabilitySetsCreateOrUpdateOptions` has been removed -- Struct `AvailabilitySetsCreateOrUpdateResponse` has been removed -- Struct `AvailabilitySetsCreateOrUpdateResult` has been removed -- Struct `AvailabilitySetsDeleteOptions` has been removed -- Struct `AvailabilitySetsDeleteResponse` has been removed -- Struct `AvailabilitySetsGetOptions` has been removed -- Struct `AvailabilitySetsGetResponse` has been removed -- Struct `AvailabilitySetsGetResult` has been removed -- Struct `AvailabilitySetsListAvailableSizesOptions` has been removed -- Struct `AvailabilitySetsListAvailableSizesResponse` has been removed -- Struct `AvailabilitySetsListAvailableSizesResult` has been removed -- Struct `AvailabilitySetsListBySubscriptionOptions` has been removed -- Struct `AvailabilitySetsListBySubscriptionPager` has been removed -- Struct `AvailabilitySetsListBySubscriptionResponse` has been removed -- Struct `AvailabilitySetsListBySubscriptionResult` has been removed -- Struct `AvailabilitySetsListOptions` has been removed -- Struct `AvailabilitySetsListPager` has been removed -- Struct `AvailabilitySetsListResponse` has been removed -- Struct `AvailabilitySetsListResult` has been removed -- Struct `AvailabilitySetsUpdateOptions` has been removed -- Struct `AvailabilitySetsUpdateResponse` has been removed -- Struct `AvailabilitySetsUpdateResult` has been removed -- Struct `CapacityReservationGroupsCreateOrUpdateOptions` has been removed -- Struct `CapacityReservationGroupsCreateOrUpdateResponse` has been removed -- Struct `CapacityReservationGroupsCreateOrUpdateResult` has been removed -- Struct `CapacityReservationGroupsDeleteOptions` has been removed -- Struct `CapacityReservationGroupsDeleteResponse` has been removed -- Struct `CapacityReservationGroupsGetOptions` has been removed -- Struct `CapacityReservationGroupsGetResponse` has been removed -- Struct `CapacityReservationGroupsGetResult` has been removed -- Struct `CapacityReservationGroupsListByResourceGroupOptions` has been removed -- Struct `CapacityReservationGroupsListByResourceGroupPager` has been removed -- Struct `CapacityReservationGroupsListByResourceGroupResponse` has been removed -- Struct `CapacityReservationGroupsListByResourceGroupResult` has been removed -- Struct `CapacityReservationGroupsListBySubscriptionOptions` has been removed -- Struct `CapacityReservationGroupsListBySubscriptionPager` has been removed -- Struct `CapacityReservationGroupsListBySubscriptionResponse` has been removed -- Struct `CapacityReservationGroupsListBySubscriptionResult` has been removed -- Struct `CapacityReservationGroupsUpdateOptions` has been removed -- Struct `CapacityReservationGroupsUpdateResponse` has been removed -- Struct `CapacityReservationGroupsUpdateResult` has been removed -- Struct `CapacityReservationsBeginCreateOrUpdateOptions` has been removed -- Struct `CapacityReservationsBeginDeleteOptions` has been removed -- Struct `CapacityReservationsBeginUpdateOptions` has been removed -- Struct `CapacityReservationsCreateOrUpdatePoller` has been removed -- Struct `CapacityReservationsCreateOrUpdatePollerResponse` has been removed -- Struct `CapacityReservationsCreateOrUpdateResponse` has been removed -- Struct `CapacityReservationsCreateOrUpdateResult` has been removed -- Struct `CapacityReservationsDeletePoller` has been removed -- Struct `CapacityReservationsDeletePollerResponse` has been removed -- Struct `CapacityReservationsDeleteResponse` has been removed -- Struct `CapacityReservationsGetOptions` has been removed -- Struct `CapacityReservationsGetResponse` has been removed -- Struct `CapacityReservationsGetResult` has been removed -- Struct `CapacityReservationsListByCapacityReservationGroupOptions` has been removed -- Struct `CapacityReservationsListByCapacityReservationGroupPager` has been removed -- Struct `CapacityReservationsListByCapacityReservationGroupResponse` has been removed -- Struct `CapacityReservationsListByCapacityReservationGroupResult` has been removed -- Struct `CapacityReservationsUpdatePoller` has been removed -- Struct `CapacityReservationsUpdatePollerResponse` has been removed -- Struct `CapacityReservationsUpdateResponse` has been removed -- Struct `CapacityReservationsUpdateResult` has been removed -- Struct `CloudServiceOperatingSystemsGetOSFamilyOptions` has been removed -- Struct `CloudServiceOperatingSystemsGetOSFamilyResponse` has been removed -- Struct `CloudServiceOperatingSystemsGetOSFamilyResult` has been removed -- Struct `CloudServiceOperatingSystemsGetOSVersionOptions` has been removed -- Struct `CloudServiceOperatingSystemsGetOSVersionResponse` has been removed -- Struct `CloudServiceOperatingSystemsGetOSVersionResult` has been removed -- Struct `CloudServiceOperatingSystemsListOSFamiliesOptions` has been removed -- Struct `CloudServiceOperatingSystemsListOSFamiliesPager` has been removed -- Struct `CloudServiceOperatingSystemsListOSFamiliesResponse` has been removed -- Struct `CloudServiceOperatingSystemsListOSFamiliesResult` has been removed -- Struct `CloudServiceOperatingSystemsListOSVersionsOptions` has been removed -- Struct `CloudServiceOperatingSystemsListOSVersionsPager` has been removed -- Struct `CloudServiceOperatingSystemsListOSVersionsResponse` has been removed -- Struct `CloudServiceOperatingSystemsListOSVersionsResult` has been removed -- Struct `CloudServiceRoleInstancesBeginDeleteOptions` has been removed -- Struct `CloudServiceRoleInstancesBeginRebuildOptions` has been removed -- Struct `CloudServiceRoleInstancesBeginReimageOptions` has been removed -- Struct `CloudServiceRoleInstancesBeginRestartOptions` has been removed -- Struct `CloudServiceRoleInstancesDeletePoller` has been removed -- Struct `CloudServiceRoleInstancesDeletePollerResponse` has been removed -- Struct `CloudServiceRoleInstancesDeleteResponse` has been removed -- Struct `CloudServiceRoleInstancesGetInstanceViewOptions` has been removed -- Struct `CloudServiceRoleInstancesGetInstanceViewResponse` has been removed -- Struct `CloudServiceRoleInstancesGetInstanceViewResult` has been removed -- Struct `CloudServiceRoleInstancesGetOptions` has been removed -- Struct `CloudServiceRoleInstancesGetRemoteDesktopFileOptions` has been removed -- Struct `CloudServiceRoleInstancesGetRemoteDesktopFileResponse` has been removed -- Struct `CloudServiceRoleInstancesGetResponse` has been removed -- Struct `CloudServiceRoleInstancesGetResult` has been removed -- Struct `CloudServiceRoleInstancesListOptions` has been removed -- Struct `CloudServiceRoleInstancesListPager` has been removed -- Struct `CloudServiceRoleInstancesListResponse` has been removed -- Struct `CloudServiceRoleInstancesListResult` has been removed -- Struct `CloudServiceRoleInstancesRebuildPoller` has been removed -- Struct `CloudServiceRoleInstancesRebuildPollerResponse` has been removed -- Struct `CloudServiceRoleInstancesRebuildResponse` has been removed -- Struct `CloudServiceRoleInstancesReimagePoller` has been removed -- Struct `CloudServiceRoleInstancesReimagePollerResponse` has been removed -- Struct `CloudServiceRoleInstancesReimageResponse` has been removed -- Struct `CloudServiceRoleInstancesRestartPoller` has been removed -- Struct `CloudServiceRoleInstancesRestartPollerResponse` has been removed -- Struct `CloudServiceRoleInstancesRestartResponse` has been removed -- Struct `CloudServiceRolesGetOptions` has been removed -- Struct `CloudServiceRolesGetResponse` has been removed -- Struct `CloudServiceRolesGetResult` has been removed -- Struct `CloudServiceRolesListOptions` has been removed -- Struct `CloudServiceRolesListPager` has been removed -- Struct `CloudServiceRolesListResponse` has been removed -- Struct `CloudServiceRolesListResult` has been removed -- Struct `CloudServicesBeginCreateOrUpdateOptions` has been removed -- Struct `CloudServicesBeginDeleteInstancesOptions` has been removed -- Struct `CloudServicesBeginDeleteOptions` has been removed -- Struct `CloudServicesBeginPowerOffOptions` has been removed -- Struct `CloudServicesBeginRebuildOptions` has been removed -- Struct `CloudServicesBeginReimageOptions` has been removed -- Struct `CloudServicesBeginRestartOptions` has been removed -- Struct `CloudServicesBeginStartOptions` has been removed -- Struct `CloudServicesBeginUpdateOptions` has been removed -- Struct `CloudServicesCreateOrUpdatePoller` has been removed -- Struct `CloudServicesCreateOrUpdatePollerResponse` has been removed -- Struct `CloudServicesCreateOrUpdateResponse` has been removed -- Struct `CloudServicesCreateOrUpdateResult` has been removed -- Struct `CloudServicesDeleteInstancesPoller` has been removed -- Struct `CloudServicesDeleteInstancesPollerResponse` has been removed -- Struct `CloudServicesDeleteInstancesResponse` has been removed -- Struct `CloudServicesDeletePoller` has been removed -- Struct `CloudServicesDeletePollerResponse` has been removed -- Struct `CloudServicesDeleteResponse` has been removed -- Struct `CloudServicesGetInstanceViewOptions` has been removed -- Struct `CloudServicesGetInstanceViewResponse` has been removed -- Struct `CloudServicesGetInstanceViewResult` has been removed -- Struct `CloudServicesGetOptions` has been removed -- Struct `CloudServicesGetResponse` has been removed -- Struct `CloudServicesGetResult` has been removed -- Struct `CloudServicesListAllOptions` has been removed -- Struct `CloudServicesListAllPager` has been removed -- Struct `CloudServicesListAllResponse` has been removed -- Struct `CloudServicesListAllResult` has been removed -- Struct `CloudServicesListOptions` has been removed -- Struct `CloudServicesListPager` has been removed -- Struct `CloudServicesListResponse` has been removed -- Struct `CloudServicesListResult` has been removed -- Struct `CloudServicesPowerOffPoller` has been removed -- Struct `CloudServicesPowerOffPollerResponse` has been removed -- Struct `CloudServicesPowerOffResponse` has been removed -- Struct `CloudServicesRebuildPoller` has been removed -- Struct `CloudServicesRebuildPollerResponse` has been removed -- Struct `CloudServicesRebuildResponse` has been removed -- Struct `CloudServicesReimagePoller` has been removed -- Struct `CloudServicesReimagePollerResponse` has been removed -- Struct `CloudServicesReimageResponse` has been removed -- Struct `CloudServicesRestartPoller` has been removed -- Struct `CloudServicesRestartPollerResponse` has been removed -- Struct `CloudServicesRestartResponse` has been removed -- Struct `CloudServicesStartPoller` has been removed -- Struct `CloudServicesStartPollerResponse` has been removed -- Struct `CloudServicesStartResponse` has been removed -- Struct `CloudServicesUpdateDomainBeginWalkUpdateDomainOptions` has been removed -- Struct `CloudServicesUpdateDomainGetUpdateDomainOptions` has been removed -- Struct `CloudServicesUpdateDomainGetUpdateDomainResponse` has been removed -- Struct `CloudServicesUpdateDomainGetUpdateDomainResult` has been removed -- Struct `CloudServicesUpdateDomainListUpdateDomainsOptions` has been removed -- Struct `CloudServicesUpdateDomainListUpdateDomainsPager` has been removed -- Struct `CloudServicesUpdateDomainListUpdateDomainsResponse` has been removed -- Struct `CloudServicesUpdateDomainListUpdateDomainsResult` has been removed -- Struct `CloudServicesUpdateDomainWalkUpdateDomainPoller` has been removed -- Struct `CloudServicesUpdateDomainWalkUpdateDomainPollerResponse` has been removed -- Struct `CloudServicesUpdateDomainWalkUpdateDomainResponse` has been removed -- Struct `CloudServicesUpdatePoller` has been removed -- Struct `CloudServicesUpdatePollerResponse` has been removed -- Struct `CloudServicesUpdateResponse` has been removed -- Struct `CloudServicesUpdateResult` has been removed -- Struct `CommunityGalleriesGetOptions` has been removed -- Struct `CommunityGalleriesGetResponse` has been removed -- Struct `CommunityGalleriesGetResult` has been removed -- Struct `CommunityGalleryImageVersionsGetOptions` has been removed -- Struct `CommunityGalleryImageVersionsGetResponse` has been removed -- Struct `CommunityGalleryImageVersionsGetResult` has been removed -- Struct `CommunityGalleryImagesGetOptions` has been removed -- Struct `CommunityGalleryImagesGetResponse` has been removed -- Struct `CommunityGalleryImagesGetResult` has been removed -- Struct `ComputeOperationListResult` has been removed -- Struct `ComputeOperationValue` has been removed -- Struct `ComputeOperationValueDisplay` has been removed -- Struct `DedicatedHostGroupsCreateOrUpdateOptions` has been removed -- Struct `DedicatedHostGroupsCreateOrUpdateResponse` has been removed -- Struct `DedicatedHostGroupsCreateOrUpdateResult` has been removed -- Struct `DedicatedHostGroupsDeleteOptions` has been removed -- Struct `DedicatedHostGroupsDeleteResponse` has been removed -- Struct `DedicatedHostGroupsGetOptions` has been removed -- Struct `DedicatedHostGroupsGetResponse` has been removed -- Struct `DedicatedHostGroupsGetResult` has been removed -- Struct `DedicatedHostGroupsListByResourceGroupOptions` has been removed -- Struct `DedicatedHostGroupsListByResourceGroupPager` has been removed -- Struct `DedicatedHostGroupsListByResourceGroupResponse` has been removed -- Struct `DedicatedHostGroupsListByResourceGroupResult` has been removed -- Struct `DedicatedHostGroupsListBySubscriptionOptions` has been removed -- Struct `DedicatedHostGroupsListBySubscriptionPager` has been removed -- Struct `DedicatedHostGroupsListBySubscriptionResponse` has been removed -- Struct `DedicatedHostGroupsListBySubscriptionResult` has been removed -- Struct `DedicatedHostGroupsUpdateOptions` has been removed -- Struct `DedicatedHostGroupsUpdateResponse` has been removed -- Struct `DedicatedHostGroupsUpdateResult` has been removed -- Struct `DedicatedHostsBeginCreateOrUpdateOptions` has been removed -- Struct `DedicatedHostsBeginDeleteOptions` has been removed -- Struct `DedicatedHostsBeginUpdateOptions` has been removed -- Struct `DedicatedHostsCreateOrUpdatePoller` has been removed -- Struct `DedicatedHostsCreateOrUpdatePollerResponse` has been removed -- Struct `DedicatedHostsCreateOrUpdateResponse` has been removed -- Struct `DedicatedHostsCreateOrUpdateResult` has been removed -- Struct `DedicatedHostsDeletePoller` has been removed -- Struct `DedicatedHostsDeletePollerResponse` has been removed -- Struct `DedicatedHostsDeleteResponse` has been removed -- Struct `DedicatedHostsGetOptions` has been removed -- Struct `DedicatedHostsGetResponse` has been removed -- Struct `DedicatedHostsGetResult` has been removed -- Struct `DedicatedHostsListByHostGroupOptions` has been removed -- Struct `DedicatedHostsListByHostGroupPager` has been removed -- Struct `DedicatedHostsListByHostGroupResponse` has been removed -- Struct `DedicatedHostsListByHostGroupResult` has been removed -- Struct `DedicatedHostsUpdatePoller` has been removed -- Struct `DedicatedHostsUpdatePollerResponse` has been removed -- Struct `DedicatedHostsUpdateResponse` has been removed -- Struct `DedicatedHostsUpdateResult` has been removed -- Struct `DiskAccessesBeginCreateOrUpdateOptions` has been removed -- Struct `DiskAccessesBeginDeleteAPrivateEndpointConnectionOptions` has been removed -- Struct `DiskAccessesBeginDeleteOptions` has been removed -- Struct `DiskAccessesBeginUpdateAPrivateEndpointConnectionOptions` has been removed -- Struct `DiskAccessesBeginUpdateOptions` has been removed -- Struct `DiskAccessesCreateOrUpdatePoller` has been removed -- Struct `DiskAccessesCreateOrUpdatePollerResponse` has been removed -- Struct `DiskAccessesCreateOrUpdateResponse` has been removed -- Struct `DiskAccessesCreateOrUpdateResult` has been removed -- Struct `DiskAccessesDeleteAPrivateEndpointConnectionPoller` has been removed -- Struct `DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse` has been removed -- Struct `DiskAccessesDeleteAPrivateEndpointConnectionResponse` has been removed -- Struct `DiskAccessesDeletePoller` has been removed -- Struct `DiskAccessesDeletePollerResponse` has been removed -- Struct `DiskAccessesDeleteResponse` has been removed -- Struct `DiskAccessesGetAPrivateEndpointConnectionOptions` has been removed -- Struct `DiskAccessesGetAPrivateEndpointConnectionResponse` has been removed -- Struct `DiskAccessesGetAPrivateEndpointConnectionResult` has been removed -- Struct `DiskAccessesGetOptions` has been removed -- Struct `DiskAccessesGetPrivateLinkResourcesOptions` has been removed -- Struct `DiskAccessesGetPrivateLinkResourcesResponse` has been removed -- Struct `DiskAccessesGetPrivateLinkResourcesResult` has been removed -- Struct `DiskAccessesGetResponse` has been removed -- Struct `DiskAccessesGetResult` has been removed -- Struct `DiskAccessesListByResourceGroupOptions` has been removed -- Struct `DiskAccessesListByResourceGroupPager` has been removed -- Struct `DiskAccessesListByResourceGroupResponse` has been removed -- Struct `DiskAccessesListByResourceGroupResult` has been removed -- Struct `DiskAccessesListOptions` has been removed -- Struct `DiskAccessesListPager` has been removed -- Struct `DiskAccessesListPrivateEndpointConnectionsOptions` has been removed -- Struct `DiskAccessesListPrivateEndpointConnectionsPager` has been removed -- Struct `DiskAccessesListPrivateEndpointConnectionsResponse` has been removed -- Struct `DiskAccessesListPrivateEndpointConnectionsResult` has been removed -- Struct `DiskAccessesListResponse` has been removed -- Struct `DiskAccessesListResult` has been removed -- Struct `DiskAccessesUpdateAPrivateEndpointConnectionPoller` has been removed -- Struct `DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse` has been removed -- Struct `DiskAccessesUpdateAPrivateEndpointConnectionResponse` has been removed -- Struct `DiskAccessesUpdateAPrivateEndpointConnectionResult` has been removed -- Struct `DiskAccessesUpdatePoller` has been removed -- Struct `DiskAccessesUpdatePollerResponse` has been removed -- Struct `DiskAccessesUpdateResponse` has been removed -- Struct `DiskAccessesUpdateResult` has been removed -- Struct `DiskEncryptionSetsBeginCreateOrUpdateOptions` has been removed -- Struct `DiskEncryptionSetsBeginDeleteOptions` has been removed -- Struct `DiskEncryptionSetsBeginUpdateOptions` has been removed -- Struct `DiskEncryptionSetsCreateOrUpdatePoller` has been removed -- Struct `DiskEncryptionSetsCreateOrUpdatePollerResponse` has been removed -- Struct `DiskEncryptionSetsCreateOrUpdateResponse` has been removed -- Struct `DiskEncryptionSetsCreateOrUpdateResult` has been removed -- Struct `DiskEncryptionSetsDeletePoller` has been removed -- Struct `DiskEncryptionSetsDeletePollerResponse` has been removed -- Struct `DiskEncryptionSetsDeleteResponse` has been removed -- Struct `DiskEncryptionSetsGetOptions` has been removed -- Struct `DiskEncryptionSetsGetResponse` has been removed -- Struct `DiskEncryptionSetsGetResult` has been removed -- Struct `DiskEncryptionSetsListAssociatedResourcesOptions` has been removed -- Struct `DiskEncryptionSetsListAssociatedResourcesPager` has been removed -- Struct `DiskEncryptionSetsListAssociatedResourcesResponse` has been removed -- Struct `DiskEncryptionSetsListAssociatedResourcesResult` has been removed -- Struct `DiskEncryptionSetsListByResourceGroupOptions` has been removed -- Struct `DiskEncryptionSetsListByResourceGroupPager` has been removed -- Struct `DiskEncryptionSetsListByResourceGroupResponse` has been removed -- Struct `DiskEncryptionSetsListByResourceGroupResult` has been removed -- Struct `DiskEncryptionSetsListOptions` has been removed -- Struct `DiskEncryptionSetsListPager` has been removed -- Struct `DiskEncryptionSetsListResponse` has been removed -- Struct `DiskEncryptionSetsListResult` has been removed -- Struct `DiskEncryptionSetsUpdatePoller` has been removed -- Struct `DiskEncryptionSetsUpdatePollerResponse` has been removed -- Struct `DiskEncryptionSetsUpdateResponse` has been removed -- Struct `DiskEncryptionSetsUpdateResult` has been removed -- Struct `DiskRestorePointBeginGrantAccessOptions` has been removed -- Struct `DiskRestorePointBeginRevokeAccessOptions` has been removed -- Struct `DiskRestorePointGetOptions` has been removed -- Struct `DiskRestorePointGetResponse` has been removed -- Struct `DiskRestorePointGetResult` has been removed -- Struct `DiskRestorePointGrantAccessPoller` has been removed -- Struct `DiskRestorePointGrantAccessPollerResponse` has been removed -- Struct `DiskRestorePointGrantAccessResponse` has been removed -- Struct `DiskRestorePointGrantAccessResult` has been removed -- Struct `DiskRestorePointListByRestorePointOptions` has been removed -- Struct `DiskRestorePointListByRestorePointPager` has been removed -- Struct `DiskRestorePointListByRestorePointResponse` has been removed -- Struct `DiskRestorePointListByRestorePointResult` has been removed -- Struct `DiskRestorePointRevokeAccessPoller` has been removed -- Struct `DiskRestorePointRevokeAccessPollerResponse` has been removed -- Struct `DiskRestorePointRevokeAccessResponse` has been removed -- Struct `DisksBeginCreateOrUpdateOptions` has been removed -- Struct `DisksBeginDeleteOptions` has been removed -- Struct `DisksBeginGrantAccessOptions` has been removed -- Struct `DisksBeginRevokeAccessOptions` has been removed -- Struct `DisksBeginUpdateOptions` has been removed -- Struct `DisksCreateOrUpdatePoller` has been removed -- Struct `DisksCreateOrUpdatePollerResponse` has been removed -- Struct `DisksCreateOrUpdateResponse` has been removed -- Struct `DisksCreateOrUpdateResult` has been removed -- Struct `DisksDeletePoller` has been removed -- Struct `DisksDeletePollerResponse` has been removed -- Struct `DisksDeleteResponse` has been removed -- Struct `DisksGetOptions` has been removed -- Struct `DisksGetResponse` has been removed -- Struct `DisksGetResult` has been removed -- Struct `DisksGrantAccessPoller` has been removed -- Struct `DisksGrantAccessPollerResponse` has been removed -- Struct `DisksGrantAccessResponse` has been removed -- Struct `DisksGrantAccessResult` has been removed -- Struct `DisksListByResourceGroupOptions` has been removed -- Struct `DisksListByResourceGroupPager` has been removed -- Struct `DisksListByResourceGroupResponse` has been removed -- Struct `DisksListByResourceGroupResult` has been removed -- Struct `DisksListOptions` has been removed -- Struct `DisksListPager` has been removed -- Struct `DisksListResponse` has been removed -- Struct `DisksListResult` has been removed -- Struct `DisksRevokeAccessPoller` has been removed -- Struct `DisksRevokeAccessPollerResponse` has been removed -- Struct `DisksRevokeAccessResponse` has been removed -- Struct `DisksUpdatePoller` has been removed -- Struct `DisksUpdatePollerResponse` has been removed -- Struct `DisksUpdateResponse` has been removed -- Struct `DisksUpdateResult` has been removed -- Struct `GalleriesBeginCreateOrUpdateOptions` has been removed -- Struct `GalleriesBeginDeleteOptions` has been removed -- Struct `GalleriesBeginUpdateOptions` has been removed -- Struct `GalleriesCreateOrUpdatePoller` has been removed -- Struct `GalleriesCreateOrUpdatePollerResponse` has been removed -- Struct `GalleriesCreateOrUpdateResponse` has been removed -- Struct `GalleriesCreateOrUpdateResult` has been removed -- Struct `GalleriesDeletePoller` has been removed -- Struct `GalleriesDeletePollerResponse` has been removed -- Struct `GalleriesDeleteResponse` has been removed -- Struct `GalleriesGetOptions` has been removed -- Struct `GalleriesGetResponse` has been removed -- Struct `GalleriesGetResult` has been removed -- Struct `GalleriesListByResourceGroupOptions` has been removed -- Struct `GalleriesListByResourceGroupPager` has been removed -- Struct `GalleriesListByResourceGroupResponse` has been removed -- Struct `GalleriesListByResourceGroupResult` has been removed -- Struct `GalleriesListOptions` has been removed -- Struct `GalleriesListPager` has been removed -- Struct `GalleriesListResponse` has been removed -- Struct `GalleriesListResult` has been removed -- Struct `GalleriesUpdatePoller` has been removed -- Struct `GalleriesUpdatePollerResponse` has been removed -- Struct `GalleriesUpdateResponse` has been removed -- Struct `GalleriesUpdateResult` has been removed -- Struct `GalleryApplicationVersionsBeginCreateOrUpdateOptions` has been removed -- Struct `GalleryApplicationVersionsBeginDeleteOptions` has been removed -- Struct `GalleryApplicationVersionsBeginUpdateOptions` has been removed -- Struct `GalleryApplicationVersionsCreateOrUpdatePoller` has been removed -- Struct `GalleryApplicationVersionsCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryApplicationVersionsCreateOrUpdateResponse` has been removed -- Struct `GalleryApplicationVersionsCreateOrUpdateResult` has been removed -- Struct `GalleryApplicationVersionsDeletePoller` has been removed -- Struct `GalleryApplicationVersionsDeletePollerResponse` has been removed -- Struct `GalleryApplicationVersionsDeleteResponse` has been removed -- Struct `GalleryApplicationVersionsGetOptions` has been removed -- Struct `GalleryApplicationVersionsGetResponse` has been removed -- Struct `GalleryApplicationVersionsGetResult` has been removed -- Struct `GalleryApplicationVersionsListByGalleryApplicationOptions` has been removed -- Struct `GalleryApplicationVersionsListByGalleryApplicationPager` has been removed -- Struct `GalleryApplicationVersionsListByGalleryApplicationResponse` has been removed -- Struct `GalleryApplicationVersionsListByGalleryApplicationResult` has been removed -- Struct `GalleryApplicationVersionsUpdatePoller` has been removed -- Struct `GalleryApplicationVersionsUpdatePollerResponse` has been removed -- Struct `GalleryApplicationVersionsUpdateResponse` has been removed -- Struct `GalleryApplicationVersionsUpdateResult` has been removed -- Struct `GalleryApplicationsBeginCreateOrUpdateOptions` has been removed -- Struct `GalleryApplicationsBeginDeleteOptions` has been removed -- Struct `GalleryApplicationsBeginUpdateOptions` has been removed -- Struct `GalleryApplicationsCreateOrUpdatePoller` has been removed -- Struct `GalleryApplicationsCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryApplicationsCreateOrUpdateResponse` has been removed -- Struct `GalleryApplicationsCreateOrUpdateResult` has been removed -- Struct `GalleryApplicationsDeletePoller` has been removed -- Struct `GalleryApplicationsDeletePollerResponse` has been removed -- Struct `GalleryApplicationsDeleteResponse` has been removed -- Struct `GalleryApplicationsGetOptions` has been removed -- Struct `GalleryApplicationsGetResponse` has been removed -- Struct `GalleryApplicationsGetResult` has been removed -- Struct `GalleryApplicationsListByGalleryOptions` has been removed -- Struct `GalleryApplicationsListByGalleryPager` has been removed -- Struct `GalleryApplicationsListByGalleryResponse` has been removed -- Struct `GalleryApplicationsListByGalleryResult` has been removed -- Struct `GalleryApplicationsUpdatePoller` has been removed -- Struct `GalleryApplicationsUpdatePollerResponse` has been removed -- Struct `GalleryApplicationsUpdateResponse` has been removed -- Struct `GalleryApplicationsUpdateResult` has been removed -- Struct `GalleryImageVersionsBeginCreateOrUpdateOptions` has been removed -- Struct `GalleryImageVersionsBeginDeleteOptions` has been removed -- Struct `GalleryImageVersionsBeginUpdateOptions` has been removed -- Struct `GalleryImageVersionsCreateOrUpdatePoller` has been removed -- Struct `GalleryImageVersionsCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryImageVersionsCreateOrUpdateResponse` has been removed -- Struct `GalleryImageVersionsCreateOrUpdateResult` has been removed -- Struct `GalleryImageVersionsDeletePoller` has been removed -- Struct `GalleryImageVersionsDeletePollerResponse` has been removed -- Struct `GalleryImageVersionsDeleteResponse` has been removed -- Struct `GalleryImageVersionsGetOptions` has been removed -- Struct `GalleryImageVersionsGetResponse` has been removed -- Struct `GalleryImageVersionsGetResult` has been removed -- Struct `GalleryImageVersionsListByGalleryImageOptions` has been removed -- Struct `GalleryImageVersionsListByGalleryImagePager` has been removed -- Struct `GalleryImageVersionsListByGalleryImageResponse` has been removed -- Struct `GalleryImageVersionsListByGalleryImageResult` has been removed -- Struct `GalleryImageVersionsUpdatePoller` has been removed -- Struct `GalleryImageVersionsUpdatePollerResponse` has been removed -- Struct `GalleryImageVersionsUpdateResponse` has been removed -- Struct `GalleryImageVersionsUpdateResult` has been removed -- Struct `GalleryImagesBeginCreateOrUpdateOptions` has been removed -- Struct `GalleryImagesBeginDeleteOptions` has been removed -- Struct `GalleryImagesBeginUpdateOptions` has been removed -- Struct `GalleryImagesCreateOrUpdatePoller` has been removed -- Struct `GalleryImagesCreateOrUpdatePollerResponse` has been removed -- Struct `GalleryImagesCreateOrUpdateResponse` has been removed -- Struct `GalleryImagesCreateOrUpdateResult` has been removed -- Struct `GalleryImagesDeletePoller` has been removed -- Struct `GalleryImagesDeletePollerResponse` has been removed -- Struct `GalleryImagesDeleteResponse` has been removed -- Struct `GalleryImagesGetOptions` has been removed -- Struct `GalleryImagesGetResponse` has been removed -- Struct `GalleryImagesGetResult` has been removed -- Struct `GalleryImagesListByGalleryOptions` has been removed -- Struct `GalleryImagesListByGalleryPager` has been removed -- Struct `GalleryImagesListByGalleryResponse` has been removed -- Struct `GalleryImagesListByGalleryResult` has been removed -- Struct `GalleryImagesUpdatePoller` has been removed -- Struct `GalleryImagesUpdatePollerResponse` has been removed -- Struct `GalleryImagesUpdateResponse` has been removed -- Struct `GalleryImagesUpdateResult` has been removed -- Struct `GallerySharingProfileBeginUpdateOptions` has been removed -- Struct `GallerySharingProfileUpdatePoller` has been removed -- Struct `GallerySharingProfileUpdatePollerResponse` has been removed -- Struct `GallerySharingProfileUpdateResponse` has been removed -- Struct `GallerySharingProfileUpdateResult` has been removed -- Struct `ImagesBeginCreateOrUpdateOptions` has been removed -- Struct `ImagesBeginDeleteOptions` has been removed -- Struct `ImagesBeginUpdateOptions` has been removed -- Struct `ImagesCreateOrUpdatePoller` has been removed -- Struct `ImagesCreateOrUpdatePollerResponse` has been removed -- Struct `ImagesCreateOrUpdateResponse` has been removed -- Struct `ImagesCreateOrUpdateResult` has been removed -- Struct `ImagesDeletePoller` has been removed -- Struct `ImagesDeletePollerResponse` has been removed -- Struct `ImagesDeleteResponse` has been removed -- Struct `ImagesGetOptions` has been removed -- Struct `ImagesGetResponse` has been removed -- Struct `ImagesGetResult` has been removed -- Struct `ImagesListByResourceGroupOptions` has been removed -- Struct `ImagesListByResourceGroupPager` has been removed -- Struct `ImagesListByResourceGroupResponse` has been removed -- Struct `ImagesListByResourceGroupResult` has been removed -- Struct `ImagesListOptions` has been removed -- Struct `ImagesListPager` has been removed -- Struct `ImagesListResponse` has been removed -- Struct `ImagesListResult` has been removed -- Struct `ImagesUpdatePoller` has been removed -- Struct `ImagesUpdatePollerResponse` has been removed -- Struct `ImagesUpdateResponse` has been removed -- Struct `ImagesUpdateResult` has been removed -- Struct `LogAnalyticsBeginExportRequestRateByIntervalOptions` has been removed -- Struct `LogAnalyticsBeginExportThrottledRequestsOptions` has been removed -- Struct `LogAnalyticsExportRequestRateByIntervalPoller` has been removed -- Struct `LogAnalyticsExportRequestRateByIntervalPollerResponse` has been removed -- Struct `LogAnalyticsExportRequestRateByIntervalResponse` has been removed -- Struct `LogAnalyticsExportRequestRateByIntervalResult` has been removed -- Struct `LogAnalyticsExportThrottledRequestsPoller` has been removed -- Struct `LogAnalyticsExportThrottledRequestsPollerResponse` has been removed -- Struct `LogAnalyticsExportThrottledRequestsResponse` has been removed -- Struct `LogAnalyticsExportThrottledRequestsResult` has been removed -- Struct `OperationsListOptions` has been removed -- Struct `OperationsListResponse` has been removed -- Struct `OperationsListResult` has been removed -- Struct `ProximityPlacementGroupsCreateOrUpdateOptions` has been removed -- Struct `ProximityPlacementGroupsCreateOrUpdateResponse` has been removed -- Struct `ProximityPlacementGroupsCreateOrUpdateResult` has been removed -- Struct `ProximityPlacementGroupsDeleteOptions` has been removed -- Struct `ProximityPlacementGroupsDeleteResponse` has been removed -- Struct `ProximityPlacementGroupsGetOptions` has been removed -- Struct `ProximityPlacementGroupsGetResponse` has been removed -- Struct `ProximityPlacementGroupsGetResult` has been removed -- Struct `ProximityPlacementGroupsListByResourceGroupOptions` has been removed -- Struct `ProximityPlacementGroupsListByResourceGroupPager` has been removed -- Struct `ProximityPlacementGroupsListByResourceGroupResponse` has been removed -- Struct `ProximityPlacementGroupsListByResourceGroupResult` has been removed -- Struct `ProximityPlacementGroupsListBySubscriptionOptions` has been removed -- Struct `ProximityPlacementGroupsListBySubscriptionPager` has been removed -- Struct `ProximityPlacementGroupsListBySubscriptionResponse` has been removed -- Struct `ProximityPlacementGroupsListBySubscriptionResult` has been removed -- Struct `ProximityPlacementGroupsUpdateOptions` has been removed -- Struct `ProximityPlacementGroupsUpdateResponse` has been removed -- Struct `ProximityPlacementGroupsUpdateResult` has been removed -- Struct `ResourceSKUsListOptions` has been removed -- Struct `ResourceSKUsListPager` has been removed -- Struct `ResourceSKUsListResponse` has been removed -- Struct `ResourceSKUsListResult` has been removed -- Struct `RestorePointCollectionsBeginDeleteOptions` has been removed -- Struct `RestorePointCollectionsCreateOrUpdateOptions` has been removed -- Struct `RestorePointCollectionsCreateOrUpdateResponse` has been removed -- Struct `RestorePointCollectionsCreateOrUpdateResult` has been removed -- Struct `RestorePointCollectionsDeletePoller` has been removed -- Struct `RestorePointCollectionsDeletePollerResponse` has been removed -- Struct `RestorePointCollectionsDeleteResponse` has been removed -- Struct `RestorePointCollectionsGetOptions` has been removed -- Struct `RestorePointCollectionsGetResponse` has been removed -- Struct `RestorePointCollectionsGetResult` has been removed -- Struct `RestorePointCollectionsListAllOptions` has been removed -- Struct `RestorePointCollectionsListAllPager` has been removed -- Struct `RestorePointCollectionsListAllResponse` has been removed -- Struct `RestorePointCollectionsListAllResult` has been removed -- Struct `RestorePointCollectionsListOptions` has been removed -- Struct `RestorePointCollectionsListPager` has been removed -- Struct `RestorePointCollectionsListResponse` has been removed -- Struct `RestorePointCollectionsListResult` has been removed -- Struct `RestorePointCollectionsUpdateOptions` has been removed -- Struct `RestorePointCollectionsUpdateResponse` has been removed -- Struct `RestorePointCollectionsUpdateResult` has been removed -- Struct `RestorePointsBeginCreateOptions` has been removed -- Struct `RestorePointsBeginDeleteOptions` has been removed -- Struct `RestorePointsCreatePoller` has been removed -- Struct `RestorePointsCreatePollerResponse` has been removed -- Struct `RestorePointsCreateResponse` has been removed -- Struct `RestorePointsCreateResult` has been removed -- Struct `RestorePointsDeletePoller` has been removed -- Struct `RestorePointsDeletePollerResponse` has been removed -- Struct `RestorePointsDeleteResponse` has been removed -- Struct `RestorePointsGetOptions` has been removed -- Struct `RestorePointsGetResponse` has been removed -- Struct `RestorePointsGetResult` has been removed -- Struct `SSHPublicKeysCreateOptions` has been removed -- Struct `SSHPublicKeysCreateResponse` has been removed -- Struct `SSHPublicKeysCreateResult` has been removed -- Struct `SSHPublicKeysDeleteOptions` has been removed -- Struct `SSHPublicKeysDeleteResponse` has been removed -- Struct `SSHPublicKeysGenerateKeyPairOptions` has been removed -- Struct `SSHPublicKeysGenerateKeyPairResponse` has been removed -- Struct `SSHPublicKeysGenerateKeyPairResult` has been removed -- Struct `SSHPublicKeysGetOptions` has been removed -- Struct `SSHPublicKeysGetResponse` has been removed -- Struct `SSHPublicKeysGetResult` has been removed -- Struct `SSHPublicKeysListByResourceGroupOptions` has been removed -- Struct `SSHPublicKeysListByResourceGroupPager` has been removed -- Struct `SSHPublicKeysListByResourceGroupResponse` has been removed -- Struct `SSHPublicKeysListByResourceGroupResult` has been removed -- Struct `SSHPublicKeysListBySubscriptionOptions` has been removed -- Struct `SSHPublicKeysListBySubscriptionPager` has been removed -- Struct `SSHPublicKeysListBySubscriptionResponse` has been removed -- Struct `SSHPublicKeysListBySubscriptionResult` has been removed -- Struct `SSHPublicKeysUpdateOptions` has been removed -- Struct `SSHPublicKeysUpdateResponse` has been removed -- Struct `SSHPublicKeysUpdateResult` has been removed -- Struct `SharedGalleriesGetOptions` has been removed -- Struct `SharedGalleriesGetResponse` has been removed -- Struct `SharedGalleriesGetResult` has been removed -- Struct `SharedGalleriesListOptions` has been removed -- Struct `SharedGalleriesListPager` has been removed -- Struct `SharedGalleriesListResponse` has been removed -- Struct `SharedGalleriesListResult` has been removed -- Struct `SharedGalleryImageVersionsGetOptions` has been removed -- Struct `SharedGalleryImageVersionsGetResponse` has been removed -- Struct `SharedGalleryImageVersionsGetResult` has been removed -- Struct `SharedGalleryImageVersionsListOptions` has been removed -- Struct `SharedGalleryImageVersionsListPager` has been removed -- Struct `SharedGalleryImageVersionsListResponse` has been removed -- Struct `SharedGalleryImageVersionsListResult` has been removed -- Struct `SharedGalleryImagesGetOptions` has been removed -- Struct `SharedGalleryImagesGetResponse` has been removed -- Struct `SharedGalleryImagesGetResult` has been removed -- Struct `SharedGalleryImagesListOptions` has been removed -- Struct `SharedGalleryImagesListPager` has been removed -- Struct `SharedGalleryImagesListResponse` has been removed -- Struct `SharedGalleryImagesListResult` has been removed -- Struct `SnapshotsBeginCreateOrUpdateOptions` has been removed -- Struct `SnapshotsBeginDeleteOptions` has been removed -- Struct `SnapshotsBeginGrantAccessOptions` has been removed -- Struct `SnapshotsBeginRevokeAccessOptions` has been removed -- Struct `SnapshotsBeginUpdateOptions` has been removed -- Struct `SnapshotsCreateOrUpdatePoller` has been removed -- Struct `SnapshotsCreateOrUpdatePollerResponse` has been removed -- Struct `SnapshotsCreateOrUpdateResponse` has been removed -- Struct `SnapshotsCreateOrUpdateResult` has been removed -- Struct `SnapshotsDeletePoller` has been removed -- Struct `SnapshotsDeletePollerResponse` has been removed -- Struct `SnapshotsDeleteResponse` has been removed -- Struct `SnapshotsGetOptions` has been removed -- Struct `SnapshotsGetResponse` has been removed -- Struct `SnapshotsGetResult` has been removed -- Struct `SnapshotsGrantAccessPoller` has been removed -- Struct `SnapshotsGrantAccessPollerResponse` has been removed -- Struct `SnapshotsGrantAccessResponse` has been removed -- Struct `SnapshotsGrantAccessResult` has been removed -- Struct `SnapshotsListByResourceGroupOptions` has been removed -- Struct `SnapshotsListByResourceGroupPager` has been removed -- Struct `SnapshotsListByResourceGroupResponse` has been removed -- Struct `SnapshotsListByResourceGroupResult` has been removed -- Struct `SnapshotsListOptions` has been removed -- Struct `SnapshotsListPager` has been removed -- Struct `SnapshotsListResponse` has been removed -- Struct `SnapshotsListResult` has been removed -- Struct `SnapshotsRevokeAccessPoller` has been removed -- Struct `SnapshotsRevokeAccessPollerResponse` has been removed -- Struct `SnapshotsRevokeAccessResponse` has been removed -- Struct `SnapshotsUpdatePoller` has been removed -- Struct `SnapshotsUpdatePollerResponse` has been removed -- Struct `SnapshotsUpdateResponse` has been removed -- Struct `SnapshotsUpdateResult` has been removed -- Struct `UsageListOptions` has been removed -- Struct `UsageListPager` has been removed -- Struct `UsageListResponse` has been removed -- Struct `UsageListResult` has been removed -- Struct `VirtualMachineExtensionImagesGetOptions` has been removed -- Struct `VirtualMachineExtensionImagesGetResponse` has been removed -- Struct `VirtualMachineExtensionImagesGetResult` has been removed -- Struct `VirtualMachineExtensionImagesListTypesOptions` has been removed -- Struct `VirtualMachineExtensionImagesListTypesResponse` has been removed -- Struct `VirtualMachineExtensionImagesListTypesResult` has been removed -- Struct `VirtualMachineExtensionImagesListVersionsOptions` has been removed -- Struct `VirtualMachineExtensionImagesListVersionsResponse` has been removed -- Struct `VirtualMachineExtensionImagesListVersionsResult` has been removed -- Struct `VirtualMachineExtensionsBeginCreateOrUpdateOptions` has been removed -- Struct `VirtualMachineExtensionsBeginDeleteOptions` has been removed -- Struct `VirtualMachineExtensionsBeginUpdateOptions` has been removed -- Struct `VirtualMachineExtensionsCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineExtensionsCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineExtensionsCreateOrUpdateResponse` has been removed -- Struct `VirtualMachineExtensionsCreateOrUpdateResult` has been removed -- Struct `VirtualMachineExtensionsDeletePoller` has been removed -- Struct `VirtualMachineExtensionsDeletePollerResponse` has been removed -- Struct `VirtualMachineExtensionsDeleteResponse` has been removed -- Struct `VirtualMachineExtensionsGetOptions` has been removed -- Struct `VirtualMachineExtensionsGetResponse` has been removed -- Struct `VirtualMachineExtensionsGetResult` has been removed -- Struct `VirtualMachineExtensionsListOptions` has been removed -- Struct `VirtualMachineExtensionsListResponse` has been removed -- Struct `VirtualMachineExtensionsListResultEnvelope` has been removed -- Struct `VirtualMachineExtensionsUpdatePoller` has been removed -- Struct `VirtualMachineExtensionsUpdatePollerResponse` has been removed -- Struct `VirtualMachineExtensionsUpdateResponse` has been removed -- Struct `VirtualMachineExtensionsUpdateResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneGetOptions` has been removed -- Struct `VirtualMachineImagesEdgeZoneGetResponse` has been removed -- Struct `VirtualMachineImagesEdgeZoneGetResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneListOffersOptions` has been removed -- Struct `VirtualMachineImagesEdgeZoneListOffersResponse` has been removed -- Struct `VirtualMachineImagesEdgeZoneListOffersResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneListOptions` has been removed -- Struct `VirtualMachineImagesEdgeZoneListPublishersOptions` has been removed -- Struct `VirtualMachineImagesEdgeZoneListPublishersResponse` has been removed -- Struct `VirtualMachineImagesEdgeZoneListPublishersResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneListResponse` has been removed -- Struct `VirtualMachineImagesEdgeZoneListResult` has been removed -- Struct `VirtualMachineImagesEdgeZoneListSKUsOptions` has been removed -- Struct `VirtualMachineImagesEdgeZoneListSKUsResponse` has been removed -- Struct `VirtualMachineImagesEdgeZoneListSKUsResult` has been removed -- Struct `VirtualMachineImagesGetOptions` has been removed -- Struct `VirtualMachineImagesGetResponse` has been removed -- Struct `VirtualMachineImagesGetResult` has been removed -- Struct `VirtualMachineImagesListOffersOptions` has been removed -- Struct `VirtualMachineImagesListOffersResponse` has been removed -- Struct `VirtualMachineImagesListOffersResult` has been removed -- Struct `VirtualMachineImagesListOptions` has been removed -- Struct `VirtualMachineImagesListPublishersOptions` has been removed -- Struct `VirtualMachineImagesListPublishersResponse` has been removed -- Struct `VirtualMachineImagesListPublishersResult` has been removed -- Struct `VirtualMachineImagesListResponse` has been removed -- Struct `VirtualMachineImagesListResult` has been removed -- Struct `VirtualMachineImagesListSKUsOptions` has been removed -- Struct `VirtualMachineImagesListSKUsResponse` has been removed -- Struct `VirtualMachineImagesListSKUsResult` has been removed -- Struct `VirtualMachineRunCommandsBeginCreateOrUpdateOptions` has been removed -- Struct `VirtualMachineRunCommandsBeginDeleteOptions` has been removed -- Struct `VirtualMachineRunCommandsBeginUpdateOptions` has been removed -- Struct `VirtualMachineRunCommandsCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineRunCommandsCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineRunCommandsCreateOrUpdateResponse` has been removed -- Struct `VirtualMachineRunCommandsCreateOrUpdateResult` has been removed -- Struct `VirtualMachineRunCommandsDeletePoller` has been removed -- Struct `VirtualMachineRunCommandsDeletePollerResponse` has been removed -- Struct `VirtualMachineRunCommandsDeleteResponse` has been removed -- Struct `VirtualMachineRunCommandsGetByVirtualMachineOptions` has been removed -- Struct `VirtualMachineRunCommandsGetByVirtualMachineResponse` has been removed -- Struct `VirtualMachineRunCommandsGetByVirtualMachineResult` has been removed -- Struct `VirtualMachineRunCommandsGetOptions` has been removed -- Struct `VirtualMachineRunCommandsGetResponse` has been removed -- Struct `VirtualMachineRunCommandsGetResult` has been removed -- Struct `VirtualMachineRunCommandsListByVirtualMachineOptions` has been removed -- Struct `VirtualMachineRunCommandsListByVirtualMachinePager` has been removed -- Struct `VirtualMachineRunCommandsListByVirtualMachineResponse` has been removed -- Struct `VirtualMachineRunCommandsListByVirtualMachineResult` has been removed -- Struct `VirtualMachineRunCommandsListOptions` has been removed -- Struct `VirtualMachineRunCommandsListPager` has been removed -- Struct `VirtualMachineRunCommandsListResponse` has been removed -- Struct `VirtualMachineRunCommandsListResultEnvelope` has been removed -- Struct `VirtualMachineRunCommandsUpdatePoller` has been removed -- Struct `VirtualMachineRunCommandsUpdatePollerResponse` has been removed -- Struct `VirtualMachineRunCommandsUpdateResponse` has been removed -- Struct `VirtualMachineRunCommandsUpdateResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsBeginCreateOrUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetExtensionsBeginDeleteOptions` has been removed -- Struct `VirtualMachineScaleSetExtensionsBeginUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsDeletePoller` has been removed -- Struct `VirtualMachineScaleSetExtensionsDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsDeleteResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsGetOptions` has been removed -- Struct `VirtualMachineScaleSetExtensionsGetResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsGetResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsListOptions` has been removed -- Struct `VirtualMachineScaleSetExtensionsListPager` has been removed -- Struct `VirtualMachineScaleSetExtensionsListResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsListResult` has been removed -- Struct `VirtualMachineScaleSetExtensionsUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetExtensionsUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetExtensionsUpdateResult` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesBeginCancelOptions` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesBeginStartExtensionUpgradeOptions` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesBeginStartOSUpgradeOptions` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesCancelPoller` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesCancelPollerResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesCancelResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesGetLatestOptions` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesGetLatestResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesGetLatestResult` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse` has been removed -- Struct `VirtualMachineScaleSetRollingUpgradesStartOSUpgradeResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsBeginDeleteOptions` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsBeginUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsDeletePoller` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsDeleteResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsGetOptions` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsGetResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsGetResult` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsListOptions` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsListResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsListResultEnvelope` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetVMExtensionsUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsBeginCreateOrUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsBeginDeleteOptions` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsBeginUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsDeletePoller` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsDeleteResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsGetOptions` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsGetResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsGetResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsListOptions` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsListPager` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsListResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsListResult` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetVMRunCommandsUpdateResult` has been removed -- Struct `VirtualMachineScaleSetVMsBeginDeallocateOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginDeleteOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginPerformMaintenanceOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginPowerOffOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginRedeployOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginReimageAllOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginReimageOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginRestartOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginRunCommandOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginStartOptions` has been removed -- Struct `VirtualMachineScaleSetVMsBeginUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetVMsDeallocatePoller` has been removed -- Struct `VirtualMachineScaleSetVMsDeallocatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsDeallocateResponse` has been removed -- Struct `VirtualMachineScaleSetVMsDeletePoller` has been removed -- Struct `VirtualMachineScaleSetVMsDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsDeleteResponse` has been removed -- Struct `VirtualMachineScaleSetVMsGetInstanceViewOptions` has been removed -- Struct `VirtualMachineScaleSetVMsGetInstanceViewResponse` has been removed -- Struct `VirtualMachineScaleSetVMsGetInstanceViewResult` has been removed -- Struct `VirtualMachineScaleSetVMsGetOptions` has been removed -- Struct `VirtualMachineScaleSetVMsGetResponse` has been removed -- Struct `VirtualMachineScaleSetVMsGetResult` has been removed -- Struct `VirtualMachineScaleSetVMsListOptions` has been removed -- Struct `VirtualMachineScaleSetVMsListPager` has been removed -- Struct `VirtualMachineScaleSetVMsListResponse` has been removed -- Struct `VirtualMachineScaleSetVMsListResult` has been removed -- Struct `VirtualMachineScaleSetVMsPerformMaintenancePoller` has been removed -- Struct `VirtualMachineScaleSetVMsPerformMaintenancePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsPerformMaintenanceResponse` has been removed -- Struct `VirtualMachineScaleSetVMsPowerOffPoller` has been removed -- Struct `VirtualMachineScaleSetVMsPowerOffPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsPowerOffResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRedeployPoller` has been removed -- Struct `VirtualMachineScaleSetVMsRedeployPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRedeployResponse` has been removed -- Struct `VirtualMachineScaleSetVMsReimageAllPoller` has been removed -- Struct `VirtualMachineScaleSetVMsReimageAllPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsReimageAllResponse` has been removed -- Struct `VirtualMachineScaleSetVMsReimagePoller` has been removed -- Struct `VirtualMachineScaleSetVMsReimagePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsReimageResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRestartPoller` has been removed -- Struct `VirtualMachineScaleSetVMsRestartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRestartResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptions` has been removed -- Struct `VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResult` has been removed -- Struct `VirtualMachineScaleSetVMsRunCommandPoller` has been removed -- Struct `VirtualMachineScaleSetVMsRunCommandPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRunCommandResponse` has been removed -- Struct `VirtualMachineScaleSetVMsRunCommandResult` has been removed -- Struct `VirtualMachineScaleSetVMsSimulateEvictionOptions` has been removed -- Struct `VirtualMachineScaleSetVMsSimulateEvictionResponse` has been removed -- Struct `VirtualMachineScaleSetVMsStartPoller` has been removed -- Struct `VirtualMachineScaleSetVMsStartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsStartResponse` has been removed -- Struct `VirtualMachineScaleSetVMsUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetVMsUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetVMsUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetVMsUpdateResult` has been removed -- Struct `VirtualMachineScaleSetsBeginCreateOrUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginDeallocateOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginDeleteInstancesOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginDeleteOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginPerformMaintenanceOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginPowerOffOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginRedeployOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginReimageAllOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginReimageOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginRestartOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginSetOrchestrationServiceStateOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginStartOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginUpdateInstancesOptions` has been removed -- Struct `VirtualMachineScaleSetsBeginUpdateOptions` has been removed -- Struct `VirtualMachineScaleSetsConvertToSinglePlacementGroupOptions` has been removed -- Struct `VirtualMachineScaleSetsConvertToSinglePlacementGroupResponse` has been removed -- Struct `VirtualMachineScaleSetsCreateOrUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetsCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsCreateOrUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetsCreateOrUpdateResult` has been removed -- Struct `VirtualMachineScaleSetsDeallocatePoller` has been removed -- Struct `VirtualMachineScaleSetsDeallocatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsDeallocateResponse` has been removed -- Struct `VirtualMachineScaleSetsDeleteInstancesPoller` has been removed -- Struct `VirtualMachineScaleSetsDeleteInstancesPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsDeleteInstancesResponse` has been removed -- Struct `VirtualMachineScaleSetsDeletePoller` has been removed -- Struct `VirtualMachineScaleSetsDeletePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsDeleteResponse` has been removed -- Struct `VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions` has been removed -- Struct `VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` has been removed -- Struct `VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResult` has been removed -- Struct `VirtualMachineScaleSetsGetInstanceViewOptions` has been removed -- Struct `VirtualMachineScaleSetsGetInstanceViewResponse` has been removed -- Struct `VirtualMachineScaleSetsGetInstanceViewResult` has been removed -- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryOptions` has been removed -- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryPager` has been removed -- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryResponse` has been removed -- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryResult` has been removed -- Struct `VirtualMachineScaleSetsGetOptions` has been removed -- Struct `VirtualMachineScaleSetsGetResponse` has been removed -- Struct `VirtualMachineScaleSetsGetResult` has been removed -- Struct `VirtualMachineScaleSetsListAllOptions` has been removed -- Struct `VirtualMachineScaleSetsListAllPager` has been removed -- Struct `VirtualMachineScaleSetsListAllResponse` has been removed -- Struct `VirtualMachineScaleSetsListAllResult` has been removed -- Struct `VirtualMachineScaleSetsListByLocationOptions` has been removed -- Struct `VirtualMachineScaleSetsListByLocationPager` has been removed -- Struct `VirtualMachineScaleSetsListByLocationResponse` has been removed -- Struct `VirtualMachineScaleSetsListByLocationResult` has been removed -- Struct `VirtualMachineScaleSetsListOptions` has been removed -- Struct `VirtualMachineScaleSetsListPager` has been removed -- Struct `VirtualMachineScaleSetsListResponse` has been removed -- Struct `VirtualMachineScaleSetsListResult` has been removed -- Struct `VirtualMachineScaleSetsListSKUsOptions` has been removed -- Struct `VirtualMachineScaleSetsListSKUsPager` has been removed -- Struct `VirtualMachineScaleSetsListSKUsResponse` has been removed -- Struct `VirtualMachineScaleSetsListSKUsResult` has been removed -- Struct `VirtualMachineScaleSetsPerformMaintenancePoller` has been removed -- Struct `VirtualMachineScaleSetsPerformMaintenancePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsPerformMaintenanceResponse` has been removed -- Struct `VirtualMachineScaleSetsPowerOffPoller` has been removed -- Struct `VirtualMachineScaleSetsPowerOffPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsPowerOffResponse` has been removed -- Struct `VirtualMachineScaleSetsRedeployPoller` has been removed -- Struct `VirtualMachineScaleSetsRedeployPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsRedeployResponse` has been removed -- Struct `VirtualMachineScaleSetsReimageAllPoller` has been removed -- Struct `VirtualMachineScaleSetsReimageAllPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsReimageAllResponse` has been removed -- Struct `VirtualMachineScaleSetsReimagePoller` has been removed -- Struct `VirtualMachineScaleSetsReimagePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsReimageResponse` has been removed -- Struct `VirtualMachineScaleSetsRestartPoller` has been removed -- Struct `VirtualMachineScaleSetsRestartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsRestartResponse` has been removed -- Struct `VirtualMachineScaleSetsSetOrchestrationServiceStatePoller` has been removed -- Struct `VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsSetOrchestrationServiceStateResponse` has been removed -- Struct `VirtualMachineScaleSetsStartPoller` has been removed -- Struct `VirtualMachineScaleSetsStartPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsStartResponse` has been removed -- Struct `VirtualMachineScaleSetsUpdateInstancesPoller` has been removed -- Struct `VirtualMachineScaleSetsUpdateInstancesPollerResponse` has been removed -- Struct `VirtualMachineScaleSetsUpdateInstancesResponse` has been removed -- Struct `VirtualMachineScaleSetsUpdatePoller` has been removed -- Struct `VirtualMachineScaleSetsUpdatePollerResponse` has been removed -- Struct `VirtualMachineScaleSetsUpdateResponse` has been removed -- Struct `VirtualMachineScaleSetsUpdateResult` has been removed -- Struct `VirtualMachineSizesListOptions` has been removed -- Struct `VirtualMachineSizesListResponse` has been removed -- Struct `VirtualMachineSizesListResult` has been removed -- Struct `VirtualMachinesAssessPatchesPoller` has been removed -- Struct `VirtualMachinesAssessPatchesPollerResponse` has been removed -- Struct `VirtualMachinesAssessPatchesResponse` has been removed -- Struct `VirtualMachinesAssessPatchesResult` has been removed -- Struct `VirtualMachinesBeginAssessPatchesOptions` has been removed -- Struct `VirtualMachinesBeginCaptureOptions` has been removed -- Struct `VirtualMachinesBeginConvertToManagedDisksOptions` has been removed -- Struct `VirtualMachinesBeginCreateOrUpdateOptions` has been removed -- Struct `VirtualMachinesBeginDeallocateOptions` has been removed -- Struct `VirtualMachinesBeginDeleteOptions` has been removed -- Struct `VirtualMachinesBeginInstallPatchesOptions` has been removed -- Struct `VirtualMachinesBeginPerformMaintenanceOptions` has been removed -- Struct `VirtualMachinesBeginPowerOffOptions` has been removed -- Struct `VirtualMachinesBeginReapplyOptions` has been removed -- Struct `VirtualMachinesBeginRedeployOptions` has been removed -- Struct `VirtualMachinesBeginReimageOptions` has been removed -- Struct `VirtualMachinesBeginRestartOptions` has been removed -- Struct `VirtualMachinesBeginRunCommandOptions` has been removed -- Struct `VirtualMachinesBeginStartOptions` has been removed -- Struct `VirtualMachinesBeginUpdateOptions` has been removed -- Struct `VirtualMachinesCapturePoller` has been removed -- Struct `VirtualMachinesCapturePollerResponse` has been removed -- Struct `VirtualMachinesCaptureResponse` has been removed -- Struct `VirtualMachinesCaptureResult` has been removed -- Struct `VirtualMachinesConvertToManagedDisksPoller` has been removed -- Struct `VirtualMachinesConvertToManagedDisksPollerResponse` has been removed -- Struct `VirtualMachinesConvertToManagedDisksResponse` has been removed -- Struct `VirtualMachinesCreateOrUpdatePoller` has been removed -- Struct `VirtualMachinesCreateOrUpdatePollerResponse` has been removed -- Struct `VirtualMachinesCreateOrUpdateResponse` has been removed -- Struct `VirtualMachinesCreateOrUpdateResult` has been removed -- Struct `VirtualMachinesDeallocatePoller` has been removed -- Struct `VirtualMachinesDeallocatePollerResponse` has been removed -- Struct `VirtualMachinesDeallocateResponse` has been removed -- Struct `VirtualMachinesDeletePoller` has been removed -- Struct `VirtualMachinesDeletePollerResponse` has been removed -- Struct `VirtualMachinesDeleteResponse` has been removed -- Struct `VirtualMachinesGeneralizeOptions` has been removed -- Struct `VirtualMachinesGeneralizeResponse` has been removed -- Struct `VirtualMachinesGetOptions` has been removed -- Struct `VirtualMachinesGetResponse` has been removed -- Struct `VirtualMachinesGetResult` has been removed -- Struct `VirtualMachinesInstallPatchesPoller` has been removed -- Struct `VirtualMachinesInstallPatchesPollerResponse` has been removed -- Struct `VirtualMachinesInstallPatchesResponse` has been removed -- Struct `VirtualMachinesInstallPatchesResult` has been removed -- Struct `VirtualMachinesInstanceViewOptions` has been removed -- Struct `VirtualMachinesInstanceViewResponse` has been removed -- Struct `VirtualMachinesInstanceViewResult` has been removed -- Struct `VirtualMachinesListAllOptions` has been removed -- Struct `VirtualMachinesListAllPager` has been removed -- Struct `VirtualMachinesListAllResponse` has been removed -- Struct `VirtualMachinesListAllResult` has been removed -- Struct `VirtualMachinesListAvailableSizesOptions` has been removed -- Struct `VirtualMachinesListAvailableSizesResponse` has been removed -- Struct `VirtualMachinesListAvailableSizesResult` has been removed -- Struct `VirtualMachinesListByLocationOptions` has been removed -- Struct `VirtualMachinesListByLocationPager` has been removed -- Struct `VirtualMachinesListByLocationResponse` has been removed -- Struct `VirtualMachinesListByLocationResult` has been removed -- Struct `VirtualMachinesListOptions` has been removed -- Struct `VirtualMachinesListPager` has been removed -- Struct `VirtualMachinesListResponse` has been removed -- Struct `VirtualMachinesListResult` has been removed -- Struct `VirtualMachinesPerformMaintenancePoller` has been removed -- Struct `VirtualMachinesPerformMaintenancePollerResponse` has been removed -- Struct `VirtualMachinesPerformMaintenanceResponse` has been removed -- Struct `VirtualMachinesPowerOffPoller` has been removed -- Struct `VirtualMachinesPowerOffPollerResponse` has been removed -- Struct `VirtualMachinesPowerOffResponse` has been removed -- Struct `VirtualMachinesReapplyPoller` has been removed -- Struct `VirtualMachinesReapplyPollerResponse` has been removed -- Struct `VirtualMachinesReapplyResponse` has been removed -- Struct `VirtualMachinesRedeployPoller` has been removed -- Struct `VirtualMachinesRedeployPollerResponse` has been removed -- Struct `VirtualMachinesRedeployResponse` has been removed -- Struct `VirtualMachinesReimagePoller` has been removed -- Struct `VirtualMachinesReimagePollerResponse` has been removed -- Struct `VirtualMachinesReimageResponse` has been removed -- Struct `VirtualMachinesRestartPoller` has been removed -- Struct `VirtualMachinesRestartPollerResponse` has been removed -- Struct `VirtualMachinesRestartResponse` has been removed -- Struct `VirtualMachinesRetrieveBootDiagnosticsDataOptions` has been removed -- Struct `VirtualMachinesRetrieveBootDiagnosticsDataResponse` has been removed -- Struct `VirtualMachinesRetrieveBootDiagnosticsDataResult` has been removed -- Struct `VirtualMachinesRunCommandPoller` has been removed -- Struct `VirtualMachinesRunCommandPollerResponse` has been removed -- Struct `VirtualMachinesRunCommandResponse` has been removed -- Struct `VirtualMachinesRunCommandResult` has been removed -- Struct `VirtualMachinesSimulateEvictionOptions` has been removed -- Struct `VirtualMachinesSimulateEvictionResponse` has been removed -- Struct `VirtualMachinesStartPoller` has been removed -- Struct `VirtualMachinesStartPollerResponse` has been removed -- Struct `VirtualMachinesStartResponse` has been removed -- Struct `VirtualMachinesUpdatePoller` has been removed -- Struct `VirtualMachinesUpdatePollerResponse` has been removed -- Struct `VirtualMachinesUpdateResponse` has been removed -- Struct `VirtualMachinesUpdateResult` has been removed -- Field `GalleryDiskImage` of struct `GalleryDataDiskImage` has been removed -- Field `UpdateResource` of struct `DedicatedHostUpdate` has been removed -- Field `GalleryArtifactPublishingProfileBase` of struct `GalleryApplicationVersionPublishingProfile` has been removed -- Field `Resource` of struct `CapacityReservation` has been removed -- Field `SubResource` of struct `VirtualMachineScaleSetNetworkConfiguration` has been removed -- Field `Resource` of struct `Snapshot` has been removed -- Field `PirCommunityGalleryResource` of struct `CommunityGalleryImage` has been removed -- Field `UpdateResource` of struct `RestorePointCollectionUpdate` has been removed -- Field `DedicatedHostInstanceView` of struct `DedicatedHostInstanceViewWithName` has been removed -- Field `UpdateResource` of struct `AvailabilitySetUpdate` has been removed -- Field `Resource` of struct `SSHPublicKeyResource` has been removed -- Field `ProxyOnlyResource` of struct `DiskRestorePoint` has been removed -- Field `GalleryArtifactPublishingProfileBase` of struct `GalleryImageVersionPublishingProfile` has been removed -- Field `Resource` of struct `DedicatedHost` has been removed -- Field `PirCommunityGalleryResource` of struct `CommunityGallery` has been removed -- Field `Resource` of struct `Image` has been removed -- Field `UpdateResource` of struct `ProximityPlacementGroupUpdate` has been removed -- Field `Resource` of struct `GalleryImageVersion` has been removed -- Field `ImageDisk` of struct `ImageOSDisk` has been removed -- Field `UpdateResource` of struct `VirtualMachineRunCommandUpdate` has been removed -- Field `RunCommandDocumentBase` of struct `RunCommandDocument` has been removed -- Field `Resource` of struct `VirtualMachineRunCommand` has been removed -- Field `Resource` of struct `GalleryImage` has been removed -- Field `SubResource` of struct `SubResourceWithColocationStatus` has been removed -- Field `SubResource` of struct `VirtualMachineCaptureResult` has been removed -- Field `SubResource` of struct `ManagedDiskParameters` has been removed -- Field `UpdateResource` of struct `VirtualMachineUpdate` has been removed -- Field `UpdateResource` of struct `SSHPublicKeyUpdateResource` has been removed -- Field `Resource` of struct `DedicatedHostGroup` has been removed -- Field `VirtualMachineImageResource` of struct `VirtualMachineImage` has been removed -- Field `SubResource` of struct `DiskEncryptionSetParameters` has been removed -- Field `Resource` of struct `DiskEncryptionSet` has been removed -- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetExtensionUpdate` has been removed -- Field `UpdateResourceDefinition` of struct `GalleryUpdate` has been removed -- Field `Resource` of struct `VirtualMachineScaleSet` has been removed -- Field `UpdateResource` of struct `CapacityReservationGroupUpdate` has been removed -- Field `UpdateResourceDefinition` of struct `GalleryImageVersionUpdate` has been removed -- Field `ProxyResource` of struct `RestorePoint` has been removed -- Field `UpdateResourceDefinition` of struct `GalleryImageUpdate` has been removed -- Field `UpdateResource` of struct `VirtualMachineExtensionUpdate` has been removed -- Field `Resource` of struct `AvailabilitySet` has been removed -- Field `VirtualMachineReimageParameters` of struct `VirtualMachineScaleSetVMReimageParameters` has been removed -- Field `UpdateResource` of struct `VirtualMachineScaleSetUpdate` has been removed -- Field `Resource` of struct `RollingUpgradeStatusInfo` has been removed -- Field `DiskImageEncryption` of struct `OSDiskImageEncryption` has been removed -- Field `SubResource` of struct `ImageReference` has been removed -- Field `Resource` of struct `Gallery` has been removed -- Field `GalleryDiskImage` of struct `GalleryOSDiskImage` has been removed -- Field `PirResource` of struct `PirSharedGalleryResource` has been removed -- Field `Resource` of struct `GalleryApplicationVersion` has been removed -- Field `PirSharedGalleryResource` of struct `SharedGalleryImage` has been removed -- Field `UpdateResource` of struct `DedicatedHostGroupUpdate` has been removed -- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetVMExtension` has been removed -- Field `UpdateResource` of struct `ImageUpdate` has been removed -- Field `Resource` of struct `VirtualMachine` has been removed -- Field `Resource` of struct `CapacityReservationGroup` has been removed -- Field `UpdateResourceDefinition` of struct `GalleryApplicationVersionUpdate` has been removed -- Field `Resource` of struct `VirtualMachineExtensionImage` has been removed -- Field `UpdateResourceDefinition` of struct `GalleryApplicationUpdate` has been removed -- Field `SubResource` of struct `NetworkInterfaceReference` has been removed -- Field `SubResource` of struct `VirtualMachineScaleSetIPConfiguration` has been removed -- Field `InnerError` of struct `CloudError` has been removed -- Field `ImageDisk` of struct `ImageDataDisk` has been removed -- Field `Resource` of struct `RestorePointCollection` has been removed -- Field `Resource` of struct `DiskAccess` has been removed -- Field `Resource` of struct `VirtualMachineExtension` has been removed -- Field `Resource` of struct `VirtualMachineScaleSetVM` has been removed -- Field `LogAnalyticsInputBase` of struct `ThrottledRequestsInput` has been removed -- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetVMExtensionUpdate` has been removed -- Field `SubResource` of struct `VirtualMachineScaleSetUpdateNetworkConfiguration` has been removed -- Field `SubResource` of struct `VirtualMachineScaleSetUpdateIPConfiguration` has been removed -- Field `PirSharedGalleryResource` of struct `SharedGallery` has been removed -- Field `LogAnalyticsInputBase` of struct `RequestRateByIntervalInput` has been removed -- Field `DiskImageEncryption` of struct `DataDiskImageEncryption` has been removed -- Field `SubResource` of struct `VirtualMachineImageResource` has been removed -- Field `Resource` of struct `Disk` has been removed -- Field `PirSharedGalleryResource` of struct `SharedGalleryImageVersion` has been removed -- Field `PirCommunityGalleryResource` of struct `CommunityGalleryImageVersion` has been removed -- Field `VirtualMachineScaleSetVMReimageParameters` of struct `VirtualMachineScaleSetReimageParameters` has been removed -- Field `CapacityReservationInstanceView` of struct `CapacityReservationInstanceViewWithName` has been removed -- Field `Resource` of struct `ProximityPlacementGroup` has been removed -- Field `Resource` of struct `GalleryApplication` has been removed -- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetExtension` has been removed -- Field `UpdateResource` of struct `CapacityReservationUpdate` has been removed - -### Features Added - -- New const `DiskCreateOptionUploadPreparedSecure` -- New const `DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey` -- New const `DiskEncryptionSetTypeConfidentialVMEncryptedWithCustomerKey` -- New const `DiskSecurityTypesConfidentialVMDiskEncryptedWithCustomerKey` -- New const `DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey` -- New const `DiskCreateOptionImportSecure` -- New function `*UsageClientListPager.PageResponse() UsageClientListResponse` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.FinalResponse(context.Context) (VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse, error)` -- New function `*ProximityPlacementGroupsClientListBySubscriptionPager.NextPage(context.Context) bool` -- New function `*GalleryApplicationsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*DedicatedHostsClientListByHostGroupPager.PageResponse() DedicatedHostsClientListByHostGroupResponse` -- New function `*GallerySharingProfileClientUpdatePollerResponse.Resume(context.Context, *GallerySharingProfileClient, string) error` -- New function `*DiskEncryptionSetsClientDeletePollerResponse.Resume(context.Context, *DiskEncryptionSetsClient, string) error` -- New function `*VirtualMachineExtensionsClientDeletePoller.ResumeToken() (string, error)` -- New function `*GalleryImagesClientListByGalleryPager.NextPage(context.Context) bool` -- New function `*DisksClientGrantAccessPollerResponse.Resume(context.Context, *DisksClient, string) error` -- New function `*GalleryApplicationVersionsClientUpdatePoller.ResumeToken() (string, error)` -- New function `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientPerformMaintenanceResponse, error)` -- New function `VirtualMachinesClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientPowerOffResponse, error)` -- New function `*VirtualMachineScaleSetsClientListSKUsPager.NextPage(context.Context) bool` -- New function `*SnapshotsClientRevokeAccessPoller.Done() bool` -- New function `*VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetExtensionsClient, string) error` -- New function `*GalleryApplicationsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineRunCommandsClientListPager.NextPage(context.Context) bool` -- New function `*CloudServicesClientListAllPager.Err() error` -- New function `*UsageClientListPager.Err() error` -- New function `*ResourceSKUsClientListPager.Err() error` -- New function `*CloudServicesClientPowerOffPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientListByLocationPager.NextPage(context.Context) bool` -- New function `ImagesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (ImagesClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetsClientListSKUsPager.PageResponse() VirtualMachineScaleSetsClientListSKUsResponse` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.FinalResponse(context.Context) (VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse, error)` -- New function `*VirtualMachineScaleSetsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Done() bool` -- New function `*UsageClientListPager.NextPage(context.Context) bool` -- New function `*VirtualMachinesClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachinesClientCreateOrUpdateResponse, error)` -- New function `*CapacityReservationsClientUpdatePoller.Done() bool` -- New function `*GalleriesClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientUpdatePoller.Done() bool` -- New function `CloudServicesClientRebuildPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientRebuildResponse, error)` -- New function `*CloudServicesClientPowerOffPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.ResumeToken() (string, error)` -- New function `*CloudServicesClientReimagePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientListByLocationPager.Err() error` -- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Done() bool` -- New function `*AvailabilitySetsClientListPager.PageResponse() AvailabilitySetsClientListResponse` -- New function `*GalleryImagesClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryImagesClientCreateOrUpdateResponse, error)` -- New function `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetRollingUpgradesClientCancelResponse, error)` -- New function `*CapacityReservationsClientListByCapacityReservationGroupPager.PageResponse() CapacityReservationsClientListByCapacityReservationGroupResponse` -- New function `*CloudServiceRoleInstancesClientDeletePollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error` -- New function `CapacityReservationsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (CapacityReservationsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientListPager.PageResponse() VirtualMachineScaleSetVMRunCommandsClientListResponse` -- New function `VirtualMachineScaleSetVMsClientRunCommandPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientRunCommandResponse, error)` -- New function `*VirtualMachinesClientDeletePoller.FinalResponse(context.Context) (VirtualMachinesClientDeleteResponse, error)` -- New function `*DiskRestorePointClientGrantAccessPoller.FinalResponse(context.Context) (DiskRestorePointClientGrantAccessResponse, error)` -- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.Resume(context.Context, *CloudServicesUpdateDomainClient, string) error` -- New function `OperationListResult.MarshalJSON() ([]byte, error)` -- New function `*GalleriesClientUpdatePoller.ResumeToken() (string, error)` -- New function `*GallerySharingProfileClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientDeleteInstancesResponse, error)` -- New function `*VirtualMachineExtensionsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientCapturePoller.Done() bool` -- New function `*CloudServicesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*ImagesClientListByResourceGroupPager.Err() error` -- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*DiskEncryptionSetsClientListAssociatedResourcesPager.PageResponse() DiskEncryptionSetsClientListAssociatedResourcesResponse` -- New function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.PageResponse() VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse` -- New function `*ResourceSKUsClientListPager.NextPage(context.Context) bool` -- New function `*DiskAccessesClientUpdatePoller.Done() bool` -- New function `*CapacityReservationsClientDeletePoller.ResumeToken() (string, error)` -- New function `*GalleriesClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `DiskEncryptionSetsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskEncryptionSetsClientUpdateResponse, error)` -- New function `*DiskRestorePointClientRevokeAccessPoller.Done() bool` -- New function `VirtualMachinesClientRedeployPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientRedeployResponse, error)` -- New function `*VirtualMachinesClientRunCommandPoller.FinalResponse(context.Context) (VirtualMachinesClientRunCommandResponse, error)` -- New function `*SnapshotsClientDeletePoller.ResumeToken() (string, error)` -- New function `*DedicatedHostGroupsClientListBySubscriptionPager.PageResponse() DedicatedHostGroupsClientListBySubscriptionResponse` -- New function `*RestorePointCollectionsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMExtensionsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetsClientStartPoller.Done() bool` -- New function `VirtualMachineScaleSetsClientReimageAllPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientReimageAllResponse, error)` -- New function `*DedicatedHostsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*RestorePointsClientCreatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientReimagePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*DiskEncryptionSetsClientUpdatePollerResponse.Resume(context.Context, *DiskEncryptionSetsClient, string) error` -- New function `*DisksClientDeletePoller.FinalResponse(context.Context) (DisksClientDeleteResponse, error)` -- New function `*GalleryApplicationsClientUpdatePoller.Done() bool` -- New function `*DedicatedHostGroupsClientListByResourceGroupPager.Err() error` -- New function `*CloudServicesClientStartPoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskEncryptionSetsClientListPager.PageResponse() DiskEncryptionSetsClientListResponse` -- New function `*DiskAccessesClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientPowerOffResponse, error)` -- New function `*VirtualMachineScaleSetsClientReimagePoller.Done() bool` -- New function `*DiskEncryptionSetsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DedicatedHostsClientCreateOrUpdatePoller.Done() bool` -- New function `*ImagesClientCreateOrUpdatePollerResponse.Resume(context.Context, *ImagesClient, string) error` -- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetExtensionsClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientRedeployResponse, error)` -- New function `*VirtualMachinesClientPerformMaintenancePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.Err() error` -- New function `*VirtualMachineScaleSetsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientStartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `VirtualMachinesClientRunCommandPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientRunCommandResponse, error)` -- New function `*RestorePointCollectionsClientDeletePollerResponse.Resume(context.Context, *RestorePointCollectionsClient, string) error` -- New function `VirtualMachineScaleSetVMsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientUpdateResponse, error)` -- New function `*DiskRestorePointClientGrantAccessPollerResponse.Resume(context.Context, *DiskRestorePointClient, string) error` -- New function `*GalleryApplicationsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `VirtualMachinesClientDeallocatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientDeallocateResponse, error)` -- New function `GalleryImagesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImagesClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineRunCommandsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientReimagePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*VirtualMachineScaleSetsClientPowerOffPoller.Poll(context.Context) (*http.Response, error)` -- New function `*DedicatedHostsClientUpdatePoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*CapacityReservationsClientUpdatePoller.FinalResponse(context.Context) (CapacityReservationsClientUpdateResponse, error)` -- New function `VirtualMachineRunCommandsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineRunCommandsClientDeleteResponse, error)` -- New function `*CloudServiceRoleInstancesClientRebuildPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientListPager.PageResponse() VirtualMachineScaleSetVMsClientListResponse` -- New function `GalleryImageVersionPublishingProfile.MarshalJSON() ([]byte, error)` -- New function `*DedicatedHostsClientUpdatePollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error` -- New function `*DiskRestorePointClientRevokeAccessPollerResponse.Resume(context.Context, *DiskRestorePointClient, string) error` -- New function `*ProximityPlacementGroupsClientListByResourceGroupPager.Err() error` -- New function `*GalleryImageVersionsClientListByGalleryImagePager.Err() error` -- New function `*DisksClientRevokeAccessPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientReapplyPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*VirtualMachineScaleSetExtensionsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetExtensionsClient, string) error` -- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMExtensionsClient, string) error` -- New function `*VirtualMachineRunCommandsClientUpdatePoller.Done() bool` -- New function `*DisksClientDeletePollerResponse.Resume(context.Context, *DisksClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Done() bool` -- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineRunCommandsClientCreateOrUpdateResponse, error)` -- New function `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientUpdateInstancesResponse, error)` -- New function `*RestorePointCollectionsClientListPager.NextPage(context.Context) bool` -- New function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*VirtualMachinesClientCreateOrUpdatePoller.Done() bool` -- New function `DisksClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientCreateOrUpdateResponse, error)` -- New function `*DiskEncryptionSetsClientUpdatePoller.Done() bool` -- New function `*DiskEncryptionSetsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientStartPoller.FinalResponse(context.Context) (VirtualMachinesClientStartResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Poll(context.Context) (*http.Response, error)` -- New function `*RestorePointCollectionsClientListAllPager.PageResponse() RestorePointCollectionsClientListAllResponse` -- New function `*VirtualMachinesClientStartPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*SnapshotsClientUpdatePoller.FinalResponse(context.Context) (SnapshotsClientUpdateResponse, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.Resume(context.Context, *VirtualMachineScaleSetRollingUpgradesClient, string) error` -- New function `DisksClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientUpdateResponse, error)` -- New function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetVMsClientListPager.NextPage(context.Context) bool` -- New function `*AvailabilitySetsClientListBySubscriptionPager.Err() error` -- New function `*DiskRestorePointClientRevokeAccessPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientCapturePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `GalleryApplicationVersionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationVersionsClientUpdateResponse, error)` -- New function `*VirtualMachineExtensionsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineExtensionsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetsClientListPager.Err() error` -- New function `CloudServicesClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientStartResponse, error)` -- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServiceRoleInstancesClientReimagePoller.Done() bool` -- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Done() bool` -- New function `*ImagesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Done() bool` -- New function `*CloudServicesClientDeleteInstancesPoller.ResumeToken() (string, error)` -- New function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.PageResponse() GalleryApplicationVersionsClientListByGalleryApplicationResponse` -- New function `*DisksClientUpdatePoller.ResumeToken() (string, error)` -- New function `*CloudServicesClientDeleteInstancesPoller.Done() bool` -- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientListPager.PageResponse() CloudServicesClientListResponse` -- New function `*VirtualMachineRunCommandsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineRunCommandsClient, string) error` -- New function `*CapacityReservationGroupsClientListByResourceGroupPager.PageResponse() CapacityReservationGroupsClientListByResourceGroupResponse` -- New function `*VirtualMachinesClientReimagePoller.FinalResponse(context.Context) (VirtualMachinesClientReimageResponse, error)` -- New function `*VirtualMachinesClientRestartPoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleriesClientDeletePoller.FinalResponse(context.Context) (GalleriesClientDeleteResponse, error)` -- New function `*CapacityReservationsClientCreateOrUpdatePollerResponse.Resume(context.Context, *CapacityReservationsClient, string) error` -- New function `*DiskRestorePointClientListByRestorePointPager.NextPage(context.Context) bool` -- New function `GalleryImagesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImagesClientDeleteResponse, error)` -- New function `*GalleriesClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleriesClient, string) error` -- New function `*SharedGalleryImagesClientListPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMExtensionsClient, string) error` -- New function `*ProximityPlacementGroupsClientListBySubscriptionPager.Err() error` -- New function `*GalleryImageVersionsClientUpdatePollerResponse.Resume(context.Context, *GalleryImageVersionsClient, string) error` -- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.ResumeToken() (string, error)` -- New function `*DisksClientListPager.Err() error` -- New function `*DisksClientListByResourceGroupPager.Err() error` -- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Done() bool` -- New function `*CloudServicesClientRestartPoller.Done() bool` -- New function `*GalleriesClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `VirtualMachineScaleSetVMsClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientPowerOffResponse, error)` -- New function `*VirtualMachinesClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*ImagesClientDeletePollerResponse.Resume(context.Context, *ImagesClient, string) error` -- New function `*DiskAccessesClientCreateOrUpdatePoller.FinalResponse(context.Context) (DiskAccessesClientCreateOrUpdateResponse, error)` -- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.FinalResponse(context.Context) (DiskAccessesClientDeleteAPrivateEndpointConnectionResponse, error)` -- New function `*VirtualMachinesClientListAllPager.PageResponse() VirtualMachinesClientListAllResponse` -- New function `*DiskRestorePointClientGrantAccessPoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DisksClientGrantAccessPoller.Done() bool` -- New function `*GalleryImageVersionsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.Resume(context.Context, *VirtualMachineScaleSetRollingUpgradesClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.ResumeToken() (string, error)` -- New function `*SnapshotsClientRevokeAccessPoller.FinalResponse(context.Context) (SnapshotsClientRevokeAccessResponse, error)` -- New function `*VirtualMachinesClientRunCommandPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*CapacityReservationsClientListByCapacityReservationGroupPager.NextPage(context.Context) bool` -- New function `*GalleryApplicationVersionsClientDeletePollerResponse.Resume(context.Context, *GalleryApplicationVersionsClient, string) error` -- New function `*LogAnalyticsClientExportThrottledRequestsPoller.ResumeToken() (string, error)` -- New function `*CloudServiceRoleInstancesClientListPager.Err() error` -- New function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.PageResponse() CloudServicesUpdateDomainClientListUpdateDomainsResponse` -- New function `*CloudServiceRoleInstancesClientRestartPoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientRestartResponse, error)` -- New function `*RestorePointsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientUpdatePoller.Done() bool` -- New function `GalleriesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleriesClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientListAllPager.PageResponse() CloudServicesClientListAllResponse` -- New function `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMRunCommandsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetsClientStartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*VirtualMachineScaleSetsClientDeallocatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientRedeployPoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientReimageAllPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineExtensionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineRunCommandsClientDeletePoller.Done() bool` -- New function `*ImagesClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*CloudServicesClientDeleteInstancesPoller.FinalResponse(context.Context) (CloudServicesClientDeleteInstancesResponse, error)` -- New function `GalleryImageVersionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImageVersionsClientDeleteResponse, error)` -- New function `*GalleryApplicationVersionsClientUpdatePoller.Done() bool` -- New function `*SSHPublicKeysClientListByResourceGroupPager.Err() error` -- New function `*SharedGalleryImageVersionsClientListPager.PageResponse() SharedGalleryImageVersionsClientListResponse` -- New function `*DiskAccessesClientUpdatePoller.ResumeToken() (string, error)` -- New function `*CloudServiceOperatingSystemsClientListOSVersionsPager.PageResponse() CloudServiceOperatingSystemsClientListOSVersionsResponse` -- New function `*VirtualMachinesClientPerformMaintenancePoller.ResumeToken() (string, error)` -- New function `*ImagesClientCreateOrUpdatePoller.Done() bool` -- New function `*ImagesClientListPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientUpdateResponse, error)` -- New function `*CloudServicesClientRestartPollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*DisksClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientPowerOffPoller.FinalResponse(context.Context) (VirtualMachinesClientPowerOffResponse, error)` -- New function `*VirtualMachinesClientDeletePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMRunCommandsClient, string) error` -- New function `*ProximityPlacementGroupsClientListBySubscriptionPager.PageResponse() ProximityPlacementGroupsClientListBySubscriptionResponse` -- New function `*DiskEncryptionSetsClientListByResourceGroupPager.Err() error` -- New function `*VirtualMachinesClientPerformMaintenancePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServiceRoleInstancesClientReimagePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskRestorePointClientListByRestorePointPager.Err() error` -- New function `*GalleryImageVersionsClientDeletePoller.Done() bool` -- New function `*VirtualMachinesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientDeleteInstancesPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientRestartPoller.Done() bool` -- New function `*DisksClientUpdatePoller.FinalResponse(context.Context) (DisksClientUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse, error)` -- New function `*CloudServiceRoleInstancesClientRebuildPollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error` -- New function `DedicatedHostsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientDeleteResponse, error)` -- New function `*GalleryImageVersionsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*GalleryApplicationVersionsClientUpdatePollerResponse.Resume(context.Context, *GalleryApplicationVersionsClient, string) error` -- New function `*DiskAccessesClientCreateOrUpdatePollerResponse.Resume(context.Context, *DiskAccessesClient, string) error` -- New function `*VirtualMachineRunCommandsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*SharedGalleriesClientListPager.NextPage(context.Context) bool` -- New function `*GalleryImagesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*SharedGalleriesClientListPager.PageResponse() SharedGalleriesClientListResponse` -- New function `*GalleryApplicationsClientListByGalleryPager.PageResponse() GalleryApplicationsClientListByGalleryResponse` -- New function `VirtualMachineScaleSetsClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientStartResponse, error)` -- New function `*CapacityReservationsClientCreateOrUpdatePoller.FinalResponse(context.Context) (CapacityReservationsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientPerformMaintenanceResponse, error)` -- New function `*GalleriesClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*GalleriesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DedicatedHostsClientCreateOrUpdatePoller.FinalResponse(context.Context) (DedicatedHostsClientCreateOrUpdateResponse, error)` -- New function `*CloudServiceRolesClientListPager.PageResponse() CloudServiceRolesClientListResponse` -- New function `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineRunCommandsClientCreateOrUpdateResponse, error)` -- New function `LogAnalyticsClientExportThrottledRequestsPollerResponse.PollUntilDone(context.Context, time.Duration) (LogAnalyticsClientExportThrottledRequestsResponse, error)` -- New function `*VirtualMachinesClientListPager.PageResponse() VirtualMachinesClientListResponse` -- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Done() bool` -- New function `*CapacityReservationsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientReimagePoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryApplicationVersionsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleriesClientListByResourceGroupPager.Err() error` -- New function `RestorePointsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (RestorePointsClientDeleteResponse, error)` -- New function `*VirtualMachinesClientListByLocationPager.PageResponse() VirtualMachinesClientListByLocationResponse` -- New function `*SharedGalleriesClientListPager.Err() error` -- New function `*VirtualMachinesClientPowerOffPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse, error)` -- New function `*VirtualMachinesClientAssessPatchesPoller.FinalResponse(context.Context) (VirtualMachinesClientAssessPatchesResponse, error)` -- New function `*SnapshotsClientGrantAccessPoller.Done() bool` -- New function `*SSHPublicKeysClientListBySubscriptionPager.PageResponse() SSHPublicKeysClientListBySubscriptionResponse` -- New function `DiskAccessesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMRunCommandsClientDeleteResponse, error)` -- New function `VirtualMachineScaleSetVMsClientDeallocatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientDeallocateResponse, error)` -- New function `*SnapshotsClientCreateOrUpdatePoller.FinalResponse(context.Context) (SnapshotsClientCreateOrUpdateResponse, error)` -- New function `*DiskAccessesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientReapplyPoller.ResumeToken() (string, error)` -- New function `*DisksClientRevokeAccessPoller.Done() bool` -- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientUpdatePoller.ResumeToken() (string, error)` -- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Poll(context.Context) (*http.Response, error)` -- New function `*SnapshotsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*GalleryApplicationsClientDeletePollerResponse.Resume(context.Context, *GalleryApplicationsClient, string) error` -- New function `*VirtualMachinesClientConvertToManagedDisksPoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientRebuildPoller.ResumeToken() (string, error)` -- New function `*SnapshotsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachineRunCommandsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineRunCommandsClientUpdateResponse, error)` -- New function `*DiskAccessesClientListPager.Err() error` -- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.PageResponse() VirtualMachineRunCommandsClientListByVirtualMachineResponse` -- New function `*VirtualMachinesClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMRunCommandsClientUpdateResponse, error)` -- New function `DedicatedHostsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.Done() bool` -- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.Done() bool` -- New function `*DisksClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.ResumeToken() (string, error)` -- New function `CloudServicesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetsClientStartPoller.Poll(context.Context) (*http.Response, error)` -- New function `CloudServiceRoleInstancesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Done() bool` -- New function `*ImagesClientUpdatePoller.Done() bool` -- New function `*VirtualMachinesClientListPager.Err() error` -- New function `*GalleryApplicationsClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryApplicationsClient, string) error` -- New function `*CloudServicesClientRebuildPollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*DisksClientGrantAccessPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineRunCommandsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineRunCommandsClientDeleteResponse, error)` -- New function `*SnapshotsClientGrantAccessPoller.ResumeToken() (string, error)` -- New function `*CapacityReservationsClientListByCapacityReservationGroupPager.Err() error` -- New function `*VirtualMachineScaleSetVMsClientRestartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientRestartResponse, error)` -- New function `*CloudServiceRoleInstancesClientRestartPollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error` -- New function `*VirtualMachineScaleSetsClientRestartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientRestartResponse, error)` -- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskAccessesClientCreateOrUpdatePoller.Done() bool` -- New function `*GalleryImagesClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskAccessesClientDeletePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Done() bool` -- New function `CloudServiceRoleInstancesClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientRestartResponse, error)` -- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.ResumeToken() (string, error)` -- New function `SnapshotsClientGrantAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientGrantAccessResponse, error)` -- New function `*VirtualMachineScaleSetsClientStartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientStartResponse, error)` -- New function `*ImagesClientDeletePoller.Done() bool` -- New function `*GalleryApplicationsClientDeletePoller.FinalResponse(context.Context) (GalleryApplicationsClientDeleteResponse, error)` -- New function `*VirtualMachinesClientPerformMaintenancePoller.Done() bool` -- New function `*CapacityReservationGroupsClientListBySubscriptionPager.PageResponse() CapacityReservationGroupsClientListBySubscriptionResponse` -- New function `*RestorePointCollectionsClientListAllPager.Err() error` -- New function `*VirtualMachineExtensionsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineExtensionsClient, string) error` -- New function `*VirtualMachinesClientRunCommandPoller.Poll(context.Context) (*http.Response, error)` -- New function `*CapacityReservationsClientDeletePoller.Done() bool` -- New function `*DedicatedHostGroupsClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*GalleryImagesClientUpdatePoller.FinalResponse(context.Context) (GalleryImagesClientUpdateResponse, error)` -- New function `*CloudServicesClientListPager.NextPage(context.Context) bool` -- New function `*DiskAccessesClientDeletePoller.ResumeToken() (string, error)` -- New function `*RestorePointsClientCreatePoller.Done() bool` -- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*ProximityPlacementGroupsClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.FinalResponse(context.Context) (CloudServicesUpdateDomainClientWalkUpdateDomainResponse, error)` -- New function `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientPerformMaintenanceResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientRestartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*DedicatedHostsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*DiskEncryptionSetsClientDeletePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMsClientReimagePoller.Done() bool` -- New function `VirtualMachineScaleSetsClientRedeployPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientRedeployResponse, error)` -- New function `DiskAccessesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientUpdateResponse, error)` -- New function `*DiskAccessesClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskRestorePointClientRevokeAccessPoller.FinalResponse(context.Context) (DiskRestorePointClientRevokeAccessResponse, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryImagesClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*SSHPublicKeysClientListBySubscriptionPager.Err() error` -- New function `GalleryApplicationsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationsClientCreateOrUpdateResponse, error)` -- New function `*ImagesClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientRestartPoller.ResumeToken() (string, error)` -- New function `*DisksClientRevokeAccessPollerResponse.Resume(context.Context, *DisksClient, string) error` -- New function `*VirtualMachinesClientDeletePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `VirtualMachineScaleSetsClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientPowerOffResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientReimageAllPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientPowerOffPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*RestorePointCollectionsClientListPager.Err() error` -- New function `*SnapshotsClientDeletePoller.FinalResponse(context.Context) (SnapshotsClientDeleteResponse, error)` -- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientReimagePoller.Done() bool` -- New function `GalleryApplicationVersionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationVersionsClientDeleteResponse, error)` -- New function `*GalleryImagesClientDeletePoller.ResumeToken() (string, error)` -- New function `*GalleryImageVersionsClientListByGalleryImagePager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetsClientRedeployPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientRedeployResponse, error)` -- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.ResumeToken() (string, error)` -- New function `*GalleryImageVersionsClientDeletePoller.FinalResponse(context.Context) (GalleryImageVersionsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetExtensionsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientStartPoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryImagesClientListByGalleryPager.PageResponse() GalleryImagesClientListByGalleryResponse` -- New function `*VirtualMachinesClientStartPoller.Done() bool` -- New function `VirtualMachinesClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientRestartResponse, error)` -- New function `*SnapshotsClientGrantAccessPoller.FinalResponse(context.Context) (SnapshotsClientGrantAccessResponse, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientListPager.Err() error` -- New function `*VirtualMachinesClientInstallPatchesPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientRedeployPoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientDeletePoller.FinalResponse(context.Context) (CloudServicesClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientRebuildPoller.Done() bool` -- New function `*GalleryApplicationsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*CloudServicesClientRebuildPoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientStartPoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskAccessesClientDeletePollerResponse.Resume(context.Context, *DiskAccessesClient, string) error` -- New function `*GallerySharingProfileClientUpdatePoller.FinalResponse(context.Context) (GallerySharingProfileClientUpdateResponse, error)` -- New function `*GalleryImagesClientListByGalleryPager.Err() error` -- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMExtensionsClientDeleteResponse, error)` -- New function `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientDeleteAPrivateEndpointConnectionResponse, error)` -- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientRunCommandResponse, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMRunCommandsClient, string) error` -- New function `*VirtualMachineScaleSetsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientDeleteResponse, error)` -- New function `*GalleryImageVersionPublishingProfile.UnmarshalJSON([]byte) error` -- New function `*VirtualMachinesClientDeallocatePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*GalleryImageVersionsClientDeletePollerResponse.Resume(context.Context, *GalleryImageVersionsClient, string) error` -- New function `*DedicatedHostsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*CloudServicesClientReimagePollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*GalleryImagesClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Poll(context.Context) (*http.Response, error)` -- New function `*SnapshotsClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*VirtualMachinesClientConvertToManagedDisksPoller.FinalResponse(context.Context) (VirtualMachinesClientConvertToManagedDisksResponse, error)` -- New function `*VirtualMachinesClientReapplyPoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskEncryptionSetsClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*DiskRestorePointClientGrantAccessPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientReimagePoller.ResumeToken() (string, error)` -- New function `*DiskEncryptionSetsClientUpdatePoller.FinalResponse(context.Context) (DiskEncryptionSetsClientUpdateResponse, error)` -- New function `*VirtualMachineRunCommandsClientListPager.PageResponse() VirtualMachineRunCommandsClientListResponse` -- New function `*SSHPublicKeysClientListByResourceGroupPager.PageResponse() SSHPublicKeysClientListByResourceGroupResponse` -- New function `*GalleryApplicationVersionsClientDeletePoller.ResumeToken() (string, error)` -- New function `*DedicatedHostsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientCreateOrUpdateResponse, error)` -- New function `DiskAccessesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientDeleteResponse, error)` -- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineExtensionsClientCreateOrUpdateResponse, error)` -- New function `SnapshotsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientDeleteResponse, error)` -- New function `*ImagesClientCreateOrUpdatePoller.FinalResponse(context.Context) (ImagesClientCreateOrUpdateResponse, error)` -- New function `*LogAnalyticsClientExportThrottledRequestsPollerResponse.Resume(context.Context, *LogAnalyticsClient, string) error` -- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*LogAnalyticsClientExportThrottledRequestsPoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientDeleteInstancesPollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*CapacityReservationGroupsClientListBySubscriptionPager.Err() error` -- New function `*GalleryApplicationVersionsClientDeletePoller.FinalResponse(context.Context) (GalleryApplicationVersionsClientDeleteResponse, error)` -- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.ResumeToken() (string, error)` -- New function `VirtualMachineExtensionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineExtensionsClientUpdateResponse, error)` -- New function `*VirtualMachinesClientInstallPatchesPoller.ResumeToken() (string, error)` -- New function `*CapacityReservationsClientUpdatePollerResponse.Resume(context.Context, *CapacityReservationsClient, string) error` -- New function `*GalleriesClientDeletePollerResponse.Resume(context.Context, *GalleriesClient, string) error` -- New function `*GalleryImageVersionsClientUpdatePoller.Done() bool` -- New function `*CloudServicesClientRestartPoller.Poll(context.Context) (*http.Response, error)` -- New function `*ImagesClientListByResourceGroupPager.PageResponse() ImagesClientListByResourceGroupResponse` -- New function `*VirtualMachineScaleSetsClientPowerOffPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*CloudServicesClientRebuildPoller.FinalResponse(context.Context) (CloudServicesClientRebuildResponse, error)` -- New function `*VirtualMachinesClientDeallocatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMsClientDeletePoller.Done() bool` -- New function `*GalleryImageVersionsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineExtensionsClientDeletePoller.Done() bool` -- New function `*CloudServicesClientListAllPager.NextPage(context.Context) bool` -- New function `*SnapshotsClientListPager.NextPage(context.Context) bool` -- New function `RestorePointsClientCreatePollerResponse.PollUntilDone(context.Context, time.Duration) (RestorePointsClientCreateResponse, error)` -- New function `*DiskAccessesClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*DedicatedHostGroupsClientListBySubscriptionPager.Err() error` -- New function `*DiskEncryptionSetsClientListAssociatedResourcesPager.Err() error` -- New function `*GalleryApplicationsClientUpdatePollerResponse.Resume(context.Context, *GalleryApplicationsClient, string) error` -- New function `*DedicatedHostsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*AvailabilitySetsClientListPager.NextPage(context.Context) bool` -- New function `*VirtualMachinesClientPowerOffPoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServiceRoleInstancesClientRestartPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientListSKUsPager.Err() error` -- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Done() bool` -- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Done() bool` -- New function `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse, error)` -- New function `CapacityReservationsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CapacityReservationsClientUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMExtensionsClient, string) error` -- New function `*DiskAccessesClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientPowerOffPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientAssessPatchesPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*GalleryImagesClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryImagesClient, string) error` -- New function `ImagesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (ImagesClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Done() bool` -- New function `*CapacityReservationsClientDeletePollerResponse.Resume(context.Context, *CapacityReservationsClient, string) error` -- New function `*VirtualMachineScaleSetsClientPowerOffPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.ResumeToken() (string, error)` -- New function `*RestorePointCollectionsClientListPager.PageResponse() RestorePointCollectionsClientListResponse` -- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Done() bool` -- New function `*SSHPublicKeysClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*SnapshotsClientRevokeAccessPoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryApplicationVersionsClient, string) error` -- New function `*GalleryImageVersionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientRedeployPoller.ResumeToken() (string, error)` -- New function `LogAnalyticsClientExportRequestRateByIntervalPollerResponse.PollUntilDone(context.Context, time.Duration) (LogAnalyticsClientExportRequestRateByIntervalResponse, error)` -- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachinesClientRunCommandPoller.ResumeToken() (string, error)` -- New function `*SnapshotsClientCreateOrUpdatePollerResponse.Resume(context.Context, *SnapshotsClient, string) error` -- New function `CapacityReservationsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CapacityReservationsClientCreateOrUpdateResponse, error)` -- New function `*DisksClientRevokeAccessPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientReimageAllResponse, error)` -- New function `*GalleryApplicationsClientListByGalleryPager.Err() error` -- New function `*VirtualMachinesClientConvertToManagedDisksPoller.ResumeToken() (string, error)` -- New function `DisksClientGrantAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientGrantAccessResponse, error)` -- New function `*LogAnalyticsClientExportThrottledRequestsPoller.Done() bool` -- New function `*DedicatedHostsClientListByHostGroupPager.NextPage(context.Context) bool` -- New function `*DedicatedHostsClientCreateOrUpdatePollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error` -- New function `*VirtualMachineScaleSetVMRunCommandsClientListPager.NextPage(context.Context) bool` -- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Done() bool` -- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Done() bool` -- New function `*CloudServicesClientStartPoller.Done() bool` -- New function `*GalleriesClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleriesClientCreateOrUpdateResponse, error)` -- New function `*CloudServiceRoleInstancesClientReimagePoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientReimageResponse, error)` -- New function `*CloudServiceRoleInstancesClientRebuildPoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.NextPage(context.Context) bool` -- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Done() bool` -- New function `*SnapshotsClientDeletePoller.Done() bool` -- New function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.Err() error` -- New function `*VirtualMachineRunCommandsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineRunCommandsClient, string) error` -- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Done() bool` -- New function `VirtualMachineScaleSetsClientDeallocatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientDeallocateResponse, error)` -- New function `*DiskEncryptionSetsClientDeletePoller.FinalResponse(context.Context) (DiskEncryptionSetsClientDeleteResponse, error)` -- New function `*SnapshotsClientRevokeAccessPoller.ResumeToken() (string, error)` -- New function `CloudServicesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryApplicationVersionsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetsClientReimageAllPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientReimageAllResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Done() bool` -- New function `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMExtensionsClientUpdateResponse, error)` -- New function `*DedicatedHostsClientUpdatePoller.FinalResponse(context.Context) (DedicatedHostsClientUpdateResponse, error)` -- New function `*VirtualMachineScaleSetsClientListByLocationPager.NextPage(context.Context) bool` -- New function `*ImagesClientListPager.PageResponse() ImagesClientListResponse` -- New function `*DedicatedHostsClientListByHostGroupPager.Err() error` -- New function `*VirtualMachinesClientDeallocatePoller.ResumeToken() (string, error)` -- New function `*CloudServicesClientUpdatePollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*RestorePointCollectionsClientDeletePoller.Done() bool` -- New function `*DisksClientGrantAccessPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientStartPoller.ResumeToken() (string, error)` -- New function `*ImagesClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `SnapshotsClientRevokeAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientRevokeAccessResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.FinalResponse(context.Context) (DiskAccessesClientUpdateAPrivateEndpointConnectionResponse, error)` -- New function `*VirtualMachinesClientReimagePoller.Poll(context.Context) (*http.Response, error)` -- New function `VirtualMachineScaleSetVMsClientRedeployPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientRedeployResponse, error)` -- New function `RestorePointCollectionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (RestorePointCollectionsClientDeleteResponse, error)` -- New function `VirtualMachineScaleSetExtensionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetExtensionsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetsClientReimageAllPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientRestartPoller.Poll(context.Context) (*http.Response, error)` -- New function `DisksClientRevokeAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientRevokeAccessResponse, error)` -- New function `*VirtualMachineScaleSetsClientDeallocatePoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*DisksClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*SnapshotsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.Err() error` -- New function `*CapacityReservationGroupsClientListBySubscriptionPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetsClientReimagePoller.ResumeToken() (string, error)` -- New function `*CloudServicesClientCreateOrUpdatePoller.Done() bool` -- New function `*AvailabilitySetsClientListBySubscriptionPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.Done() bool` -- New function `ProximityPlacementGroupUpdate.MarshalJSON() ([]byte, error)` -- New function `*SnapshotsClientGrantAccessPoller.Poll(context.Context) (*http.Response, error)` -- New function `*GallerySharingProfileClientUpdatePoller.Done() bool` -- New function `*VirtualMachinesClientReapplyPoller.Done() bool` -- New function `VirtualMachineScaleSetVMsClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientRestartResponse, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMsClientReimagePoller.ResumeToken() (string, error)` -- New function `VirtualMachineScaleSetVMsClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientReimageResponse, error)` -- New function `*CloudServicesClientRestartPoller.FinalResponse(context.Context) (CloudServicesClientRestartResponse, error)` -- New function `*CloudServicesClientDeletePollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientDeallocatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*DiskEncryptionSetsClientListAssociatedResourcesPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetVMsClientRestartPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientDeallocatePoller.Done() bool` -- New function `*GalleryApplicationsClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMExtensionsClientUpdateResponse, error)` -- New function `*SnapshotsClientListByResourceGroupPager.PageResponse() SnapshotsClientListByResourceGroupResponse` -- New function `*SnapshotsClientListPager.Err() error` -- New function `*VirtualMachineScaleSetVMsClientRestartPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineRunCommandsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*DiskAccessesClientUpdatePoller.FinalResponse(context.Context) (DiskAccessesClientUpdateResponse, error)` -- New function `*CloudServiceRoleInstancesClientListPager.PageResponse() CloudServiceRoleInstancesClientListResponse` -- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Done() bool` -- New function `*SnapshotsClientUpdatePoller.Done() bool` -- New function `*GalleryApplicationsClientUpdatePoller.FinalResponse(context.Context) (GalleryApplicationsClientUpdateResponse, error)` -- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.FinalResponse(context.Context) (DiskEncryptionSetsClientCreateOrUpdateResponse, error)` -- New function `*SnapshotsClientListByResourceGroupPager.Err() error` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Done() bool` -- New function `*CloudServicesClientDeletePoller.ResumeToken() (string, error)` -- New function `*GallerySharingProfileClientUpdatePoller.ResumeToken() (string, error)` -- New function `*DedicatedHostGroupsClientListBySubscriptionPager.NextPage(context.Context) bool` -- New function `*CloudServicesClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientPerformMaintenancePoller.FinalResponse(context.Context) (VirtualMachinesClientPerformMaintenanceResponse, error)` -- New function `*ProximityPlacementGroupsClientListByResourceGroupPager.PageResponse() ProximityPlacementGroupsClientListByResourceGroupResponse` -- New function `*GalleriesClientUpdatePollerResponse.Resume(context.Context, *GalleriesClient, string) error` -- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `VirtualMachineScaleSetsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientUpdateResponse, error)` -- New function `*DisksClientUpdatePollerResponse.Resume(context.Context, *DisksClient, string) error` -- New function `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientDeleteInstancesResponse, error)` -- New function `VirtualMachineScaleSetsClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientReimageResponse, error)` -- New function `*ImagesClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientRedeployPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientStartPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Done() bool` -- New function `*SnapshotsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientRestartPoller.ResumeToken() (string, error)` -- New function `*DiskAccessesClientListPager.NextPage(context.Context) bool` -- New function `*GalleriesClientListPager.Err() error` -- New function `*CapacityReservationsClientDeletePoller.FinalResponse(context.Context) (CapacityReservationsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.ResumeToken() (string, error)` -- New function `*GalleryImageVersionsClientListByGalleryImagePager.PageResponse() GalleryImageVersionsClientListByGalleryImageResponse` -- New function `*VirtualMachinesClientRedeployPoller.Done() bool` -- New function `VirtualMachinesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientDeleteResponse, error)` -- New function `DiskRestorePointClientRevokeAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskRestorePointClientRevokeAccessResponse, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientCreateOrUpdatePoller.FinalResponse(context.Context) (CloudServicesClientCreateOrUpdateResponse, error)` -- New function `*DiskAccessesClientListPrivateEndpointConnectionsPager.PageResponse() DiskAccessesClientListPrivateEndpointConnectionsResponse` -- New function `*CapacityReservationsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*ImagesClientDeletePoller.FinalResponse(context.Context) (ImagesClientDeleteResponse, error)` -- New function `*CapacityReservationGroupsClientListByResourceGroupPager.Err() error` -- New function `*CloudServiceOperatingSystemsClientListOSVersionsPager.Err() error` -- New function `*GalleryApplicationsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesClientReimagePoller.Done() bool` -- New function `*VirtualMachinesClientRestartPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `ImagesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (ImagesClientUpdateResponse, error)` -- New function `ThrottledRequestsInput.MarshalJSON() ([]byte, error)` -- New function `*VirtualMachinesClientConvertToManagedDisksPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*SharedGalleryImagesClientListPager.PageResponse() SharedGalleryImagesClientListResponse` -- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.FinalResponse(context.Context) (VirtualMachineScaleSetRollingUpgradesClientCancelResponse, error)` -- New function `*VirtualMachineScaleSetsClientPowerOffPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientPowerOffResponse, error)` -- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientRedeployPoller.ResumeToken() (string, error)` -- New function `*DiskEncryptionSetsClientCreateOrUpdatePollerResponse.Resume(context.Context, *DiskEncryptionSetsClient, string) error` -- New function `*GalleryImageVersionsClientUpdatePoller.FinalResponse(context.Context) (GalleryImageVersionsClientUpdateResponse, error)` -- New function `*RestorePointCollectionsClientDeletePoller.FinalResponse(context.Context) (RestorePointCollectionsClientDeleteResponse, error)` -- New function `GalleryApplicationsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationsClientUpdateResponse, error)` -- New function `*CapacityReservationsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientReimagePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientReimageResponse, error)` -- New function `*CloudServicesClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskRestorePointClientListByRestorePointPager.PageResponse() DiskRestorePointClientListByRestorePointResponse` -- New function `*VirtualMachinesClientInstallPatchesPoller.Done() bool` -- New function `*VirtualMachinesClientRedeployPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*CloudServiceRoleInstancesClientRestartPoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*SharedGalleryImageVersionsClientListPager.NextPage(context.Context) bool` -- New function `*CloudServiceRoleInstancesClientRebuildPoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientRebuildResponse, error)` -- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryImageVersionsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.ResumeToken() (string, error)` -- New function `*ImagesClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientListAllPager.NextPage(context.Context) bool` -- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientListPager.NextPage(context.Context) bool` -- New function `*GalleryImagesClientUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientStartPoller.ResumeToken() (string, error)` -- New function `*CloudServiceRoleInstancesClientRestartPoller.ResumeToken() (string, error)` -- New function `VirtualMachinesClientAssessPatchesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientAssessPatchesResponse, error)` -- New function `*RestorePointsClientCreatePollerResponse.Resume(context.Context, *RestorePointsClient, string) error` -- New function `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesUpdateDomainClientWalkUpdateDomainResponse, error)` -- New function `*SnapshotsClientDeletePollerResponse.Resume(context.Context, *SnapshotsClient, string) error` -- New function `*CapacityReservationsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DedicatedHostsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientRunCommandPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*DisksClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*DisksClientCreateOrUpdatePoller.FinalResponse(context.Context) (DisksClientCreateOrUpdateResponse, error)` -- New function `*CloudServiceRoleInstancesClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineRunCommandsClient, string) error` -- New function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.PageResponse() CloudServiceOperatingSystemsClientListOSFamiliesResponse` -- New function `SnapshotsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientUpdateResponse, error)` -- New function `*CloudServicesClientCreateOrUpdatePollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `DiskEncryptionSetsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskEncryptionSetsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `GalleryImageVersionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImageVersionsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientRunCommandPoller.Done() bool` -- New function `*RestorePointsClientDeletePollerResponse.Resume(context.Context, *RestorePointsClient, string) error` -- New function `*DisksClientDeletePoller.Done() bool` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientDeallocatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientDeallocateResponse, error)` -- New function `*LogAnalyticsClientExportThrottledRequestsPoller.FinalResponse(context.Context) (LogAnalyticsClientExportThrottledRequestsResponse, error)` -- New function `*VirtualMachineExtensionsClientUpdatePoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientDeallocatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DisksClientUpdatePoller.Done() bool` -- New function `*CloudServiceRoleInstancesClientDeletePoller.Done() bool` -- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.FinalResponse(context.Context) (LogAnalyticsClientExportRequestRateByIntervalResponse, error)` -- New function `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientCreateOrUpdateResponse, error)` -- New function `*CloudServicesClientReimagePoller.Poll(context.Context) (*http.Response, error)` -- New function `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachinesClientRestartPoller.FinalResponse(context.Context) (VirtualMachinesClientRestartResponse, error)` -- New function `*VirtualMachinesClientStartPoller.Poll(context.Context) (*http.Response, error)` -- New function `*CloudServiceRoleInstancesClientRebuildPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientDeallocatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMRunCommandsClientUpdateResponse, error)` -- New function `*CloudServiceRolesClientListPager.Err() error` -- New function `*VirtualMachineScaleSetVMsClientRedeployPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*GalleryApplicationsClientDeletePoller.Done() bool` -- New function `*VirtualMachineRunCommandsClientListPager.Err() error` -- New function `*ImagesClientUpdatePoller.FinalResponse(context.Context) (ImagesClientUpdateResponse, error)` -- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Done() bool` -- New function `*GalleriesClientDeletePoller.ResumeToken() (string, error)` -- New function `*CloudServiceRolesClientListPager.NextPage(context.Context) bool` -- New function `*CloudServicesClientPowerOffPoller.Done() bool` -- New function `*GalleryImagesClientDeletePoller.Done() bool` -- New function `VirtualMachinesClientReapplyPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientReapplyResponse, error)` -- New function `*VirtualMachinesClientDeallocatePoller.FinalResponse(context.Context) (VirtualMachinesClientDeallocateResponse, error)` -- New function `*GalleryImagesClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachinesClientListAllPager.NextPage(context.Context) bool` -- New function `*GalleryApplicationsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DedicatedHostGroupsClientListByResourceGroupPager.PageResponse() DedicatedHostGroupsClientListByResourceGroupResponse` -- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `VirtualMachinesClientConvertToManagedDisksPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientConvertToManagedDisksResponse, error)` -- New function `*CloudServiceRoleInstancesClientReimagePoller.ResumeToken() (string, error)` -- New function `VirtualMachinesClientPerformMaintenancePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientPerformMaintenanceResponse, error)` -- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.ResumeToken() (string, error)` -- New function `*DiskAccessesClientListPrivateEndpointConnectionsPager.Err() error` -- New function `VirtualMachinesClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientReimageResponse, error)` -- New function `VirtualMachineScaleSetVMsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientDeleteResponse, error)` -- New function `CloudServiceRoleInstancesClientRebuildPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientRebuildResponse, error)` -- New function `*GalleryImagesClientUpdatePoller.Done() bool` -- New function `*VirtualMachineExtensionsClientUpdatePoller.ResumeToken() (string, error)` -- New function `DiskEncryptionSetsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskEncryptionSetsClientCreateOrUpdateResponse, error)` -- New function `*DisksClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `GallerySharingProfileClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GallerySharingProfileClientUpdateResponse, error)` -- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.Resume(context.Context, *DiskAccessesClient, string) error` -- New function `*VirtualMachinesClientCapturePoller.FinalResponse(context.Context) (VirtualMachinesClientCaptureResponse, error)` -- New function `*VirtualMachinesClientUpdatePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*CloudServiceRoleInstancesClientListPager.NextPage(context.Context) bool` -- New function `VirtualMachineScaleSetVMsClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientStartResponse, error)` -- New function `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientUpdateAPrivateEndpointConnectionResponse, error)` -- New function `*RestorePointsClientCreatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientListByLocationPager.Err() error` -- New function `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse, error)` -- New function `CloudServicesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientUpdateResponse, error)` -- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientRestartPoller.Done() bool` -- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Poll(context.Context) (*http.Response, error)` -- New function `*SnapshotsClientUpdatePollerResponse.Resume(context.Context, *SnapshotsClient, string) error` -- New function `*GalleriesClientListPager.PageResponse() GalleriesClientListResponse` -- New function `VirtualMachinesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientUpdateResponse, error)` -- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Poll(context.Context) (*http.Response, error)` -- New function `VirtualMachinesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientCreateOrUpdateResponse, error)` -- New function `*CloudServicesClientPowerOffPollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*RestorePointCollectionsClientListAllPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetsClientReimageAllPoller.Done() bool` -- New function `*VirtualMachineScaleSetVMsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*VirtualMachinesClientRedeployPoller.FinalResponse(context.Context) (VirtualMachinesClientRedeployResponse, error)` -- New function `CloudServiceRoleInstancesClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientReimageResponse, error)` -- New function `VirtualMachinesClientInstallPatchesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientInstallPatchesResponse, error)` -- New function `*GalleryImagesClientUpdatePollerResponse.Resume(context.Context, *GalleryImagesClient, string) error` -- New function `*CloudServicesClientListPager.Err() error` -- New function `*GalleryApplicationVersionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachinesClientReapplyPoller.FinalResponse(context.Context) (VirtualMachinesClientReapplyResponse, error)` -- New function `*GalleryApplicationVersionsClientDeletePoller.Done() bool` -- New function `*VirtualMachineScaleSetExtensionsClientListPager.PageResponse() VirtualMachineScaleSetExtensionsClientListResponse` -- New function `VirtualMachineRunCommandsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineRunCommandsClientUpdateResponse, error)` -- New function `*SSHPublicKeysClientListBySubscriptionPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetsClientReimagePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientReimageResponse, error)` -- New function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.Err() error` -- New function `GalleryImageVersionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImageVersionsClientUpdateResponse, error)` -- New function `*GalleriesClientListPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `CloudServicesClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientRestartResponse, error)` -- New function `*DiskEncryptionSetsClientListPager.NextPage(context.Context) bool` -- New function `*CapacityReservationsClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineExtensionsClient, string) error` -- New function `*CloudServicesClientUpdatePoller.FinalResponse(context.Context) (CloudServicesClientUpdateResponse, error)` -- New function `*CloudServicesClientPowerOffPoller.FinalResponse(context.Context) (CloudServicesClientPowerOffResponse, error)` -- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMRunCommandsClient, string) error` -- New function `*DisksClientListPager.NextPage(context.Context) bool` -- New function `*VirtualMachineExtensionsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineExtensionsClientUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientUpdateInstancesResponse, error)` -- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientReimagePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*SnapshotsClientRevokeAccessPollerResponse.Resume(context.Context, *SnapshotsClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientListPager.Err() error` -- New function `*VirtualMachineScaleSetsClientListAllPager.Err() error` -- New function `*CloudServicesClientRestartPoller.ResumeToken() (string, error)` -- New function `*DisksClientListPager.PageResponse() DisksClientListResponse` -- New function `*DisksClientRevokeAccessPoller.FinalResponse(context.Context) (DisksClientRevokeAccessResponse, error)` -- New function `*VirtualMachineScaleSetsClientListByLocationPager.PageResponse() VirtualMachineScaleSetsClientListByLocationResponse` -- New function `*VirtualMachinesClientConvertToManagedDisksPoller.Done() bool` -- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.ResumeToken() (string, error)` -- New function `GalleriesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleriesClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetsClientPowerOffPoller.Done() bool` -- New function `*GalleriesClientDeletePoller.Done() bool` -- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientDeallocateResponse, error)` -- New function `*VirtualMachineScaleSetsClientRedeployPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientUpdateResponse, error)` -- New function `*GalleryImagesClientDeletePollerResponse.Resume(context.Context, *GalleryImagesClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientListPager.PageResponse() VirtualMachineScaleSetsClientListResponse` -- New function `*VirtualMachinesClientListAllPager.Err() error` -- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Done() bool` -- New function `GalleryImagesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImagesClientUpdateResponse, error)` -- New function `*VirtualMachinesClientInstallPatchesPoller.FinalResponse(context.Context) (VirtualMachinesClientInstallPatchesResponse, error)` -- New function `*VirtualMachineScaleSetsClientReimageAllPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DisksClientGrantAccessPoller.FinalResponse(context.Context) (DisksClientGrantAccessResponse, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.ResumeToken() (string, error)` -- New function `*SnapshotsClientGrantAccessPollerResponse.Resume(context.Context, *SnapshotsClient, string) error` -- New function `*DiskEncryptionSetsClientListByResourceGroupPager.PageResponse() DiskEncryptionSetsClientListByResourceGroupResponse` -- New function `*CloudServicesClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*DiskEncryptionSetsClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientRestartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error` -- New function `*DiskAccessesClientListPager.PageResponse() DiskAccessesClientListResponse` -- New function `*RestorePointsClientDeletePoller.Done() bool` -- New function `*DiskAccessesClientUpdatePollerResponse.Resume(context.Context, *DiskAccessesClient, string) error` -- New function `*RestorePointsClientDeletePoller.FinalResponse(context.Context) (RestorePointsClientDeleteResponse, error)` -- New function `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationVersionsClientCreateOrUpdateResponse, error)` -- New function `VirtualMachineScaleSetsClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientRestartResponse, error)` -- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetExtensionsClientUpdateResponse, error)` -- New function `*DiskAccessesClientDeletePoller.FinalResponse(context.Context) (DiskAccessesClientDeleteResponse, error)` -- New function `*VirtualMachinesClientAssessPatchesPoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientAssessPatchesPoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.Err() error` -- New function `GalleriesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleriesClientUpdateResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientRestartPoller.Done() bool` -- New function `*DisksClientDeletePoller.ResumeToken() (string, error)` -- New function `*GalleriesClientCreateOrUpdatePoller.Done() bool` -- New function `*DiskEncryptionSetsClientListPager.Err() error` -- New function `*ImagesClientListPager.Err() error` -- New function `*VirtualMachineScaleSetExtensionsClientListPager.NextPage(context.Context) bool` -- New function `*CloudServicesClientStartPollerResponse.Resume(context.Context, *CloudServicesClient, string) error` -- New function `*CloudServiceOperatingSystemsClientListOSVersionsPager.NextPage(context.Context) bool` -- New function `*VirtualMachineScaleSetsClientListAllPager.PageResponse() VirtualMachineScaleSetsClientListAllResponse` -- New function `*DedicatedHostsClientDeletePollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error` -- New function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.NextPage(context.Context) bool` -- New function `*ImagesClientUpdatePoller.ResumeToken() (string, error)` -- New function `*DiskAccessesClientListByResourceGroupPager.PageResponse() DiskAccessesClientListByResourceGroupResponse` -- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Done() bool` -- New function `*ResourceSKUsClientListPager.PageResponse() ResourceSKUsClientListResponse` -- New function `*LogAnalyticsClientExportRequestRateByIntervalPollerResponse.Resume(context.Context, *LogAnalyticsClient, string) error` -- New function `VirtualMachineScaleSetsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientDeleteResponse, error)` -- New function `*DiskRestorePointClientGrantAccessPoller.Done() bool` -- New function `*VirtualMachinesClientInstallPatchesPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error` -- New function `*AvailabilitySetsClientListBySubscriptionPager.PageResponse() AvailabilitySetsClientListBySubscriptionResponse` -- New function `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetExtensionsClientUpdateResponse, error)` -- New function `*VirtualMachinesClientCapturePoller.ResumeToken() (string, error)` -- New function `*VirtualMachinesClientUpdatePoller.Done() bool` -- New function `*ImagesClientUpdatePollerResponse.Resume(context.Context, *ImagesClient, string) error` -- New function `*VirtualMachineScaleSetsClientDeletePoller.Done() bool` -- New function `*DiskEncryptionSetsClientDeletePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DedicatedHostsClientDeletePoller.FinalResponse(context.Context) (DedicatedHostsClientDeleteResponse, error)` -- New function `*CloudServiceRoleInstancesClientReimagePollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error` -- New function `*RestorePointsClientDeletePoller.ResumeToken() (string, error)` -- New function `*DisksClientCreateOrUpdatePollerResponse.Resume(context.Context, *DisksClient, string) error` -- New function `*VirtualMachineScaleSetVMsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error` -- New function `*RestorePointsClientCreatePoller.FinalResponse(context.Context) (RestorePointsClientCreateResponse, error)` -- New function `*GalleryImageVersionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryImageVersionsClient, string) error` -- New function `VirtualMachinesClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientStartResponse, error)` -- New function `DisksClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientDeleteResponse, error)` -- New function `*VirtualMachineScaleSetExtensionsClientListPager.Err() error` -- New function `*GalleriesClientUpdatePoller.FinalResponse(context.Context) (GalleriesClientUpdateResponse, error)` -- New function `*GalleriesClientListByResourceGroupPager.PageResponse() GalleriesClientListByResourceGroupResponse` -- New function `*SnapshotsClientUpdatePoller.ResumeToken() (string, error)` -- New function `*DedicatedHostsClientDeletePoller.Done() bool` -- New function `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineExtensionsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineExtensionsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineExtensionsClient, string) error` -- New function `*SharedGalleryImagesClientListPager.Err() error` -- New function `*DisksClientCreateOrUpdatePoller.Done() bool` -- New function `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse, error)` -- New function `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.ResumeToken() (string, error)` -- New function `*CloudServicesClientUpdatePoller.ResumeToken() (string, error)` -- New function `DiskRestorePointClientGrantAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskRestorePointClientGrantAccessResponse, error)` -- New function `VirtualMachineScaleSetVMsClientReimageAllPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientReimageAllResponse, error)` -- New function `VirtualMachinesClientCapturePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientCaptureResponse, error)` -- New function `*CloudServicesClientReimagePoller.FinalResponse(context.Context) (CloudServicesClientReimageResponse, error)` -- New function `SnapshotsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachinesClientCapturePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientReimagePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetsClientListPager.NextPage(context.Context) bool` -- New function `*ThrottledRequestsInput.UnmarshalJSON([]byte) error` -- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse, error)` -- New function `*VirtualMachinesClientUpdatePoller.FinalResponse(context.Context) (VirtualMachinesClientUpdateResponse, error)` -- New function `*VirtualMachinesClientPowerOffPoller.Done() bool` -- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*DiskAccessesClientListPrivateEndpointConnectionsPager.NextPage(context.Context) bool` -- New function `CloudServicesClientDeleteInstancesPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientDeleteInstancesResponse, error)` -- New function `*GalleryApplicationsClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryApplicationsClientCreateOrUpdateResponse, error)` -- New function `*SnapshotsClientCreateOrUpdatePoller.Done() bool` -- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.ResumeToken() (string, error)` -- New function `*GalleryApplicationVersionsClientUpdatePoller.FinalResponse(context.Context) (GalleryApplicationVersionsClientUpdateResponse, error)` -- New function `GalleryApplicationsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationsClientDeleteResponse, error)` -- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.Resume(context.Context, *DiskAccessesClient, string) error` -- New function `*CloudServicesClientDeletePoller.Done() bool` -- New function `*VirtualMachinesClientAssessPatchesPoller.Done() bool` -- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Done() bool` -- New function `*VirtualMachineRunCommandsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*GalleryImagesClientDeletePoller.FinalResponse(context.Context) (GalleryImagesClientDeleteResponse, error)` -- New function `*CloudServiceRoleInstancesClientDeletePoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientDeleteResponse, error)` -- New function `CloudServicesClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientPowerOffResponse, error)` -- New function `DedicatedHostsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientUpdateResponse, error)` -- New function `*DisksClientListByResourceGroupPager.PageResponse() DisksClientListByResourceGroupResponse` -- New function `*AvailabilitySetsClientListPager.Err() error` -- New function `*CloudServicesClientStartPoller.FinalResponse(context.Context) (CloudServicesClientStartResponse, error)` -- New function `*CloudServiceRoleInstancesClientDeletePoller.ResumeToken() (string, error)` -- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientPerformMaintenanceResponse, error)` -- New function `*VirtualMachineScaleSetVMsClientStartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientStartResponse, error)` -- New function `*DiskRestorePointClientRevokeAccessPoller.Poll(context.Context) (*http.Response, error)` -- New function `*CapacityReservationGroupsClientListByResourceGroupPager.NextPage(context.Context) bool` -- New function `*SharedGalleryImageVersionsClientListPager.Err() error` -- New function `CloudServicesClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientReimageResponse, error)` -- New function `*GalleryApplicationsClientListByGalleryPager.NextPage(context.Context) bool` -- New function `*DiskAccessesClientListByResourceGroupPager.Err() error` -- New function `*SnapshotsClientListPager.PageResponse() SnapshotsClientListResponse` -- New function `VirtualMachineExtensionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineExtensionsClientDeleteResponse, error)` -- New function `*CapacityReservationsClientUpdatePoller.Poll(context.Context) (*http.Response, error)` -- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.Resume(context.Context, *VirtualMachineScaleSetRollingUpgradesClient, string) error` -- New function `*GalleriesClientUpdatePoller.Done() bool` -- New function `*CloudServicesClientStartPoller.ResumeToken() (string, error)` -- New function `*RestorePointCollectionsClientDeletePoller.ResumeToken() (string, error)` -- New struct `AvailabilitySetsClientCreateOrUpdateOptions` -- New struct `AvailabilitySetsClientCreateOrUpdateResponse` -- New struct `AvailabilitySetsClientCreateOrUpdateResult` -- New struct `AvailabilitySetsClientDeleteOptions` -- New struct `AvailabilitySetsClientDeleteResponse` -- New struct `AvailabilitySetsClientGetOptions` -- New struct `AvailabilitySetsClientGetResponse` -- New struct `AvailabilitySetsClientGetResult` -- New struct `AvailabilitySetsClientListAvailableSizesOptions` -- New struct `AvailabilitySetsClientListAvailableSizesResponse` -- New struct `AvailabilitySetsClientListAvailableSizesResult` -- New struct `AvailabilitySetsClientListBySubscriptionOptions` -- New struct `AvailabilitySetsClientListBySubscriptionPager` -- New struct `AvailabilitySetsClientListBySubscriptionResponse` -- New struct `AvailabilitySetsClientListBySubscriptionResult` -- New struct `AvailabilitySetsClientListOptions` -- New struct `AvailabilitySetsClientListPager` -- New struct `AvailabilitySetsClientListResponse` -- New struct `AvailabilitySetsClientListResult` -- New struct `AvailabilitySetsClientUpdateOptions` -- New struct `AvailabilitySetsClientUpdateResponse` -- New struct `AvailabilitySetsClientUpdateResult` -- New struct `CapacityReservationGroupsClientCreateOrUpdateOptions` -- New struct `CapacityReservationGroupsClientCreateOrUpdateResponse` -- New struct `CapacityReservationGroupsClientCreateOrUpdateResult` -- New struct `CapacityReservationGroupsClientDeleteOptions` -- New struct `CapacityReservationGroupsClientDeleteResponse` -- New struct `CapacityReservationGroupsClientGetOptions` -- New struct `CapacityReservationGroupsClientGetResponse` -- New struct `CapacityReservationGroupsClientGetResult` -- New struct `CapacityReservationGroupsClientListByResourceGroupOptions` -- New struct `CapacityReservationGroupsClientListByResourceGroupPager` -- New struct `CapacityReservationGroupsClientListByResourceGroupResponse` -- New struct `CapacityReservationGroupsClientListByResourceGroupResult` -- New struct `CapacityReservationGroupsClientListBySubscriptionOptions` -- New struct `CapacityReservationGroupsClientListBySubscriptionPager` -- New struct `CapacityReservationGroupsClientListBySubscriptionResponse` -- New struct `CapacityReservationGroupsClientListBySubscriptionResult` -- New struct `CapacityReservationGroupsClientUpdateOptions` -- New struct `CapacityReservationGroupsClientUpdateResponse` -- New struct `CapacityReservationGroupsClientUpdateResult` -- New struct `CapacityReservationsClientBeginCreateOrUpdateOptions` -- New struct `CapacityReservationsClientBeginDeleteOptions` -- New struct `CapacityReservationsClientBeginUpdateOptions` -- New struct `CapacityReservationsClientCreateOrUpdatePoller` -- New struct `CapacityReservationsClientCreateOrUpdatePollerResponse` -- New struct `CapacityReservationsClientCreateOrUpdateResponse` -- New struct `CapacityReservationsClientCreateOrUpdateResult` -- New struct `CapacityReservationsClientDeletePoller` -- New struct `CapacityReservationsClientDeletePollerResponse` -- New struct `CapacityReservationsClientDeleteResponse` -- New struct `CapacityReservationsClientGetOptions` -- New struct `CapacityReservationsClientGetResponse` -- New struct `CapacityReservationsClientGetResult` -- New struct `CapacityReservationsClientListByCapacityReservationGroupOptions` -- New struct `CapacityReservationsClientListByCapacityReservationGroupPager` -- New struct `CapacityReservationsClientListByCapacityReservationGroupResponse` -- New struct `CapacityReservationsClientListByCapacityReservationGroupResult` -- New struct `CapacityReservationsClientUpdatePoller` -- New struct `CapacityReservationsClientUpdatePollerResponse` -- New struct `CapacityReservationsClientUpdateResponse` -- New struct `CapacityReservationsClientUpdateResult` -- New struct `CloudServiceOperatingSystemsClientGetOSFamilyOptions` -- New struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse` -- New struct `CloudServiceOperatingSystemsClientGetOSFamilyResult` -- New struct `CloudServiceOperatingSystemsClientGetOSVersionOptions` -- New struct `CloudServiceOperatingSystemsClientGetOSVersionResponse` -- New struct `CloudServiceOperatingSystemsClientGetOSVersionResult` -- New struct `CloudServiceOperatingSystemsClientListOSFamiliesOptions` -- New struct `CloudServiceOperatingSystemsClientListOSFamiliesPager` -- New struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse` -- New struct `CloudServiceOperatingSystemsClientListOSFamiliesResult` -- New struct `CloudServiceOperatingSystemsClientListOSVersionsOptions` -- New struct `CloudServiceOperatingSystemsClientListOSVersionsPager` -- New struct `CloudServiceOperatingSystemsClientListOSVersionsResponse` -- New struct `CloudServiceOperatingSystemsClientListOSVersionsResult` -- New struct `CloudServiceRoleInstancesClientBeginDeleteOptions` -- New struct `CloudServiceRoleInstancesClientBeginRebuildOptions` -- New struct `CloudServiceRoleInstancesClientBeginReimageOptions` -- New struct `CloudServiceRoleInstancesClientBeginRestartOptions` -- New struct `CloudServiceRoleInstancesClientDeletePoller` -- New struct `CloudServiceRoleInstancesClientDeletePollerResponse` -- New struct `CloudServiceRoleInstancesClientDeleteResponse` -- New struct `CloudServiceRoleInstancesClientGetInstanceViewOptions` -- New struct `CloudServiceRoleInstancesClientGetInstanceViewResponse` -- New struct `CloudServiceRoleInstancesClientGetInstanceViewResult` -- New struct `CloudServiceRoleInstancesClientGetOptions` -- New struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions` -- New struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse` -- New struct `CloudServiceRoleInstancesClientGetResponse` -- New struct `CloudServiceRoleInstancesClientGetResult` -- New struct `CloudServiceRoleInstancesClientListOptions` -- New struct `CloudServiceRoleInstancesClientListPager` -- New struct `CloudServiceRoleInstancesClientListResponse` -- New struct `CloudServiceRoleInstancesClientListResult` -- New struct `CloudServiceRoleInstancesClientRebuildPoller` -- New struct `CloudServiceRoleInstancesClientRebuildPollerResponse` -- New struct `CloudServiceRoleInstancesClientRebuildResponse` -- New struct `CloudServiceRoleInstancesClientReimagePoller` -- New struct `CloudServiceRoleInstancesClientReimagePollerResponse` -- New struct `CloudServiceRoleInstancesClientReimageResponse` -- New struct `CloudServiceRoleInstancesClientRestartPoller` -- New struct `CloudServiceRoleInstancesClientRestartPollerResponse` -- New struct `CloudServiceRoleInstancesClientRestartResponse` -- New struct `CloudServiceRolesClientGetOptions` -- New struct `CloudServiceRolesClientGetResponse` -- New struct `CloudServiceRolesClientGetResult` -- New struct `CloudServiceRolesClientListOptions` -- New struct `CloudServiceRolesClientListPager` -- New struct `CloudServiceRolesClientListResponse` -- New struct `CloudServiceRolesClientListResult` -- New struct `CloudServicesClientBeginCreateOrUpdateOptions` -- New struct `CloudServicesClientBeginDeleteInstancesOptions` -- New struct `CloudServicesClientBeginDeleteOptions` -- New struct `CloudServicesClientBeginPowerOffOptions` -- New struct `CloudServicesClientBeginRebuildOptions` -- New struct `CloudServicesClientBeginReimageOptions` -- New struct `CloudServicesClientBeginRestartOptions` -- New struct `CloudServicesClientBeginStartOptions` -- New struct `CloudServicesClientBeginUpdateOptions` -- New struct `CloudServicesClientCreateOrUpdatePoller` -- New struct `CloudServicesClientCreateOrUpdatePollerResponse` -- New struct `CloudServicesClientCreateOrUpdateResponse` -- New struct `CloudServicesClientCreateOrUpdateResult` -- New struct `CloudServicesClientDeleteInstancesPoller` -- New struct `CloudServicesClientDeleteInstancesPollerResponse` -- New struct `CloudServicesClientDeleteInstancesResponse` -- New struct `CloudServicesClientDeletePoller` -- New struct `CloudServicesClientDeletePollerResponse` -- New struct `CloudServicesClientDeleteResponse` -- New struct `CloudServicesClientGetInstanceViewOptions` -- New struct `CloudServicesClientGetInstanceViewResponse` -- New struct `CloudServicesClientGetInstanceViewResult` -- New struct `CloudServicesClientGetOptions` -- New struct `CloudServicesClientGetResponse` -- New struct `CloudServicesClientGetResult` -- New struct `CloudServicesClientListAllOptions` -- New struct `CloudServicesClientListAllPager` -- New struct `CloudServicesClientListAllResponse` -- New struct `CloudServicesClientListAllResult` -- New struct `CloudServicesClientListOptions` -- New struct `CloudServicesClientListPager` -- New struct `CloudServicesClientListResponse` -- New struct `CloudServicesClientListResult` -- New struct `CloudServicesClientPowerOffPoller` -- New struct `CloudServicesClientPowerOffPollerResponse` -- New struct `CloudServicesClientPowerOffResponse` -- New struct `CloudServicesClientRebuildPoller` -- New struct `CloudServicesClientRebuildPollerResponse` -- New struct `CloudServicesClientRebuildResponse` -- New struct `CloudServicesClientReimagePoller` -- New struct `CloudServicesClientReimagePollerResponse` -- New struct `CloudServicesClientReimageResponse` -- New struct `CloudServicesClientRestartPoller` -- New struct `CloudServicesClientRestartPollerResponse` -- New struct `CloudServicesClientRestartResponse` -- New struct `CloudServicesClientStartPoller` -- New struct `CloudServicesClientStartPollerResponse` -- New struct `CloudServicesClientStartResponse` -- New struct `CloudServicesClientUpdatePoller` -- New struct `CloudServicesClientUpdatePollerResponse` -- New struct `CloudServicesClientUpdateResponse` -- New struct `CloudServicesClientUpdateResult` -- New struct `CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions` -- New struct `CloudServicesUpdateDomainClientGetUpdateDomainOptions` -- New struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse` -- New struct `CloudServicesUpdateDomainClientGetUpdateDomainResult` -- New struct `CloudServicesUpdateDomainClientListUpdateDomainsOptions` -- New struct `CloudServicesUpdateDomainClientListUpdateDomainsPager` -- New struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse` -- New struct `CloudServicesUpdateDomainClientListUpdateDomainsResult` -- New struct `CloudServicesUpdateDomainClientWalkUpdateDomainPoller` -- New struct `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse` -- New struct `CloudServicesUpdateDomainClientWalkUpdateDomainResponse` -- New struct `CommunityGalleriesClientGetOptions` -- New struct `CommunityGalleriesClientGetResponse` -- New struct `CommunityGalleriesClientGetResult` -- New struct `CommunityGalleryImageVersionsClientGetOptions` -- New struct `CommunityGalleryImageVersionsClientGetResponse` -- New struct `CommunityGalleryImageVersionsClientGetResult` -- New struct `CommunityGalleryImagesClientGetOptions` -- New struct `CommunityGalleryImagesClientGetResponse` -- New struct `CommunityGalleryImagesClientGetResult` -- New struct `DedicatedHostGroupsClientCreateOrUpdateOptions` -- New struct `DedicatedHostGroupsClientCreateOrUpdateResponse` -- New struct `DedicatedHostGroupsClientCreateOrUpdateResult` -- New struct `DedicatedHostGroupsClientDeleteOptions` -- New struct `DedicatedHostGroupsClientDeleteResponse` -- New struct `DedicatedHostGroupsClientGetOptions` -- New struct `DedicatedHostGroupsClientGetResponse` -- New struct `DedicatedHostGroupsClientGetResult` -- New struct `DedicatedHostGroupsClientListByResourceGroupOptions` -- New struct `DedicatedHostGroupsClientListByResourceGroupPager` -- New struct `DedicatedHostGroupsClientListByResourceGroupResponse` -- New struct `DedicatedHostGroupsClientListByResourceGroupResult` -- New struct `DedicatedHostGroupsClientListBySubscriptionOptions` -- New struct `DedicatedHostGroupsClientListBySubscriptionPager` -- New struct `DedicatedHostGroupsClientListBySubscriptionResponse` -- New struct `DedicatedHostGroupsClientListBySubscriptionResult` -- New struct `DedicatedHostGroupsClientUpdateOptions` -- New struct `DedicatedHostGroupsClientUpdateResponse` -- New struct `DedicatedHostGroupsClientUpdateResult` -- New struct `DedicatedHostsClientBeginCreateOrUpdateOptions` -- New struct `DedicatedHostsClientBeginDeleteOptions` -- New struct `DedicatedHostsClientBeginUpdateOptions` -- New struct `DedicatedHostsClientCreateOrUpdatePoller` -- New struct `DedicatedHostsClientCreateOrUpdatePollerResponse` -- New struct `DedicatedHostsClientCreateOrUpdateResponse` -- New struct `DedicatedHostsClientCreateOrUpdateResult` -- New struct `DedicatedHostsClientDeletePoller` -- New struct `DedicatedHostsClientDeletePollerResponse` -- New struct `DedicatedHostsClientDeleteResponse` -- New struct `DedicatedHostsClientGetOptions` -- New struct `DedicatedHostsClientGetResponse` -- New struct `DedicatedHostsClientGetResult` -- New struct `DedicatedHostsClientListByHostGroupOptions` -- New struct `DedicatedHostsClientListByHostGroupPager` -- New struct `DedicatedHostsClientListByHostGroupResponse` -- New struct `DedicatedHostsClientListByHostGroupResult` -- New struct `DedicatedHostsClientUpdatePoller` -- New struct `DedicatedHostsClientUpdatePollerResponse` -- New struct `DedicatedHostsClientUpdateResponse` -- New struct `DedicatedHostsClientUpdateResult` -- New struct `DiskAccessesClientBeginCreateOrUpdateOptions` -- New struct `DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions` -- New struct `DiskAccessesClientBeginDeleteOptions` -- New struct `DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions` -- New struct `DiskAccessesClientBeginUpdateOptions` -- New struct `DiskAccessesClientCreateOrUpdatePoller` -- New struct `DiskAccessesClientCreateOrUpdatePollerResponse` -- New struct `DiskAccessesClientCreateOrUpdateResponse` -- New struct `DiskAccessesClientCreateOrUpdateResult` -- New struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPoller` -- New struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse` -- New struct `DiskAccessesClientDeleteAPrivateEndpointConnectionResponse` -- New struct `DiskAccessesClientDeletePoller` -- New struct `DiskAccessesClientDeletePollerResponse` -- New struct `DiskAccessesClientDeleteResponse` -- New struct `DiskAccessesClientGetAPrivateEndpointConnectionOptions` -- New struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse` -- New struct `DiskAccessesClientGetAPrivateEndpointConnectionResult` -- New struct `DiskAccessesClientGetOptions` -- New struct `DiskAccessesClientGetPrivateLinkResourcesOptions` -- New struct `DiskAccessesClientGetPrivateLinkResourcesResponse` -- New struct `DiskAccessesClientGetPrivateLinkResourcesResult` -- New struct `DiskAccessesClientGetResponse` -- New struct `DiskAccessesClientGetResult` -- New struct `DiskAccessesClientListByResourceGroupOptions` -- New struct `DiskAccessesClientListByResourceGroupPager` -- New struct `DiskAccessesClientListByResourceGroupResponse` -- New struct `DiskAccessesClientListByResourceGroupResult` -- New struct `DiskAccessesClientListOptions` -- New struct `DiskAccessesClientListPager` -- New struct `DiskAccessesClientListPrivateEndpointConnectionsOptions` -- New struct `DiskAccessesClientListPrivateEndpointConnectionsPager` -- New struct `DiskAccessesClientListPrivateEndpointConnectionsResponse` -- New struct `DiskAccessesClientListPrivateEndpointConnectionsResult` -- New struct `DiskAccessesClientListResponse` -- New struct `DiskAccessesClientListResult` -- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPoller` -- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse` -- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse` -- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResult` -- New struct `DiskAccessesClientUpdatePoller` -- New struct `DiskAccessesClientUpdatePollerResponse` -- New struct `DiskAccessesClientUpdateResponse` -- New struct `DiskAccessesClientUpdateResult` -- New struct `DiskEncryptionSetsClientBeginCreateOrUpdateOptions` -- New struct `DiskEncryptionSetsClientBeginDeleteOptions` -- New struct `DiskEncryptionSetsClientBeginUpdateOptions` -- New struct `DiskEncryptionSetsClientCreateOrUpdatePoller` -- New struct `DiskEncryptionSetsClientCreateOrUpdatePollerResponse` -- New struct `DiskEncryptionSetsClientCreateOrUpdateResponse` -- New struct `DiskEncryptionSetsClientCreateOrUpdateResult` -- New struct `DiskEncryptionSetsClientDeletePoller` -- New struct `DiskEncryptionSetsClientDeletePollerResponse` -- New struct `DiskEncryptionSetsClientDeleteResponse` -- New struct `DiskEncryptionSetsClientGetOptions` -- New struct `DiskEncryptionSetsClientGetResponse` -- New struct `DiskEncryptionSetsClientGetResult` -- New struct `DiskEncryptionSetsClientListAssociatedResourcesOptions` -- New struct `DiskEncryptionSetsClientListAssociatedResourcesPager` -- New struct `DiskEncryptionSetsClientListAssociatedResourcesResponse` -- New struct `DiskEncryptionSetsClientListAssociatedResourcesResult` -- New struct `DiskEncryptionSetsClientListByResourceGroupOptions` -- New struct `DiskEncryptionSetsClientListByResourceGroupPager` -- New struct `DiskEncryptionSetsClientListByResourceGroupResponse` -- New struct `DiskEncryptionSetsClientListByResourceGroupResult` -- New struct `DiskEncryptionSetsClientListOptions` -- New struct `DiskEncryptionSetsClientListPager` -- New struct `DiskEncryptionSetsClientListResponse` -- New struct `DiskEncryptionSetsClientListResult` -- New struct `DiskEncryptionSetsClientUpdatePoller` -- New struct `DiskEncryptionSetsClientUpdatePollerResponse` -- New struct `DiskEncryptionSetsClientUpdateResponse` -- New struct `DiskEncryptionSetsClientUpdateResult` -- New struct `DiskRestorePointClientBeginGrantAccessOptions` -- New struct `DiskRestorePointClientBeginRevokeAccessOptions` -- New struct `DiskRestorePointClientGetOptions` -- New struct `DiskRestorePointClientGetResponse` -- New struct `DiskRestorePointClientGetResult` -- New struct `DiskRestorePointClientGrantAccessPoller` -- New struct `DiskRestorePointClientGrantAccessPollerResponse` -- New struct `DiskRestorePointClientGrantAccessResponse` -- New struct `DiskRestorePointClientGrantAccessResult` -- New struct `DiskRestorePointClientListByRestorePointOptions` -- New struct `DiskRestorePointClientListByRestorePointPager` -- New struct `DiskRestorePointClientListByRestorePointResponse` -- New struct `DiskRestorePointClientListByRestorePointResult` -- New struct `DiskRestorePointClientRevokeAccessPoller` -- New struct `DiskRestorePointClientRevokeAccessPollerResponse` -- New struct `DiskRestorePointClientRevokeAccessResponse` -- New struct `DisksClientBeginCreateOrUpdateOptions` -- New struct `DisksClientBeginDeleteOptions` -- New struct `DisksClientBeginGrantAccessOptions` -- New struct `DisksClientBeginRevokeAccessOptions` -- New struct `DisksClientBeginUpdateOptions` -- New struct `DisksClientCreateOrUpdatePoller` -- New struct `DisksClientCreateOrUpdatePollerResponse` -- New struct `DisksClientCreateOrUpdateResponse` -- New struct `DisksClientCreateOrUpdateResult` -- New struct `DisksClientDeletePoller` -- New struct `DisksClientDeletePollerResponse` -- New struct `DisksClientDeleteResponse` -- New struct `DisksClientGetOptions` -- New struct `DisksClientGetResponse` -- New struct `DisksClientGetResult` -- New struct `DisksClientGrantAccessPoller` -- New struct `DisksClientGrantAccessPollerResponse` -- New struct `DisksClientGrantAccessResponse` -- New struct `DisksClientGrantAccessResult` -- New struct `DisksClientListByResourceGroupOptions` -- New struct `DisksClientListByResourceGroupPager` -- New struct `DisksClientListByResourceGroupResponse` -- New struct `DisksClientListByResourceGroupResult` -- New struct `DisksClientListOptions` -- New struct `DisksClientListPager` -- New struct `DisksClientListResponse` -- New struct `DisksClientListResult` -- New struct `DisksClientRevokeAccessPoller` -- New struct `DisksClientRevokeAccessPollerResponse` -- New struct `DisksClientRevokeAccessResponse` -- New struct `DisksClientUpdatePoller` -- New struct `DisksClientUpdatePollerResponse` -- New struct `DisksClientUpdateResponse` -- New struct `DisksClientUpdateResult` -- New struct `GalleriesClientBeginCreateOrUpdateOptions` -- New struct `GalleriesClientBeginDeleteOptions` -- New struct `GalleriesClientBeginUpdateOptions` -- New struct `GalleriesClientCreateOrUpdatePoller` -- New struct `GalleriesClientCreateOrUpdatePollerResponse` -- New struct `GalleriesClientCreateOrUpdateResponse` -- New struct `GalleriesClientCreateOrUpdateResult` -- New struct `GalleriesClientDeletePoller` -- New struct `GalleriesClientDeletePollerResponse` -- New struct `GalleriesClientDeleteResponse` -- New struct `GalleriesClientGetOptions` -- New struct `GalleriesClientGetResponse` -- New struct `GalleriesClientGetResult` -- New struct `GalleriesClientListByResourceGroupOptions` -- New struct `GalleriesClientListByResourceGroupPager` -- New struct `GalleriesClientListByResourceGroupResponse` -- New struct `GalleriesClientListByResourceGroupResult` -- New struct `GalleriesClientListOptions` -- New struct `GalleriesClientListPager` -- New struct `GalleriesClientListResponse` -- New struct `GalleriesClientListResult` -- New struct `GalleriesClientUpdatePoller` -- New struct `GalleriesClientUpdatePollerResponse` -- New struct `GalleriesClientUpdateResponse` -- New struct `GalleriesClientUpdateResult` -- New struct `GalleryApplicationVersionsClientBeginCreateOrUpdateOptions` -- New struct `GalleryApplicationVersionsClientBeginDeleteOptions` -- New struct `GalleryApplicationVersionsClientBeginUpdateOptions` -- New struct `GalleryApplicationVersionsClientCreateOrUpdatePoller` -- New struct `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse` -- New struct `GalleryApplicationVersionsClientCreateOrUpdateResponse` -- New struct `GalleryApplicationVersionsClientCreateOrUpdateResult` -- New struct `GalleryApplicationVersionsClientDeletePoller` -- New struct `GalleryApplicationVersionsClientDeletePollerResponse` -- New struct `GalleryApplicationVersionsClientDeleteResponse` -- New struct `GalleryApplicationVersionsClientGetOptions` -- New struct `GalleryApplicationVersionsClientGetResponse` -- New struct `GalleryApplicationVersionsClientGetResult` -- New struct `GalleryApplicationVersionsClientListByGalleryApplicationOptions` -- New struct `GalleryApplicationVersionsClientListByGalleryApplicationPager` -- New struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse` -- New struct `GalleryApplicationVersionsClientListByGalleryApplicationResult` -- New struct `GalleryApplicationVersionsClientUpdatePoller` -- New struct `GalleryApplicationVersionsClientUpdatePollerResponse` -- New struct `GalleryApplicationVersionsClientUpdateResponse` -- New struct `GalleryApplicationVersionsClientUpdateResult` -- New struct `GalleryApplicationsClientBeginCreateOrUpdateOptions` -- New struct `GalleryApplicationsClientBeginDeleteOptions` -- New struct `GalleryApplicationsClientBeginUpdateOptions` -- New struct `GalleryApplicationsClientCreateOrUpdatePoller` -- New struct `GalleryApplicationsClientCreateOrUpdatePollerResponse` -- New struct `GalleryApplicationsClientCreateOrUpdateResponse` -- New struct `GalleryApplicationsClientCreateOrUpdateResult` -- New struct `GalleryApplicationsClientDeletePoller` -- New struct `GalleryApplicationsClientDeletePollerResponse` -- New struct `GalleryApplicationsClientDeleteResponse` -- New struct `GalleryApplicationsClientGetOptions` -- New struct `GalleryApplicationsClientGetResponse` -- New struct `GalleryApplicationsClientGetResult` -- New struct `GalleryApplicationsClientListByGalleryOptions` -- New struct `GalleryApplicationsClientListByGalleryPager` -- New struct `GalleryApplicationsClientListByGalleryResponse` -- New struct `GalleryApplicationsClientListByGalleryResult` -- New struct `GalleryApplicationsClientUpdatePoller` -- New struct `GalleryApplicationsClientUpdatePollerResponse` -- New struct `GalleryApplicationsClientUpdateResponse` -- New struct `GalleryApplicationsClientUpdateResult` -- New struct `GalleryImageVersionsClientBeginCreateOrUpdateOptions` -- New struct `GalleryImageVersionsClientBeginDeleteOptions` -- New struct `GalleryImageVersionsClientBeginUpdateOptions` -- New struct `GalleryImageVersionsClientCreateOrUpdatePoller` -- New struct `GalleryImageVersionsClientCreateOrUpdatePollerResponse` -- New struct `GalleryImageVersionsClientCreateOrUpdateResponse` -- New struct `GalleryImageVersionsClientCreateOrUpdateResult` -- New struct `GalleryImageVersionsClientDeletePoller` -- New struct `GalleryImageVersionsClientDeletePollerResponse` -- New struct `GalleryImageVersionsClientDeleteResponse` -- New struct `GalleryImageVersionsClientGetOptions` -- New struct `GalleryImageVersionsClientGetResponse` -- New struct `GalleryImageVersionsClientGetResult` -- New struct `GalleryImageVersionsClientListByGalleryImageOptions` -- New struct `GalleryImageVersionsClientListByGalleryImagePager` -- New struct `GalleryImageVersionsClientListByGalleryImageResponse` -- New struct `GalleryImageVersionsClientListByGalleryImageResult` -- New struct `GalleryImageVersionsClientUpdatePoller` -- New struct `GalleryImageVersionsClientUpdatePollerResponse` -- New struct `GalleryImageVersionsClientUpdateResponse` -- New struct `GalleryImageVersionsClientUpdateResult` -- New struct `GalleryImagesClientBeginCreateOrUpdateOptions` -- New struct `GalleryImagesClientBeginDeleteOptions` -- New struct `GalleryImagesClientBeginUpdateOptions` -- New struct `GalleryImagesClientCreateOrUpdatePoller` -- New struct `GalleryImagesClientCreateOrUpdatePollerResponse` -- New struct `GalleryImagesClientCreateOrUpdateResponse` -- New struct `GalleryImagesClientCreateOrUpdateResult` -- New struct `GalleryImagesClientDeletePoller` -- New struct `GalleryImagesClientDeletePollerResponse` -- New struct `GalleryImagesClientDeleteResponse` -- New struct `GalleryImagesClientGetOptions` -- New struct `GalleryImagesClientGetResponse` -- New struct `GalleryImagesClientGetResult` -- New struct `GalleryImagesClientListByGalleryOptions` -- New struct `GalleryImagesClientListByGalleryPager` -- New struct `GalleryImagesClientListByGalleryResponse` -- New struct `GalleryImagesClientListByGalleryResult` -- New struct `GalleryImagesClientUpdatePoller` -- New struct `GalleryImagesClientUpdatePollerResponse` -- New struct `GalleryImagesClientUpdateResponse` -- New struct `GalleryImagesClientUpdateResult` -- New struct `GallerySharingProfileClientBeginUpdateOptions` -- New struct `GallerySharingProfileClientUpdatePoller` -- New struct `GallerySharingProfileClientUpdatePollerResponse` -- New struct `GallerySharingProfileClientUpdateResponse` -- New struct `GallerySharingProfileClientUpdateResult` -- New struct `ImagesClientBeginCreateOrUpdateOptions` -- New struct `ImagesClientBeginDeleteOptions` -- New struct `ImagesClientBeginUpdateOptions` -- New struct `ImagesClientCreateOrUpdatePoller` -- New struct `ImagesClientCreateOrUpdatePollerResponse` -- New struct `ImagesClientCreateOrUpdateResponse` -- New struct `ImagesClientCreateOrUpdateResult` -- New struct `ImagesClientDeletePoller` -- New struct `ImagesClientDeletePollerResponse` -- New struct `ImagesClientDeleteResponse` -- New struct `ImagesClientGetOptions` -- New struct `ImagesClientGetResponse` -- New struct `ImagesClientGetResult` -- New struct `ImagesClientListByResourceGroupOptions` -- New struct `ImagesClientListByResourceGroupPager` -- New struct `ImagesClientListByResourceGroupResponse` -- New struct `ImagesClientListByResourceGroupResult` -- New struct `ImagesClientListOptions` -- New struct `ImagesClientListPager` -- New struct `ImagesClientListResponse` -- New struct `ImagesClientListResult` -- New struct `ImagesClientUpdatePoller` -- New struct `ImagesClientUpdatePollerResponse` -- New struct `ImagesClientUpdateResponse` -- New struct `ImagesClientUpdateResult` -- New struct `LogAnalyticsClientBeginExportRequestRateByIntervalOptions` -- New struct `LogAnalyticsClientBeginExportThrottledRequestsOptions` -- New struct `LogAnalyticsClientExportRequestRateByIntervalPoller` -- New struct `LogAnalyticsClientExportRequestRateByIntervalPollerResponse` -- New struct `LogAnalyticsClientExportRequestRateByIntervalResponse` -- New struct `LogAnalyticsClientExportRequestRateByIntervalResult` -- New struct `LogAnalyticsClientExportThrottledRequestsPoller` -- New struct `LogAnalyticsClientExportThrottledRequestsPollerResponse` -- New struct `LogAnalyticsClientExportThrottledRequestsResponse` -- New struct `LogAnalyticsClientExportThrottledRequestsResult` -- New struct `OperationListResult` -- New struct `OperationValue` -- New struct `OperationValueDisplay` -- New struct `OperationsClientListOptions` -- New struct `OperationsClientListResponse` -- New struct `OperationsClientListResult` -- New struct `ProximityPlacementGroupsClientCreateOrUpdateOptions` -- New struct `ProximityPlacementGroupsClientCreateOrUpdateResponse` -- New struct `ProximityPlacementGroupsClientCreateOrUpdateResult` -- New struct `ProximityPlacementGroupsClientDeleteOptions` -- New struct `ProximityPlacementGroupsClientDeleteResponse` -- New struct `ProximityPlacementGroupsClientGetOptions` -- New struct `ProximityPlacementGroupsClientGetResponse` -- New struct `ProximityPlacementGroupsClientGetResult` -- New struct `ProximityPlacementGroupsClientListByResourceGroupOptions` -- New struct `ProximityPlacementGroupsClientListByResourceGroupPager` -- New struct `ProximityPlacementGroupsClientListByResourceGroupResponse` -- New struct `ProximityPlacementGroupsClientListByResourceGroupResult` -- New struct `ProximityPlacementGroupsClientListBySubscriptionOptions` -- New struct `ProximityPlacementGroupsClientListBySubscriptionPager` -- New struct `ProximityPlacementGroupsClientListBySubscriptionResponse` -- New struct `ProximityPlacementGroupsClientListBySubscriptionResult` -- New struct `ProximityPlacementGroupsClientUpdateOptions` -- New struct `ProximityPlacementGroupsClientUpdateResponse` -- New struct `ProximityPlacementGroupsClientUpdateResult` -- New struct `ResourceSKUsClientListOptions` -- New struct `ResourceSKUsClientListPager` -- New struct `ResourceSKUsClientListResponse` -- New struct `ResourceSKUsClientListResult` -- New struct `RestorePointCollectionsClientBeginDeleteOptions` -- New struct `RestorePointCollectionsClientCreateOrUpdateOptions` -- New struct `RestorePointCollectionsClientCreateOrUpdateResponse` -- New struct `RestorePointCollectionsClientCreateOrUpdateResult` -- New struct `RestorePointCollectionsClientDeletePoller` -- New struct `RestorePointCollectionsClientDeletePollerResponse` -- New struct `RestorePointCollectionsClientDeleteResponse` -- New struct `RestorePointCollectionsClientGetOptions` -- New struct `RestorePointCollectionsClientGetResponse` -- New struct `RestorePointCollectionsClientGetResult` -- New struct `RestorePointCollectionsClientListAllOptions` -- New struct `RestorePointCollectionsClientListAllPager` -- New struct `RestorePointCollectionsClientListAllResponse` -- New struct `RestorePointCollectionsClientListAllResult` -- New struct `RestorePointCollectionsClientListOptions` -- New struct `RestorePointCollectionsClientListPager` -- New struct `RestorePointCollectionsClientListResponse` -- New struct `RestorePointCollectionsClientListResult` -- New struct `RestorePointCollectionsClientUpdateOptions` -- New struct `RestorePointCollectionsClientUpdateResponse` -- New struct `RestorePointCollectionsClientUpdateResult` -- New struct `RestorePointsClientBeginCreateOptions` -- New struct `RestorePointsClientBeginDeleteOptions` -- New struct `RestorePointsClientCreatePoller` -- New struct `RestorePointsClientCreatePollerResponse` -- New struct `RestorePointsClientCreateResponse` -- New struct `RestorePointsClientCreateResult` -- New struct `RestorePointsClientDeletePoller` -- New struct `RestorePointsClientDeletePollerResponse` -- New struct `RestorePointsClientDeleteResponse` -- New struct `RestorePointsClientGetOptions` -- New struct `RestorePointsClientGetResponse` -- New struct `RestorePointsClientGetResult` -- New struct `SSHPublicKeysClientCreateOptions` -- New struct `SSHPublicKeysClientCreateResponse` -- New struct `SSHPublicKeysClientCreateResult` -- New struct `SSHPublicKeysClientDeleteOptions` -- New struct `SSHPublicKeysClientDeleteResponse` -- New struct `SSHPublicKeysClientGenerateKeyPairOptions` -- New struct `SSHPublicKeysClientGenerateKeyPairResponse` -- New struct `SSHPublicKeysClientGenerateKeyPairResult` -- New struct `SSHPublicKeysClientGetOptions` -- New struct `SSHPublicKeysClientGetResponse` -- New struct `SSHPublicKeysClientGetResult` -- New struct `SSHPublicKeysClientListByResourceGroupOptions` -- New struct `SSHPublicKeysClientListByResourceGroupPager` -- New struct `SSHPublicKeysClientListByResourceGroupResponse` -- New struct `SSHPublicKeysClientListByResourceGroupResult` -- New struct `SSHPublicKeysClientListBySubscriptionOptions` -- New struct `SSHPublicKeysClientListBySubscriptionPager` -- New struct `SSHPublicKeysClientListBySubscriptionResponse` -- New struct `SSHPublicKeysClientListBySubscriptionResult` -- New struct `SSHPublicKeysClientUpdateOptions` -- New struct `SSHPublicKeysClientUpdateResponse` -- New struct `SSHPublicKeysClientUpdateResult` -- New struct `SharedGalleriesClientGetOptions` -- New struct `SharedGalleriesClientGetResponse` -- New struct `SharedGalleriesClientGetResult` -- New struct `SharedGalleriesClientListOptions` -- New struct `SharedGalleriesClientListPager` -- New struct `SharedGalleriesClientListResponse` -- New struct `SharedGalleriesClientListResult` -- New struct `SharedGalleryImageVersionsClientGetOptions` -- New struct `SharedGalleryImageVersionsClientGetResponse` -- New struct `SharedGalleryImageVersionsClientGetResult` -- New struct `SharedGalleryImageVersionsClientListOptions` -- New struct `SharedGalleryImageVersionsClientListPager` -- New struct `SharedGalleryImageVersionsClientListResponse` -- New struct `SharedGalleryImageVersionsClientListResult` -- New struct `SharedGalleryImagesClientGetOptions` -- New struct `SharedGalleryImagesClientGetResponse` -- New struct `SharedGalleryImagesClientGetResult` -- New struct `SharedGalleryImagesClientListOptions` -- New struct `SharedGalleryImagesClientListPager` -- New struct `SharedGalleryImagesClientListResponse` -- New struct `SharedGalleryImagesClientListResult` -- New struct `SnapshotsClientBeginCreateOrUpdateOptions` -- New struct `SnapshotsClientBeginDeleteOptions` -- New struct `SnapshotsClientBeginGrantAccessOptions` -- New struct `SnapshotsClientBeginRevokeAccessOptions` -- New struct `SnapshotsClientBeginUpdateOptions` -- New struct `SnapshotsClientCreateOrUpdatePoller` -- New struct `SnapshotsClientCreateOrUpdatePollerResponse` -- New struct `SnapshotsClientCreateOrUpdateResponse` -- New struct `SnapshotsClientCreateOrUpdateResult` -- New struct `SnapshotsClientDeletePoller` -- New struct `SnapshotsClientDeletePollerResponse` -- New struct `SnapshotsClientDeleteResponse` -- New struct `SnapshotsClientGetOptions` -- New struct `SnapshotsClientGetResponse` -- New struct `SnapshotsClientGetResult` -- New struct `SnapshotsClientGrantAccessPoller` -- New struct `SnapshotsClientGrantAccessPollerResponse` -- New struct `SnapshotsClientGrantAccessResponse` -- New struct `SnapshotsClientGrantAccessResult` -- New struct `SnapshotsClientListByResourceGroupOptions` -- New struct `SnapshotsClientListByResourceGroupPager` -- New struct `SnapshotsClientListByResourceGroupResponse` -- New struct `SnapshotsClientListByResourceGroupResult` -- New struct `SnapshotsClientListOptions` -- New struct `SnapshotsClientListPager` -- New struct `SnapshotsClientListResponse` -- New struct `SnapshotsClientListResult` -- New struct `SnapshotsClientRevokeAccessPoller` -- New struct `SnapshotsClientRevokeAccessPollerResponse` -- New struct `SnapshotsClientRevokeAccessResponse` -- New struct `SnapshotsClientUpdatePoller` -- New struct `SnapshotsClientUpdatePollerResponse` -- New struct `SnapshotsClientUpdateResponse` -- New struct `SnapshotsClientUpdateResult` -- New struct `UsageClientListOptions` -- New struct `UsageClientListPager` -- New struct `UsageClientListResponse` -- New struct `UsageClientListResult` -- New struct `VirtualMachineExtensionImagesClientGetOptions` -- New struct `VirtualMachineExtensionImagesClientGetResponse` -- New struct `VirtualMachineExtensionImagesClientGetResult` -- New struct `VirtualMachineExtensionImagesClientListTypesOptions` -- New struct `VirtualMachineExtensionImagesClientListTypesResponse` -- New struct `VirtualMachineExtensionImagesClientListTypesResult` -- New struct `VirtualMachineExtensionImagesClientListVersionsOptions` -- New struct `VirtualMachineExtensionImagesClientListVersionsResponse` -- New struct `VirtualMachineExtensionImagesClientListVersionsResult` -- New struct `VirtualMachineExtensionsClientBeginCreateOrUpdateOptions` -- New struct `VirtualMachineExtensionsClientBeginDeleteOptions` -- New struct `VirtualMachineExtensionsClientBeginUpdateOptions` -- New struct `VirtualMachineExtensionsClientCreateOrUpdatePoller` -- New struct `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse` -- New struct `VirtualMachineExtensionsClientCreateOrUpdateResponse` -- New struct `VirtualMachineExtensionsClientCreateOrUpdateResult` -- New struct `VirtualMachineExtensionsClientDeletePoller` -- New struct `VirtualMachineExtensionsClientDeletePollerResponse` -- New struct `VirtualMachineExtensionsClientDeleteResponse` -- New struct `VirtualMachineExtensionsClientGetOptions` -- New struct `VirtualMachineExtensionsClientGetResponse` -- New struct `VirtualMachineExtensionsClientGetResult` -- New struct `VirtualMachineExtensionsClientListOptions` -- New struct `VirtualMachineExtensionsClientListResponse` -- New struct `VirtualMachineExtensionsClientListResult` -- New struct `VirtualMachineExtensionsClientUpdatePoller` -- New struct `VirtualMachineExtensionsClientUpdatePollerResponse` -- New struct `VirtualMachineExtensionsClientUpdateResponse` -- New struct `VirtualMachineExtensionsClientUpdateResult` -- New struct `VirtualMachineImagesClientGetOptions` -- New struct `VirtualMachineImagesClientGetResponse` -- New struct `VirtualMachineImagesClientGetResult` -- New struct `VirtualMachineImagesClientListOffersOptions` -- New struct `VirtualMachineImagesClientListOffersResponse` -- New struct `VirtualMachineImagesClientListOffersResult` -- New struct `VirtualMachineImagesClientListOptions` -- New struct `VirtualMachineImagesClientListPublishersOptions` -- New struct `VirtualMachineImagesClientListPublishersResponse` -- New struct `VirtualMachineImagesClientListPublishersResult` -- New struct `VirtualMachineImagesClientListResponse` -- New struct `VirtualMachineImagesClientListResult` -- New struct `VirtualMachineImagesClientListSKUsOptions` -- New struct `VirtualMachineImagesClientListSKUsResponse` -- New struct `VirtualMachineImagesClientListSKUsResult` -- New struct `VirtualMachineImagesEdgeZoneClientGetOptions` -- New struct `VirtualMachineImagesEdgeZoneClientGetResponse` -- New struct `VirtualMachineImagesEdgeZoneClientGetResult` -- New struct `VirtualMachineImagesEdgeZoneClientListOffersOptions` -- New struct `VirtualMachineImagesEdgeZoneClientListOffersResponse` -- New struct `VirtualMachineImagesEdgeZoneClientListOffersResult` -- New struct `VirtualMachineImagesEdgeZoneClientListOptions` -- New struct `VirtualMachineImagesEdgeZoneClientListPublishersOptions` -- New struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse` -- New struct `VirtualMachineImagesEdgeZoneClientListPublishersResult` -- New struct `VirtualMachineImagesEdgeZoneClientListResponse` -- New struct `VirtualMachineImagesEdgeZoneClientListResult` -- New struct `VirtualMachineImagesEdgeZoneClientListSKUsOptions` -- New struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse` -- New struct `VirtualMachineImagesEdgeZoneClientListSKUsResult` -- New struct `VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions` -- New struct `VirtualMachineRunCommandsClientBeginDeleteOptions` -- New struct `VirtualMachineRunCommandsClientBeginUpdateOptions` -- New struct `VirtualMachineRunCommandsClientCreateOrUpdatePoller` -- New struct `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse` -- New struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse` -- New struct `VirtualMachineRunCommandsClientCreateOrUpdateResult` -- New struct `VirtualMachineRunCommandsClientDeletePoller` -- New struct `VirtualMachineRunCommandsClientDeletePollerResponse` -- New struct `VirtualMachineRunCommandsClientDeleteResponse` -- New struct `VirtualMachineRunCommandsClientGetByVirtualMachineOptions` -- New struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse` -- New struct `VirtualMachineRunCommandsClientGetByVirtualMachineResult` -- New struct `VirtualMachineRunCommandsClientGetOptions` -- New struct `VirtualMachineRunCommandsClientGetResponse` -- New struct `VirtualMachineRunCommandsClientGetResult` -- New struct `VirtualMachineRunCommandsClientListByVirtualMachineOptions` -- New struct `VirtualMachineRunCommandsClientListByVirtualMachinePager` -- New struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse` -- New struct `VirtualMachineRunCommandsClientListByVirtualMachineResult` -- New struct `VirtualMachineRunCommandsClientListOptions` -- New struct `VirtualMachineRunCommandsClientListPager` -- New struct `VirtualMachineRunCommandsClientListResponse` -- New struct `VirtualMachineRunCommandsClientListResult` -- New struct `VirtualMachineRunCommandsClientUpdatePoller` -- New struct `VirtualMachineRunCommandsClientUpdatePollerResponse` -- New struct `VirtualMachineRunCommandsClientUpdateResponse` -- New struct `VirtualMachineRunCommandsClientUpdateResult` -- New struct `VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions` -- New struct `VirtualMachineScaleSetExtensionsClientBeginDeleteOptions` -- New struct `VirtualMachineScaleSetExtensionsClientBeginUpdateOptions` -- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller` -- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse` -- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse` -- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResult` -- New struct `VirtualMachineScaleSetExtensionsClientDeletePoller` -- New struct `VirtualMachineScaleSetExtensionsClientDeletePollerResponse` -- New struct `VirtualMachineScaleSetExtensionsClientDeleteResponse` -- New struct `VirtualMachineScaleSetExtensionsClientGetOptions` -- New struct `VirtualMachineScaleSetExtensionsClientGetResponse` -- New struct `VirtualMachineScaleSetExtensionsClientGetResult` -- New struct `VirtualMachineScaleSetExtensionsClientListOptions` -- New struct `VirtualMachineScaleSetExtensionsClientListPager` -- New struct `VirtualMachineScaleSetExtensionsClientListResponse` -- New struct `VirtualMachineScaleSetExtensionsClientListResult` -- New struct `VirtualMachineScaleSetExtensionsClientUpdatePoller` -- New struct `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse` -- New struct `VirtualMachineScaleSetExtensionsClientUpdateResponse` -- New struct `VirtualMachineScaleSetExtensionsClientUpdateResult` -- New struct `VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions` -- New struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions` -- New struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions` -- New struct `VirtualMachineScaleSetRollingUpgradesClientCancelPoller` -- New struct `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse` -- New struct `VirtualMachineScaleSetRollingUpgradesClientCancelResponse` -- New struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions` -- New struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse` -- New struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResult` -- New struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller` -- New struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse` -- New struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse` -- New struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller` -- New struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse` -- New struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions` -- New struct `VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions` -- New struct `VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions` -- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller` -- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResult` -- New struct `VirtualMachineScaleSetVMExtensionsClientDeletePoller` -- New struct `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientDeleteResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientGetOptions` -- New struct `VirtualMachineScaleSetVMExtensionsClientGetResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientGetResult` -- New struct `VirtualMachineScaleSetVMExtensionsClientListOptions` -- New struct `VirtualMachineScaleSetVMExtensionsClientListResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientListResult` -- New struct `VirtualMachineScaleSetVMExtensionsClientUpdatePoller` -- New struct `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse` -- New struct `VirtualMachineScaleSetVMExtensionsClientUpdateResult` -- New struct `VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions` -- New struct `VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions` -- New struct `VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions` -- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller` -- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResult` -- New struct `VirtualMachineScaleSetVMRunCommandsClientDeletePoller` -- New struct `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientDeleteResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientGetOptions` -- New struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientGetResult` -- New struct `VirtualMachineScaleSetVMRunCommandsClientListOptions` -- New struct `VirtualMachineScaleSetVMRunCommandsClientListPager` -- New struct `VirtualMachineScaleSetVMRunCommandsClientListResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientListResult` -- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePoller` -- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse` -- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResult` -- New struct `VirtualMachineScaleSetVMsClientBeginDeallocateOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginDeleteOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginPowerOffOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginRedeployOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginReimageAllOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginReimageOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginRestartOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginRunCommandOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginStartOptions` -- New struct `VirtualMachineScaleSetVMsClientBeginUpdateOptions` -- New struct `VirtualMachineScaleSetVMsClientDeallocatePoller` -- New struct `VirtualMachineScaleSetVMsClientDeallocatePollerResponse` -- New struct `VirtualMachineScaleSetVMsClientDeallocateResponse` -- New struct `VirtualMachineScaleSetVMsClientDeletePoller` -- New struct `VirtualMachineScaleSetVMsClientDeletePollerResponse` -- New struct `VirtualMachineScaleSetVMsClientDeleteResponse` -- New struct `VirtualMachineScaleSetVMsClientGetInstanceViewOptions` -- New struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse` -- New struct `VirtualMachineScaleSetVMsClientGetInstanceViewResult` -- New struct `VirtualMachineScaleSetVMsClientGetOptions` -- New struct `VirtualMachineScaleSetVMsClientGetResponse` -- New struct `VirtualMachineScaleSetVMsClientGetResult` -- New struct `VirtualMachineScaleSetVMsClientListOptions` -- New struct `VirtualMachineScaleSetVMsClientListPager` -- New struct `VirtualMachineScaleSetVMsClientListResponse` -- New struct `VirtualMachineScaleSetVMsClientListResult` -- New struct `VirtualMachineScaleSetVMsClientPerformMaintenancePoller` -- New struct `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse` -- New struct `VirtualMachineScaleSetVMsClientPerformMaintenanceResponse` -- New struct `VirtualMachineScaleSetVMsClientPowerOffPoller` -- New struct `VirtualMachineScaleSetVMsClientPowerOffPollerResponse` -- New struct `VirtualMachineScaleSetVMsClientPowerOffResponse` -- New struct `VirtualMachineScaleSetVMsClientRedeployPoller` -- New struct `VirtualMachineScaleSetVMsClientRedeployPollerResponse` -- New struct `VirtualMachineScaleSetVMsClientRedeployResponse` -- New struct `VirtualMachineScaleSetVMsClientReimageAllPoller` -- New struct `VirtualMachineScaleSetVMsClientReimageAllPollerResponse` -- New struct `VirtualMachineScaleSetVMsClientReimageAllResponse` -- New struct `VirtualMachineScaleSetVMsClientReimagePoller` -- New struct `VirtualMachineScaleSetVMsClientReimagePollerResponse` -- New struct `VirtualMachineScaleSetVMsClientReimageResponse` -- New struct `VirtualMachineScaleSetVMsClientRestartPoller` -- New struct `VirtualMachineScaleSetVMsClientRestartPollerResponse` -- New struct `VirtualMachineScaleSetVMsClientRestartResponse` -- New struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions` -- New struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse` -- New struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResult` -- New struct `VirtualMachineScaleSetVMsClientRunCommandPoller` -- New struct `VirtualMachineScaleSetVMsClientRunCommandPollerResponse` -- New struct `VirtualMachineScaleSetVMsClientRunCommandResponse` -- New struct `VirtualMachineScaleSetVMsClientRunCommandResult` -- New struct `VirtualMachineScaleSetVMsClientSimulateEvictionOptions` -- New struct `VirtualMachineScaleSetVMsClientSimulateEvictionResponse` -- New struct `VirtualMachineScaleSetVMsClientStartPoller` -- New struct `VirtualMachineScaleSetVMsClientStartPollerResponse` -- New struct `VirtualMachineScaleSetVMsClientStartResponse` -- New struct `VirtualMachineScaleSetVMsClientUpdatePoller` -- New struct `VirtualMachineScaleSetVMsClientUpdatePollerResponse` -- New struct `VirtualMachineScaleSetVMsClientUpdateResponse` -- New struct `VirtualMachineScaleSetVMsClientUpdateResult` -- New struct `VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions` -- New struct `VirtualMachineScaleSetsClientBeginDeallocateOptions` -- New struct `VirtualMachineScaleSetsClientBeginDeleteInstancesOptions` -- New struct `VirtualMachineScaleSetsClientBeginDeleteOptions` -- New struct `VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions` -- New struct `VirtualMachineScaleSetsClientBeginPowerOffOptions` -- New struct `VirtualMachineScaleSetsClientBeginRedeployOptions` -- New struct `VirtualMachineScaleSetsClientBeginReimageAllOptions` -- New struct `VirtualMachineScaleSetsClientBeginReimageOptions` -- New struct `VirtualMachineScaleSetsClientBeginRestartOptions` -- New struct `VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions` -- New struct `VirtualMachineScaleSetsClientBeginStartOptions` -- New struct `VirtualMachineScaleSetsClientBeginUpdateInstancesOptions` -- New struct `VirtualMachineScaleSetsClientBeginUpdateOptions` -- New struct `VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions` -- New struct `VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse` -- New struct `VirtualMachineScaleSetsClientCreateOrUpdatePoller` -- New struct `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse` -- New struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse` -- New struct `VirtualMachineScaleSetsClientCreateOrUpdateResult` -- New struct `VirtualMachineScaleSetsClientDeallocatePoller` -- New struct `VirtualMachineScaleSetsClientDeallocatePollerResponse` -- New struct `VirtualMachineScaleSetsClientDeallocateResponse` -- New struct `VirtualMachineScaleSetsClientDeleteInstancesPoller` -- New struct `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse` -- New struct `VirtualMachineScaleSetsClientDeleteInstancesResponse` -- New struct `VirtualMachineScaleSetsClientDeletePoller` -- New struct `VirtualMachineScaleSetsClientDeletePollerResponse` -- New struct `VirtualMachineScaleSetsClientDeleteResponse` -- New struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions` -- New struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` -- New struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResult` -- New struct `VirtualMachineScaleSetsClientGetInstanceViewOptions` -- New struct `VirtualMachineScaleSetsClientGetInstanceViewResponse` -- New struct `VirtualMachineScaleSetsClientGetInstanceViewResult` -- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions` -- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager` -- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse` -- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResult` -- New struct `VirtualMachineScaleSetsClientGetOptions` -- New struct `VirtualMachineScaleSetsClientGetResponse` -- New struct `VirtualMachineScaleSetsClientGetResult` -- New struct `VirtualMachineScaleSetsClientListAllOptions` -- New struct `VirtualMachineScaleSetsClientListAllPager` -- New struct `VirtualMachineScaleSetsClientListAllResponse` -- New struct `VirtualMachineScaleSetsClientListAllResult` -- New struct `VirtualMachineScaleSetsClientListByLocationOptions` -- New struct `VirtualMachineScaleSetsClientListByLocationPager` -- New struct `VirtualMachineScaleSetsClientListByLocationResponse` -- New struct `VirtualMachineScaleSetsClientListByLocationResult` -- New struct `VirtualMachineScaleSetsClientListOptions` -- New struct `VirtualMachineScaleSetsClientListPager` -- New struct `VirtualMachineScaleSetsClientListResponse` -- New struct `VirtualMachineScaleSetsClientListResult` -- New struct `VirtualMachineScaleSetsClientListSKUsOptions` -- New struct `VirtualMachineScaleSetsClientListSKUsPager` -- New struct `VirtualMachineScaleSetsClientListSKUsResponse` -- New struct `VirtualMachineScaleSetsClientListSKUsResult` -- New struct `VirtualMachineScaleSetsClientPerformMaintenancePoller` -- New struct `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse` -- New struct `VirtualMachineScaleSetsClientPerformMaintenanceResponse` -- New struct `VirtualMachineScaleSetsClientPowerOffPoller` -- New struct `VirtualMachineScaleSetsClientPowerOffPollerResponse` -- New struct `VirtualMachineScaleSetsClientPowerOffResponse` -- New struct `VirtualMachineScaleSetsClientRedeployPoller` -- New struct `VirtualMachineScaleSetsClientRedeployPollerResponse` -- New struct `VirtualMachineScaleSetsClientRedeployResponse` -- New struct `VirtualMachineScaleSetsClientReimageAllPoller` -- New struct `VirtualMachineScaleSetsClientReimageAllPollerResponse` -- New struct `VirtualMachineScaleSetsClientReimageAllResponse` -- New struct `VirtualMachineScaleSetsClientReimagePoller` -- New struct `VirtualMachineScaleSetsClientReimagePollerResponse` -- New struct `VirtualMachineScaleSetsClientReimageResponse` -- New struct `VirtualMachineScaleSetsClientRestartPoller` -- New struct `VirtualMachineScaleSetsClientRestartPollerResponse` -- New struct `VirtualMachineScaleSetsClientRestartResponse` -- New struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller` -- New struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse` -- New struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse` -- New struct `VirtualMachineScaleSetsClientStartPoller` -- New struct `VirtualMachineScaleSetsClientStartPollerResponse` -- New struct `VirtualMachineScaleSetsClientStartResponse` -- New struct `VirtualMachineScaleSetsClientUpdateInstancesPoller` -- New struct `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse` -- New struct `VirtualMachineScaleSetsClientUpdateInstancesResponse` -- New struct `VirtualMachineScaleSetsClientUpdatePoller` -- New struct `VirtualMachineScaleSetsClientUpdatePollerResponse` -- New struct `VirtualMachineScaleSetsClientUpdateResponse` -- New struct `VirtualMachineScaleSetsClientUpdateResult` -- New struct `VirtualMachineSizesClientListOptions` -- New struct `VirtualMachineSizesClientListResponse` -- New struct `VirtualMachineSizesClientListResult` -- New struct `VirtualMachinesClientAssessPatchesPoller` -- New struct `VirtualMachinesClientAssessPatchesPollerResponse` -- New struct `VirtualMachinesClientAssessPatchesResponse` -- New struct `VirtualMachinesClientAssessPatchesResult` -- New struct `VirtualMachinesClientBeginAssessPatchesOptions` -- New struct `VirtualMachinesClientBeginCaptureOptions` -- New struct `VirtualMachinesClientBeginConvertToManagedDisksOptions` -- New struct `VirtualMachinesClientBeginCreateOrUpdateOptions` -- New struct `VirtualMachinesClientBeginDeallocateOptions` -- New struct `VirtualMachinesClientBeginDeleteOptions` -- New struct `VirtualMachinesClientBeginInstallPatchesOptions` -- New struct `VirtualMachinesClientBeginPerformMaintenanceOptions` -- New struct `VirtualMachinesClientBeginPowerOffOptions` -- New struct `VirtualMachinesClientBeginReapplyOptions` -- New struct `VirtualMachinesClientBeginRedeployOptions` -- New struct `VirtualMachinesClientBeginReimageOptions` -- New struct `VirtualMachinesClientBeginRestartOptions` -- New struct `VirtualMachinesClientBeginRunCommandOptions` -- New struct `VirtualMachinesClientBeginStartOptions` -- New struct `VirtualMachinesClientBeginUpdateOptions` -- New struct `VirtualMachinesClientCapturePoller` -- New struct `VirtualMachinesClientCapturePollerResponse` -- New struct `VirtualMachinesClientCaptureResponse` -- New struct `VirtualMachinesClientCaptureResult` -- New struct `VirtualMachinesClientConvertToManagedDisksPoller` -- New struct `VirtualMachinesClientConvertToManagedDisksPollerResponse` -- New struct `VirtualMachinesClientConvertToManagedDisksResponse` -- New struct `VirtualMachinesClientCreateOrUpdatePoller` -- New struct `VirtualMachinesClientCreateOrUpdatePollerResponse` -- New struct `VirtualMachinesClientCreateOrUpdateResponse` -- New struct `VirtualMachinesClientCreateOrUpdateResult` -- New struct `VirtualMachinesClientDeallocatePoller` -- New struct `VirtualMachinesClientDeallocatePollerResponse` -- New struct `VirtualMachinesClientDeallocateResponse` -- New struct `VirtualMachinesClientDeletePoller` -- New struct `VirtualMachinesClientDeletePollerResponse` -- New struct `VirtualMachinesClientDeleteResponse` -- New struct `VirtualMachinesClientGeneralizeOptions` -- New struct `VirtualMachinesClientGeneralizeResponse` -- New struct `VirtualMachinesClientGetOptions` -- New struct `VirtualMachinesClientGetResponse` -- New struct `VirtualMachinesClientGetResult` -- New struct `VirtualMachinesClientInstallPatchesPoller` -- New struct `VirtualMachinesClientInstallPatchesPollerResponse` -- New struct `VirtualMachinesClientInstallPatchesResponse` -- New struct `VirtualMachinesClientInstallPatchesResult` -- New struct `VirtualMachinesClientInstanceViewOptions` -- New struct `VirtualMachinesClientInstanceViewResponse` -- New struct `VirtualMachinesClientInstanceViewResult` -- New struct `VirtualMachinesClientListAllOptions` -- New struct `VirtualMachinesClientListAllPager` -- New struct `VirtualMachinesClientListAllResponse` -- New struct `VirtualMachinesClientListAllResult` -- New struct `VirtualMachinesClientListAvailableSizesOptions` -- New struct `VirtualMachinesClientListAvailableSizesResponse` -- New struct `VirtualMachinesClientListAvailableSizesResult` -- New struct `VirtualMachinesClientListByLocationOptions` -- New struct `VirtualMachinesClientListByLocationPager` -- New struct `VirtualMachinesClientListByLocationResponse` -- New struct `VirtualMachinesClientListByLocationResult` -- New struct `VirtualMachinesClientListOptions` -- New struct `VirtualMachinesClientListPager` -- New struct `VirtualMachinesClientListResponse` -- New struct `VirtualMachinesClientListResult` -- New struct `VirtualMachinesClientPerformMaintenancePoller` -- New struct `VirtualMachinesClientPerformMaintenancePollerResponse` -- New struct `VirtualMachinesClientPerformMaintenanceResponse` -- New struct `VirtualMachinesClientPowerOffPoller` -- New struct `VirtualMachinesClientPowerOffPollerResponse` -- New struct `VirtualMachinesClientPowerOffResponse` -- New struct `VirtualMachinesClientReapplyPoller` -- New struct `VirtualMachinesClientReapplyPollerResponse` -- New struct `VirtualMachinesClientReapplyResponse` -- New struct `VirtualMachinesClientRedeployPoller` -- New struct `VirtualMachinesClientRedeployPollerResponse` -- New struct `VirtualMachinesClientRedeployResponse` -- New struct `VirtualMachinesClientReimagePoller` -- New struct `VirtualMachinesClientReimagePollerResponse` -- New struct `VirtualMachinesClientReimageResponse` -- New struct `VirtualMachinesClientRestartPoller` -- New struct `VirtualMachinesClientRestartPollerResponse` -- New struct `VirtualMachinesClientRestartResponse` -- New struct `VirtualMachinesClientRetrieveBootDiagnosticsDataOptions` -- New struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse` -- New struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResult` -- New struct `VirtualMachinesClientRunCommandPoller` -- New struct `VirtualMachinesClientRunCommandPollerResponse` -- New struct `VirtualMachinesClientRunCommandResponse` -- New struct `VirtualMachinesClientRunCommandResult` -- New struct `VirtualMachinesClientSimulateEvictionOptions` -- New struct `VirtualMachinesClientSimulateEvictionResponse` -- New struct `VirtualMachinesClientStartPoller` -- New struct `VirtualMachinesClientStartPollerResponse` -- New struct `VirtualMachinesClientStartResponse` -- New struct `VirtualMachinesClientUpdatePoller` -- New struct `VirtualMachinesClientUpdatePollerResponse` -- New struct `VirtualMachinesClientUpdateResponse` -- New struct `VirtualMachinesClientUpdateResult` -- New field `Tags` in struct `CapacityReservationUpdate` -- New field `SupportedCapabilities` in struct `SnapshotUpdateProperties` -- New field `Tags` in struct `AvailabilitySetUpdate` -- New field `Location` in struct `Image` -- New field `Tags` in struct `Image` -- New field `ID` in struct `Image` -- New field `Name` in struct `Image` -- New field `Type` in struct `Image` -- New field `Name` in struct `RestorePoint` -- New field `Type` in struct `RestorePoint` -- New field `ID` in struct `RestorePoint` -- New field `Location` in struct `SSHPublicKeyResource` -- New field `Tags` in struct `SSHPublicKeyResource` -- New field `ID` in struct `SSHPublicKeyResource` -- New field `Name` in struct `SSHPublicKeyResource` -- New field `Type` in struct `SSHPublicKeyResource` -- New field `Tags` in struct `SSHPublicKeyUpdateResource` -- New field `ID` in struct `VirtualMachineImageResource` -- New field `BlobContainerSasURI` in struct `RequestRateByIntervalInput` -- New field `FromTime` in struct `RequestRateByIntervalInput` -- New field `ToTime` in struct `RequestRateByIntervalInput` -- New field `GroupByOperationName` in struct `RequestRateByIntervalInput` -- New field `GroupByClientApplicationID` in struct `RequestRateByIntervalInput` -- New field `GroupByResourceName` in struct `RequestRateByIntervalInput` -- New field `GroupByThrottlePolicy` in struct `RequestRateByIntervalInput` -- New field `GroupByUserAgent` in struct `RequestRateByIntervalInput` -- New field `Tags` in struct `DedicatedHostGroupUpdate` -- New field `Name` in struct `VirtualMachineScaleSet` -- New field `Location` in struct `VirtualMachineScaleSet` -- New field `ID` in struct `VirtualMachineScaleSet` -- New field `Type` in struct `VirtualMachineScaleSet` -- New field `Tags` in struct `VirtualMachineScaleSet` -- New field `Location` in struct `Gallery` -- New field `Tags` in struct `Gallery` -- New field `ID` in struct `Gallery` -- New field `Name` in struct `Gallery` -- New field `Type` in struct `Gallery` -- New field `ID` in struct `SubResourceWithColocationStatus` -- New field `SecurityProfile` in struct `SnapshotProperties` -- New field `Tags` in struct `CapacityReservationGroupUpdate` -- New field `Name` in struct `CapacityReservationGroup` -- New field `Type` in struct `CapacityReservationGroup` -- New field `Location` in struct `CapacityReservationGroup` -- New field `Tags` in struct `CapacityReservationGroup` -- New field `ID` in struct `CapacityReservationGroup` -- New field `Tags` in struct `ProximityPlacementGroupUpdate` -- New field `Tags` in struct `VirtualMachineExtensionUpdate` -- New field `Tags` in struct `VirtualMachineRunCommandUpdate` -- New field `ID` in struct `VirtualMachineScaleSetExtension` -- New field `TempDisk` in struct `VirtualMachineScaleSetReimageParameters` -- New field `Type` in struct `RollingUpgradeStatusInfo` -- New field `Location` in struct `RollingUpgradeStatusInfo` -- New field `Tags` in struct `RollingUpgradeStatusInfo` -- New field `ID` in struct `RollingUpgradeStatusInfo` -- New field `Name` in struct `RollingUpgradeStatusInfo` -- New field `Tags` in struct `GalleryApplicationVersionUpdate` -- New field `ID` in struct `GalleryApplicationVersionUpdate` -- New field `Name` in struct `GalleryApplicationVersionUpdate` -- New field `Type` in struct `GalleryApplicationVersionUpdate` -- New field `SecurityDataURI` in struct `CreationData` -- New field `StorageAccountType` in struct `ImageOSDisk` -- New field `BlobURI` in struct `ImageOSDisk` -- New field `Caching` in struct `ImageOSDisk` -- New field `DiskEncryptionSet` in struct `ImageOSDisk` -- New field `DiskSizeGB` in struct `ImageOSDisk` -- New field `Snapshot` in struct `ImageOSDisk` -- New field `ManagedDisk` in struct `ImageOSDisk` -- New field `UtilizationInfo` in struct `CapacityReservationInstanceViewWithName` -- New field `Statuses` in struct `CapacityReservationInstanceViewWithName` -- New field `Location` in struct `Snapshot` -- New field `ID` in struct `Snapshot` -- New field `Type` in struct `Snapshot` -- New field `Tags` in struct `Snapshot` -- New field `Name` in struct `Snapshot` -- New field `HostCaching` in struct `GalleryDataDiskImage` -- New field `Source` in struct `GalleryDataDiskImage` -- New field `SizeInGB` in struct `GalleryDataDiskImage` -- New field `ID` in struct `GalleryImageVersion` -- New field `Name` in struct `GalleryImageVersion` -- New field `Type` in struct `GalleryImageVersion` -- New field `Location` in struct `GalleryImageVersion` -- New field `Tags` in struct `GalleryImageVersion` -- New field `Location` in struct `DedicatedHost` -- New field `Tags` in struct `DedicatedHost` -- New field `ID` in struct `DedicatedHost` -- New field `Name` in struct `DedicatedHost` -- New field `Type` in struct `DedicatedHost` -- New field `ID` in struct `VirtualMachineCaptureResult` -- New field `ID` in struct `GalleryApplicationUpdate` -- New field `Name` in struct `GalleryApplicationUpdate` -- New field `Type` in struct `GalleryApplicationUpdate` -- New field `Tags` in struct `GalleryApplicationUpdate` -- New field `ID` in struct `GalleryImageVersionUpdate` -- New field `Name` in struct `GalleryImageVersionUpdate` -- New field `Type` in struct `GalleryImageVersionUpdate` -- New field `Tags` in struct `GalleryImageVersionUpdate` -- New field `ID` in struct `VirtualMachineScaleSetVMExtensionUpdate` -- New field `ID` in struct `VirtualMachineScaleSetNetworkConfiguration` -- New field `Tags` in struct `RestorePointCollectionUpdate` -- New field `ID` in struct `DiskEncryptionSetParameters` -- New field `ID` in struct `VirtualMachineScaleSetVMExtension` -- New field `Type` in struct `VirtualMachine` -- New field `Tags` in struct `VirtualMachine` -- New field `Location` in struct `VirtualMachine` -- New field `ID` in struct `VirtualMachine` -- New field `Name` in struct `VirtualMachine` -- New field `ID` in struct `DiskEncryptionSet` -- New field `Name` in struct `DiskEncryptionSet` -- New field `Type` in struct `DiskEncryptionSet` -- New field `Location` in struct `DiskEncryptionSet` -- New field `Tags` in struct `DiskEncryptionSet` -- New field `Tags` in struct `ImageUpdate` -- New field `DiskEncryptionSetID` in struct `OSDiskImageEncryption` -- New field `Tags` in struct `GalleryUpdate` -- New field `ID` in struct `GalleryUpdate` -- New field `Name` in struct `GalleryUpdate` -- New field `Type` in struct `GalleryUpdate` -- New field `Name` in struct `CapacityReservation` -- New field `Type` in struct `CapacityReservation` -- New field `Location` in struct `CapacityReservation` -- New field `Tags` in struct `CapacityReservation` -- New field `ID` in struct `CapacityReservation` -- New field `Tags` in struct `VirtualMachineUpdate` -- New field `ID` in struct `ManagedDiskParameters` -- New field `Identifier` in struct `CommunityGallery` -- New field `Location` in struct `CommunityGallery` -- New field `Name` in struct `CommunityGallery` -- New field `Type` in struct `CommunityGallery` -- New field `DiskSizeGB` in struct `ImageDataDisk` -- New field `ManagedDisk` in struct `ImageDataDisk` -- New field `Snapshot` in struct `ImageDataDisk` -- New field `StorageAccountType` in struct `ImageDataDisk` -- New field `BlobURI` in struct `ImageDataDisk` -- New field `Caching` in struct `ImageDataDisk` -- New field `DiskEncryptionSet` in struct `ImageDataDisk` -- New field `HostCaching` in struct `GalleryOSDiskImage` -- New field `Source` in struct `GalleryOSDiskImage` -- New field `SizeInGB` in struct `GalleryOSDiskImage` -- New field `GetSecureVMGuestStateSAS` in struct `GrantAccessData` -- New field `ID` in struct `VirtualMachineScaleSetUpdateIPConfiguration` -- New field `Name` in struct `VirtualMachineExtensionImage` -- New field `Type` in struct `VirtualMachineExtensionImage` -- New field `Location` in struct `VirtualMachineExtensionImage` -- New field `Tags` in struct `VirtualMachineExtensionImage` -- New field `ID` in struct `VirtualMachineExtensionImage` -- New field `ID` in struct `VirtualMachineScaleSetIPConfiguration` -- New field `Location` in struct `PirSharedGalleryResource` -- New field `Name` in struct `PirSharedGalleryResource` -- New field `SecurityDataAccessSAS` in struct `AccessURI` -- New field `Tags` in struct `VirtualMachineExtension` -- New field `ID` in struct `VirtualMachineExtension` -- New field `Name` in struct `VirtualMachineExtension` -- New field `Type` in struct `VirtualMachineExtension` -- New field `Location` in struct `VirtualMachineExtension` -- New field `Name` in struct `DedicatedHostGroup` -- New field `Type` in struct `DedicatedHostGroup` -- New field `Location` in struct `DedicatedHostGroup` -- New field `Tags` in struct `DedicatedHostGroup` -- New field `ID` in struct `DedicatedHostGroup` -- New field `Tags` in struct `GalleryImageUpdate` -- New field `ID` in struct `GalleryImageUpdate` -- New field `Name` in struct `GalleryImageUpdate` -- New field `Type` in struct `GalleryImageUpdate` -- New field `Tags` in struct `VirtualMachineScaleSetVM` -- New field `ID` in struct `VirtualMachineScaleSetVM` -- New field `Location` in struct `VirtualMachineScaleSetVM` -- New field `Name` in struct `VirtualMachineScaleSetVM` -- New field `Type` in struct `VirtualMachineScaleSetVM` -- New field `ExtendedLocation` in struct `VirtualMachineImage` -- New field `ID` in struct `VirtualMachineImage` -- New field `Tags` in struct `VirtualMachineImage` -- New field `Location` in struct `VirtualMachineImage` -- New field `Name` in struct `VirtualMachineImage` -- New field `ID` in struct `ProximityPlacementGroup` -- New field `Name` in struct `ProximityPlacementGroup` -- New field `Type` in struct `ProximityPlacementGroup` -- New field `Location` in struct `ProximityPlacementGroup` -- New field `Tags` in struct `ProximityPlacementGroup` -- New field `Type` in struct `VirtualMachineRunCommand` -- New field `Location` in struct `VirtualMachineRunCommand` -- New field `Tags` in struct `VirtualMachineRunCommand` -- New field `ID` in struct `VirtualMachineRunCommand` -- New field `Name` in struct `VirtualMachineRunCommand` -- New field `ID` in struct `RunCommandDocument` -- New field `Label` in struct `RunCommandDocument` -- New field `OSType` in struct `RunCommandDocument` -- New field `Schema` in struct `RunCommandDocument` -- New field `Description` in struct `RunCommandDocument` -- New field `ReplicationMode` in struct `GalleryApplicationVersionPublishingProfile` -- New field `StorageAccountType` in struct `GalleryApplicationVersionPublishingProfile` -- New field `TargetRegions` in struct `GalleryApplicationVersionPublishingProfile` -- New field `ExcludeFromLatest` in struct `GalleryApplicationVersionPublishingProfile` -- New field `PublishedDate` in struct `GalleryApplicationVersionPublishingProfile` -- New field `EndOfLifeDate` in struct `GalleryApplicationVersionPublishingProfile` -- New field `ReplicaCount` in struct `GalleryApplicationVersionPublishingProfile` -- New field `ID` in struct `ImageReference` -- New field `Tags` in struct `DedicatedHostUpdate` -- New field `Location` in struct `AvailabilitySet` -- New field `Tags` in struct `AvailabilitySet` -- New field `ID` in struct `AvailabilitySet` -- New field `Name` in struct `AvailabilitySet` -- New field `Type` in struct `AvailabilitySet` -- New field `DiskEncryptionSetID` in struct `DataDiskImageEncryption` -- New field `Identifier` in struct `SharedGallery` -- New field `Location` in struct `SharedGallery` -- New field `Name` in struct `SharedGallery` -- New field `ID` in struct `DiskRestorePoint` -- New field `Name` in struct `DiskRestorePoint` -- New field `Type` in struct `DiskRestorePoint` -- New field `SourceResourceLocation` in struct `DiskRestorePointProperties` -- New field `ReplicationState` in struct `DiskRestorePointProperties` -- New field `Error` in struct `CloudError` -- New field `EndOfLifeDate` in struct `GalleryImageVersionPublishingProfile` -- New field `ExcludeFromLatest` in struct `GalleryImageVersionPublishingProfile` -- New field `ReplicaCount` in struct `GalleryImageVersionPublishingProfile` -- New field `ReplicationMode` in struct `GalleryImageVersionPublishingProfile` -- New field `StorageAccountType` in struct `GalleryImageVersionPublishingProfile` -- New field `TargetRegions` in struct `GalleryImageVersionPublishingProfile` -- New field `PublishedDate` in struct `GalleryImageVersionPublishingProfile` -- New field `ID` in struct `RestorePointCollection` -- New field `Name` in struct `RestorePointCollection` -- New field `Type` in struct `RestorePointCollection` -- New field `Location` in struct `RestorePointCollection` -- New field `Tags` in struct `RestorePointCollection` -- New field `SecureVMDiskEncryptionSetID` in struct `DiskSecurityProfile` -- New field `Tags` in struct `VirtualMachineScaleSetUpdate` -- New field `Identifier` in struct `SharedGalleryImage` -- New field `Location` in struct `SharedGalleryImage` -- New field `Name` in struct `SharedGalleryImage` -- New field `Location` in struct `GalleryApplication` -- New field `Tags` in struct `GalleryApplication` -- New field `ID` in struct `GalleryApplication` -- New field `Name` in struct `GalleryApplication` -- New field `Type` in struct `GalleryApplication` -- New field `Location` in struct `CommunityGalleryImage` -- New field `Name` in struct `CommunityGalleryImage` -- New field `Type` in struct `CommunityGalleryImage` -- New field `Identifier` in struct `CommunityGalleryImage` -- New field `ID` in struct `VirtualMachineScaleSetExtensionUpdate` -- New field `Location` in struct `DiskAccess` -- New field `Tags` in struct `DiskAccess` -- New field `ID` in struct `DiskAccess` -- New field `Name` in struct `DiskAccess` -- New field `Type` in struct `DiskAccess` -- New field `ToTime` in struct `ThrottledRequestsInput` -- New field `GroupByClientApplicationID` in struct `ThrottledRequestsInput` -- New field `GroupByOperationName` in struct `ThrottledRequestsInput` -- New field `GroupByResourceName` in struct `ThrottledRequestsInput` -- New field `GroupByThrottlePolicy` in struct `ThrottledRequestsInput` -- New field `GroupByUserAgent` in struct `ThrottledRequestsInput` -- New field `BlobContainerSasURI` in struct `ThrottledRequestsInput` -- New field `FromTime` in struct `ThrottledRequestsInput` -- New field `ID` in struct `NetworkInterfaceReference` -- New field `TempDisk` in struct `VirtualMachineScaleSetVMReimageParameters` -- New field `Identifier` in struct `SharedGalleryImageVersion` -- New field `Location` in struct `SharedGalleryImageVersion` -- New field `Name` in struct `SharedGalleryImageVersion` -- New field `AssetID` in struct `DedicatedHostInstanceViewWithName` -- New field `AvailableCapacity` in struct `DedicatedHostInstanceViewWithName` -- New field `Statuses` in struct `DedicatedHostInstanceViewWithName` -- New field `Tags` in struct `GalleryImage` -- New field `ID` in struct `GalleryImage` -- New field `Name` in struct `GalleryImage` -- New field `Type` in struct `GalleryImage` -- New field `Location` in struct `GalleryImage` -- New field `Type` in struct `GalleryApplicationVersion` -- New field `Location` in struct `GalleryApplicationVersion` -- New field `Tags` in struct `GalleryApplicationVersion` -- New field `ID` in struct `GalleryApplicationVersion` -- New field `Name` in struct `GalleryApplicationVersion` -- New field `Identifier` in struct `CommunityGalleryImageVersion` -- New field `Location` in struct `CommunityGalleryImageVersion` -- New field `Name` in struct `CommunityGalleryImageVersion` -- New field `Type` in struct `CommunityGalleryImageVersion` -- New field `Location` in struct `Disk` -- New field `ID` in struct `Disk` -- New field `Type` in struct `Disk` -- New field `Tags` in struct `Disk` -- New field `Name` in struct `Disk` -- New field `ID` in struct `VirtualMachineScaleSetUpdateNetworkConfiguration` - - -## 0.2.1 (2021-11-26) - -### Other Changes - -- Now use `github.com/Azure/azure-sdk-for-go/sdk/azidentity@v0.12.0` explicitly. - -## 0.2.0 (2021-10-29) - -### Breaking Changes - -- `arm.Connection` has been removed in `github.com/Azure/azure-sdk-for-go/sdk/azcore/v0.20.0` -- The parameters of `NewXXXClient` has been changed from `(con *arm.Connection, subscriptionID string)` to `(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions)` - -## 0.1.0 (2021-09-29) -- To better align with the Azure SDK guidelines (https://azure.github.io/azure-sdk/general_introduction.html), we have decided to change the module path to "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute". Therefore, we are deprecating the old module path (which is "github.com/Azure/azure-sdk-for-go/sdk/compute/armcompute") to avoid confusion. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/autorest.md deleted file mode 100644 index 6586bd0d..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/autorest.md +++ /dev/null @@ -1,12 +0,0 @@ -### AutoRest Configuration - -> see https://aka.ms/autorest - -``` yaml -azure-arm: true -require: -- https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/compute/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/compute/resource-manager/readme.go.md -license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.0.0 -``` \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md new file mode 100644 index 00000000..b363a53e --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md @@ -0,0 +1,421 @@ +# Release History + +## 5.7.0 (2024-04-26) +### Features Added + +- New value `DiffDiskPlacementNvmeDisk` added to enum type `DiffDiskPlacement` +- New value `DiskCreateOptionTypesCopy`, `DiskCreateOptionTypesRestore` added to enum type `DiskCreateOptionTypes` +- New enum type `ResourceIDOptionsForGetCapacityReservationGroups` with values `ResourceIDOptionsForGetCapacityReservationGroupsAll`, `ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription`, `ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription` +- New struct `EventGridAndResourceGraph` +- New struct `ScheduledEventsAdditionalPublishingTargets` +- New struct `ScheduledEventsPolicy` +- New struct `UserInitiatedReboot` +- New struct `UserInitiatedRedeploy` +- New field `ResourceIDsOnly` in struct `CapacityReservationGroupsClientListBySubscriptionOptions` +- New field `SourceResource` in struct `DataDisk` +- New field `Caching`, `DeleteOption`, `DiskEncryptionSet`, `WriteAcceleratorEnabled` in struct `DataDisksToAttach` +- New field `ScheduledEventsPolicy` in struct `VirtualMachineProperties` +- New field `ScheduledEventsPolicy` in struct `VirtualMachineScaleSetProperties` +- New field `ForceUpdateOSDiskForEphemeral` in struct `VirtualMachineScaleSetReimageParameters` +- New field `DiffDiskSettings` in struct `VirtualMachineScaleSetUpdateOSDisk` +- New field `ForceUpdateOSDiskForEphemeral` in struct `VirtualMachineScaleSetVMReimageParameters` + + +## 5.6.0 (2024-03-22) +### Features Added + +- New field `VirtualMachineID` in struct `GalleryArtifactVersionFullSource` + + +## 5.5.0 (2024-01-26) +### Features Added + +- New value `DiskSecurityTypesConfidentialVMNonPersistedTPM` added to enum type `DiskSecurityTypes` +- New enum type `ProvisionedBandwidthCopyOption` with values `ProvisionedBandwidthCopyOptionEnhanced`, `ProvisionedBandwidthCopyOptionNone` +- New field `ProvisionedBandwidthCopySpeed` in struct `CreationData` + + +## 5.4.0 (2023-12-22) +### Features Added + +- New value `ConfidentialVMEncryptionTypeNonPersistedTPM` added to enum type `ConfidentialVMEncryptionType` +- New value `ReplicationStatusTypesUefiSettings` added to enum type `ReplicationStatusTypes` +- New value `SecurityEncryptionTypesNonPersistedTPM` added to enum type `SecurityEncryptionTypes` +- New enum type `Mode` with values `ModeAudit`, `ModeEnforce` +- New enum type `SSHEncryptionTypes` with values `SSHEncryptionTypesEd25519`, `SSHEncryptionTypesRSA` +- New enum type `UefiKeyType` with values `UefiKeyTypeSHA256`, `UefiKeyTypeX509` +- New enum type `UefiSignatureTemplateName` with values `UefiSignatureTemplateNameMicrosoftUefiCertificateAuthorityTemplate`, `UefiSignatureTemplateNameMicrosoftWindowsTemplate`, `UefiSignatureTemplateNameNoSignatureTemplate` +- New function `*DedicatedHostsClient.BeginRedeploy(context.Context, string, string, string, *DedicatedHostsClientBeginRedeployOptions) (*runtime.Poller[DedicatedHostsClientRedeployResponse], error)` +- New function `*VirtualMachineScaleSetVMsClient.BeginApproveRollingUpgrade(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientApproveRollingUpgradeResponse], error)` +- New function `*VirtualMachineScaleSetVMsClient.BeginAttachDetachDataDisks(context.Context, string, string, string, AttachDetachDataDisksRequest, *VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientAttachDetachDataDisksResponse], error)` +- New function `*VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade(context.Context, string, string, *VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetsClientApproveRollingUpgradeResponse], error)` +- New function `*VirtualMachinesClient.BeginAttachDetachDataDisks(context.Context, string, string, AttachDetachDataDisksRequest, *VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*runtime.Poller[VirtualMachinesClientAttachDetachDataDisksResponse], error)` +- New struct `AttachDetachDataDisksRequest` +- New struct `CommunityGalleryMetadata` +- New struct `CommunityGalleryProperties` +- New struct `DataDisksToAttach` +- New struct `DataDisksToDetach` +- New struct `EncryptionIdentity` +- New struct `GalleryImageVersionUefiSettings` +- New struct `ImageVersionSecurityProfile` +- New struct `ProxyAgentSettings` +- New struct `ResiliencyPolicy` +- New struct `ResilientVMCreationPolicy` +- New struct `ResilientVMDeletionPolicy` +- New struct `ResourceSharingProfile` +- New struct `SSHGenerateKeyPairInputParameters` +- New struct `SharedGalleryProperties` +- New struct `UefiKey` +- New struct `UefiKeySignatures` +- New field `OSRollingUpgradeDeferral` in struct `AutomaticOSUpgradePolicy` +- New field `SharedSubscriptionIDs` in struct `CapacityReservationGroupInstanceView` +- New field `SharingProfile` in struct `CapacityReservationGroupProperties` +- New field `Properties` in struct `CommunityGallery` +- New field `ArtifactTags`, `Disclaimer` in struct `CommunityGalleryImageProperties` +- New field `ArtifactTags`, `Disclaimer` in struct `CommunityGalleryImageVersionProperties` +- New field `SecurityProfile` in struct `GalleryImageVersionProperties` +- New field `DiskControllerType` in struct `RestorePointSourceVMStorageProfile` +- New field `Parameters` in struct `SSHPublicKeysClientGenerateKeyPairOptions` +- New field `EncryptionIdentity`, `ProxyAgentSettings` in struct `SecurityProfile` +- New field `Properties` in struct `SharedGallery` +- New field `ArtifactTags` in struct `SharedGalleryImageProperties` +- New field `ArtifactTags` in struct `SharedGalleryImageVersionProperties` +- New field `Etag`, `ManagedBy` in struct `VirtualMachine` +- New field `IsVMInStandbyPool` in struct `VirtualMachineInstanceView` +- New field `Etag` in struct `VirtualMachineScaleSet` +- New field `ResiliencyPolicy` in struct `VirtualMachineScaleSetProperties` +- New field `ResiliencyPolicy` in struct `VirtualMachineScaleSetUpdateProperties` +- New field `Etag` in struct `VirtualMachineScaleSetVM` +- New field `TimeCreated` in struct `VirtualMachineScaleSetVMProfile` +- New field `IfMatch`, `IfNoneMatch` in struct `VirtualMachineScaleSetVMsClientBeginUpdateOptions` +- New field `IfMatch`, `IfNoneMatch` in struct `VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions` +- New field `IfMatch`, `IfNoneMatch` in struct `VirtualMachineScaleSetsClientBeginUpdateOptions` +- New field `IfMatch`, `IfNoneMatch` in struct `VirtualMachinesClientBeginCreateOrUpdateOptions` +- New field `IfMatch`, `IfNoneMatch` in struct `VirtualMachinesClientBeginUpdateOptions` + + +## 5.3.0 (2023-11-24) +### Features Added + +- Support for test fakes and OpenTelemetry trace spans. + + +## 5.3.0-beta.2 (2023-10-30) + +### Other Changes + +- Updated with latest code generator to fix a few issues in fakes. + +## 5.3.0-beta.1 (2023-10-09) +### Features Added + +- Support for test fakes and OpenTelemetry trace spans. + +## 5.2.0 (2023-09-22) +### Features Added + +- New value `DiskCreateOptionCopyFromSanSnapshot` added to enum type `DiskCreateOption` +- New enum type `DomainNameLabelScopeTypes` with values `DomainNameLabelScopeTypesNoReuse`, `DomainNameLabelScopeTypesResourceGroupReuse`, `DomainNameLabelScopeTypesSubscriptionReuse`, `DomainNameLabelScopeTypesTenantReuse` +- New enum type `NetworkInterfaceAuxiliaryMode` with values `NetworkInterfaceAuxiliaryModeAcceleratedConnections`, `NetworkInterfaceAuxiliaryModeFloating`, `NetworkInterfaceAuxiliaryModeNone` +- New enum type `NetworkInterfaceAuxiliarySKU` with values `NetworkInterfaceAuxiliarySKUA1`, `NetworkInterfaceAuxiliarySKUA2`, `NetworkInterfaceAuxiliarySKUA4`, `NetworkInterfaceAuxiliarySKUA8`, `NetworkInterfaceAuxiliarySKUNone` +- New field `ElasticSanResourceID` in struct `CreationData` +- New field `LastOwnershipUpdateTime` in struct `DiskProperties` +- New field `AuxiliaryMode`, `AuxiliarySKU` in struct `VirtualMachineNetworkInterfaceConfigurationProperties` +- New field `DomainNameLabelScope` in struct `VirtualMachinePublicIPAddressDNSSettingsConfiguration` +- New field `AuxiliaryMode`, `AuxiliarySKU` in struct `VirtualMachineScaleSetNetworkConfigurationProperties` +- New field `DomainNameLabelScope` in struct `VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings` +- New field `AuxiliaryMode`, `AuxiliarySKU` in struct `VirtualMachineScaleSetUpdateNetworkConfigurationProperties` +- New field `TimeCreated` in struct `VirtualMachineScaleSetVMProperties` + + +## 5.1.0 (2023-07-28) +### Features Added + +- New enum type `FileFormat` with values `FileFormatVHD`, `FileFormatVHDX` +- New field `FileFormat` in struct `GrantAccessData` + + +## 5.0.0 (2023-05-26) +### Breaking Changes + +- Type of `CommunityGalleryImageProperties.Identifier` has been changed from `*GalleryImageIdentifier` to `*CommunityGalleryImageIdentifier` +- Type of `GalleryTargetExtendedLocation.StorageAccountType` has been changed from `*StorageAccountType` to `*EdgeZoneStorageAccountType` +- Type of `RestorePointSourceVMDataDisk.DiskRestorePoint` has been changed from `*APIEntityReference` to `*DiskRestorePointAttributes` +- Type of `RestorePointSourceVMOSDisk.DiskRestorePoint` has been changed from `*APIEntityReference` to `*DiskRestorePointAttributes` +- `StorageAccountTypeStandardSSDLRS` from enum `StorageAccountType` has been removed +- Field `ID` of struct `VirtualMachineScaleSetIPConfiguration` has been removed +- Field `ID` of struct `VirtualMachineScaleSetNetworkConfiguration` has been removed +- Field `ID` of struct `VirtualMachineScaleSetUpdateIPConfiguration` has been removed +- Field `ID` of struct `VirtualMachineScaleSetUpdateNetworkConfiguration` has been removed + +### Features Added + +- New enum type `EdgeZoneStorageAccountType` with values `EdgeZoneStorageAccountTypePremiumLRS`, `EdgeZoneStorageAccountTypeStandardLRS`, `EdgeZoneStorageAccountTypeStandardSSDLRS`, `EdgeZoneStorageAccountTypeStandardZRS` +- New enum type `ExpandTypeForListVMs` with values `ExpandTypeForListVMsInstanceView` +- New enum type `ExpandTypesForListVMs` with values `ExpandTypesForListVMsInstanceView` +- New enum type `RestorePointEncryptionType` with values `RestorePointEncryptionTypeEncryptionAtRestWithCustomerKey`, `RestorePointEncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys`, `RestorePointEncryptionTypeEncryptionAtRestWithPlatformKey` +- New function `*DedicatedHostsClient.NewListAvailableSizesPager(string, string, string, *DedicatedHostsClientListAvailableSizesOptions) *runtime.Pager[DedicatedHostsClientListAvailableSizesResponse]` +- New function `*VirtualMachineScaleSetsClient.BeginReapply(context.Context, string, string, *VirtualMachineScaleSetsClientBeginReapplyOptions) (*runtime.Poller[VirtualMachineScaleSetsClientReapplyResponse], error)` +- New struct `CommunityGalleryImageIdentifier` +- New struct `DedicatedHostSizeListResult` +- New struct `DiskRestorePointAttributes` +- New struct `RestorePointEncryption` +- New struct `RunCommandManagedIdentity` +- New struct `SecurityPostureReference` +- New field `SKU` in struct `DedicatedHostUpdate` +- New field `BypassPlatformSafetyChecksOnUserSchedule` in struct `LinuxVMGuestPatchAutomaticByPlatformSettings` +- New field `HyperVGeneration` in struct `RestorePointSourceMetadata` +- New field `WriteAcceleratorEnabled` in struct `RestorePointSourceVMDataDisk` +- New field `WriteAcceleratorEnabled` in struct `RestorePointSourceVMOSDisk` +- New field `ProvisionAfterExtensions` in struct `VirtualMachineExtensionProperties` +- New field `ErrorBlobManagedIdentity`, `OutputBlobManagedIdentity`, `TreatFailureAsDeploymentFailure` in struct `VirtualMachineRunCommandProperties` +- New field `ScriptURIManagedIdentity` in struct `VirtualMachineRunCommandScriptSource` +- New field `PriorityMixPolicy`, `SpotRestorePolicy` in struct `VirtualMachineScaleSetUpdateProperties` +- New field `Location` in struct `VirtualMachineScaleSetVMExtension` +- New field `SecurityPostureReference` in struct `VirtualMachineScaleSetVMProfile` +- New field `Hibernate` in struct `VirtualMachineScaleSetsClientBeginDeallocateOptions` +- New field `Expand` in struct `VirtualMachinesClientListAllOptions` +- New field `Expand` in struct `VirtualMachinesClientListOptions` +- New field `BypassPlatformSafetyChecksOnUserSchedule` in struct `WindowsVMGuestPatchAutomaticByPlatformSettings` + + +## 4.2.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + +## 4.2.0 (2023-03-27) +### Features Added + +- New struct `ClientFactory` which is a client factory used to create any client in this module +- New value `StorageAccountTypeStandardSSDLRS` added to enum type `StorageAccountType` +- New field `ComputerName` in struct `VirtualMachineScaleSetVMInstanceView` +- New field `HyperVGeneration` in struct `VirtualMachineScaleSetVMInstanceView` +- New field `OSName` in struct `VirtualMachineScaleSetVMInstanceView` +- New field `OSVersion` in struct `VirtualMachineScaleSetVMInstanceView` + + +## 4.1.0 (2023-01-27) +### Features Added + +- New type alias `AlternativeType` with values `AlternativeTypeNone`, `AlternativeTypeOffer`, `AlternativeTypePlan` +- New type alias `ImageState` with values `ImageStateActive`, `ImageStateDeprecated`, `ImageStateScheduledForDeprecation` +- New struct `AlternativeOption` +- New struct `ImageDeprecationStatus` +- New struct `OSImageNotificationProfile` +- New struct `OSProfileProvisioningData` +- New struct `ServiceArtifactReference` +- New field `Zones` in struct `CloudService` +- New field `UserData` in struct `RestorePointSourceMetadata` +- New field `MaxSurge` in struct `RollingUpgradePolicy` +- New field `RollbackFailedInstancesOnPolicyBreach` in struct `RollingUpgradePolicy` +- New field `OSImageNotificationProfile` in struct `ScheduledEventsProfile` +- New field `ImageDeprecationStatus` in struct `VirtualMachineImageProperties` +- New field `ExactVersion` in struct `VirtualMachineReimageParameters` +- New field `OSProfile` in struct `VirtualMachineReimageParameters` +- New field `RequireGuestProvisionSignal` in struct `VirtualMachineScaleSetOSProfile` +- New field `ConstrainedMaximumCapacity` in struct `VirtualMachineScaleSetProperties` +- New field `ExactVersion` in struct `VirtualMachineScaleSetReimageParameters` +- New field `OSProfile` in struct `VirtualMachineScaleSetReimageParameters` +- New field `ServiceArtifactReference` in struct `VirtualMachineScaleSetVMProfile` +- New field `ExactVersion` in struct `VirtualMachineScaleSetVMReimageParameters` +- New field `OSProfile` in struct `VirtualMachineScaleSetVMReimageParameters` + + +## 4.0.0 (2022-10-04) +### Breaking Changes + +- Type of `GalleryImageVersionStorageProfile.Source` has been changed from `*GalleryArtifactVersionSource` to `*GalleryArtifactVersionFullSource` +- Type of `SharingProfile.CommunityGalleryInfo` has been changed from `interface{}` to `*CommunityGalleryInfo` +- Type of `VirtualMachineExtensionUpdateProperties.ProtectedSettingsFromKeyVault` has been changed from `interface{}` to `*KeyVaultSecretReference` +- Type of `GalleryOSDiskImage.Source` has been changed from `*GalleryArtifactVersionSource` to `*GalleryDiskImageSource` +- Type of `GalleryDiskImage.Source` has been changed from `*GalleryArtifactVersionSource` to `*GalleryDiskImageSource` +- Type of `GalleryDataDiskImage.Source` has been changed from `*GalleryArtifactVersionSource` to `*GalleryDiskImageSource` +- Type of `VirtualMachineScaleSetExtensionProperties.ProtectedSettingsFromKeyVault` has been changed from `interface{}` to `*KeyVaultSecretReference` +- Type of `VirtualMachineExtensionProperties.ProtectedSettingsFromKeyVault` has been changed from `interface{}` to `*KeyVaultSecretReference` +- Field `URI` of struct `GalleryArtifactVersionSource` has been removed + +### Features Added + +- New const `DiskControllerTypesSCSI` +- New const `PolicyViolationCategoryImageFlaggedUnsafe` +- New const `GalleryApplicationCustomActionParameterTypeConfigurationDataBlob` +- New const `PolicyViolationCategoryIPTheft` +- New const `PolicyViolationCategoryCopyrightValidation` +- New const `PolicyViolationCategoryOther` +- New const `GalleryApplicationCustomActionParameterTypeString` +- New const `DiskControllerTypesNVMe` +- New const `GalleryApplicationCustomActionParameterTypeLogOutputBlob` +- New type alias `DiskControllerTypes` +- New type alias `PolicyViolationCategory` +- New type alias `GalleryApplicationCustomActionParameterType` +- New function `PossiblePolicyViolationCategoryValues() []PolicyViolationCategory` +- New function `PossibleGalleryApplicationCustomActionParameterTypeValues() []GalleryApplicationCustomActionParameterType` +- New function `PossibleDiskControllerTypesValues() []DiskControllerTypes` +- New struct `GalleryApplicationCustomAction` +- New struct `GalleryApplicationCustomActionParameter` +- New struct `GalleryApplicationVersionSafetyProfile` +- New struct `GalleryArtifactSafetyProfileBase` +- New struct `GalleryArtifactVersionFullSource` +- New struct `GalleryDiskImageSource` +- New struct `GalleryImageVersionSafetyProfile` +- New struct `LatestGalleryImageVersion` +- New struct `PolicyViolation` +- New struct `PriorityMixPolicy` +- New field `DiskControllerType` in struct `VirtualMachineScaleSetUpdateStorageProfile` +- New field `HardwareProfile` in struct `VirtualMachineScaleSetUpdateVMProfile` +- New field `CustomActions` in struct `GalleryApplicationProperties` +- New field `DisableTCPStateTracking` in struct `VirtualMachineScaleSetNetworkConfigurationProperties` +- New field `DiskControllerType` in struct `StorageProfile` +- New field `OptimizedForFrequentAttach` in struct `DiskProperties` +- New field `BurstingEnabledTime` in struct `DiskProperties` +- New field `DiskControllerTypes` in struct `SupportedCapabilities` +- New field `DisableTCPStateTracking` in struct `VirtualMachineNetworkInterfaceConfigurationProperties` +- New field `EnableVMAgentPlatformUpdates` in struct `WindowsConfiguration` +- New field `PerformancePlus` in struct `CreationData` +- New field `IncrementalSnapshotFamilyID` in struct `SnapshotProperties` +- New field `OptimizedForFrequentAttach` in struct `DiskUpdateProperties` +- New field `DisableTCPStateTracking` in struct `VirtualMachineScaleSetUpdateNetworkConfigurationProperties` +- New field `ExcludeFromLatest` in struct `TargetRegion` +- New field `PrivacyStatementURI` in struct `SharedGalleryImageProperties` +- New field `Eula` in struct `SharedGalleryImageProperties` +- New field `SafetyProfile` in struct `GalleryApplicationVersionProperties` +- New field `SafetyProfile` in struct `GalleryImageVersionProperties` +- New field `EnableVMAgentPlatformUpdates` in struct `LinuxConfiguration` +- New field `CurrentCapacity` in struct `CapacityReservationUtilization` +- New field `PriorityMixPolicy` in struct `VirtualMachineScaleSetProperties` +- New field `CustomActions` in struct `GalleryApplicationVersionPublishingProfile` +- New field `PlatformFaultDomainCount` in struct `CapacityReservationProperties` +- New field `DiskControllerType` in struct `VirtualMachineScaleSetStorageProfile` + + +## 3.0.1 (2022-07-29) +### Other Changes +- Fix wrong module import for live test + +## 3.0.0 (2022-06-24) +### Breaking Changes + +- Function `*CloudServicesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesClientBeginCreateOrUpdateOptions)` to `(context.Context, string, string, CloudService, *CloudServicesClientBeginCreateOrUpdateOptions)` +- Function `*CloudServicesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesClientBeginUpdateOptions)` to `(context.Context, string, string, CloudServiceUpdate, *CloudServicesClientBeginUpdateOptions)` +- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` parameter(s) have been changed from `(context.Context, string, string, int32, *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions)` to `(context.Context, string, string, int32, UpdateDomain, *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions)` +- Type of `CloudServiceExtensionProperties.Settings` has been changed from `*string` to `interface{}` +- Type of `CloudServiceExtensionProperties.ProtectedSettings` has been changed from `*string` to `interface{}` +- Field `Parameters` of struct `CloudServicesClientBeginUpdateOptions` has been removed +- Field `Parameters` of struct `CloudServicesClientBeginCreateOrUpdateOptions` has been removed +- Field `Parameters` of struct `CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions` has been removed + +### Features Added + +- New const `CloudServiceSlotTypeProduction` +- New const `CloudServiceSlotTypeStaging` +- New function `*VirtualMachineImagesClient.ListByEdgeZone(context.Context, string, string, *VirtualMachineImagesClientListByEdgeZoneOptions) (VirtualMachineImagesClientListByEdgeZoneResponse, error)` +- New function `PossibleCloudServiceSlotTypeValues() []CloudServiceSlotType` +- New struct `SystemData` +- New struct `VMImagesInEdgeZoneListResult` +- New struct `VirtualMachineImagesClientListByEdgeZoneOptions` +- New struct `VirtualMachineImagesClientListByEdgeZoneResponse` +- New field `SystemData` in struct `CloudService` +- New field `SlotType` in struct `CloudServiceNetworkProfile` + + +## 2.0.0 (2022-06-02) +### Breaking Changes + +- Type of `GalleryProperties.ProvisioningState` has been changed from `*GalleryPropertiesProvisioningState` to `*GalleryProvisioningState` +- Type of `GalleryImageVersionProperties.ProvisioningState` has been changed from `*GalleryImageVersionPropertiesProvisioningState` to `*GalleryProvisioningState` +- Type of `GalleryImageProperties.ProvisioningState` has been changed from `*GalleryImagePropertiesProvisioningState` to `*GalleryProvisioningState` +- Type of `GalleryApplicationVersionProperties.ProvisioningState` has been changed from `*GalleryApplicationVersionPropertiesProvisioningState` to `*GalleryProvisioningState` +- Type of `VirtualMachineScaleSetIdentity.UserAssignedIdentities` has been changed from `map[string]*VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue` to `map[string]*UserAssignedIdentitiesValue` +- Const `GalleryImagePropertiesProvisioningStateFailed` has been removed +- Const `GalleryImagePropertiesProvisioningStateMigrating` has been removed +- Const `GalleryImageVersionPropertiesProvisioningStateCreating` has been removed +- Const `GalleryImageVersionPropertiesProvisioningStateMigrating` has been removed +- Const `GalleryApplicationVersionPropertiesProvisioningStateFailed` has been removed +- Const `GalleryPropertiesProvisioningStateMigrating` has been removed +- Const `GalleryApplicationVersionPropertiesProvisioningStateDeleting` has been removed +- Const `GalleryPropertiesProvisioningStateDeleting` has been removed +- Const `GalleryApplicationVersionPropertiesProvisioningStateCreating` has been removed +- Const `GalleryImageVersionPropertiesProvisioningStateSucceeded` has been removed +- Const `GalleryImagePropertiesProvisioningStateCreating` has been removed +- Const `GalleryImagePropertiesProvisioningStateUpdating` has been removed +- Const `GalleryImageVersionPropertiesProvisioningStateDeleting` has been removed +- Const `GalleryPropertiesProvisioningStateFailed` has been removed +- Const `SharingProfileGroupTypesCommunity` has been removed +- Const `GalleryApplicationVersionPropertiesProvisioningStateSucceeded` has been removed +- Const `GalleryApplicationVersionPropertiesProvisioningStateMigrating` has been removed +- Const `GalleryPropertiesProvisioningStateUpdating` has been removed +- Const `GalleryImageVersionPropertiesProvisioningStateFailed` has been removed +- Const `GalleryImagePropertiesProvisioningStateDeleting` has been removed +- Const `GalleryImageVersionPropertiesProvisioningStateUpdating` has been removed +- Const `GalleryPropertiesProvisioningStateCreating` has been removed +- Const `GalleryApplicationVersionPropertiesProvisioningStateUpdating` has been removed +- Const `GalleryImagePropertiesProvisioningStateSucceeded` has been removed +- Const `GalleryPropertiesProvisioningStateSucceeded` has been removed +- Function `PossibleGalleryPropertiesProvisioningStateValues` has been removed +- Function `PossibleGalleryImageVersionPropertiesProvisioningStateValues` has been removed +- Function `PossibleGalleryImagePropertiesProvisioningStateValues` has been removed +- Function `PossibleGalleryApplicationVersionPropertiesProvisioningStateValues` has been removed +- Struct `VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue` has been removed + +### Features Added + +- New const `GallerySharingPermissionTypesCommunity` +- New const `GalleryProvisioningStateUpdating` +- New const `SharedGalleryHostCachingReadOnly` +- New const `SharedGalleryHostCachingNone` +- New const `GalleryProvisioningStateSucceeded` +- New const `GalleryProvisioningStateFailed` +- New const `SharedGalleryHostCachingReadWrite` +- New const `GalleryProvisioningStateCreating` +- New const `DiskEncryptionSetIdentityTypeUserAssigned` +- New const `GalleryProvisioningStateMigrating` +- New const `DiskEncryptionSetIdentityTypeSystemAssignedUserAssigned` +- New const `CopyCompletionErrorReasonCopySourceNotFound` +- New const `GalleryProvisioningStateDeleting` +- New const `DiskStorageAccountTypesPremiumV2LRS` +- New function `PossibleCopyCompletionErrorReasonValues() []CopyCompletionErrorReason` +- New function `PossibleSharedGalleryHostCachingValues() []SharedGalleryHostCaching` +- New function `PossibleGalleryProvisioningStateValues() []GalleryProvisioningState` +- New function `EncryptionSetIdentity.MarshalJSON() ([]byte, error)` +- New function `*CommunityGalleryImagesClient.NewListPager(string, string, *CommunityGalleryImagesClientListOptions) *runtime.Pager[CommunityGalleryImagesClientListResponse]` +- New function `*CommunityGalleryImageVersionsClient.NewListPager(string, string, string, *CommunityGalleryImageVersionsClientListOptions) *runtime.Pager[CommunityGalleryImageVersionsClientListResponse]` +- New struct `CommunityGalleryImageList` +- New struct `CommunityGalleryImageVersionList` +- New struct `CommunityGalleryImageVersionsClientListOptions` +- New struct `CommunityGalleryImageVersionsClientListResponse` +- New struct `CommunityGalleryImagesClientListOptions` +- New struct `CommunityGalleryImagesClientListResponse` +- New struct `CopyCompletionError` +- New struct `SharedGalleryDataDiskImage` +- New struct `SharedGalleryDiskImage` +- New struct `SharedGalleryImageVersionStorageProfile` +- New struct `SharedGalleryOSDiskImage` +- New struct `UserArtifactSettings` +- New field `SharedGalleryImageID` in struct `ImageDiskReference` +- New field `CommunityGalleryImageID` in struct `ImageDiskReference` +- New field `AdvancedSettings` in struct `GalleryApplicationVersionPublishingProfile` +- New field `Settings` in struct `GalleryApplicationVersionPublishingProfile` +- New field `CopyCompletionError` in struct `SnapshotProperties` +- New field `ExcludeFromLatest` in struct `SharedGalleryImageVersionProperties` +- New field `StorageProfile` in struct `SharedGalleryImageVersionProperties` +- New field `ExcludeFromLatest` in struct `CommunityGalleryImageVersionProperties` +- New field `StorageProfile` in struct `CommunityGalleryImageVersionProperties` +- New field `Architecture` in struct `SharedGalleryImageProperties` +- New field `UserAssignedIdentities` in struct `EncryptionSetIdentity` +- New field `Eula` in struct `CommunityGalleryImageProperties` +- New field `PrivacyStatementURI` in struct `CommunityGalleryImageProperties` +- New field `Architecture` in struct `CommunityGalleryImageProperties` +- New field `FederatedClientID` in struct `DiskEncryptionSetUpdateProperties` +- New field `FederatedClientID` in struct `EncryptionSetProperties` +- New field `SecurityProfile` in struct `DiskRestorePointProperties` + + +## 1.0.0 (2022-05-16) + +The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes. + +To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/azsdk/go/mgmt/migration). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/LICENSE.txt b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/LICENSE.txt similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/LICENSE.txt rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/LICENSE.txt diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/README.md similarity index 60% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/README.md rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/README.md index 7ccd1f86..c4bf8ab3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/README.md +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/README.md @@ -1,6 +1,6 @@ # Azure Compute Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5) The `armcompute` module provides operations for working with Azure Compute. @@ -11,7 +11,7 @@ The `armcompute` module provides operations for working with Azure Compute. ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.18 or above +- Go 1.18 or above (You could download and install the latest version of Go from [here](https://go.dev/doc/install). It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this [doc](https://go.dev/doc/manage-install).) ## Install the package @@ -20,7 +20,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve Install the Azure Compute module: ```sh -go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 ``` ## Authorization @@ -33,12 +33,12 @@ cred, err := azidentity.NewDefaultAzureCredential(nil) For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). -## Clients +## Client Factory -Azure Compute modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. +Azure Compute module consists of one or more clients. We provide a client factory which could be used to create any client in this module. ```go -client, err := armcompute.NewLogAnalyticsClient(, cred, nil) +clientFactory, err := armcompute.NewClientFactory(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). @@ -49,13 +49,29 @@ options := arm.ClientOptions { Cloud: cloud.AzureChina, }, } -client, err := armcompute.NewLogAnalyticsClient(, cred, &options) +clientFactory, err := armcompute.NewClientFactory(, cred, &options) +``` + +## Clients + +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. + +```go +client := clientFactory.NewAvailabilitySetsClient() ``` +## Fakes + +The fake package contains types used for constructing in-memory fake servers used in unit tests. +This allows writing tests to cover various success/error conditions without the need for connecting to a live service. + +Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. + ## More sample code - [Availability Set](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/availabilityset) -- [Virtual Machine](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/createVM) +- [Creating a Fake](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/compute/armcompute/fake_example_test.go) +- [Virtual Machine](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/create_vm) - [Dedicated Host](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/dedicated_host) - [Disk](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/disk) - [Gallery](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/gallery) @@ -63,6 +79,15 @@ client, err := armcompute.NewLogAnalyticsClient(, cred, &option - [Snapshot](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/snapshot) - [Virtual Machine Scale Set](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/vmscaleset) +## Major Version Upgrade + +Go uses [semantic import versioning](https://github.com/golang/go/wiki/Modules#semantic-import-versioning) to ensure a good backward compatibility for modules. For Azure Go management SDK, we usually upgrade module version according to cooresponding service's API version. Regarding it could be a complicated experience for major version upgrade, we will try our best to keep the SDK API stable and release new version in backward compatible way. However, if any unavoidable breaking changes and a new major version releases for SDK modules, you could use these commands under your module folder to upgrade: + +```sh +go install github.com/icholy/gomajor@latest +gomajor get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute@latest +``` + ## Provide Feedback If you encounter bugs or have suggestions, please @@ -85,4 +110,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json new file mode 100644 index 00000000..db9b10d4 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/compute/armcompute", + "Tag": "go/resourcemanager/compute/armcompute_6e7bd6d107" +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md new file mode 100644 index 00000000..5f836a65 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md @@ -0,0 +1,13 @@ +### AutoRest Configuration + +> see https://aka.ms/autorest + +``` yaml +azure-arm: true +require: +- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/compute/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/compute/resource-manager/readme.go.md +license-header: MICROSOFT_MIT_NO_VERSION +module-version: 5.7.0 +tag: package-2024-03-01 +``` diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_availabilitysets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/availabilitysets_client.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_availabilitysets_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/availabilitysets_client.go index 595afa85..b9b8536f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_availabilitysets_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/availabilitysets_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,57 +23,56 @@ import ( // AvailabilitySetsClient contains the methods for the AvailabilitySets group. // Don't use this type directly, use NewAvailabilitySetsClient() instead. type AvailabilitySetsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewAvailabilitySetsClient creates a new instance of AvailabilitySetsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAvailabilitySetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailabilitySetsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &AvailabilitySetsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Create or update an availability set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// availabilitySetName - The name of the availability set. -// parameters - Parameters supplied to the Create Availability Set operation. -// options - AvailabilitySetsClientCreateOrUpdateOptions contains the optional parameters for the AvailabilitySetsClient.CreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - availabilitySetName - The name of the availability set. +// - parameters - Parameters supplied to the Create Availability Set operation. +// - options - AvailabilitySetsClientCreateOrUpdateOptions contains the optional parameters for the AvailabilitySetsClient.CreateOrUpdate +// method. func (client *AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, availabilitySetName string, parameters AvailabilitySet, options *AvailabilitySetsClientCreateOrUpdateOptions) (AvailabilitySetsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "AvailabilitySetsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, availabilitySetName, parameters, options) if err != nil { return AvailabilitySetsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AvailabilitySetsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AvailabilitySetsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AvailabilitySetsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -93,15 +90,18 @@ func (client *AvailabilitySetsClient) createOrUpdateCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -115,21 +115,28 @@ func (client *AvailabilitySetsClient) createOrUpdateHandleResponse(resp *http.Re // Delete - Delete an availability set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// availabilitySetName - The name of the availability set. -// options - AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - availabilitySetName - The name of the availability set. +// - options - AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method. func (client *AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientDeleteOptions) (AvailabilitySetsClientDeleteResponse, error) { + var err error + const operationName = "AvailabilitySetsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, availabilitySetName, options) if err != nil { return AvailabilitySetsClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AvailabilitySetsClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return AvailabilitySetsClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return AvailabilitySetsClientDeleteResponse{}, err } return AvailabilitySetsClientDeleteResponse{}, nil } @@ -149,12 +156,12 @@ func (client *AvailabilitySetsClient) deleteCreateRequest(ctx context.Context, r return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -162,23 +169,31 @@ func (client *AvailabilitySetsClient) deleteCreateRequest(ctx context.Context, r // Get - Retrieves information about an availability set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// availabilitySetName - The name of the availability set. -// options - AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - availabilitySetName - The name of the availability set. +// - options - AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method. func (client *AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientGetOptions) (AvailabilitySetsClientGetResponse, error) { + var err error + const operationName = "AvailabilitySetsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, availabilitySetName, options) if err != nil { return AvailabilitySetsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AvailabilitySetsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AvailabilitySetsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AvailabilitySetsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -196,12 +211,12 @@ func (client *AvailabilitySetsClient) getCreateRequest(ctx context.Context, reso return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -217,35 +232,31 @@ func (client *AvailabilitySetsClient) getHandleResponse(resp *http.Response) (Av } // NewListPager - Lists all availability sets in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.List method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.NewListPager +// method. func (client *AvailabilitySetsClient) NewListPager(resourceGroupName string, options *AvailabilitySetsClientListOptions) *runtime.Pager[AvailabilitySetsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[AvailabilitySetsClientListResponse]{ More: func(page AvailabilitySetsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *AvailabilitySetsClientListResponse) (AvailabilitySetsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return AvailabilitySetsClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "AvailabilitySetsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return AvailabilitySetsClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AvailabilitySetsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -260,12 +271,12 @@ func (client *AvailabilitySetsClient) listCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,23 +293,24 @@ func (client *AvailabilitySetsClient) listHandleResponse(resp *http.Response) (A // NewListAvailableSizesPager - Lists all available virtual machine sizes that can be used to create a new virtual machine // in an existing availability set. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// availabilitySetName - The name of the availability set. -// options - AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.ListAvailableSizes -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - availabilitySetName - The name of the availability set. +// - options - AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.NewListAvailableSizesPager +// method. func (client *AvailabilitySetsClient) NewListAvailableSizesPager(resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientListAvailableSizesOptions) *runtime.Pager[AvailabilitySetsClientListAvailableSizesResponse] { return runtime.NewPager(runtime.PagingHandler[AvailabilitySetsClientListAvailableSizesResponse]{ More: func(page AvailabilitySetsClientListAvailableSizesResponse) bool { return false }, Fetcher: func(ctx context.Context, page *AvailabilitySetsClientListAvailableSizesResponse) (AvailabilitySetsClientListAvailableSizesResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "AvailabilitySetsClient.NewListAvailableSizesPager") req, err := client.listAvailableSizesCreateRequest(ctx, resourceGroupName, availabilitySetName, options) if err != nil { return AvailabilitySetsClientListAvailableSizesResponse{}, err } - resp, err := client.pl.Do(req) + resp, err := client.internal.Pipeline().Do(req) if err != nil { return AvailabilitySetsClientListAvailableSizesResponse{}, err } @@ -307,6 +319,7 @@ func (client *AvailabilitySetsClient) NewListAvailableSizesPager(resourceGroupNa } return client.listAvailableSizesHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -325,12 +338,12 @@ func (client *AvailabilitySetsClient) listAvailableSizesCreateRequest(ctx contex return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -346,35 +359,30 @@ func (client *AvailabilitySetsClient) listAvailableSizesHandleResponse(resp *htt } // NewListBySubscriptionPager - Lists all availability sets in a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.ListBySubscription -// method. +// +// Generated from API version 2024-03-01 +// - options - AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.NewListBySubscriptionPager +// method. func (client *AvailabilitySetsClient) NewListBySubscriptionPager(options *AvailabilitySetsClientListBySubscriptionOptions) *runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[AvailabilitySetsClientListBySubscriptionResponse]{ More: func(page AvailabilitySetsClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *AvailabilitySetsClientListBySubscriptionResponse) (AvailabilitySetsClientListBySubscriptionResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listBySubscriptionCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return AvailabilitySetsClientListBySubscriptionResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "AvailabilitySetsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) if err != nil { return AvailabilitySetsClientListBySubscriptionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AvailabilitySetsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) - } return client.listBySubscriptionHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -385,15 +393,15 @@ func (client *AvailabilitySetsClient) listBySubscriptionCreateRequest(ctx contex return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -410,24 +418,32 @@ func (client *AvailabilitySetsClient) listBySubscriptionHandleResponse(resp *htt // Update - Update an availability set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// availabilitySetName - The name of the availability set. -// parameters - Parameters supplied to the Update Availability Set operation. -// options - AvailabilitySetsClientUpdateOptions contains the optional parameters for the AvailabilitySetsClient.Update method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - availabilitySetName - The name of the availability set. +// - parameters - Parameters supplied to the Update Availability Set operation. +// - options - AvailabilitySetsClientUpdateOptions contains the optional parameters for the AvailabilitySetsClient.Update method. func (client *AvailabilitySetsClient) Update(ctx context.Context, resourceGroupName string, availabilitySetName string, parameters AvailabilitySetUpdate, options *AvailabilitySetsClientUpdateOptions) (AvailabilitySetsClientUpdateResponse, error) { + var err error + const operationName = "AvailabilitySetsClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, availabilitySetName, parameters, options) if err != nil { return AvailabilitySetsClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AvailabilitySetsClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AvailabilitySetsClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AvailabilitySetsClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -445,15 +461,18 @@ func (client *AvailabilitySetsClient) updateCreateRequest(ctx context.Context, r return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/build.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/build.go similarity index 59% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/build.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/build.go index 78362d44..f88d006f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/build.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/build.go @@ -2,6 +2,6 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // This file enables 'go generate' to regenerate this specific SDK -//go:generate pwsh.exe ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/compute/armcompute +//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -alwaysSetBodyParamRequired resourcemanager/compute/armcompute package armcompute diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservationgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservationgroups_client.go similarity index 71% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservationgroups_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservationgroups_client.go index f698a3a5..51a41065 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservationgroups_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservationgroups_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,59 +23,58 @@ import ( // CapacityReservationGroupsClient contains the methods for the CapacityReservationGroups group. // Don't use this type directly, use NewCapacityReservationGroupsClient() instead. type CapacityReservationGroupsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCapacityReservationGroupsClient creates a new instance of CapacityReservationGroupsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCapacityReservationGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CapacityReservationGroupsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CapacityReservationGroupsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - The operation to create or update a capacity reservation group. When updating a capacity reservation group, -// only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more -// details. +// only tags and sharing profile may be modified. Please refer to +// https://aka.ms/CapacityReservation for more details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// parameters - Parameters supplied to the Create capacity reservation Group. -// options - CapacityReservationGroupsClientCreateOrUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.CreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - parameters - Parameters supplied to the Create capacity reservation Group. +// - options - CapacityReservationGroupsClientCreateOrUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.CreateOrUpdate +// method. func (client *CapacityReservationGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, parameters CapacityReservationGroup, options *CapacityReservationGroupsClientCreateOrUpdateOptions) (CapacityReservationGroupsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "CapacityReservationGroupsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, parameters, options) if err != nil { return CapacityReservationGroupsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CapacityReservationGroupsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return CapacityReservationGroupsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return CapacityReservationGroupsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -95,15 +92,18 @@ func (client *CapacityReservationGroupsClient) createOrUpdateCreateRequest(ctx c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -119,22 +119,29 @@ func (client *CapacityReservationGroupsClient) createOrUpdateHandleResponse(resp // are disassociated from the reservation group and all capacity reservations under // the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// options - CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - options - CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete +// method. func (client *CapacityReservationGroupsClient) Delete(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationGroupsClientDeleteOptions) (CapacityReservationGroupsClientDeleteResponse, error) { + var err error + const operationName = "CapacityReservationGroupsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, options) if err != nil { return CapacityReservationGroupsClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CapacityReservationGroupsClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return CapacityReservationGroupsClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return CapacityReservationGroupsClientDeleteResponse{}, err } return CapacityReservationGroupsClientDeleteResponse{}, nil } @@ -154,12 +161,12 @@ func (client *CapacityReservationGroupsClient) deleteCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -167,24 +174,32 @@ func (client *CapacityReservationGroupsClient) deleteCreateRequest(ctx context.C // Get - The operation that retrieves information about a capacity reservation group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// options - CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - options - CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get +// method. func (client *CapacityReservationGroupsClient) Get(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationGroupsClientGetOptions) (CapacityReservationGroupsClientGetResponse, error) { + var err error + const operationName = "CapacityReservationGroupsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, options) if err != nil { return CapacityReservationGroupsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CapacityReservationGroupsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CapacityReservationGroupsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CapacityReservationGroupsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -202,7 +217,7 @@ func (client *CapacityReservationGroupsClient) getCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -210,7 +225,7 @@ func (client *CapacityReservationGroupsClient) getCreateRequest(ctx context.Cont if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -227,36 +242,31 @@ func (client *CapacityReservationGroupsClient) getHandleResponse(resp *http.Resp // NewListByResourceGroupPager - Lists all of the capacity reservation groups in the specified resource group. Use the nextLink // property in the response to get the next page of capacity reservation groups. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.ListByResourceGroup -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListByResourceGroupPager +// method. func (client *CapacityReservationGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *CapacityReservationGroupsClientListByResourceGroupOptions) *runtime.Pager[CapacityReservationGroupsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[CapacityReservationGroupsClientListByResourceGroupResponse]{ More: func(page CapacityReservationGroupsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CapacityReservationGroupsClientListByResourceGroupResponse) (CapacityReservationGroupsClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return CapacityReservationGroupsClientListByResourceGroupResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CapacityReservationGroupsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return CapacityReservationGroupsClientListByResourceGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CapacityReservationGroupsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -271,15 +281,15 @@ func (client *CapacityReservationGroupsClient) listByResourceGroupCreateRequest( return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -296,35 +306,30 @@ func (client *CapacityReservationGroupsClient) listByResourceGroupHandleResponse // NewListBySubscriptionPager - Lists all of the capacity reservation groups in the subscription. Use the nextLink property // in the response to get the next page of capacity reservation groups. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.ListBySubscription -// method. +// +// Generated from API version 2024-03-01 +// - options - CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListBySubscriptionPager +// method. func (client *CapacityReservationGroupsClient) NewListBySubscriptionPager(options *CapacityReservationGroupsClientListBySubscriptionOptions) *runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[CapacityReservationGroupsClientListBySubscriptionResponse]{ More: func(page CapacityReservationGroupsClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CapacityReservationGroupsClientListBySubscriptionResponse) (CapacityReservationGroupsClientListBySubscriptionResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listBySubscriptionCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return CapacityReservationGroupsClientListBySubscriptionResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CapacityReservationGroupsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) if err != nil { return CapacityReservationGroupsClientListBySubscriptionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CapacityReservationGroupsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) - } return client.listBySubscriptionHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -335,15 +340,18 @@ func (client *CapacityReservationGroupsClient) listBySubscriptionCreateRequest(c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } + reqQP.Set("api-version", "2024-03-01") + if options != nil && options.ResourceIDsOnly != nil { + reqQP.Set("resourceIdsOnly", string(*options.ResourceIDsOnly)) + } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -358,28 +366,36 @@ func (client *CapacityReservationGroupsClient) listBySubscriptionHandleResponse( return result, nil } -// Update - The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may -// be modified. +// Update - The operation to update a capacity reservation group. When updating a capacity reservation group, only tags and +// sharing profile may be modified. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// parameters - Parameters supplied to the Update capacity reservation Group operation. -// options - CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - parameters - Parameters supplied to the Update capacity reservation Group operation. +// - options - CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update +// method. func (client *CapacityReservationGroupsClient) Update(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, parameters CapacityReservationGroupUpdate, options *CapacityReservationGroupsClientUpdateOptions) (CapacityReservationGroupsClientUpdateResponse, error) { + var err error + const operationName = "CapacityReservationGroupsClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, parameters, options) if err != nil { return CapacityReservationGroupsClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CapacityReservationGroupsClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CapacityReservationGroupsClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CapacityReservationGroupsClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -397,15 +413,18 @@ func (client *CapacityReservationGroupsClient) updateCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservations_client.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservations_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservations_client.go index cc613b80..aaf86c3a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservations_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservations_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,32 +23,23 @@ import ( // CapacityReservationsClient contains the methods for the CapacityReservations group. // Don't use this type directly, use NewCapacityReservationsClient() instead. type CapacityReservationsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCapacityReservationsClient creates a new instance of CapacityReservationsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCapacityReservationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CapacityReservationsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CapacityReservationsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } @@ -59,22 +48,28 @@ func NewCapacityReservationsClient(subscriptionID string, credential azcore.Toke // only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more // details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// capacityReservationName - The name of the capacity reservation. -// parameters - Parameters supplied to the Create capacity reservation. -// options - CapacityReservationsClientBeginCreateOrUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - capacityReservationName - The name of the capacity reservation. +// - parameters - Parameters supplied to the Create capacity reservation. +// - options - CapacityReservationsClientBeginCreateOrUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginCreateOrUpdate +// method. func (client *CapacityReservationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservation, options *CapacityReservationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[CapacityReservationsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CapacityReservationsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CapacityReservationsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CapacityReservationsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -82,20 +77,27 @@ func (client *CapacityReservationsClient) BeginCreateOrUpdate(ctx context.Contex // during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more // details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *CapacityReservationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservation, options *CapacityReservationsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "CapacityReservationsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -117,36 +119,45 @@ func (client *CapacityReservationsClient) createOrUpdateCreateRequest(ctx contex return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - The operation to delete a capacity reservation. This operation is allowed only when all the associated resources // are disassociated from the capacity reservation. Please refer to // https://aka.ms/CapacityReservation for more details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// capacityReservationName - The name of the capacity reservation. -// options - CapacityReservationsClientBeginDeleteOptions contains the optional parameters for the CapacityReservationsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - capacityReservationName - The name of the capacity reservation. +// - options - CapacityReservationsClientBeginDeleteOptions contains the optional parameters for the CapacityReservationsClient.BeginDelete +// method. func (client *CapacityReservationsClient) BeginDelete(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientBeginDeleteOptions) (*runtime.Poller[CapacityReservationsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, options) if err != nil { return nil, err } - return runtime.NewPoller[CapacityReservationsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CapacityReservationsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CapacityReservationsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CapacityReservationsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -154,20 +165,27 @@ func (client *CapacityReservationsClient) BeginDelete(ctx context.Context, resou // are disassociated from the capacity reservation. Please refer to // https://aka.ms/CapacityReservation for more details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *CapacityReservationsClient) deleteOperation(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "CapacityReservationsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -189,12 +207,12 @@ func (client *CapacityReservationsClient) deleteCreateRequest(ctx context.Contex return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -202,25 +220,33 @@ func (client *CapacityReservationsClient) deleteCreateRequest(ctx context.Contex // Get - The operation that retrieves information about the capacity reservation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// capacityReservationName - The name of the capacity reservation. -// options - CapacityReservationsClientGetOptions contains the optional parameters for the CapacityReservationsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - capacityReservationName - The name of the capacity reservation. +// - options - CapacityReservationsClientGetOptions contains the optional parameters for the CapacityReservationsClient.Get +// method. func (client *CapacityReservationsClient) Get(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientGetOptions) (CapacityReservationsClientGetResponse, error) { + var err error + const operationName = "CapacityReservationsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, options) if err != nil { return CapacityReservationsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CapacityReservationsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CapacityReservationsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CapacityReservationsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -242,7 +268,7 @@ func (client *CapacityReservationsClient) getCreateRequest(ctx context.Context, return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -250,7 +276,7 @@ func (client *CapacityReservationsClient) getCreateRequest(ctx context.Context, if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,37 +293,32 @@ func (client *CapacityReservationsClient) getHandleResponse(resp *http.Response) // NewListByCapacityReservationGroupPager - Lists all of the capacity reservations in the specified capacity reservation group. // Use the nextLink property in the response to get the next page of capacity reservations. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// options - CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.ListByCapacityReservationGroup -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - options - CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.NewListByCapacityReservationGroupPager +// method. func (client *CapacityReservationsClient) NewListByCapacityReservationGroupPager(resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationsClientListByCapacityReservationGroupOptions) *runtime.Pager[CapacityReservationsClientListByCapacityReservationGroupResponse] { return runtime.NewPager(runtime.PagingHandler[CapacityReservationsClientListByCapacityReservationGroupResponse]{ More: func(page CapacityReservationsClientListByCapacityReservationGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CapacityReservationsClientListByCapacityReservationGroupResponse) (CapacityReservationsClientListByCapacityReservationGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByCapacityReservationGroupCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CapacityReservationsClient.NewListByCapacityReservationGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByCapacityReservationGroupCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, options) + }, nil) if err != nil { return CapacityReservationsClientListByCapacityReservationGroupResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return CapacityReservationsClientListByCapacityReservationGroupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CapacityReservationsClientListByCapacityReservationGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByCapacityReservationGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -316,12 +337,12 @@ func (client *CapacityReservationsClient) listByCapacityReservationGroupCreateRe return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -338,41 +359,54 @@ func (client *CapacityReservationsClient) listByCapacityReservationGroupHandleRe // BeginUpdate - The operation to update a capacity reservation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// capacityReservationGroupName - The name of the capacity reservation group. -// capacityReservationName - The name of the capacity reservation. -// parameters - Parameters supplied to the Update capacity reservation operation. -// options - CapacityReservationsClientBeginUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - capacityReservationGroupName - The name of the capacity reservation group. +// - capacityReservationName - The name of the capacity reservation. +// - parameters - Parameters supplied to the Update capacity reservation operation. +// - options - CapacityReservationsClientBeginUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginUpdate +// method. func (client *CapacityReservationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservationUpdate, options *CapacityReservationsClientBeginUpdateOptions) (*runtime.Poller[CapacityReservationsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[CapacityReservationsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CapacityReservationsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CapacityReservationsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CapacityReservationsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - The operation to update a capacity reservation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *CapacityReservationsClient) update(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservationUpdate, options *CapacityReservationsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "CapacityReservationsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -394,13 +428,16 @@ func (client *CapacityReservationsClient) updateCreateRequest(ctx context.Contex return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ci.yml b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/ci.yml similarity index 87% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ci.yml rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/ci.yml index 084ed1b4..c93d36fd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ci.yml +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/ci.yml @@ -21,8 +21,8 @@ pr: include: - sdk/resourcemanager/compute/armcompute/ -stages: -- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml +extends: + template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/compute/armcompute' diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/client_factory.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/client_factory.go new file mode 100644 index 00000000..dab27c87 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/client_factory.go @@ -0,0 +1,429 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcompute + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" +) + +// ClientFactory is a client factory used to create any client in this module. +// Don't use this type directly, use NewClientFactory instead. +type ClientFactory struct { + subscriptionID string + internal *arm.Client +} + +// NewClientFactory creates a new instance of ClientFactory with the specified values. +// The parameter values will be propagated to any client created from this factory. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { + internal, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + return &ClientFactory{ + subscriptionID: subscriptionID, + internal: internal, + }, nil +} + +// NewAvailabilitySetsClient creates a new instance of AvailabilitySetsClient. +func (c *ClientFactory) NewAvailabilitySetsClient() *AvailabilitySetsClient { + return &AvailabilitySetsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCapacityReservationGroupsClient creates a new instance of CapacityReservationGroupsClient. +func (c *ClientFactory) NewCapacityReservationGroupsClient() *CapacityReservationGroupsClient { + return &CapacityReservationGroupsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCapacityReservationsClient creates a new instance of CapacityReservationsClient. +func (c *ClientFactory) NewCapacityReservationsClient() *CapacityReservationsClient { + return &CapacityReservationsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCloudServiceOperatingSystemsClient creates a new instance of CloudServiceOperatingSystemsClient. +func (c *ClientFactory) NewCloudServiceOperatingSystemsClient() *CloudServiceOperatingSystemsClient { + return &CloudServiceOperatingSystemsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCloudServiceRoleInstancesClient creates a new instance of CloudServiceRoleInstancesClient. +func (c *ClientFactory) NewCloudServiceRoleInstancesClient() *CloudServiceRoleInstancesClient { + return &CloudServiceRoleInstancesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCloudServiceRolesClient creates a new instance of CloudServiceRolesClient. +func (c *ClientFactory) NewCloudServiceRolesClient() *CloudServiceRolesClient { + return &CloudServiceRolesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCloudServicesClient creates a new instance of CloudServicesClient. +func (c *ClientFactory) NewCloudServicesClient() *CloudServicesClient { + return &CloudServicesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCloudServicesUpdateDomainClient creates a new instance of CloudServicesUpdateDomainClient. +func (c *ClientFactory) NewCloudServicesUpdateDomainClient() *CloudServicesUpdateDomainClient { + return &CloudServicesUpdateDomainClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCommunityGalleriesClient creates a new instance of CommunityGalleriesClient. +func (c *ClientFactory) NewCommunityGalleriesClient() *CommunityGalleriesClient { + return &CommunityGalleriesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCommunityGalleryImageVersionsClient creates a new instance of CommunityGalleryImageVersionsClient. +func (c *ClientFactory) NewCommunityGalleryImageVersionsClient() *CommunityGalleryImageVersionsClient { + return &CommunityGalleryImageVersionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCommunityGalleryImagesClient creates a new instance of CommunityGalleryImagesClient. +func (c *ClientFactory) NewCommunityGalleryImagesClient() *CommunityGalleryImagesClient { + return &CommunityGalleryImagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDedicatedHostGroupsClient creates a new instance of DedicatedHostGroupsClient. +func (c *ClientFactory) NewDedicatedHostGroupsClient() *DedicatedHostGroupsClient { + return &DedicatedHostGroupsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDedicatedHostsClient creates a new instance of DedicatedHostsClient. +func (c *ClientFactory) NewDedicatedHostsClient() *DedicatedHostsClient { + return &DedicatedHostsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDiskAccessesClient creates a new instance of DiskAccessesClient. +func (c *ClientFactory) NewDiskAccessesClient() *DiskAccessesClient { + return &DiskAccessesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDiskEncryptionSetsClient creates a new instance of DiskEncryptionSetsClient. +func (c *ClientFactory) NewDiskEncryptionSetsClient() *DiskEncryptionSetsClient { + return &DiskEncryptionSetsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDiskRestorePointClient creates a new instance of DiskRestorePointClient. +func (c *ClientFactory) NewDiskRestorePointClient() *DiskRestorePointClient { + return &DiskRestorePointClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDisksClient creates a new instance of DisksClient. +func (c *ClientFactory) NewDisksClient() *DisksClient { + return &DisksClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewGalleriesClient creates a new instance of GalleriesClient. +func (c *ClientFactory) NewGalleriesClient() *GalleriesClient { + return &GalleriesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewGalleryApplicationVersionsClient creates a new instance of GalleryApplicationVersionsClient. +func (c *ClientFactory) NewGalleryApplicationVersionsClient() *GalleryApplicationVersionsClient { + return &GalleryApplicationVersionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewGalleryApplicationsClient creates a new instance of GalleryApplicationsClient. +func (c *ClientFactory) NewGalleryApplicationsClient() *GalleryApplicationsClient { + return &GalleryApplicationsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewGalleryImageVersionsClient creates a new instance of GalleryImageVersionsClient. +func (c *ClientFactory) NewGalleryImageVersionsClient() *GalleryImageVersionsClient { + return &GalleryImageVersionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewGalleryImagesClient creates a new instance of GalleryImagesClient. +func (c *ClientFactory) NewGalleryImagesClient() *GalleryImagesClient { + return &GalleryImagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewGallerySharingProfileClient creates a new instance of GallerySharingProfileClient. +func (c *ClientFactory) NewGallerySharingProfileClient() *GallerySharingProfileClient { + return &GallerySharingProfileClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewImagesClient creates a new instance of ImagesClient. +func (c *ClientFactory) NewImagesClient() *ImagesClient { + return &ImagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewLogAnalyticsClient creates a new instance of LogAnalyticsClient. +func (c *ClientFactory) NewLogAnalyticsClient() *LogAnalyticsClient { + return &LogAnalyticsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewOperationsClient creates a new instance of OperationsClient. +func (c *ClientFactory) NewOperationsClient() *OperationsClient { + return &OperationsClient{ + internal: c.internal, + } +} + +// NewProximityPlacementGroupsClient creates a new instance of ProximityPlacementGroupsClient. +func (c *ClientFactory) NewProximityPlacementGroupsClient() *ProximityPlacementGroupsClient { + return &ProximityPlacementGroupsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewResourceSKUsClient creates a new instance of ResourceSKUsClient. +func (c *ClientFactory) NewResourceSKUsClient() *ResourceSKUsClient { + return &ResourceSKUsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewRestorePointCollectionsClient creates a new instance of RestorePointCollectionsClient. +func (c *ClientFactory) NewRestorePointCollectionsClient() *RestorePointCollectionsClient { + return &RestorePointCollectionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewRestorePointsClient creates a new instance of RestorePointsClient. +func (c *ClientFactory) NewRestorePointsClient() *RestorePointsClient { + return &RestorePointsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewSSHPublicKeysClient creates a new instance of SSHPublicKeysClient. +func (c *ClientFactory) NewSSHPublicKeysClient() *SSHPublicKeysClient { + return &SSHPublicKeysClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewSharedGalleriesClient creates a new instance of SharedGalleriesClient. +func (c *ClientFactory) NewSharedGalleriesClient() *SharedGalleriesClient { + return &SharedGalleriesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewSharedGalleryImageVersionsClient creates a new instance of SharedGalleryImageVersionsClient. +func (c *ClientFactory) NewSharedGalleryImageVersionsClient() *SharedGalleryImageVersionsClient { + return &SharedGalleryImageVersionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewSharedGalleryImagesClient creates a new instance of SharedGalleryImagesClient. +func (c *ClientFactory) NewSharedGalleryImagesClient() *SharedGalleryImagesClient { + return &SharedGalleryImagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewSnapshotsClient creates a new instance of SnapshotsClient. +func (c *ClientFactory) NewSnapshotsClient() *SnapshotsClient { + return &SnapshotsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewUsageClient creates a new instance of UsageClient. +func (c *ClientFactory) NewUsageClient() *UsageClient { + return &UsageClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineExtensionImagesClient creates a new instance of VirtualMachineExtensionImagesClient. +func (c *ClientFactory) NewVirtualMachineExtensionImagesClient() *VirtualMachineExtensionImagesClient { + return &VirtualMachineExtensionImagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineExtensionsClient creates a new instance of VirtualMachineExtensionsClient. +func (c *ClientFactory) NewVirtualMachineExtensionsClient() *VirtualMachineExtensionsClient { + return &VirtualMachineExtensionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineImagesClient creates a new instance of VirtualMachineImagesClient. +func (c *ClientFactory) NewVirtualMachineImagesClient() *VirtualMachineImagesClient { + return &VirtualMachineImagesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineImagesEdgeZoneClient creates a new instance of VirtualMachineImagesEdgeZoneClient. +func (c *ClientFactory) NewVirtualMachineImagesEdgeZoneClient() *VirtualMachineImagesEdgeZoneClient { + return &VirtualMachineImagesEdgeZoneClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineRunCommandsClient creates a new instance of VirtualMachineRunCommandsClient. +func (c *ClientFactory) NewVirtualMachineRunCommandsClient() *VirtualMachineRunCommandsClient { + return &VirtualMachineRunCommandsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineScaleSetExtensionsClient creates a new instance of VirtualMachineScaleSetExtensionsClient. +func (c *ClientFactory) NewVirtualMachineScaleSetExtensionsClient() *VirtualMachineScaleSetExtensionsClient { + return &VirtualMachineScaleSetExtensionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineScaleSetRollingUpgradesClient creates a new instance of VirtualMachineScaleSetRollingUpgradesClient. +func (c *ClientFactory) NewVirtualMachineScaleSetRollingUpgradesClient() *VirtualMachineScaleSetRollingUpgradesClient { + return &VirtualMachineScaleSetRollingUpgradesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineScaleSetVMExtensionsClient creates a new instance of VirtualMachineScaleSetVMExtensionsClient. +func (c *ClientFactory) NewVirtualMachineScaleSetVMExtensionsClient() *VirtualMachineScaleSetVMExtensionsClient { + return &VirtualMachineScaleSetVMExtensionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineScaleSetVMRunCommandsClient creates a new instance of VirtualMachineScaleSetVMRunCommandsClient. +func (c *ClientFactory) NewVirtualMachineScaleSetVMRunCommandsClient() *VirtualMachineScaleSetVMRunCommandsClient { + return &VirtualMachineScaleSetVMRunCommandsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineScaleSetVMsClient creates a new instance of VirtualMachineScaleSetVMsClient. +func (c *ClientFactory) NewVirtualMachineScaleSetVMsClient() *VirtualMachineScaleSetVMsClient { + return &VirtualMachineScaleSetVMsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineScaleSetsClient creates a new instance of VirtualMachineScaleSetsClient. +func (c *ClientFactory) NewVirtualMachineScaleSetsClient() *VirtualMachineScaleSetsClient { + return &VirtualMachineScaleSetsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachineSizesClient creates a new instance of VirtualMachineSizesClient. +func (c *ClientFactory) NewVirtualMachineSizesClient() *VirtualMachineSizesClient { + return &VirtualMachineSizesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewVirtualMachinesClient creates a new instance of VirtualMachinesClient. +func (c *ClientFactory) NewVirtualMachinesClient() *VirtualMachinesClient { + return &VirtualMachinesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceoperatingsystems_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceoperatingsystems_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceoperatingsystems_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceoperatingsystems_client.go index 16515cff..bd0cda90 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceoperatingsystems_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceoperatingsystems_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,32 +23,23 @@ import ( // CloudServiceOperatingSystemsClient contains the methods for the CloudServiceOperatingSystems group. // Don't use this type directly, use NewCloudServiceOperatingSystemsClient() instead. type CloudServiceOperatingSystemsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCloudServiceOperatingSystemsClient creates a new instance of CloudServiceOperatingSystemsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCloudServiceOperatingSystemsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServiceOperatingSystemsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CloudServiceOperatingSystemsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } @@ -58,24 +47,32 @@ func NewCloudServiceOperatingSystemsClient(subscriptionID string, credential azc // GetOSFamily - Gets properties of a guest operating system family that can be specified in the XML service configuration // (.cscfg) for a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// location - Name of the location that the OS family pertains to. -// osFamilyName - Name of the OS family. -// options - CloudServiceOperatingSystemsClientGetOSFamilyOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSFamily -// method. +// +// Generated from API version 2022-09-04 +// - location - Name of the location that the OS family pertains to. +// - osFamilyName - Name of the OS family. +// - options - CloudServiceOperatingSystemsClientGetOSFamilyOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSFamily +// method. func (client *CloudServiceOperatingSystemsClient) GetOSFamily(ctx context.Context, location string, osFamilyName string, options *CloudServiceOperatingSystemsClientGetOSFamilyOptions) (CloudServiceOperatingSystemsClientGetOSFamilyResponse, error) { + var err error + const operationName = "CloudServiceOperatingSystemsClient.GetOSFamily" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getOSFamilyCreateRequest(ctx, location, osFamilyName, options) if err != nil { return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, err } - return client.getOSFamilyHandleResponse(resp) + resp, err := client.getOSFamilyHandleResponse(httpResp) + return resp, err } // getOSFamilyCreateRequest creates the GetOSFamily request. @@ -93,12 +90,12 @@ func (client *CloudServiceOperatingSystemsClient) getOSFamilyCreateRequest(ctx c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -116,24 +113,32 @@ func (client *CloudServiceOperatingSystemsClient) getOSFamilyHandleResponse(resp // GetOSVersion - Gets properties of a guest operating system version that can be specified in the XML service configuration // (.cscfg) for a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// location - Name of the location that the OS version pertains to. -// osVersionName - Name of the OS version. -// options - CloudServiceOperatingSystemsClientGetOSVersionOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSVersion -// method. +// +// Generated from API version 2022-09-04 +// - location - Name of the location that the OS version pertains to. +// - osVersionName - Name of the OS version. +// - options - CloudServiceOperatingSystemsClientGetOSVersionOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSVersion +// method. func (client *CloudServiceOperatingSystemsClient) GetOSVersion(ctx context.Context, location string, osVersionName string, options *CloudServiceOperatingSystemsClientGetOSVersionOptions) (CloudServiceOperatingSystemsClientGetOSVersionResponse, error) { + var err error + const operationName = "CloudServiceOperatingSystemsClient.GetOSVersion" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getOSVersionCreateRequest(ctx, location, osVersionName, options) if err != nil { return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, err } - return client.getOSVersionHandleResponse(resp) + resp, err := client.getOSVersionHandleResponse(httpResp) + return resp, err } // getOSVersionCreateRequest creates the GetOSVersion request. @@ -151,12 +156,12 @@ func (client *CloudServiceOperatingSystemsClient) getOSVersionCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -174,36 +179,31 @@ func (client *CloudServiceOperatingSystemsClient) getOSVersionHandleResponse(res // NewListOSFamiliesPager - Gets a list of all guest operating system families available to be specified in the XML service // configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page // of OS Families. Do this till nextLink is null to fetch all the OS Families. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// location - Name of the location that the OS families pertain to. -// options - CloudServiceOperatingSystemsClientListOSFamiliesOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSFamilies -// method. +// +// Generated from API version 2022-09-04 +// - location - Name of the location that the OS families pertain to. +// - options - CloudServiceOperatingSystemsClientListOSFamiliesOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.NewListOSFamiliesPager +// method. func (client *CloudServiceOperatingSystemsClient) NewListOSFamiliesPager(location string, options *CloudServiceOperatingSystemsClientListOSFamiliesOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSFamiliesResponse] { return runtime.NewPager(runtime.PagingHandler[CloudServiceOperatingSystemsClientListOSFamiliesResponse]{ More: func(page CloudServiceOperatingSystemsClientListOSFamiliesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CloudServiceOperatingSystemsClientListOSFamiliesResponse) (CloudServiceOperatingSystemsClientListOSFamiliesResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listOSFamiliesCreateRequest(ctx, location, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return CloudServiceOperatingSystemsClientListOSFamiliesResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CloudServiceOperatingSystemsClient.NewListOSFamiliesPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listOSFamiliesCreateRequest(ctx, location, options) + }, nil) if err != nil { return CloudServiceOperatingSystemsClientListOSFamiliesResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceOperatingSystemsClientListOSFamiliesResponse{}, runtime.NewResponseError(resp) - } return client.listOSFamiliesHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -218,12 +218,12 @@ func (client *CloudServiceOperatingSystemsClient) listOSFamiliesCreateRequest(ct return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -241,36 +241,31 @@ func (client *CloudServiceOperatingSystemsClient) listOSFamiliesHandleResponse(r // NewListOSVersionsPager - Gets a list of all guest operating system versions available to be specified in the XML service // configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page // of OS versions. Do this till nextLink is null to fetch all the OS versions. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// location - Name of the location that the OS versions pertain to. -// options - CloudServiceOperatingSystemsClientListOSVersionsOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSVersions -// method. +// +// Generated from API version 2022-09-04 +// - location - Name of the location that the OS versions pertain to. +// - options - CloudServiceOperatingSystemsClientListOSVersionsOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.NewListOSVersionsPager +// method. func (client *CloudServiceOperatingSystemsClient) NewListOSVersionsPager(location string, options *CloudServiceOperatingSystemsClientListOSVersionsOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSVersionsResponse] { return runtime.NewPager(runtime.PagingHandler[CloudServiceOperatingSystemsClientListOSVersionsResponse]{ More: func(page CloudServiceOperatingSystemsClientListOSVersionsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CloudServiceOperatingSystemsClientListOSVersionsResponse) (CloudServiceOperatingSystemsClientListOSVersionsResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listOSVersionsCreateRequest(ctx, location, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CloudServiceOperatingSystemsClient.NewListOSVersionsPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listOSVersionsCreateRequest(ctx, location, options) + }, nil) if err != nil { return CloudServiceOperatingSystemsClientListOSVersionsResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return CloudServiceOperatingSystemsClientListOSVersionsResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceOperatingSystemsClientListOSVersionsResponse{}, runtime.NewResponseError(resp) - } return client.listOSVersionsHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -285,12 +280,12 @@ func (client *CloudServiceOperatingSystemsClient) listOSVersionsCreateRequest(ct return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroleinstances_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceroleinstances_client.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroleinstances_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceroleinstances_client.go index a7b01de4..1f7cdb7c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroleinstances_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceroleinstances_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,70 +23,76 @@ import ( // CloudServiceRoleInstancesClient contains the methods for the CloudServiceRoleInstances group. // Don't use this type directly, use NewCloudServiceRoleInstancesClient() instead. type CloudServiceRoleInstancesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCloudServiceRoleInstancesClient creates a new instance of CloudServiceRoleInstancesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCloudServiceRoleInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServiceRoleInstancesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CloudServiceRoleInstancesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginDelete - Deletes a role instance from a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleInstanceName - Name of the role instance. -// options - CloudServiceRoleInstancesClientBeginDeleteOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginDelete -// method. +// +// Generated from API version 2022-09-04 +// - roleInstanceName - Name of the role instance. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientBeginDeleteOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginDelete +// method. func (client *CloudServiceRoleInstancesClient) BeginDelete(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginDeleteOptions) (*runtime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServiceRoleInstancesClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServiceRoleInstancesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServiceRoleInstancesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a role instance from a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServiceRoleInstancesClient) deleteOperation(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "CloudServiceRoleInstancesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -110,12 +114,12 @@ func (client *CloudServiceRoleInstancesClient) deleteCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -123,23 +127,33 @@ func (client *CloudServiceRoleInstancesClient) deleteCreateRequest(ctx context.C // Get - Gets a role instance from a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleInstanceName - Name of the role instance. -// options - CloudServiceRoleInstancesClientGetOptions contains the optional parameters for the CloudServiceRoleInstancesClient.Get -// method. +// +// Generated from API version 2022-09-04 +// - roleInstanceName - Name of the role instance. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientGetOptions contains the optional parameters for the CloudServiceRoleInstancesClient.Get +// method. func (client *CloudServiceRoleInstancesClient) Get(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetOptions) (CloudServiceRoleInstancesClientGetResponse, error) { + var err error + const operationName = "CloudServiceRoleInstancesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return CloudServiceRoleInstancesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServiceRoleInstancesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceRoleInstancesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServiceRoleInstancesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -161,15 +175,15 @@ func (client *CloudServiceRoleInstancesClient) getCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -186,23 +200,33 @@ func (client *CloudServiceRoleInstancesClient) getHandleResponse(resp *http.Resp // GetInstanceView - Retrieves information about the run-time state of a role instance in a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleInstanceName - Name of the role instance. -// options - CloudServiceRoleInstancesClientGetInstanceViewOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetInstanceView -// method. +// +// Generated from API version 2022-09-04 +// - roleInstanceName - Name of the role instance. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientGetInstanceViewOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetInstanceView +// method. func (client *CloudServiceRoleInstancesClient) GetInstanceView(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetInstanceViewOptions) (CloudServiceRoleInstancesClientGetInstanceViewResponse, error) { + var err error + const operationName = "CloudServiceRoleInstancesClient.GetInstanceView" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getInstanceViewCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, err } - return client.getInstanceViewHandleResponse(resp) + resp, err := client.getInstanceViewHandleResponse(httpResp) + return resp, err } // getInstanceViewCreateRequest creates the GetInstanceView request. @@ -224,12 +248,12 @@ func (client *CloudServiceRoleInstancesClient) getInstanceViewCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -246,23 +270,32 @@ func (client *CloudServiceRoleInstancesClient) getInstanceViewHandleResponse(res // GetRemoteDesktopFile - Gets a remote desktop file for a role instance in a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleInstanceName - Name of the role instance. -// options - CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetRemoteDesktopFile -// method. +// +// Generated from API version 2022-09-04 +// - roleInstanceName - Name of the role instance. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetRemoteDesktopFile +// method. func (client *CloudServiceRoleInstancesClient) GetRemoteDesktopFile(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions) (CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse, error) { + var err error + const operationName = "CloudServiceRoleInstancesClient.GetRemoteDesktopFile" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getRemoteDesktopFileCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{}, err } - return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{Body: resp.Body}, nil + return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{Body: httpResp.Body}, nil } // getRemoteDesktopFileCreateRequest creates the GetRemoteDesktopFile request. @@ -284,12 +317,12 @@ func (client *CloudServiceRoleInstancesClient) getRemoteDesktopFileCreateRequest return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/x-rdp"} @@ -298,35 +331,32 @@ func (client *CloudServiceRoleInstancesClient) getRemoteDesktopFileCreateRequest // NewListPager - Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the // next page of role instances. Do this till nextLink is null to fetch all the role instances. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// options - CloudServiceRoleInstancesClientListOptions contains the optional parameters for the CloudServiceRoleInstancesClient.List -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientListOptions contains the optional parameters for the CloudServiceRoleInstancesClient.NewListPager +// method. func (client *CloudServiceRoleInstancesClient) NewListPager(resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientListOptions) *runtime.Pager[CloudServiceRoleInstancesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CloudServiceRoleInstancesClientListResponse]{ More: func(page CloudServiceRoleInstancesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CloudServiceRoleInstancesClientListResponse) (CloudServiceRoleInstancesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, cloudServiceName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CloudServiceRoleInstancesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, cloudServiceName, options) + }, nil) if err != nil { return CloudServiceRoleInstancesClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return CloudServiceRoleInstancesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceRoleInstancesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -345,15 +375,15 @@ func (client *CloudServiceRoleInstancesClient) listCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -372,19 +402,27 @@ func (client *CloudServiceRoleInstancesClient) listHandleResponse(resp *http.Res // or worker roles and initializes the storage resources that are used by them. If you do not // want to initialize storage resources, you can use Reimage Role Instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleInstanceName - Name of the role instance. -// options - CloudServiceRoleInstancesClientBeginRebuildOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRebuild -// method. +// +// Generated from API version 2022-09-04 +// - roleInstanceName - Name of the role instance. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientBeginRebuildOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRebuild +// method. func (client *CloudServiceRoleInstancesClient) BeginRebuild(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRebuildOptions) (*runtime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.rebuild(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServiceRoleInstancesClientRebuildResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServiceRoleInstancesClientRebuildResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientRebuildResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServiceRoleInstancesClientRebuildResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -392,20 +430,27 @@ func (client *CloudServiceRoleInstancesClient) BeginRebuild(ctx context.Context, // worker roles and initializes the storage resources that are used by them. If you do not // want to initialize storage resources, you can use Reimage Role Instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServiceRoleInstancesClient) rebuild(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRebuildOptions) (*http.Response, error) { + var err error + const operationName = "CloudServiceRoleInstancesClient.BeginRebuild" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.rebuildCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // rebuildCreateRequest creates the Rebuild request. @@ -427,12 +472,12 @@ func (client *CloudServiceRoleInstancesClient) rebuildCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -441,39 +486,54 @@ func (client *CloudServiceRoleInstancesClient) rebuildCreateRequest(ctx context. // BeginReimage - The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles // or worker roles. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleInstanceName - Name of the role instance. -// options - CloudServiceRoleInstancesClientBeginReimageOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginReimage -// method. +// +// Generated from API version 2022-09-04 +// - roleInstanceName - Name of the role instance. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientBeginReimageOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginReimage +// method. func (client *CloudServiceRoleInstancesClient) BeginReimage(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginReimageOptions) (*runtime.Poller[CloudServiceRoleInstancesClientReimageResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reimage(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServiceRoleInstancesClientReimageResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServiceRoleInstancesClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientReimageResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServiceRoleInstancesClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Reimage - The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or // worker roles. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServiceRoleInstancesClient) reimage(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginReimageOptions) (*http.Response, error) { + var err error + const operationName = "CloudServiceRoleInstancesClient.BeginReimage" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reimageCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reimageCreateRequest creates the Reimage request. @@ -495,12 +555,12 @@ func (client *CloudServiceRoleInstancesClient) reimageCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -508,38 +568,53 @@ func (client *CloudServiceRoleInstancesClient) reimageCreateRequest(ctx context. // BeginRestart - The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleInstanceName - Name of the role instance. -// options - CloudServiceRoleInstancesClientBeginRestartOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRestart -// method. +// +// Generated from API version 2022-09-04 +// - roleInstanceName - Name of the role instance. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRoleInstancesClientBeginRestartOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRestart +// method. func (client *CloudServiceRoleInstancesClient) BeginRestart(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRestartOptions) (*runtime.Poller[CloudServiceRoleInstancesClientRestartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restart(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServiceRoleInstancesClientRestartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServiceRoleInstancesClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientRestartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServiceRoleInstancesClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Restart - The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServiceRoleInstancesClient) restart(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRestartOptions) (*http.Response, error) { + var err error + const operationName = "CloudServiceRoleInstancesClient.BeginRestart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.restartCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // restartCreateRequest creates the Restart request. @@ -561,12 +636,12 @@ func (client *CloudServiceRoleInstancesClient) restartCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroles_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceroles_client.go similarity index 73% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroles_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceroles_client.go index 19cec895..a4572cf1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroles_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudserviceroles_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,54 +23,55 @@ import ( // CloudServiceRolesClient contains the methods for the CloudServiceRoles group. // Don't use this type directly, use NewCloudServiceRolesClient() instead. type CloudServiceRolesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCloudServiceRolesClient creates a new instance of CloudServiceRolesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCloudServiceRolesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServiceRolesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CloudServiceRolesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Gets a role from a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// roleName - Name of the role. -// options - CloudServiceRolesClientGetOptions contains the optional parameters for the CloudServiceRolesClient.Get method. +// +// Generated from API version 2022-09-04 +// - roleName - Name of the role. +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRolesClientGetOptions contains the optional parameters for the CloudServiceRolesClient.Get method. func (client *CloudServiceRolesClient) Get(ctx context.Context, roleName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRolesClientGetOptions) (CloudServiceRolesClientGetResponse, error) { + var err error + const operationName = "CloudServiceRolesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, roleName, resourceGroupName, cloudServiceName, options) if err != nil { return CloudServiceRolesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServiceRolesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceRolesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServiceRolesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -94,12 +93,12 @@ func (client *CloudServiceRolesClient) getCreateRequest(ctx context.Context, rol return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -116,34 +115,32 @@ func (client *CloudServiceRolesClient) getHandleResponse(resp *http.Response) (C // NewListPager - Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page // of roles. Do this till nextLink is null to fetch all the roles. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// options - CloudServiceRolesClientListOptions contains the optional parameters for the CloudServiceRolesClient.List method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServiceRolesClientListOptions contains the optional parameters for the CloudServiceRolesClient.NewListPager +// method. func (client *CloudServiceRolesClient) NewListPager(resourceGroupName string, cloudServiceName string, options *CloudServiceRolesClientListOptions) *runtime.Pager[CloudServiceRolesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CloudServiceRolesClientListResponse]{ More: func(page CloudServiceRolesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CloudServiceRolesClientListResponse) (CloudServiceRolesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, cloudServiceName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CloudServiceRolesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, cloudServiceName, options) + }, nil) if err != nil { return CloudServiceRolesClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return CloudServiceRolesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServiceRolesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -162,12 +159,12 @@ func (client *CloudServiceRolesClient) listCreateRequest(ctx context.Context, re return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservices_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudservices_client.go similarity index 63% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservices_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudservices_client.go index 6923162c..283d3a6f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservices_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudservices_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,32 +23,23 @@ import ( // CloudServicesClient contains the methods for the CloudServices group. // Don't use this type directly, use NewCloudServicesClient() instead. type CloudServicesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCloudServicesClient creates a new instance of CloudServicesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCloudServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServicesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CloudServicesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } @@ -58,43 +47,57 @@ func NewCloudServicesClient(subscriptionID string, credential azcore.TokenCreden // BeginCreateOrUpdate - Create or update a cloud service. Please note some properties can be set only during cloud service // creation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudServicesClient.BeginCreateOrUpdate -// method. -func (client *CloudServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[CloudServicesClientCreateOrUpdateResponse], error) { +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - parameters - The cloud service object. +// - options - CloudServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudServicesClient.BeginCreateOrUpdate +// method. +func (client *CloudServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, parameters CloudService, options *CloudServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[CloudServicesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { - resp, err := client.createOrUpdate(ctx, resourceGroupName, cloudServiceName, options) + resp, err := client.createOrUpdate(ctx, resourceGroupName, cloudServiceName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a cloud service. Please note some properties can be set only during cloud service creation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -func (client *CloudServicesClient) createOrUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginCreateOrUpdateOptions) (*http.Response, error) { - req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, cloudServiceName, options) +// +// Generated from API version 2022-09-04 +func (client *CloudServicesClient) createOrUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, parameters CloudService, options *CloudServicesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, cloudServiceName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *CloudServicesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginCreateOrUpdateOptions) (*policy.Request, error) { +func (client *CloudServicesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, parameters CloudService, options *CloudServicesClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -108,55 +111,68 @@ func (client *CloudServicesClient) createOrUpdateCreateRequest(ctx context.Conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err } return req, nil } // BeginDelete - Deletes a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginDeleteOptions contains the optional parameters for the CloudServicesClient.BeginDelete -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientBeginDeleteOptions contains the optional parameters for the CloudServicesClient.BeginDelete +// method. func (client *CloudServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteOptions) (*runtime.Poller[CloudServicesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServicesClient) deleteOperation(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -174,12 +190,12 @@ func (client *CloudServicesClient) deleteCreateRequest(ctx context.Context, reso return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -187,39 +203,52 @@ func (client *CloudServicesClient) deleteCreateRequest(ctx context.Context, reso // BeginDeleteInstances - Deletes role instances in a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginDeleteInstancesOptions contains the optional parameters for the CloudServicesClient.BeginDeleteInstances -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientBeginDeleteInstancesOptions contains the optional parameters for the CloudServicesClient.BeginDeleteInstances +// method. func (client *CloudServicesClient) BeginDeleteInstances(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteInstancesOptions) (*runtime.Poller[CloudServicesClientDeleteInstancesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteInstances(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientDeleteInstancesResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientDeleteInstancesResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientDeleteInstancesResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientDeleteInstancesResponse]{ + Tracer: client.internal.Tracer(), + }) } } // DeleteInstances - Deletes role instances in a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServicesClient) deleteInstances(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteInstancesOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginDeleteInstances" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteInstancesCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteInstancesCreateRequest creates the DeleteInstances request. @@ -237,39 +266,50 @@ func (client *CloudServicesClient) deleteInstancesCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil { + return nil, err + } + return req, nil } return req, nil } // Get - Display information about a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientGetOptions contains the optional parameters for the CloudServicesClient.Get method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientGetOptions contains the optional parameters for the CloudServicesClient.Get method. func (client *CloudServicesClient) Get(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientGetOptions) (CloudServicesClientGetResponse, error) { + var err error + const operationName = "CloudServicesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return CloudServicesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServicesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServicesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServicesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -287,12 +327,12 @@ func (client *CloudServicesClient) getCreateRequest(ctx context.Context, resourc return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -309,24 +349,32 @@ func (client *CloudServicesClient) getHandleResponse(resp *http.Response) (Cloud // GetInstanceView - Gets the status of a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientGetInstanceViewOptions contains the optional parameters for the CloudServicesClient.GetInstanceView -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientGetInstanceViewOptions contains the optional parameters for the CloudServicesClient.GetInstanceView +// method. func (client *CloudServicesClient) GetInstanceView(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientGetInstanceViewOptions) (CloudServicesClientGetInstanceViewResponse, error) { + var err error + const operationName = "CloudServicesClient.GetInstanceView" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getInstanceViewCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return CloudServicesClientGetInstanceViewResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServicesClientGetInstanceViewResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServicesClientGetInstanceViewResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServicesClientGetInstanceViewResponse{}, err } - return client.getInstanceViewHandleResponse(resp) + resp, err := client.getInstanceViewHandleResponse(httpResp) + return resp, err } // getInstanceViewCreateRequest creates the GetInstanceView request. @@ -344,12 +392,12 @@ func (client *CloudServicesClient) getInstanceViewCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -366,35 +414,30 @@ func (client *CloudServicesClient) getInstanceViewHandleResponse(resp *http.Resp // NewListPager - Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the // next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// options - CloudServicesClientListOptions contains the optional parameters for the CloudServicesClient.List method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - options - CloudServicesClientListOptions contains the optional parameters for the CloudServicesClient.NewListPager method. func (client *CloudServicesClient) NewListPager(resourceGroupName string, options *CloudServicesClientListOptions) *runtime.Pager[CloudServicesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CloudServicesClientListResponse]{ More: func(page CloudServicesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CloudServicesClientListResponse) (CloudServicesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CloudServicesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return CloudServicesClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return CloudServicesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServicesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -409,12 +452,12 @@ func (client *CloudServicesClient) listCreateRequest(ctx context.Context, resour return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -432,34 +475,30 @@ func (client *CloudServicesClient) listHandleResponse(resp *http.Response) (Clou // NewListAllPager - Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use // nextLink property in the response to get the next page of Cloud Services. Do this till nextLink // is null to fetch all the Cloud Services. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// options - CloudServicesClientListAllOptions contains the optional parameters for the CloudServicesClient.ListAll method. +// +// Generated from API version 2022-09-04 +// - options - CloudServicesClientListAllOptions contains the optional parameters for the CloudServicesClient.NewListAllPager +// method. func (client *CloudServicesClient) NewListAllPager(options *CloudServicesClientListAllOptions) *runtime.Pager[CloudServicesClientListAllResponse] { return runtime.NewPager(runtime.PagingHandler[CloudServicesClientListAllResponse]{ More: func(page CloudServicesClientListAllResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CloudServicesClientListAllResponse) (CloudServicesClientListAllResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listAllCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CloudServicesClient.NewListAllPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listAllCreateRequest(ctx, options) + }, nil) if err != nil { return CloudServicesClientListAllResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return CloudServicesClientListAllResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServicesClientListAllResponse{}, runtime.NewResponseError(resp) - } return client.listAllHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -470,12 +509,12 @@ func (client *CloudServicesClient) listAllCreateRequest(ctx context.Context, opt return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -493,39 +532,52 @@ func (client *CloudServicesClient) listAllHandleResponse(resp *http.Response) (C // BeginPowerOff - Power off the cloud service. Note that resources are still attached and you are getting charged for the // resources. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginPowerOffOptions contains the optional parameters for the CloudServicesClient.BeginPowerOff -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientBeginPowerOffOptions contains the optional parameters for the CloudServicesClient.BeginPowerOff +// method. func (client *CloudServicesClient) BeginPowerOff(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginPowerOffOptions) (*runtime.Poller[CloudServicesClientPowerOffResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.powerOff(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientPowerOffResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientPowerOffResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) } } // PowerOff - Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServicesClient) powerOff(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginPowerOffOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginPowerOff" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.powerOffCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // powerOffCreateRequest creates the PowerOff request. @@ -543,12 +595,12 @@ func (client *CloudServicesClient) powerOffCreateRequest(ctx context.Context, re return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -558,20 +610,26 @@ func (client *CloudServicesClient) powerOffCreateRequest(ctx context.Context, re // the storage resources that are used by them. If you do not want to initialize storage // resources, you can use Reimage Role Instances. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginRebuildOptions contains the optional parameters for the CloudServicesClient.BeginRebuild -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientBeginRebuildOptions contains the optional parameters for the CloudServicesClient.BeginRebuild +// method. func (client *CloudServicesClient) BeginRebuild(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRebuildOptions) (*runtime.Poller[CloudServicesClientRebuildResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.rebuild(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientRebuildResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientRebuildResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientRebuildResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientRebuildResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -579,20 +637,27 @@ func (client *CloudServicesClient) BeginRebuild(ctx context.Context, resourceGro // the storage resources that are used by them. If you do not want to initialize storage // resources, you can use Reimage Role Instances. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServicesClient) rebuild(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRebuildOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginRebuild" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.rebuildCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // rebuildCreateRequest creates the Rebuild request. @@ -610,55 +675,71 @@ func (client *CloudServicesClient) rebuildCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginReimage - Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginReimageOptions contains the optional parameters for the CloudServicesClient.BeginReimage -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientBeginReimageOptions contains the optional parameters for the CloudServicesClient.BeginReimage +// method. func (client *CloudServicesClient) BeginReimage(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginReimageOptions) (*runtime.Poller[CloudServicesClientReimageResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reimage(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientReimageResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientReimageResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Reimage - Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServicesClient) reimage(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginReimageOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginReimage" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reimageCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reimageCreateRequest creates the Reimage request. @@ -676,55 +757,71 @@ func (client *CloudServicesClient) reimageCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginRestart - Restarts one or more role instances in a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginRestartOptions contains the optional parameters for the CloudServicesClient.BeginRestart -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientBeginRestartOptions contains the optional parameters for the CloudServicesClient.BeginRestart +// method. func (client *CloudServicesClient) BeginRestart(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRestartOptions) (*runtime.Poller[CloudServicesClientRestartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restart(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientRestartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientRestartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Restart - Restarts one or more role instances in a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServicesClient) restart(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRestartOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginRestart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.restartCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // restartCreateRequest creates the Restart request. @@ -742,55 +839,71 @@ func (client *CloudServicesClient) restartCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginStart - Starts the cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginStartOptions contains the optional parameters for the CloudServicesClient.BeginStart -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesClientBeginStartOptions contains the optional parameters for the CloudServicesClient.BeginStart +// method. func (client *CloudServicesClient) BeginStart(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginStartOptions) (*runtime.Poller[CloudServicesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientStartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientStartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Start - Starts the cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 +// +// Generated from API version 2022-09-04 func (client *CloudServicesClient) start(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startCreateRequest(ctx, resourceGroupName, cloudServiceName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startCreateRequest creates the Start request. @@ -808,12 +921,12 @@ func (client *CloudServicesClient) startCreateRequest(ctx context.Context, resou return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -821,43 +934,57 @@ func (client *CloudServicesClient) startCreateRequest(ctx context.Context, resou // BeginUpdate - Update a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesClientBeginUpdateOptions contains the optional parameters for the CloudServicesClient.BeginUpdate -// method. -func (client *CloudServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginUpdateOptions) (*runtime.Poller[CloudServicesClientUpdateResponse], error) { +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - parameters - The cloud service object. +// - options - CloudServicesClientBeginUpdateOptions contains the optional parameters for the CloudServicesClient.BeginUpdate +// method. +func (client *CloudServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, parameters CloudServiceUpdate, options *CloudServicesClientBeginUpdateOptions) (*runtime.Poller[CloudServicesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { - resp, err := client.update(ctx, resourceGroupName, cloudServiceName, options) + resp, err := client.update(ctx, resourceGroupName, cloudServiceName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update a cloud service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -func (client *CloudServicesClient) update(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginUpdateOptions) (*http.Response, error) { - req, err := client.updateCreateRequest(ctx, resourceGroupName, cloudServiceName, options) +// +// Generated from API version 2022-09-04 +func (client *CloudServicesClient) update(ctx context.Context, resourceGroupName string, cloudServiceName string, parameters CloudServiceUpdate, options *CloudServicesClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, cloudServiceName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. -func (client *CloudServicesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginUpdateOptions) (*policy.Request, error) { +func (client *CloudServicesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, parameters CloudServiceUpdate, options *CloudServicesClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -871,16 +998,16 @@ func (client *CloudServicesClient) updateCreateRequest(ctx context.Context, reso return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err } return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservicesupdatedomain_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudservicesupdatedomain_client.go similarity index 64% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservicesupdatedomain_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudservicesupdatedomain_client.go index 85103704..a4bd1e7b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservicesupdatedomain_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/cloudservicesupdatedomain_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,32 +24,23 @@ import ( // CloudServicesUpdateDomainClient contains the methods for the CloudServicesUpdateDomain group. // Don't use this type directly, use NewCloudServicesUpdateDomainClient() instead. type CloudServicesUpdateDomainClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCloudServicesUpdateDomainClient creates a new instance of CloudServicesUpdateDomainClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCloudServicesUpdateDomainClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServicesUpdateDomainClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CloudServicesUpdateDomainClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } @@ -59,26 +48,34 @@ func NewCloudServicesUpdateDomainClient(subscriptionID string, credential azcore // GetUpdateDomain - Gets the specified update domain of a cloud service. Use nextLink property in the response to get the // next page of update domains. Do this till nextLink is null to fetch all the update domains. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// updateDomain - Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based -// index: the first update domain has an ID of 0, the second has an ID of 1, and so on. -// options - CloudServicesUpdateDomainClientGetUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.GetUpdateDomain -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - updateDomain - Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based +// index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +// - options - CloudServicesUpdateDomainClientGetUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.GetUpdateDomain +// method. func (client *CloudServicesUpdateDomainClient) GetUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientGetUpdateDomainOptions) (CloudServicesUpdateDomainClientGetUpdateDomainResponse, error) { + var err error + const operationName = "CloudServicesUpdateDomainClient.GetUpdateDomain" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getUpdateDomainCreateRequest(ctx, resourceGroupName, cloudServiceName, updateDomain, options) if err != nil { return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, err } - return client.getUpdateDomainHandleResponse(resp) + resp, err := client.getUpdateDomainHandleResponse(httpResp) + return resp, err } // getUpdateDomainCreateRequest creates the GetUpdateDomain request. @@ -97,12 +94,12 @@ func (client *CloudServicesUpdateDomainClient) getUpdateDomainCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -118,37 +115,32 @@ func (client *CloudServicesUpdateDomainClient) getUpdateDomainHandleResponse(res } // NewListUpdateDomainsPager - Gets a list of all update domains in a cloud service. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// options - CloudServicesUpdateDomainClientListUpdateDomainsOptions contains the optional parameters for the CloudServicesUpdateDomainClient.ListUpdateDomains -// method. +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - options - CloudServicesUpdateDomainClientListUpdateDomainsOptions contains the optional parameters for the CloudServicesUpdateDomainClient.NewListUpdateDomainsPager +// method. func (client *CloudServicesUpdateDomainClient) NewListUpdateDomainsPager(resourceGroupName string, cloudServiceName string, options *CloudServicesUpdateDomainClientListUpdateDomainsOptions) *runtime.Pager[CloudServicesUpdateDomainClientListUpdateDomainsResponse] { return runtime.NewPager(runtime.PagingHandler[CloudServicesUpdateDomainClientListUpdateDomainsResponse]{ More: func(page CloudServicesUpdateDomainClientListUpdateDomainsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *CloudServicesUpdateDomainClientListUpdateDomainsResponse) (CloudServicesUpdateDomainClientListUpdateDomainsResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listUpdateDomainsCreateRequest(ctx, resourceGroupName, cloudServiceName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return CloudServicesUpdateDomainClientListUpdateDomainsResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CloudServicesUpdateDomainClient.NewListUpdateDomainsPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listUpdateDomainsCreateRequest(ctx, resourceGroupName, cloudServiceName, options) + }, nil) if err != nil { return CloudServicesUpdateDomainClientListUpdateDomainsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CloudServicesUpdateDomainClientListUpdateDomainsResponse{}, runtime.NewResponseError(resp) - } return client.listUpdateDomainsHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -167,12 +159,12 @@ func (client *CloudServicesUpdateDomainClient) listUpdateDomainsCreateRequest(ct return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -189,45 +181,59 @@ func (client *CloudServicesUpdateDomainClient) listUpdateDomainsHandleResponse(r // BeginWalkUpdateDomain - Updates the role instances in the specified update domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -// resourceGroupName - Name of the resource group. -// cloudServiceName - Name of the cloud service. -// updateDomain - Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based -// index: the first update domain has an ID of 0, the second has an ID of 1, and so on. -// options - CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.BeginWalkUpdateDomain -// method. -func (client *CloudServicesUpdateDomainClient) BeginWalkUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*runtime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error) { +// +// Generated from API version 2022-09-04 +// - resourceGroupName - Name of the resource group. +// - cloudServiceName - Name of the cloud service. +// - updateDomain - Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based +// index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +// - parameters - The update domain object. +// - options - CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.BeginWalkUpdateDomain +// method. +func (client *CloudServicesUpdateDomainClient) BeginWalkUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, parameters UpdateDomain, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*runtime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error) { if options == nil || options.ResumeToken == "" { - resp, err := client.walkUpdateDomain(ctx, resourceGroupName, cloudServiceName, updateDomain, options) + resp, err := client.walkUpdateDomain(ctx, resourceGroupName, cloudServiceName, updateDomain, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[CloudServicesUpdateDomainClientWalkUpdateDomainResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[CloudServicesUpdateDomainClientWalkUpdateDomainResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[CloudServicesUpdateDomainClientWalkUpdateDomainResponse]{ + Tracer: client.internal.Tracer(), + }) } } // WalkUpdateDomain - Updates the role instances in the specified update domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-03-01 -func (client *CloudServicesUpdateDomainClient) walkUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*http.Response, error) { - req, err := client.walkUpdateDomainCreateRequest(ctx, resourceGroupName, cloudServiceName, updateDomain, options) +// +// Generated from API version 2022-09-04 +func (client *CloudServicesUpdateDomainClient) walkUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, parameters UpdateDomain, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*http.Response, error) { + var err error + const operationName = "CloudServicesUpdateDomainClient.BeginWalkUpdateDomain" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.walkUpdateDomainCreateRequest(ctx, resourceGroupName, cloudServiceName, updateDomain, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // walkUpdateDomainCreateRequest creates the WalkUpdateDomain request. -func (client *CloudServicesUpdateDomainClient) walkUpdateDomainCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*policy.Request, error) { +func (client *CloudServicesUpdateDomainClient) walkUpdateDomainCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, parameters UpdateDomain, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -242,16 +248,16 @@ func (client *CloudServicesUpdateDomainClient) walkUpdateDomainCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-03-01") + reqQP.Set("api-version", "2022-09-04") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err } return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleries_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleries_client.go similarity index 69% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleries_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleries_client.go index 0c45e908..431a26cd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleries_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleries_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,55 +23,54 @@ import ( // CommunityGalleriesClient contains the methods for the CommunityGalleries group. // Don't use this type directly, use NewCommunityGalleriesClient() instead. type CommunityGalleriesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewCommunityGalleriesClient creates a new instance of CommunityGalleriesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCommunityGalleriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleriesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &CommunityGalleriesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Get a community gallery by gallery public name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// publicGalleryName - The public name of the community gallery. -// options - CommunityGalleriesClientGetOptions contains the optional parameters for the CommunityGalleriesClient.Get method. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - publicGalleryName - The public name of the community gallery. +// - options - CommunityGalleriesClientGetOptions contains the optional parameters for the CommunityGalleriesClient.Get method. func (client *CommunityGalleriesClient) Get(ctx context.Context, location string, publicGalleryName string, options *CommunityGalleriesClientGetOptions) (CommunityGalleriesClientGetResponse, error) { + var err error + const operationName = "CommunityGalleriesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, publicGalleryName, options) if err != nil { return CommunityGalleriesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return CommunityGalleriesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CommunityGalleriesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CommunityGalleriesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -91,12 +88,12 @@ func (client *CommunityGalleriesClient) getCreateRequest(ctx context.Context, lo return nil, errors.New("parameter publicGalleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimages_client.go new file mode 100644 index 00000000..4ecc005c --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimages_client.go @@ -0,0 +1,180 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcompute + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CommunityGalleryImagesClient contains the methods for the CommunityGalleryImages group. +// Don't use this type directly, use NewCommunityGalleryImagesClient() instead. +type CommunityGalleryImagesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewCommunityGalleryImagesClient creates a new instance of CommunityGalleryImagesClient with the specified values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCommunityGalleryImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleryImagesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &CommunityGalleryImagesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// Get - Get a community gallery image. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - publicGalleryName - The public name of the community gallery. +// - galleryImageName - The name of the community gallery image definition. +// - options - CommunityGalleryImagesClientGetOptions contains the optional parameters for the CommunityGalleryImagesClient.Get +// method. +func (client *CommunityGalleryImagesClient) Get(ctx context.Context, location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImagesClientGetOptions) (CommunityGalleryImagesClientGetResponse, error) { + var err error + const operationName = "CommunityGalleryImagesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, location, publicGalleryName, galleryImageName, options) + if err != nil { + return CommunityGalleryImagesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CommunityGalleryImagesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CommunityGalleryImagesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *CommunityGalleryImagesClient) getCreateRequest(ctx context.Context, location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImagesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + if publicGalleryName == "" { + return nil, errors.New("parameter publicGalleryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName)) + if galleryImageName == "" { + return nil, errors.New("parameter galleryImageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-07-03") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CommunityGalleryImagesClient) getHandleResponse(resp *http.Response) (CommunityGalleryImagesClientGetResponse, error) { + result := CommunityGalleryImagesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImage); err != nil { + return CommunityGalleryImagesClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - List community gallery images inside a gallery. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - publicGalleryName - The public name of the community gallery. +// - options - CommunityGalleryImagesClientListOptions contains the optional parameters for the CommunityGalleryImagesClient.NewListPager +// method. +func (client *CommunityGalleryImagesClient) NewListPager(location string, publicGalleryName string, options *CommunityGalleryImagesClientListOptions) *runtime.Pager[CommunityGalleryImagesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[CommunityGalleryImagesClientListResponse]{ + More: func(page CommunityGalleryImagesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CommunityGalleryImagesClientListResponse) (CommunityGalleryImagesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CommunityGalleryImagesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, publicGalleryName, options) + }, nil) + if err != nil { + return CommunityGalleryImagesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *CommunityGalleryImagesClient) listCreateRequest(ctx context.Context, location string, publicGalleryName string, options *CommunityGalleryImagesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + if publicGalleryName == "" { + return nil, errors.New("parameter publicGalleryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-07-03") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *CommunityGalleryImagesClient) listHandleResponse(resp *http.Response) (CommunityGalleryImagesClientListResponse, error) { + result := CommunityGalleryImagesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImageList); err != nil { + return CommunityGalleryImagesClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimageversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimageversions_client.go new file mode 100644 index 00000000..e98cfa50 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/communitygalleryimageversions_client.go @@ -0,0 +1,192 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcompute + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CommunityGalleryImageVersionsClient contains the methods for the CommunityGalleryImageVersions group. +// Don't use this type directly, use NewCommunityGalleryImageVersionsClient() instead. +type CommunityGalleryImageVersionsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewCommunityGalleryImageVersionsClient creates a new instance of CommunityGalleryImageVersionsClient with the specified values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCommunityGalleryImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleryImageVersionsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &CommunityGalleryImageVersionsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// Get - Get a community gallery image version. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - publicGalleryName - The public name of the community gallery. +// - galleryImageName - The name of the community gallery image definition. +// - galleryImageVersionName - The name of the community gallery image version. Needs to follow semantic version name pattern: +// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. +// Format: .. +// - options - CommunityGalleryImageVersionsClientGetOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.Get +// method. +func (client *CommunityGalleryImageVersionsClient) Get(ctx context.Context, location string, publicGalleryName string, galleryImageName string, galleryImageVersionName string, options *CommunityGalleryImageVersionsClientGetOptions) (CommunityGalleryImageVersionsClientGetResponse, error) { + var err error + const operationName = "CommunityGalleryImageVersionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, location, publicGalleryName, galleryImageName, galleryImageVersionName, options) + if err != nil { + return CommunityGalleryImageVersionsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CommunityGalleryImageVersionsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CommunityGalleryImageVersionsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *CommunityGalleryImageVersionsClient) getCreateRequest(ctx context.Context, location string, publicGalleryName string, galleryImageName string, galleryImageVersionName string, options *CommunityGalleryImageVersionsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + if publicGalleryName == "" { + return nil, errors.New("parameter publicGalleryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName)) + if galleryImageName == "" { + return nil, errors.New("parameter galleryImageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) + if galleryImageVersionName == "" { + return nil, errors.New("parameter galleryImageVersionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-07-03") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CommunityGalleryImageVersionsClient) getHandleResponse(resp *http.Response) (CommunityGalleryImageVersionsClientGetResponse, error) { + result := CommunityGalleryImageVersionsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImageVersion); err != nil { + return CommunityGalleryImageVersionsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - List community gallery image versions inside an image. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - publicGalleryName - The public name of the community gallery. +// - galleryImageName - The name of the community gallery image definition. +// - options - CommunityGalleryImageVersionsClientListOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.NewListPager +// method. +func (client *CommunityGalleryImageVersionsClient) NewListPager(location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImageVersionsClientListOptions) *runtime.Pager[CommunityGalleryImageVersionsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[CommunityGalleryImageVersionsClientListResponse]{ + More: func(page CommunityGalleryImageVersionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CommunityGalleryImageVersionsClientListResponse) (CommunityGalleryImageVersionsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CommunityGalleryImageVersionsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, publicGalleryName, galleryImageName, options) + }, nil) + if err != nil { + return CommunityGalleryImageVersionsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *CommunityGalleryImageVersionsClient) listCreateRequest(ctx context.Context, location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImageVersionsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + if publicGalleryName == "" { + return nil, errors.New("parameter publicGalleryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName)) + if galleryImageName == "" { + return nil, errors.New("parameter galleryImageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-07-03") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *CommunityGalleryImageVersionsClient) listHandleResponse(resp *http.Response) (CommunityGalleryImageVersionsClientListResponse, error) { + result := CommunityGalleryImageVersionsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImageVersionList); err != nil { + return CommunityGalleryImageVersionsClientListResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/constants.go similarity index 80% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_constants.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/constants.go index 024379ab..ab719dfd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_constants.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/constants.go @@ -3,14 +3,14 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute const ( - moduleName = "armcompute" - moduleVersion = "v1.0.0" + moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute" + moduleVersion = "v5.7.0" ) type AccessLevel string @@ -50,6 +50,24 @@ func PossibleAggregatedReplicationStateValues() []AggregatedReplicationState { } } +// AlternativeType - Describes the type of the alternative option. +type AlternativeType string + +const ( + AlternativeTypeNone AlternativeType = "None" + AlternativeTypeOffer AlternativeType = "Offer" + AlternativeTypePlan AlternativeType = "Plan" +) + +// PossibleAlternativeTypeValues returns the possible values for the AlternativeType const type. +func PossibleAlternativeTypeValues() []AlternativeType { + return []AlternativeType{ + AlternativeTypeNone, + AlternativeTypeOffer, + AlternativeTypePlan, + } +} + // Architecture - The architecture of the image. Applicable to OS disks only. type Architecture string @@ -99,12 +117,8 @@ func PossibleAvailabilitySetSKUTypesValues() []AvailabilitySetSKUTypes { } } -// CachingTypes - Specifies the caching requirements. -// Possible values are: -// None -// ReadOnly -// ReadWrite -// Default: None for Standard storage. ReadOnly for Premium storage +// CachingTypes - Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: +// None for Standard storage. ReadOnly for Premium storage type CachingTypes string const ( @@ -148,6 +162,25 @@ func PossibleCapacityReservationInstanceViewTypesValues() []CapacityReservationI } } +// CloudServiceSlotType - Slot type for the cloud service. Possible values are +// Production +// Staging +// If not specified, the default value is Production. +type CloudServiceSlotType string + +const ( + CloudServiceSlotTypeProduction CloudServiceSlotType = "Production" + CloudServiceSlotTypeStaging CloudServiceSlotType = "Staging" +) + +// PossibleCloudServiceSlotTypeValues returns the possible values for the CloudServiceSlotType const type. +func PossibleCloudServiceSlotTypeValues() []CloudServiceSlotType { + return []CloudServiceSlotType{ + CloudServiceSlotTypeProduction, + CloudServiceSlotTypeStaging, + } +} + // CloudServiceUpgradeMode - Update mode for the cloud service. Role instances are allocated to update domains when the service // is deployed. Updates can be initiated manually in each update domain or initiated automatically in // all update domains. Possible Values are @@ -181,6 +214,7 @@ const ( ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk ConfidentialVMEncryptionType = "EncryptedVMGuestStateOnlyWithPmk" ConfidentialVMEncryptionTypeEncryptedWithCmk ConfidentialVMEncryptionType = "EncryptedWithCmk" ConfidentialVMEncryptionTypeEncryptedWithPmk ConfidentialVMEncryptionType = "EncryptedWithPmk" + ConfidentialVMEncryptionTypeNonPersistedTPM ConfidentialVMEncryptionType = "NonPersistedTPM" ) // PossibleConfidentialVMEncryptionTypeValues returns the possible values for the ConfidentialVMEncryptionType const type. @@ -189,6 +223,7 @@ func PossibleConfidentialVMEncryptionTypeValues() []ConfidentialVMEncryptionType ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk, ConfidentialVMEncryptionTypeEncryptedWithCmk, ConfidentialVMEncryptionTypeEncryptedWithPmk, + ConfidentialVMEncryptionTypeNonPersistedTPM, } } @@ -212,6 +247,23 @@ func PossibleConsistencyModeTypesValues() []ConsistencyModeTypes { } } +// CopyCompletionErrorReason - Indicates the error code if the background copy of a resource created via the CopyStart operation +// fails. +type CopyCompletionErrorReason string + +const ( + // CopyCompletionErrorReasonCopySourceNotFound - Indicates that the source snapshot was deleted while the background copy + // of the resource created via CopyStart operation was in progress. + CopyCompletionErrorReasonCopySourceNotFound CopyCompletionErrorReason = "CopySourceNotFound" +) + +// PossibleCopyCompletionErrorReasonValues returns the possible values for the CopyCompletionErrorReason const type. +func PossibleCopyCompletionErrorReasonValues() []CopyCompletionErrorReason { + return []CopyCompletionErrorReason{ + CopyCompletionErrorReasonCopySourceNotFound, + } +} + // DataAccessAuthMode - Additional authentication requirements when exporting or uploading to a disk or snapshot. type DataAccessAuthMode string @@ -232,12 +284,7 @@ func PossibleDataAccessAuthModeValues() []DataAccessAuthMode { } // DedicatedHostLicenseTypes - Specifies the software license type that will be applied to the VMs deployed on the dedicated -// host. -// Possible values are: -// None -// WindowsServerHybrid -// WindowsServerPerpetual -// Default: None +// host. Possible values are: None, WindowsServerHybrid, WindowsServerPerpetual. The default value is: None. type DedicatedHostLicenseTypes string const ( @@ -286,15 +333,17 @@ func PossibleDiffDiskOptionsValues() []DiffDiskOptions { } // DiffDiskPlacement - Specifies the ephemeral disk placement for operating system disk. This property can be used by user -// in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk -// provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements -// for Windows VM at +// in the request to choose the location i.e, cache disk, resource disk or nvme disk space for +// Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS +// disk size requirements for Windows VM at // https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at -// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements +// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. Minimum api-version for NvmeDisk: +// 2024-03-01. type DiffDiskPlacement string const ( DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk" + DiffDiskPlacementNvmeDisk DiffDiskPlacement = "NvmeDisk" DiffDiskPlacementResourceDisk DiffDiskPlacement = "ResourceDisk" ) @@ -302,10 +351,33 @@ const ( func PossibleDiffDiskPlacementValues() []DiffDiskPlacement { return []DiffDiskPlacement{ DiffDiskPlacementCacheDisk, + DiffDiskPlacementNvmeDisk, DiffDiskPlacementResourceDisk, } } +// DiskControllerTypes - Specifies the disk controller type configured for the VM and VirtualMachineScaleSet. This property +// is only supported for virtual machines whose operating system disk and VM sku supports Generation 2 +// (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please check the HyperVGenerations capability returned +// as part of VM sku capabilities in the response of Microsoft.Compute SKUs +// api for the region contains V2 (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more information about +// Disk Controller Types supported please refer to +// https://aka.ms/azure-diskcontrollertypes. +type DiskControllerTypes string + +const ( + DiskControllerTypesNVMe DiskControllerTypes = "NVMe" + DiskControllerTypesSCSI DiskControllerTypes = "SCSI" +) + +// PossibleDiskControllerTypesValues returns the possible values for the DiskControllerTypes const type. +func PossibleDiskControllerTypesValues() []DiskControllerTypes { + return []DiskControllerTypes{ + DiskControllerTypesNVMe, + DiskControllerTypesSCSI, + } +} + // DiskCreateOption - This enumerates the possible sources of a disk's creation. type DiskCreateOption string @@ -314,6 +386,8 @@ const ( DiskCreateOptionAttach DiskCreateOption = "Attach" // DiskCreateOptionCopy - Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. DiskCreateOptionCopy DiskCreateOption = "Copy" + // DiskCreateOptionCopyFromSanSnapshot - Create a new disk by exporting from elastic san volume snapshot + DiskCreateOptionCopyFromSanSnapshot DiskCreateOption = "CopyFromSanSnapshot" // DiskCreateOptionCopyStart - Create a new disk by using a deep copy process, where the resource creation is considered complete // only after all data has been copied from the source. DiskCreateOptionCopyStart DiskCreateOption = "CopyStart" @@ -342,6 +416,7 @@ func PossibleDiskCreateOptionValues() []DiskCreateOption { return []DiskCreateOption{ DiskCreateOptionAttach, DiskCreateOptionCopy, + DiskCreateOptionCopyFromSanSnapshot, DiskCreateOptionCopyStart, DiskCreateOptionEmpty, DiskCreateOptionFromImage, @@ -353,34 +428,38 @@ func PossibleDiskCreateOptionValues() []DiskCreateOption { } } -// DiskCreateOptionTypes - Specifies how the virtual machine should be created. -// Possible values are: -// Attach \u2013 This value is used when you are using a specialized disk to create the virtual machine. -// FromImage \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform -// image, you also use the imageReference element described above. If you are -// using a marketplace image, you also use the plan element previously described. +// DiskCreateOptionTypes - Specifies how the virtual machine disk should be created. Possible values are Attach: This value +// is used when you are using a specialized disk to create the virtual machine. FromImage: This value is +// used when you are using an image to create the virtual machine. If you are using a platform image, you should also use +// the imageReference element described above. If you are using a marketplace image, +// you should also use the plan element previously described. Empty: This value is used when creating an empty data disk. +// Copy: This value is used to create a data disk from a snapshot or another disk. +// Restore: This value is used to create a data disk from a disk restore point. type DiskCreateOptionTypes string const ( DiskCreateOptionTypesAttach DiskCreateOptionTypes = "Attach" + DiskCreateOptionTypesCopy DiskCreateOptionTypes = "Copy" DiskCreateOptionTypesEmpty DiskCreateOptionTypes = "Empty" DiskCreateOptionTypesFromImage DiskCreateOptionTypes = "FromImage" + DiskCreateOptionTypesRestore DiskCreateOptionTypes = "Restore" ) // PossibleDiskCreateOptionTypesValues returns the possible values for the DiskCreateOptionTypes const type. func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes { return []DiskCreateOptionTypes{ DiskCreateOptionTypesAttach, + DiskCreateOptionTypesCopy, DiskCreateOptionTypesEmpty, DiskCreateOptionTypesFromImage, + DiskCreateOptionTypesRestore, } } -// DiskDeleteOptionTypes - Specifies the behavior of the managed disk when the VM gets deleted i.e whether the managed disk -// is deleted or detached. Supported values: -// Delete If this value is used, the managed disk is deleted when VM gets deleted. -// Detach If this value is used, the managed disk is retained after VM gets deleted. -// Minimum api-version: 2021-03-01 +// DiskDeleteOptionTypes - Specifies the behavior of the managed disk when the VM gets deleted, for example whether the managed +// disk is deleted or detached. Supported values are: Delete. If this value is used, the managed disk +// is deleted when VM gets deleted. Detach. If this value is used, the managed disk is retained after VM gets deleted. Minimum +// api-version: 2021-03-01. type DiskDeleteOptionTypes string const ( @@ -397,13 +476,13 @@ func PossibleDiskDeleteOptionTypesValues() []DiskDeleteOptionTypes { } // DiskDetachOptionTypes - Specifies the detach behavior to be used while detaching a disk or which is already in the process -// of detachment from the virtual machine. Supported values: ForceDetach. -// detachOption: ForceDetach is applicable only for managed data disks. If a previous detachment attempt of the data disk -// did not complete due to an unexpected failure from the virtual machine and the -// disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes -// might not have been flushed when using this detach behavior. -// This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update -// toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. +// of detachment from the virtual machine. Supported values are: ForceDetach. detachOption: ForceDetach +// is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an +// unexpected failure from the virtual machine and the disk is still not released +// then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed +// when using this detach behavior. This feature is still in preview mode and +// is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting +// detachOption: 'ForceDetach'. type DiskDetachOptionTypes string const ( @@ -423,8 +502,10 @@ func PossibleDiskDetachOptionTypesValues() []DiskDetachOptionTypes { type DiskEncryptionSetIdentityType string const ( - DiskEncryptionSetIdentityTypeNone DiskEncryptionSetIdentityType = "None" - DiskEncryptionSetIdentityTypeSystemAssigned DiskEncryptionSetIdentityType = "SystemAssigned" + DiskEncryptionSetIdentityTypeNone DiskEncryptionSetIdentityType = "None" + DiskEncryptionSetIdentityTypeSystemAssigned DiskEncryptionSetIdentityType = "SystemAssigned" + DiskEncryptionSetIdentityTypeSystemAssignedUserAssigned DiskEncryptionSetIdentityType = "SystemAssigned, UserAssigned" + DiskEncryptionSetIdentityTypeUserAssigned DiskEncryptionSetIdentityType = "UserAssigned" ) // PossibleDiskEncryptionSetIdentityTypeValues returns the possible values for the DiskEncryptionSetIdentityType const type. @@ -432,6 +513,8 @@ func PossibleDiskEncryptionSetIdentityTypeValues() []DiskEncryptionSetIdentityTy return []DiskEncryptionSetIdentityType{ DiskEncryptionSetIdentityTypeNone, DiskEncryptionSetIdentityTypeSystemAssigned, + DiskEncryptionSetIdentityTypeSystemAssignedUserAssigned, + DiskEncryptionSetIdentityTypeUserAssigned, } } @@ -469,6 +552,9 @@ const ( // DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey - Indicates Confidential VM disk with both OS disk and VM guest // state encrypted with a platform managed key DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey DiskSecurityTypes = "ConfidentialVM_DiskEncryptedWithPlatformKey" + // DiskSecurityTypesConfidentialVMNonPersistedTPM - Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not + // persisted across VM reboots. + DiskSecurityTypesConfidentialVMNonPersistedTPM DiskSecurityTypes = "ConfidentialVM_NonPersistedTPM" // DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey - Indicates Confidential VM disk with only VM guest // state encrypted DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey DiskSecurityTypes = "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" @@ -482,6 +568,7 @@ func PossibleDiskSecurityTypesValues() []DiskSecurityTypes { return []DiskSecurityTypes{ DiskSecurityTypesConfidentialVMDiskEncryptedWithCustomerKey, DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey, + DiskSecurityTypesConfidentialVMNonPersistedTPM, DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey, DiskSecurityTypesTrustedLaunch, } @@ -530,6 +617,9 @@ const ( // DiskStorageAccountTypesPremiumLRS - Premium SSD locally redundant storage. Best for production and performance sensitive // workloads. DiskStorageAccountTypesPremiumLRS DiskStorageAccountTypes = "Premium_LRS" + // DiskStorageAccountTypesPremiumV2LRS - Premium SSD v2 locally redundant storage. Best for production and performance-sensitive + // workloads that consistently require low latency and high IOPS and throughput. + DiskStorageAccountTypesPremiumV2LRS DiskStorageAccountTypes = "PremiumV2_LRS" // DiskStorageAccountTypesPremiumZRS - Premium SSD zone redundant storage. Best for the production workloads that need storage // resiliency against zone failures. DiskStorageAccountTypesPremiumZRS DiskStorageAccountTypes = "Premium_ZRS" @@ -551,6 +641,7 @@ const ( func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes { return []DiskStorageAccountTypes{ DiskStorageAccountTypesPremiumLRS, + DiskStorageAccountTypesPremiumV2LRS, DiskStorageAccountTypesPremiumZRS, DiskStorageAccountTypesStandardLRS, DiskStorageAccountTypesStandardSSDLRS, @@ -559,6 +650,48 @@ func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes { } } +// DomainNameLabelScopeTypes - The Domain name label scope.The concatenation of the hashed domain name label that generated +// according to the policy from domain name label scope and vm index will be the domain name labels of the +// PublicIPAddress resources that will be created +type DomainNameLabelScopeTypes string + +const ( + DomainNameLabelScopeTypesNoReuse DomainNameLabelScopeTypes = "NoReuse" + DomainNameLabelScopeTypesResourceGroupReuse DomainNameLabelScopeTypes = "ResourceGroupReuse" + DomainNameLabelScopeTypesSubscriptionReuse DomainNameLabelScopeTypes = "SubscriptionReuse" + DomainNameLabelScopeTypesTenantReuse DomainNameLabelScopeTypes = "TenantReuse" +) + +// PossibleDomainNameLabelScopeTypesValues returns the possible values for the DomainNameLabelScopeTypes const type. +func PossibleDomainNameLabelScopeTypesValues() []DomainNameLabelScopeTypes { + return []DomainNameLabelScopeTypes{ + DomainNameLabelScopeTypesNoReuse, + DomainNameLabelScopeTypesResourceGroupReuse, + DomainNameLabelScopeTypesSubscriptionReuse, + DomainNameLabelScopeTypesTenantReuse, + } +} + +// EdgeZoneStorageAccountType - Specifies the storage account type to be used to store the image. This property is not updatable. +type EdgeZoneStorageAccountType string + +const ( + EdgeZoneStorageAccountTypePremiumLRS EdgeZoneStorageAccountType = "Premium_LRS" + EdgeZoneStorageAccountTypeStandardLRS EdgeZoneStorageAccountType = "Standard_LRS" + EdgeZoneStorageAccountTypeStandardSSDLRS EdgeZoneStorageAccountType = "StandardSSD_LRS" + EdgeZoneStorageAccountTypeStandardZRS EdgeZoneStorageAccountType = "Standard_ZRS" +) + +// PossibleEdgeZoneStorageAccountTypeValues returns the possible values for the EdgeZoneStorageAccountType const type. +func PossibleEdgeZoneStorageAccountTypeValues() []EdgeZoneStorageAccountType { + return []EdgeZoneStorageAccountType{ + EdgeZoneStorageAccountTypePremiumLRS, + EdgeZoneStorageAccountTypeStandardLRS, + EdgeZoneStorageAccountTypeStandardSSDLRS, + EdgeZoneStorageAccountTypeStandardZRS, + } +} + // EncryptionType - The type of key used to encrypt the data of the disk. type EncryptionType string @@ -609,6 +742,19 @@ func PossibleExecutionStateValues() []ExecutionState { } } +type ExpandTypeForListVMs string + +const ( + ExpandTypeForListVMsInstanceView ExpandTypeForListVMs = "instanceView" +) + +// PossibleExpandTypeForListVMsValues returns the possible values for the ExpandTypeForListVMs const type. +func PossibleExpandTypeForListVMsValues() []ExpandTypeForListVMs { + return []ExpandTypeForListVMs{ + ExpandTypeForListVMsInstanceView, + } +} + type ExpandTypesForGetCapacityReservationGroups string const ( @@ -637,6 +783,19 @@ func PossibleExpandTypesForGetVMScaleSetsValues() []ExpandTypesForGetVMScaleSets } } +type ExpandTypesForListVMs string + +const ( + ExpandTypesForListVMsInstanceView ExpandTypesForListVMs = "instanceView" +) + +// PossibleExpandTypesForListVMsValues returns the possible values for the ExpandTypesForListVMs const type. +func PossibleExpandTypesForListVMsValues() []ExpandTypesForListVMs { + return []ExpandTypesForListVMs{ + ExpandTypesForListVMsInstanceView, + } +} + // ExtendedLocationType - The type of the extended location. type ExtendedLocationType string @@ -665,27 +824,40 @@ func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { } } -// GalleryApplicationVersionPropertiesProvisioningState - The provisioning state, which only appears in the response. -type GalleryApplicationVersionPropertiesProvisioningState string +// FileFormat - Used to specify the file format when making request for SAS on a VHDX file format snapshot +type FileFormat string + +const ( + // FileFormatVHD - A VHD file is a disk image file in the Virtual Hard Disk file format. + FileFormatVHD FileFormat = "VHD" + // FileFormatVHDX - A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. + FileFormatVHDX FileFormat = "VHDX" +) + +// PossibleFileFormatValues returns the possible values for the FileFormat const type. +func PossibleFileFormatValues() []FileFormat { + return []FileFormat{ + FileFormatVHD, + FileFormatVHDX, + } +} + +// GalleryApplicationCustomActionParameterType - Specifies the type of the custom action parameter. Possible values are: String, +// ConfigurationDataBlob or LogOutputBlob +type GalleryApplicationCustomActionParameterType string const ( - GalleryApplicationVersionPropertiesProvisioningStateCreating GalleryApplicationVersionPropertiesProvisioningState = "Creating" - GalleryApplicationVersionPropertiesProvisioningStateDeleting GalleryApplicationVersionPropertiesProvisioningState = "Deleting" - GalleryApplicationVersionPropertiesProvisioningStateFailed GalleryApplicationVersionPropertiesProvisioningState = "Failed" - GalleryApplicationVersionPropertiesProvisioningStateMigrating GalleryApplicationVersionPropertiesProvisioningState = "Migrating" - GalleryApplicationVersionPropertiesProvisioningStateSucceeded GalleryApplicationVersionPropertiesProvisioningState = "Succeeded" - GalleryApplicationVersionPropertiesProvisioningStateUpdating GalleryApplicationVersionPropertiesProvisioningState = "Updating" + GalleryApplicationCustomActionParameterTypeConfigurationDataBlob GalleryApplicationCustomActionParameterType = "ConfigurationDataBlob" + GalleryApplicationCustomActionParameterTypeLogOutputBlob GalleryApplicationCustomActionParameterType = "LogOutputBlob" + GalleryApplicationCustomActionParameterTypeString GalleryApplicationCustomActionParameterType = "String" ) -// PossibleGalleryApplicationVersionPropertiesProvisioningStateValues returns the possible values for the GalleryApplicationVersionPropertiesProvisioningState const type. -func PossibleGalleryApplicationVersionPropertiesProvisioningStateValues() []GalleryApplicationVersionPropertiesProvisioningState { - return []GalleryApplicationVersionPropertiesProvisioningState{ - GalleryApplicationVersionPropertiesProvisioningStateCreating, - GalleryApplicationVersionPropertiesProvisioningStateDeleting, - GalleryApplicationVersionPropertiesProvisioningStateFailed, - GalleryApplicationVersionPropertiesProvisioningStateMigrating, - GalleryApplicationVersionPropertiesProvisioningStateSucceeded, - GalleryApplicationVersionPropertiesProvisioningStateUpdating, +// PossibleGalleryApplicationCustomActionParameterTypeValues returns the possible values for the GalleryApplicationCustomActionParameterType const type. +func PossibleGalleryApplicationCustomActionParameterTypeValues() []GalleryApplicationCustomActionParameterType { + return []GalleryApplicationCustomActionParameterType{ + GalleryApplicationCustomActionParameterTypeConfigurationDataBlob, + GalleryApplicationCustomActionParameterTypeLogOutputBlob, + GalleryApplicationCustomActionParameterTypeString, } } @@ -718,92 +890,44 @@ func PossibleGalleryExtendedLocationTypeValues() []GalleryExtendedLocationType { } } -// GalleryImagePropertiesProvisioningState - The provisioning state, which only appears in the response. -type GalleryImagePropertiesProvisioningState string - -const ( - GalleryImagePropertiesProvisioningStateCreating GalleryImagePropertiesProvisioningState = "Creating" - GalleryImagePropertiesProvisioningStateDeleting GalleryImagePropertiesProvisioningState = "Deleting" - GalleryImagePropertiesProvisioningStateFailed GalleryImagePropertiesProvisioningState = "Failed" - GalleryImagePropertiesProvisioningStateMigrating GalleryImagePropertiesProvisioningState = "Migrating" - GalleryImagePropertiesProvisioningStateSucceeded GalleryImagePropertiesProvisioningState = "Succeeded" - GalleryImagePropertiesProvisioningStateUpdating GalleryImagePropertiesProvisioningState = "Updating" -) - -// PossibleGalleryImagePropertiesProvisioningStateValues returns the possible values for the GalleryImagePropertiesProvisioningState const type. -func PossibleGalleryImagePropertiesProvisioningStateValues() []GalleryImagePropertiesProvisioningState { - return []GalleryImagePropertiesProvisioningState{ - GalleryImagePropertiesProvisioningStateCreating, - GalleryImagePropertiesProvisioningStateDeleting, - GalleryImagePropertiesProvisioningStateFailed, - GalleryImagePropertiesProvisioningStateMigrating, - GalleryImagePropertiesProvisioningStateSucceeded, - GalleryImagePropertiesProvisioningStateUpdating, - } -} - -// GalleryImageVersionPropertiesProvisioningState - The provisioning state, which only appears in the response. -type GalleryImageVersionPropertiesProvisioningState string - -const ( - GalleryImageVersionPropertiesProvisioningStateCreating GalleryImageVersionPropertiesProvisioningState = "Creating" - GalleryImageVersionPropertiesProvisioningStateDeleting GalleryImageVersionPropertiesProvisioningState = "Deleting" - GalleryImageVersionPropertiesProvisioningStateFailed GalleryImageVersionPropertiesProvisioningState = "Failed" - GalleryImageVersionPropertiesProvisioningStateMigrating GalleryImageVersionPropertiesProvisioningState = "Migrating" - GalleryImageVersionPropertiesProvisioningStateSucceeded GalleryImageVersionPropertiesProvisioningState = "Succeeded" - GalleryImageVersionPropertiesProvisioningStateUpdating GalleryImageVersionPropertiesProvisioningState = "Updating" -) - -// PossibleGalleryImageVersionPropertiesProvisioningStateValues returns the possible values for the GalleryImageVersionPropertiesProvisioningState const type. -func PossibleGalleryImageVersionPropertiesProvisioningStateValues() []GalleryImageVersionPropertiesProvisioningState { - return []GalleryImageVersionPropertiesProvisioningState{ - GalleryImageVersionPropertiesProvisioningStateCreating, - GalleryImageVersionPropertiesProvisioningStateDeleting, - GalleryImageVersionPropertiesProvisioningStateFailed, - GalleryImageVersionPropertiesProvisioningStateMigrating, - GalleryImageVersionPropertiesProvisioningStateSucceeded, - GalleryImageVersionPropertiesProvisioningStateUpdating, - } -} - -// GalleryPropertiesProvisioningState - The provisioning state, which only appears in the response. -type GalleryPropertiesProvisioningState string +// GalleryProvisioningState - The provisioning state, which only appears in the response. +type GalleryProvisioningState string const ( - GalleryPropertiesProvisioningStateCreating GalleryPropertiesProvisioningState = "Creating" - GalleryPropertiesProvisioningStateDeleting GalleryPropertiesProvisioningState = "Deleting" - GalleryPropertiesProvisioningStateFailed GalleryPropertiesProvisioningState = "Failed" - GalleryPropertiesProvisioningStateMigrating GalleryPropertiesProvisioningState = "Migrating" - GalleryPropertiesProvisioningStateSucceeded GalleryPropertiesProvisioningState = "Succeeded" - GalleryPropertiesProvisioningStateUpdating GalleryPropertiesProvisioningState = "Updating" + GalleryProvisioningStateCreating GalleryProvisioningState = "Creating" + GalleryProvisioningStateDeleting GalleryProvisioningState = "Deleting" + GalleryProvisioningStateFailed GalleryProvisioningState = "Failed" + GalleryProvisioningStateMigrating GalleryProvisioningState = "Migrating" + GalleryProvisioningStateSucceeded GalleryProvisioningState = "Succeeded" + GalleryProvisioningStateUpdating GalleryProvisioningState = "Updating" ) -// PossibleGalleryPropertiesProvisioningStateValues returns the possible values for the GalleryPropertiesProvisioningState const type. -func PossibleGalleryPropertiesProvisioningStateValues() []GalleryPropertiesProvisioningState { - return []GalleryPropertiesProvisioningState{ - GalleryPropertiesProvisioningStateCreating, - GalleryPropertiesProvisioningStateDeleting, - GalleryPropertiesProvisioningStateFailed, - GalleryPropertiesProvisioningStateMigrating, - GalleryPropertiesProvisioningStateSucceeded, - GalleryPropertiesProvisioningStateUpdating, +// PossibleGalleryProvisioningStateValues returns the possible values for the GalleryProvisioningState const type. +func PossibleGalleryProvisioningStateValues() []GalleryProvisioningState { + return []GalleryProvisioningState{ + GalleryProvisioningStateCreating, + GalleryProvisioningStateDeleting, + GalleryProvisioningStateFailed, + GalleryProvisioningStateMigrating, + GalleryProvisioningStateSucceeded, + GalleryProvisioningStateUpdating, } } -// GallerySharingPermissionTypes - This property allows you to specify the permission of sharing gallery. -// Possible values are: -// Private -// Groups +// GallerySharingPermissionTypes - This property allows you to specify the permission of sharing gallery. Possible values +// are: Private, Groups, Community. type GallerySharingPermissionTypes string const ( - GallerySharingPermissionTypesGroups GallerySharingPermissionTypes = "Groups" - GallerySharingPermissionTypesPrivate GallerySharingPermissionTypes = "Private" + GallerySharingPermissionTypesCommunity GallerySharingPermissionTypes = "Community" + GallerySharingPermissionTypesGroups GallerySharingPermissionTypes = "Groups" + GallerySharingPermissionTypesPrivate GallerySharingPermissionTypes = "Private" ) // PossibleGallerySharingPermissionTypesValues returns the possible values for the GallerySharingPermissionTypes const type. func PossibleGallerySharingPermissionTypesValues() []GallerySharingPermissionTypes { return []GallerySharingPermissionTypes{ + GallerySharingPermissionTypesCommunity, GallerySharingPermissionTypesGroups, GallerySharingPermissionTypesPrivate, } @@ -909,6 +1033,24 @@ func PossibleIPVersionsValues() []IPVersions { } } +// ImageState - Describes the state of the image. +type ImageState string + +const ( + ImageStateActive ImageState = "Active" + ImageStateDeprecated ImageState = "Deprecated" + ImageStateScheduledForDeprecation ImageState = "ScheduledForDeprecation" +) + +// PossibleImageStateValues returns the possible values for the ImageState const type. +func PossibleImageStateValues() []ImageState { + return []ImageState{ + ImageStateActive, + ImageStateDeprecated, + ImageStateScheduledForDeprecation, + } +} + type InstanceViewTypes string const ( @@ -928,19 +1070,19 @@ func PossibleInstanceViewTypesValues() []InstanceViewTypes { type IntervalInMins string const ( - IntervalInMinsThreeMins IntervalInMins = "ThreeMins" IntervalInMinsFiveMins IntervalInMins = "FiveMins" - IntervalInMinsThirtyMins IntervalInMins = "ThirtyMins" IntervalInMinsSixtyMins IntervalInMins = "SixtyMins" + IntervalInMinsThirtyMins IntervalInMins = "ThirtyMins" + IntervalInMinsThreeMins IntervalInMins = "ThreeMins" ) // PossibleIntervalInMinsValues returns the possible values for the IntervalInMins const type. func PossibleIntervalInMinsValues() []IntervalInMins { return []IntervalInMins{ - IntervalInMinsThreeMins, IntervalInMinsFiveMins, - IntervalInMinsThirtyMins, IntervalInMinsSixtyMins, + IntervalInMinsThirtyMins, + IntervalInMinsThreeMins, } } @@ -1009,19 +1151,37 @@ func PossibleLinuxVMGuestPatchModeValues() []LinuxVMGuestPatchMode { type MaintenanceOperationResultCodeTypes string const ( - MaintenanceOperationResultCodeTypesNone MaintenanceOperationResultCodeTypes = "None" - MaintenanceOperationResultCodeTypesRetryLater MaintenanceOperationResultCodeTypes = "RetryLater" MaintenanceOperationResultCodeTypesMaintenanceAborted MaintenanceOperationResultCodeTypes = "MaintenanceAborted" MaintenanceOperationResultCodeTypesMaintenanceCompleted MaintenanceOperationResultCodeTypes = "MaintenanceCompleted" + MaintenanceOperationResultCodeTypesNone MaintenanceOperationResultCodeTypes = "None" + MaintenanceOperationResultCodeTypesRetryLater MaintenanceOperationResultCodeTypes = "RetryLater" ) // PossibleMaintenanceOperationResultCodeTypesValues returns the possible values for the MaintenanceOperationResultCodeTypes const type. func PossibleMaintenanceOperationResultCodeTypesValues() []MaintenanceOperationResultCodeTypes { return []MaintenanceOperationResultCodeTypes{ - MaintenanceOperationResultCodeTypesNone, - MaintenanceOperationResultCodeTypesRetryLater, MaintenanceOperationResultCodeTypesMaintenanceAborted, MaintenanceOperationResultCodeTypesMaintenanceCompleted, + MaintenanceOperationResultCodeTypesNone, + MaintenanceOperationResultCodeTypesRetryLater, + } +} + +// Mode - Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or +// monitor but not enforce access control over requests to host endpoints in Audit mode, +// while in Enforce mode it will enforce access control. The default value is Enforce mode. +type Mode string + +const ( + ModeAudit Mode = "Audit" + ModeEnforce Mode = "Enforce" +) + +// PossibleModeValues returns the possible values for the Mode const type. +func PossibleModeValues() []Mode { + return []Mode{ + ModeAudit, + ModeEnforce, } } @@ -1061,6 +1221,46 @@ func PossibleNetworkAccessPolicyValues() []NetworkAccessPolicy { } } +// NetworkInterfaceAuxiliaryMode - Specifies whether the Auxiliary mode is enabled for the Network Interface resource. +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +// PossibleNetworkInterfaceAuxiliaryModeValues returns the possible values for the NetworkInterfaceAuxiliaryMode const type. +func PossibleNetworkInterfaceAuxiliaryModeValues() []NetworkInterfaceAuxiliaryMode { + return []NetworkInterfaceAuxiliaryMode{ + NetworkInterfaceAuxiliaryModeAcceleratedConnections, + NetworkInterfaceAuxiliaryModeFloating, + NetworkInterfaceAuxiliaryModeNone, + } +} + +// NetworkInterfaceAuxiliarySKU - Specifies whether the Auxiliary sku is enabled for the Network Interface resource. +type NetworkInterfaceAuxiliarySKU string + +const ( + NetworkInterfaceAuxiliarySKUA1 NetworkInterfaceAuxiliarySKU = "A1" + NetworkInterfaceAuxiliarySKUA2 NetworkInterfaceAuxiliarySKU = "A2" + NetworkInterfaceAuxiliarySKUA4 NetworkInterfaceAuxiliarySKU = "A4" + NetworkInterfaceAuxiliarySKUA8 NetworkInterfaceAuxiliarySKU = "A8" + NetworkInterfaceAuxiliarySKUNone NetworkInterfaceAuxiliarySKU = "None" +) + +// PossibleNetworkInterfaceAuxiliarySKUValues returns the possible values for the NetworkInterfaceAuxiliarySKU const type. +func PossibleNetworkInterfaceAuxiliarySKUValues() []NetworkInterfaceAuxiliarySKU { + return []NetworkInterfaceAuxiliarySKU{ + NetworkInterfaceAuxiliarySKUA1, + NetworkInterfaceAuxiliarySKUA2, + NetworkInterfaceAuxiliarySKUA4, + NetworkInterfaceAuxiliarySKUA8, + NetworkInterfaceAuxiliarySKUNone, + } +} + // OperatingSystemStateTypes - This property allows the user to specify whether the virtual machines created under this image // are 'Generalized' or 'Specialized'. type OperatingSystemStateTypes string @@ -1094,23 +1294,20 @@ func PossibleOperatingSystemTypeValues() []OperatingSystemType { } } -// OperatingSystemTypes - This property allows you to specify the type of the OS that is included in the disk when creating -// a VM from a managed image. -// Possible values are: -// Windows -// Linux +// OperatingSystemTypes - This property allows you to specify the supported type of the OS that application is built for. +// Possible values are: Windows, Linux. type OperatingSystemTypes string const ( - OperatingSystemTypesWindows OperatingSystemTypes = "Windows" OperatingSystemTypesLinux OperatingSystemTypes = "Linux" + OperatingSystemTypesWindows OperatingSystemTypes = "Windows" ) // PossibleOperatingSystemTypesValues returns the possible values for the OperatingSystemTypes const type. func PossibleOperatingSystemTypesValues() []OperatingSystemTypes { return []OperatingSystemTypes{ - OperatingSystemTypesWindows, OperatingSystemTypesLinux, + OperatingSystemTypesWindows, } } @@ -1242,6 +1439,26 @@ func PossiblePatchOperationStatusValues() []PatchOperationStatus { } } +// PolicyViolationCategory - Describes the nature of the policy violation. +type PolicyViolationCategory string + +const ( + PolicyViolationCategoryCopyrightValidation PolicyViolationCategory = "CopyrightValidation" + PolicyViolationCategoryIPTheft PolicyViolationCategory = "IpTheft" + PolicyViolationCategoryImageFlaggedUnsafe PolicyViolationCategory = "ImageFlaggedUnsafe" + PolicyViolationCategoryOther PolicyViolationCategory = "Other" +) + +// PossiblePolicyViolationCategoryValues returns the possible values for the PolicyViolationCategory const type. +func PossiblePolicyViolationCategoryValues() []PolicyViolationCategory { + return []PolicyViolationCategory{ + PolicyViolationCategoryCopyrightValidation, + PolicyViolationCategoryIPTheft, + PolicyViolationCategoryImageFlaggedUnsafe, + PolicyViolationCategoryOther, + } +} + // PrivateEndpointConnectionProvisioningState - The current provisioning state. type PrivateEndpointConnectionProvisioningState string @@ -1280,10 +1497,7 @@ func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointSer } } -// ProtocolTypes - Specifies the protocol of WinRM listener. -// Possible values are: -// http -// https +// ProtocolTypes - Specifies the protocol of WinRM listener. Possible values are: http, https. type ProtocolTypes string const ( @@ -1299,10 +1513,25 @@ func PossibleProtocolTypesValues() []ProtocolTypes { } } -// ProximityPlacementGroupType - Specifies the type of the proximity placement group. -// Possible values are: -// Standard : Co-locate resources within an Azure region or Availability Zone. -// Ultra : For future use. +// ProvisionedBandwidthCopyOption - If this field is set on a snapshot and createOption is CopyStart, the snapshot will be +// copied at a quicker speed. +type ProvisionedBandwidthCopyOption string + +const ( + ProvisionedBandwidthCopyOptionEnhanced ProvisionedBandwidthCopyOption = "Enhanced" + ProvisionedBandwidthCopyOptionNone ProvisionedBandwidthCopyOption = "None" +) + +// PossibleProvisionedBandwidthCopyOptionValues returns the possible values for the ProvisionedBandwidthCopyOption const type. +func PossibleProvisionedBandwidthCopyOptionValues() []ProvisionedBandwidthCopyOption { + return []ProvisionedBandwidthCopyOption{ + ProvisionedBandwidthCopyOptionEnhanced, + ProvisionedBandwidthCopyOptionNone, + } +} + +// ProximityPlacementGroupType - Specifies the type of the proximity placement group. Possible values are: Standard : Co-locate +// resources within an Azure region or Availability Zone. Ultra : For future use. type ProximityPlacementGroupType string const ( @@ -1447,12 +1676,31 @@ type ReplicationStatusTypes string const ( ReplicationStatusTypesReplicationStatus ReplicationStatusTypes = "ReplicationStatus" + ReplicationStatusTypesUefiSettings ReplicationStatusTypes = "UefiSettings" ) // PossibleReplicationStatusTypesValues returns the possible values for the ReplicationStatusTypes const type. func PossibleReplicationStatusTypesValues() []ReplicationStatusTypes { return []ReplicationStatusTypes{ ReplicationStatusTypesReplicationStatus, + ReplicationStatusTypesUefiSettings, + } +} + +type ResourceIDOptionsForGetCapacityReservationGroups string + +const ( + ResourceIDOptionsForGetCapacityReservationGroupsAll ResourceIDOptionsForGetCapacityReservationGroups = "All" + ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription ResourceIDOptionsForGetCapacityReservationGroups = "CreatedInSubscription" + ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription ResourceIDOptionsForGetCapacityReservationGroups = "SharedWithSubscription" +) + +// PossibleResourceIDOptionsForGetCapacityReservationGroupsValues returns the possible values for the ResourceIDOptionsForGetCapacityReservationGroups const type. +func PossibleResourceIDOptionsForGetCapacityReservationGroupsValues() []ResourceIDOptionsForGetCapacityReservationGroups { + return []ResourceIDOptionsForGetCapacityReservationGroups{ + ResourceIDOptionsForGetCapacityReservationGroupsAll, + ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription, + ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription, } } @@ -1462,19 +1710,19 @@ func PossibleReplicationStatusTypesValues() []ReplicationStatusTypes { type ResourceIdentityType string const ( + ResourceIdentityTypeNone ResourceIdentityType = "None" ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" - ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" - ResourceIdentityTypeNone ResourceIdentityType = "None" + ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ) // PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type. func PossibleResourceIdentityTypeValues() []ResourceIdentityType { return []ResourceIdentityType{ + ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, - ResourceIdentityTypeUserAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, - ResourceIdentityTypeNone, + ResourceIdentityTypeUserAssigned, } } @@ -1500,15 +1748,15 @@ func PossibleResourceSKUCapacityScaleTypeValues() []ResourceSKUCapacityScaleType type ResourceSKURestrictionsReasonCode string const ( - ResourceSKURestrictionsReasonCodeQuotaID ResourceSKURestrictionsReasonCode = "QuotaId" ResourceSKURestrictionsReasonCodeNotAvailableForSubscription ResourceSKURestrictionsReasonCode = "NotAvailableForSubscription" + ResourceSKURestrictionsReasonCodeQuotaID ResourceSKURestrictionsReasonCode = "QuotaId" ) // PossibleResourceSKURestrictionsReasonCodeValues returns the possible values for the ResourceSKURestrictionsReasonCode const type. func PossibleResourceSKURestrictionsReasonCodeValues() []ResourceSKURestrictionsReasonCode { return []ResourceSKURestrictionsReasonCode{ - ResourceSKURestrictionsReasonCodeQuotaID, ResourceSKURestrictionsReasonCodeNotAvailableForSubscription, + ResourceSKURestrictionsReasonCodeQuotaID, } } @@ -1541,6 +1789,30 @@ func PossibleRestorePointCollectionExpandOptionsValues() []RestorePointCollectio } } +// RestorePointEncryptionType - The type of key used to encrypt the data of the disk restore point. +type RestorePointEncryptionType string + +const ( + // RestorePointEncryptionTypeEncryptionAtRestWithCustomerKey - Disk Restore Point is encrypted at rest with Customer managed + // key that can be changed and revoked by a customer. + RestorePointEncryptionTypeEncryptionAtRestWithCustomerKey RestorePointEncryptionType = "EncryptionAtRestWithCustomerKey" + // RestorePointEncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys - Disk Restore Point is encrypted at rest with 2 + // layers of encryption. One of the keys is Customer managed and the other key is Platform managed. + RestorePointEncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys RestorePointEncryptionType = "EncryptionAtRestWithPlatformAndCustomerKeys" + // RestorePointEncryptionTypeEncryptionAtRestWithPlatformKey - Disk Restore Point is encrypted at rest with Platform managed + // key. + RestorePointEncryptionTypeEncryptionAtRestWithPlatformKey RestorePointEncryptionType = "EncryptionAtRestWithPlatformKey" +) + +// PossibleRestorePointEncryptionTypeValues returns the possible values for the RestorePointEncryptionType const type. +func PossibleRestorePointEncryptionTypeValues() []RestorePointEncryptionType { + return []RestorePointEncryptionType{ + RestorePointEncryptionTypeEncryptionAtRestWithCustomerKey, + RestorePointEncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys, + RestorePointEncryptionTypeEncryptionAtRestWithPlatformKey, + } +} + type RestorePointExpandOptions string const ( @@ -1558,15 +1830,15 @@ func PossibleRestorePointExpandOptionsValues() []RestorePointExpandOptions { type RollingUpgradeActionType string const ( - RollingUpgradeActionTypeStart RollingUpgradeActionType = "Start" RollingUpgradeActionTypeCancel RollingUpgradeActionType = "Cancel" + RollingUpgradeActionTypeStart RollingUpgradeActionType = "Start" ) // PossibleRollingUpgradeActionTypeValues returns the possible values for the RollingUpgradeActionType const type. func PossibleRollingUpgradeActionTypeValues() []RollingUpgradeActionType { return []RollingUpgradeActionType{ - RollingUpgradeActionTypeStart, RollingUpgradeActionTypeCancel, + RollingUpgradeActionTypeStart, } } @@ -1574,30 +1846,48 @@ func PossibleRollingUpgradeActionTypeValues() []RollingUpgradeActionType { type RollingUpgradeStatusCode string const ( - RollingUpgradeStatusCodeRollingForward RollingUpgradeStatusCode = "RollingForward" RollingUpgradeStatusCodeCancelled RollingUpgradeStatusCode = "Cancelled" RollingUpgradeStatusCodeCompleted RollingUpgradeStatusCode = "Completed" RollingUpgradeStatusCodeFaulted RollingUpgradeStatusCode = "Faulted" + RollingUpgradeStatusCodeRollingForward RollingUpgradeStatusCode = "RollingForward" ) // PossibleRollingUpgradeStatusCodeValues returns the possible values for the RollingUpgradeStatusCode const type. func PossibleRollingUpgradeStatusCodeValues() []RollingUpgradeStatusCode { return []RollingUpgradeStatusCode{ - RollingUpgradeStatusCodeRollingForward, RollingUpgradeStatusCodeCancelled, RollingUpgradeStatusCodeCompleted, RollingUpgradeStatusCodeFaulted, + RollingUpgradeStatusCodeRollingForward, + } +} + +// SSHEncryptionTypes - The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. +// If not provided, will default to RSA +type SSHEncryptionTypes string + +const ( + SSHEncryptionTypesEd25519 SSHEncryptionTypes = "Ed25519" + SSHEncryptionTypesRSA SSHEncryptionTypes = "RSA" +) + +// PossibleSSHEncryptionTypesValues returns the possible values for the SSHEncryptionTypes const type. +func PossibleSSHEncryptionTypesValues() []SSHEncryptionTypes { + return []SSHEncryptionTypes{ + SSHEncryptionTypesEd25519, + SSHEncryptionTypesRSA, } } -// SecurityEncryptionTypes - Specifies the EncryptionType of the managed disk. -// It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly -// for encryption of just the VMGuestState blob. -// NOTE: It can be set for only Confidential VMs. +// SecurityEncryptionTypes - Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption +// of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the +// VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. Note: It can be set +// for only Confidential VMs. type SecurityEncryptionTypes string const ( SecurityEncryptionTypesDiskWithVMGuestState SecurityEncryptionTypes = "DiskWithVMGuestState" + SecurityEncryptionTypesNonPersistedTPM SecurityEncryptionTypes = "NonPersistedTPM" SecurityEncryptionTypesVMGuestStateOnly SecurityEncryptionTypes = "VMGuestStateOnly" ) @@ -1605,12 +1895,14 @@ const ( func PossibleSecurityEncryptionTypesValues() []SecurityEncryptionTypes { return []SecurityEncryptionTypes{ SecurityEncryptionTypesDiskWithVMGuestState, + SecurityEncryptionTypesNonPersistedTPM, SecurityEncryptionTypesVMGuestStateOnly, } } // SecurityTypes - Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. -// Default: UefiSettings will not be enabled unless this property is set. +// The default behavior is: UefiSettings will not be enabled unless this property is +// set. type SecurityTypes string const ( @@ -1656,6 +1948,24 @@ func PossibleSettingNamesValues() []SettingNames { } } +// SharedGalleryHostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' +type SharedGalleryHostCaching string + +const ( + SharedGalleryHostCachingNone SharedGalleryHostCaching = "None" + SharedGalleryHostCachingReadOnly SharedGalleryHostCaching = "ReadOnly" + SharedGalleryHostCachingReadWrite SharedGalleryHostCaching = "ReadWrite" +) + +// PossibleSharedGalleryHostCachingValues returns the possible values for the SharedGalleryHostCaching const type. +func PossibleSharedGalleryHostCachingValues() []SharedGalleryHostCaching { + return []SharedGalleryHostCaching{ + SharedGalleryHostCachingNone, + SharedGalleryHostCachingReadOnly, + SharedGalleryHostCachingReadWrite, + } +} + type SharedToValues string const ( @@ -1669,16 +1979,12 @@ func PossibleSharedToValuesValues() []SharedToValues { } } -// SharingProfileGroupTypes - This property allows you to specify the type of sharing group. -// Possible values are: -// Subscriptions -// AADTenants -// Community +// SharingProfileGroupTypes - This property allows you to specify the type of sharing group. Possible values are: Subscriptions, +// AADTenants. type SharingProfileGroupTypes string const ( SharingProfileGroupTypesAADTenants SharingProfileGroupTypes = "AADTenants" - SharingProfileGroupTypesCommunity SharingProfileGroupTypes = "Community" SharingProfileGroupTypesSubscriptions SharingProfileGroupTypes = "Subscriptions" ) @@ -1686,7 +1992,6 @@ const ( func PossibleSharingProfileGroupTypesValues() []SharingProfileGroupTypes { return []SharingProfileGroupTypes{ SharingProfileGroupTypesAADTenants, - SharingProfileGroupTypesCommunity, SharingProfileGroupTypesSubscriptions, } } @@ -1711,11 +2016,8 @@ func PossibleSharingStateValues() []SharingState { } } -// SharingUpdateOperationTypes - This property allows you to specify the operation type of gallery sharing update. -// Possible values are: -// Add -// Remove -// Reset +// SharingUpdateOperationTypes - This property allows you to specify the operation type of gallery sharing update. Possible +// values are: Add, Remove, Reset. type SharingUpdateOperationTypes string const ( @@ -1760,17 +2062,17 @@ func PossibleSnapshotStorageAccountTypesValues() []SnapshotStorageAccountTypes { type StatusLevelTypes string const ( + StatusLevelTypesError StatusLevelTypes = "Error" StatusLevelTypesInfo StatusLevelTypes = "Info" StatusLevelTypesWarning StatusLevelTypes = "Warning" - StatusLevelTypesError StatusLevelTypes = "Error" ) // PossibleStatusLevelTypesValues returns the possible values for the StatusLevelTypes const type. func PossibleStatusLevelTypesValues() []StatusLevelTypes { return []StatusLevelTypes{ + StatusLevelTypesError, StatusLevelTypesInfo, StatusLevelTypesWarning, - StatusLevelTypesError, } } @@ -1824,6 +2126,40 @@ func PossibleStorageAccountTypesValues() []StorageAccountTypes { } } +// UefiKeyType - The type of key signature. +type UefiKeyType string + +const ( + UefiKeyTypeSHA256 UefiKeyType = "sha256" + UefiKeyTypeX509 UefiKeyType = "x509" +) + +// PossibleUefiKeyTypeValues returns the possible values for the UefiKeyType const type. +func PossibleUefiKeyTypeValues() []UefiKeyType { + return []UefiKeyType{ + UefiKeyTypeSHA256, + UefiKeyTypeX509, + } +} + +// UefiSignatureTemplateName - The name of the signature template that contains default UEFI keys. +type UefiSignatureTemplateName string + +const ( + UefiSignatureTemplateNameMicrosoftUefiCertificateAuthorityTemplate UefiSignatureTemplateName = "MicrosoftUefiCertificateAuthorityTemplate" + UefiSignatureTemplateNameMicrosoftWindowsTemplate UefiSignatureTemplateName = "MicrosoftWindowsTemplate" + UefiSignatureTemplateNameNoSignatureTemplate UefiSignatureTemplateName = "NoSignatureTemplate" +) + +// PossibleUefiSignatureTemplateNameValues returns the possible values for the UefiSignatureTemplateName const type. +func PossibleUefiSignatureTemplateNameValues() []UefiSignatureTemplateName { + return []UefiSignatureTemplateName{ + UefiSignatureTemplateNameMicrosoftUefiCertificateAuthorityTemplate, + UefiSignatureTemplateNameMicrosoftWindowsTemplate, + UefiSignatureTemplateNameNoSignatureTemplate, + } +} + // UpgradeMode - Specifies the mode of an upgrade to virtual machines in the scale set. // Possible values are: // Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade @@ -1850,17 +2186,17 @@ func PossibleUpgradeModeValues() []UpgradeMode { type UpgradeOperationInvoker string const ( + UpgradeOperationInvokerPlatform UpgradeOperationInvoker = "Platform" UpgradeOperationInvokerUnknown UpgradeOperationInvoker = "Unknown" UpgradeOperationInvokerUser UpgradeOperationInvoker = "User" - UpgradeOperationInvokerPlatform UpgradeOperationInvoker = "Platform" ) // PossibleUpgradeOperationInvokerValues returns the possible values for the UpgradeOperationInvoker const type. func PossibleUpgradeOperationInvokerValues() []UpgradeOperationInvoker { return []UpgradeOperationInvoker{ + UpgradeOperationInvokerPlatform, UpgradeOperationInvokerUnknown, UpgradeOperationInvokerUser, - UpgradeOperationInvokerPlatform, } } @@ -1868,19 +2204,19 @@ func PossibleUpgradeOperationInvokerValues() []UpgradeOperationInvoker { type UpgradeState string const ( - UpgradeStateRollingForward UpgradeState = "RollingForward" UpgradeStateCancelled UpgradeState = "Cancelled" UpgradeStateCompleted UpgradeState = "Completed" UpgradeStateFaulted UpgradeState = "Faulted" + UpgradeStateRollingForward UpgradeState = "RollingForward" ) // PossibleUpgradeStateValues returns the possible values for the UpgradeState const type. func PossibleUpgradeStateValues() []UpgradeState { return []UpgradeState{ - UpgradeStateRollingForward, UpgradeStateCancelled, UpgradeStateCompleted, UpgradeStateFaulted, + UpgradeStateRollingForward, } } @@ -2023,8 +2359,8 @@ func PossibleVirtualMachineEvictionPolicyTypesValues() []VirtualMachineEvictionP } // VirtualMachinePriorityTypes - Specifies the priority for a standalone virtual machine or the virtual machines in the scale -// set. -// 'Low' enum will be deprecated in the future, please use 'Spot' as the enum to deploy Azure Spot VM/VMSS. +// set. 'Low' enum will be deprecated in the future, please use 'Spot' as the enum to deploy Azure Spot +// VM/VMSS. type VirtualMachinePriorityTypes string const ( @@ -2075,15 +2411,14 @@ func PossibleVirtualMachineScaleSetScaleInRulesValues() []VirtualMachineScaleSet } } -// VirtualMachineSizeTypes - Specifies the size of the virtual machine. -// The enum data type is currently deprecated and will be removed by December 23rd 2023. -// Recommended way to get the list of available sizes is using these APIs: -// List all available virtual machine sizes in an availability set [https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes] -// List all available virtual machine sizes in a region [https://docs.microsoft.com/rest/api/compute/resourceskus/list] -// List all available virtual machine sizes for resizing [https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes]. -// For more information about virtual machine sizes, see Sizes for -// virtual machines [https://docs.microsoft.com/azure/virtual-machines/sizes]. -// The available VM sizes depend on region and availability set. +// VirtualMachineSizeTypes - Specifies the size of the virtual machine. The enum data type is currently deprecated and will +// be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these +// APIs: List all available virtual machine sizes in an availability set [https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes], +// List all available virtual machine sizes in a +// region [https://docs.microsoft.com/rest/api/compute/resourceskus/list], List all available virtual machine sizes for resizing +// [https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes]. For more information about virtual machine +// sizes, see Sizes for virtual machines +// [https://docs.microsoft.com/azure/virtual-machines/sizes]. The available VM sizes depend on region and availability set. type VirtualMachineSizeTypes string const ( diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhostgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhostgroups_client.go similarity index 71% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhostgroups_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhostgroups_client.go index 0b8447c4..ae2c4f36 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhostgroups_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhostgroups_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,32 +23,23 @@ import ( // DedicatedHostGroupsClient contains the methods for the DedicatedHostGroups group. // Don't use this type directly, use NewDedicatedHostGroupsClient() instead. type DedicatedHostGroupsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDedicatedHostGroupsClient creates a new instance of DedicatedHostGroupsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDedicatedHostGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DedicatedHostGroupsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DedicatedHostGroupsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } @@ -58,25 +47,33 @@ func NewDedicatedHostGroupsClient(subscriptionID string, credential azcore.Token // CreateOrUpdate - Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please // see Dedicated Host Documentation [https://go.microsoft.com/fwlink/?linkid=2082596] // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// parameters - Parameters supplied to the Create Dedicated Host Group. -// options - DedicatedHostGroupsClientCreateOrUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.CreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - parameters - Parameters supplied to the Create Dedicated Host Group. +// - options - DedicatedHostGroupsClientCreateOrUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.CreateOrUpdate +// method. func (client *DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, parameters DedicatedHostGroup, options *DedicatedHostGroupsClientCreateOrUpdateOptions) (DedicatedHostGroupsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "DedicatedHostGroupsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, hostGroupName, parameters, options) if err != nil { return DedicatedHostGroupsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DedicatedHostGroupsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return DedicatedHostGroupsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return DedicatedHostGroupsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -94,15 +91,18 @@ func (client *DedicatedHostGroupsClient) createOrUpdateCreateRequest(ctx context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -116,22 +116,29 @@ func (client *DedicatedHostGroupsClient) createOrUpdateHandleResponse(resp *http // Delete - Delete a dedicated host group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// options - DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - options - DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete +// method. func (client *DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGroupName string, hostGroupName string, options *DedicatedHostGroupsClientDeleteOptions) (DedicatedHostGroupsClientDeleteResponse, error) { + var err error + const operationName = "DedicatedHostGroupsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, hostGroupName, options) if err != nil { return DedicatedHostGroupsClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DedicatedHostGroupsClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return DedicatedHostGroupsClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return DedicatedHostGroupsClientDeleteResponse{}, err } return DedicatedHostGroupsClientDeleteResponse{}, nil } @@ -151,12 +158,12 @@ func (client *DedicatedHostGroupsClient) deleteCreateRequest(ctx context.Context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -164,23 +171,31 @@ func (client *DedicatedHostGroupsClient) deleteCreateRequest(ctx context.Context // Get - Retrieves information about a dedicated host group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// options - DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - options - DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method. func (client *DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupName string, hostGroupName string, options *DedicatedHostGroupsClientGetOptions) (DedicatedHostGroupsClientGetResponse, error) { + var err error + const operationName = "DedicatedHostGroupsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, hostGroupName, options) if err != nil { return DedicatedHostGroupsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DedicatedHostGroupsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DedicatedHostGroupsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DedicatedHostGroupsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -198,7 +213,7 @@ func (client *DedicatedHostGroupsClient) getCreateRequest(ctx context.Context, r return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -206,7 +221,7 @@ func (client *DedicatedHostGroupsClient) getCreateRequest(ctx context.Context, r if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -223,36 +238,31 @@ func (client *DedicatedHostGroupsClient) getHandleResponse(resp *http.Response) // NewListByResourceGroupPager - Lists all of the dedicated host groups in the specified resource group. Use the nextLink // property in the response to get the next page of dedicated host groups. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.ListByResourceGroup -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListByResourceGroupPager +// method. func (client *DedicatedHostGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *DedicatedHostGroupsClientListByResourceGroupOptions) *runtime.Pager[DedicatedHostGroupsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[DedicatedHostGroupsClientListByResourceGroupResponse]{ More: func(page DedicatedHostGroupsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DedicatedHostGroupsClientListByResourceGroupResponse) (DedicatedHostGroupsClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return DedicatedHostGroupsClientListByResourceGroupResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DedicatedHostGroupsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return DedicatedHostGroupsClientListByResourceGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DedicatedHostGroupsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -267,12 +277,12 @@ func (client *DedicatedHostGroupsClient) listByResourceGroupCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -289,35 +299,30 @@ func (client *DedicatedHostGroupsClient) listByResourceGroupHandleResponse(resp // NewListBySubscriptionPager - Lists all of the dedicated host groups in the subscription. Use the nextLink property in the // response to get the next page of dedicated host groups. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.ListBySubscription -// method. +// +// Generated from API version 2024-03-01 +// - options - DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListBySubscriptionPager +// method. func (client *DedicatedHostGroupsClient) NewListBySubscriptionPager(options *DedicatedHostGroupsClientListBySubscriptionOptions) *runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[DedicatedHostGroupsClientListBySubscriptionResponse]{ More: func(page DedicatedHostGroupsClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DedicatedHostGroupsClientListBySubscriptionResponse) (DedicatedHostGroupsClientListBySubscriptionResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listBySubscriptionCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return DedicatedHostGroupsClientListBySubscriptionResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DedicatedHostGroupsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) if err != nil { return DedicatedHostGroupsClientListBySubscriptionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DedicatedHostGroupsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) - } return client.listBySubscriptionHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -328,12 +333,12 @@ func (client *DedicatedHostGroupsClient) listBySubscriptionCreateRequest(ctx con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -350,25 +355,33 @@ func (client *DedicatedHostGroupsClient) listBySubscriptionHandleResponse(resp * // Update - Update an dedicated host group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// parameters - Parameters supplied to the Update Dedicated Host Group operation. -// options - DedicatedHostGroupsClientUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.Update -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - parameters - Parameters supplied to the Update Dedicated Host Group operation. +// - options - DedicatedHostGroupsClientUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.Update +// method. func (client *DedicatedHostGroupsClient) Update(ctx context.Context, resourceGroupName string, hostGroupName string, parameters DedicatedHostGroupUpdate, options *DedicatedHostGroupsClientUpdateOptions) (DedicatedHostGroupsClientUpdateResponse, error) { + var err error + const operationName = "DedicatedHostGroupsClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, hostGroupName, parameters, options) if err != nil { return DedicatedHostGroupsClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DedicatedHostGroupsClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DedicatedHostGroupsClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DedicatedHostGroupsClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -386,15 +399,18 @@ func (client *DedicatedHostGroupsClient) updateCreateRequest(ctx context.Context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhosts_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhosts_client.go similarity index 50% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhosts_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhosts_client.go index 25f0e294..66ae1f99 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhosts_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhosts_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,73 +23,77 @@ import ( // DedicatedHostsClient contains the methods for the DedicatedHosts group. // Don't use this type directly, use NewDedicatedHostsClient() instead. type DedicatedHostsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDedicatedHostsClient creates a new instance of DedicatedHostsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDedicatedHostsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DedicatedHostsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DedicatedHostsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Create or update a dedicated host . // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// hostName - The name of the dedicated host . -// parameters - Parameters supplied to the Create Dedicated Host. -// options - DedicatedHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - hostName - The name of the dedicated host . +// - parameters - Parameters supplied to the Create Dedicated Host. +// - options - DedicatedHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginCreateOrUpdate +// method. func (client *DedicatedHostsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHost, options *DedicatedHostsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, hostGroupName, hostName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[DedicatedHostsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DedicatedHostsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DedicatedHostsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DedicatedHostsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a dedicated host . // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *DedicatedHostsClient) createOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHost, options *DedicatedHostsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DedicatedHostsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -113,53 +115,69 @@ func (client *DedicatedHostsClient) createOrUpdateCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Delete a dedicated host. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// hostName - The name of the dedicated host. -// options - DedicatedHostsClientBeginDeleteOptions contains the optional parameters for the DedicatedHostsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - hostName - The name of the dedicated host. +// - options - DedicatedHostsClientBeginDeleteOptions contains the optional parameters for the DedicatedHostsClient.BeginDelete +// method. func (client *DedicatedHostsClient) BeginDelete(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginDeleteOptions) (*runtime.Poller[DedicatedHostsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, hostGroupName, hostName, options) if err != nil { return nil, err } - return runtime.NewPoller[DedicatedHostsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DedicatedHostsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DedicatedHostsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DedicatedHostsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Delete a dedicated host. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *DedicatedHostsClient) deleteOperation(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "DedicatedHostsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -181,12 +199,12 @@ func (client *DedicatedHostsClient) deleteCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -194,24 +212,32 @@ func (client *DedicatedHostsClient) deleteCreateRequest(ctx context.Context, res // Get - Retrieves information about a dedicated host. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// hostName - The name of the dedicated host. -// options - DedicatedHostsClientGetOptions contains the optional parameters for the DedicatedHostsClient.Get method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - hostName - The name of the dedicated host. +// - options - DedicatedHostsClientGetOptions contains the optional parameters for the DedicatedHostsClient.Get method. func (client *DedicatedHostsClient) Get(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientGetOptions) (DedicatedHostsClientGetResponse, error) { + var err error + const operationName = "DedicatedHostsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options) if err != nil { return DedicatedHostsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DedicatedHostsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DedicatedHostsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DedicatedHostsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -233,7 +259,7 @@ func (client *DedicatedHostsClient) getCreateRequest(ctx context.Context, resour return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -241,7 +267,7 @@ func (client *DedicatedHostsClient) getCreateRequest(ctx context.Context, resour if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -256,39 +282,106 @@ func (client *DedicatedHostsClient) getHandleResponse(resp *http.Response) (Dedi return result, nil } +// NewListAvailableSizesPager - Lists all available dedicated host sizes to which the specified dedicated host can be resized. +// NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - hostName - The name of the dedicated host. +// - options - DedicatedHostsClientListAvailableSizesOptions contains the optional parameters for the DedicatedHostsClient.NewListAvailableSizesPager +// method. +func (client *DedicatedHostsClient) NewListAvailableSizesPager(resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientListAvailableSizesOptions) *runtime.Pager[DedicatedHostsClientListAvailableSizesResponse] { + return runtime.NewPager(runtime.PagingHandler[DedicatedHostsClientListAvailableSizesResponse]{ + More: func(page DedicatedHostsClientListAvailableSizesResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *DedicatedHostsClientListAvailableSizesResponse) (DedicatedHostsClientListAvailableSizesResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DedicatedHostsClient.NewListAvailableSizesPager") + req, err := client.listAvailableSizesCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options) + if err != nil { + return DedicatedHostsClientListAvailableSizesResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DedicatedHostsClientListAvailableSizesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DedicatedHostsClientListAvailableSizesResponse{}, runtime.NewResponseError(resp) + } + return client.listAvailableSizesHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listAvailableSizesCreateRequest creates the ListAvailableSizes request. +func (client *DedicatedHostsClient) listAvailableSizesCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientListAvailableSizesOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if hostGroupName == "" { + return nil, errors.New("parameter hostGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName)) + if hostName == "" { + return nil, errors.New("parameter hostName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{hostName}", url.PathEscape(hostName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listAvailableSizesHandleResponse handles the ListAvailableSizes response. +func (client *DedicatedHostsClient) listAvailableSizesHandleResponse(resp *http.Response) (DedicatedHostsClientListAvailableSizesResponse, error) { + result := DedicatedHostsClientListAvailableSizesResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHostSizeListResult); err != nil { + return DedicatedHostsClientListAvailableSizesResponse{}, err + } + return result, nil +} + // NewListByHostGroupPager - Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property // in the response to get the next page of dedicated hosts. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// options - DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.ListByHostGroup -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - options - DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.NewListByHostGroupPager +// method. func (client *DedicatedHostsClient) NewListByHostGroupPager(resourceGroupName string, hostGroupName string, options *DedicatedHostsClientListByHostGroupOptions) *runtime.Pager[DedicatedHostsClientListByHostGroupResponse] { return runtime.NewPager(runtime.PagingHandler[DedicatedHostsClientListByHostGroupResponse]{ More: func(page DedicatedHostsClientListByHostGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DedicatedHostsClientListByHostGroupResponse) (DedicatedHostsClientListByHostGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByHostGroupCreateRequest(ctx, resourceGroupName, hostGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return DedicatedHostsClientListByHostGroupResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DedicatedHostsClient.NewListByHostGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByHostGroupCreateRequest(ctx, resourceGroupName, hostGroupName, options) + }, nil) if err != nil { return DedicatedHostsClientListByHostGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DedicatedHostsClientListByHostGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByHostGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -307,12 +400,12 @@ func (client *DedicatedHostsClient) listByHostGroupCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,48 +420,148 @@ func (client *DedicatedHostsClient) listByHostGroupHandleResponse(resp *http.Res return result, nil } +// BeginRedeploy - Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated +// to a new node and is running. To determine the health of VMs deployed on the dedicated host +// after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview +// for more details. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - hostName - The name of the dedicated host. +// - options - DedicatedHostsClientBeginRedeployOptions contains the optional parameters for the DedicatedHostsClient.BeginRedeploy +// method. +func (client *DedicatedHostsClient) BeginRedeploy(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRedeployOptions) (*runtime.Poller[DedicatedHostsClientRedeployResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.redeploy(ctx, resourceGroupName, hostGroupName, hostName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DedicatedHostsClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DedicatedHostsClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Redeploy - Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to +// a new node and is running. To determine the health of VMs deployed on the dedicated host +// after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview +// for more details. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +func (client *DedicatedHostsClient) redeploy(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRedeployOptions) (*http.Response, error) { + var err error + const operationName = "DedicatedHostsClient.BeginRedeploy" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.redeployCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// redeployCreateRequest creates the Redeploy request. +func (client *DedicatedHostsClient) redeployCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRedeployOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if hostGroupName == "" { + return nil, errors.New("parameter hostGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName)) + if hostName == "" { + return nil, errors.New("parameter hostName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{hostName}", url.PathEscape(hostName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + // BeginRestart - Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted // and is running. To determine the health of VMs deployed on the dedicated host after the -// restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview +// restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview // for more details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// hostName - The name of the dedicated host. -// options - DedicatedHostsClientBeginRestartOptions contains the optional parameters for the DedicatedHostsClient.BeginRestart -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - hostName - The name of the dedicated host. +// - options - DedicatedHostsClientBeginRestartOptions contains the optional parameters for the DedicatedHostsClient.BeginRestart +// method. func (client *DedicatedHostsClient) BeginRestart(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRestartOptions) (*runtime.Poller[DedicatedHostsClientRestartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restart(ctx, resourceGroupName, hostGroupName, hostName, options) if err != nil { return nil, err } - return runtime.NewPoller[DedicatedHostsClientRestartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DedicatedHostsClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DedicatedHostsClientRestartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DedicatedHostsClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Restart - Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and // is running. To determine the health of VMs deployed on the dedicated host after the -// restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview +// restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview // for more details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *DedicatedHostsClient) restart(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRestartOptions) (*http.Response, error) { + var err error + const operationName = "DedicatedHostsClient.BeginRestart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.restartCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // restartCreateRequest creates the Restart request. @@ -390,54 +583,67 @@ func (client *DedicatedHostsClient) restartCreateRequest(ctx context.Context, re return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// BeginUpdate - Update an dedicated host . +// BeginUpdate - Update a dedicated host . // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// hostGroupName - The name of the dedicated host group. -// hostName - The name of the dedicated host . -// parameters - Parameters supplied to the Update Dedicated Host operation. -// options - DedicatedHostsClientBeginUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - hostGroupName - The name of the dedicated host group. +// - hostName - The name of the dedicated host . +// - parameters - Parameters supplied to the Update Dedicated Host operation. +// - options - DedicatedHostsClientBeginUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginUpdate +// method. func (client *DedicatedHostsClient) BeginUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHostUpdate, options *DedicatedHostsClientBeginUpdateOptions) (*runtime.Poller[DedicatedHostsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, hostGroupName, hostName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[DedicatedHostsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DedicatedHostsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DedicatedHostsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DedicatedHostsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } -// Update - Update an dedicated host . +// Update - Update a dedicated host . // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *DedicatedHostsClient) update(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHostUpdate, options *DedicatedHostsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DedicatedHostsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -459,13 +665,16 @@ func (client *DedicatedHostsClient) updateCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskaccesses_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskaccesses_client.go similarity index 65% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskaccesses_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskaccesses_client.go index d0d85b5e..0bea05f3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskaccesses_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskaccesses_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,74 +23,78 @@ import ( // DiskAccessesClient contains the methods for the DiskAccesses group. // Don't use this type directly, use NewDiskAccessesClient() instead. type DiskAccessesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDiskAccessesClient creates a new instance of DiskAccessesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDiskAccessesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiskAccessesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DiskAccessesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Creates or updates a disk access resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// diskAccess - disk access object supplied in the body of the Put disk access operation. -// options - DiskAccessesClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - diskAccess - disk access object supplied in the body of the Put disk access operation. +// - options - DiskAccessesClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginCreateOrUpdate +// method. func (client *DiskAccessesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccess, options *DiskAccessesClientBeginCreateOrUpdateOptions) (*runtime.Poller[DiskAccessesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, diskAccessName, diskAccess, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskAccessesClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskAccessesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskAccessesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskAccessesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Creates or updates a disk access resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskAccessesClient) createOrUpdate(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccess, options *DiskAccessesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DiskAccessesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, diskAccessName, diskAccess, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -110,54 +112,70 @@ func (client *DiskAccessesClient) createOrUpdateCreateRequest(ctx context.Contex return nil, errors.New("parameter diskAccessName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, diskAccess) + if err := runtime.MarshalAsJSON(req, diskAccess); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Deletes a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// options - DiskAccessesClientBeginDeleteOptions contains the optional parameters for the DiskAccessesClient.BeginDelete -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - options - DiskAccessesClientBeginDeleteOptions contains the optional parameters for the DiskAccessesClient.BeginDelete +// method. func (client *DiskAccessesClient) BeginDelete(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientBeginDeleteOptions) (*runtime.Poller[DiskAccessesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, diskAccessName, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskAccessesClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskAccessesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskAccessesClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskAccessesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskAccessesClient) deleteOperation(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "DiskAccessesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, diskAccessName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -175,12 +193,12 @@ func (client *DiskAccessesClient) deleteCreateRequest(ctx context.Context, resou return nil, errors.New("parameter diskAccessName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -188,42 +206,55 @@ func (client *DiskAccessesClient) deleteCreateRequest(ctx context.Context, resou // BeginDeleteAPrivateEndpointConnection - Deletes a private endpoint connection under a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginDeleteAPrivateEndpointConnection -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginDeleteAPrivateEndpointConnection +// method. func (client *DiskAccessesClient) BeginDeleteAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions) (*runtime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteAPrivateEndpointConnection(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse]{ + Tracer: client.internal.Tracer(), + }) } } // DeleteAPrivateEndpointConnection - Deletes a private endpoint connection under a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskAccessesClient) deleteAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions) (*http.Response, error) { + var err error + const operationName = "DiskAccessesClient.BeginDeleteAPrivateEndpointConnection" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteAPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteAPrivateEndpointConnectionCreateRequest creates the DeleteAPrivateEndpointConnection request. @@ -245,12 +276,12 @@ func (client *DiskAccessesClient) deleteAPrivateEndpointConnectionCreateRequest( return nil, errors.New("parameter privateEndpointConnectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -258,25 +289,33 @@ func (client *DiskAccessesClient) deleteAPrivateEndpointConnectionCreateRequest( // Get - Gets information about a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// options - DiskAccessesClientGetOptions contains the optional parameters for the DiskAccessesClient.Get method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - options - DiskAccessesClientGetOptions contains the optional parameters for the DiskAccessesClient.Get method. func (client *DiskAccessesClient) Get(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientGetOptions) (DiskAccessesClientGetResponse, error) { + var err error + const operationName = "DiskAccessesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, diskAccessName, options) if err != nil { return DiskAccessesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DiskAccessesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskAccessesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DiskAccessesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -294,12 +333,12 @@ func (client *DiskAccessesClient) getCreateRequest(ctx context.Context, resource return nil, errors.New("parameter diskAccessName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -316,27 +355,35 @@ func (client *DiskAccessesClient) getHandleResponse(resp *http.Response) (DiskAc // GetAPrivateEndpointConnection - Gets information about a private endpoint connection under a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - DiskAccessesClientGetAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.GetAPrivateEndpointConnection -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - DiskAccessesClientGetAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.GetAPrivateEndpointConnection +// method. func (client *DiskAccessesClient) GetAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientGetAPrivateEndpointConnectionOptions) (DiskAccessesClientGetAPrivateEndpointConnectionResponse, error) { + var err error + const operationName = "DiskAccessesClient.GetAPrivateEndpointConnection" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getAPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, options) if err != nil { return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, err } - return client.getAPrivateEndpointConnectionHandleResponse(resp) + resp, err := client.getAPrivateEndpointConnectionHandleResponse(httpResp) + return resp, err } // getAPrivateEndpointConnectionCreateRequest creates the GetAPrivateEndpointConnection request. @@ -358,12 +405,12 @@ func (client *DiskAccessesClient) getAPrivateEndpointConnectionCreateRequest(ctx return nil, errors.New("parameter privateEndpointConnectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -380,26 +427,34 @@ func (client *DiskAccessesClient) getAPrivateEndpointConnectionHandleResponse(re // GetPrivateLinkResources - Gets the private link resources possible under disk access resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// options - DiskAccessesClientGetPrivateLinkResourcesOptions contains the optional parameters for the DiskAccessesClient.GetPrivateLinkResources -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - options - DiskAccessesClientGetPrivateLinkResourcesOptions contains the optional parameters for the DiskAccessesClient.GetPrivateLinkResources +// method. func (client *DiskAccessesClient) GetPrivateLinkResources(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientGetPrivateLinkResourcesOptions) (DiskAccessesClientGetPrivateLinkResourcesResponse, error) { + var err error + const operationName = "DiskAccessesClient.GetPrivateLinkResources" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getPrivateLinkResourcesCreateRequest(ctx, resourceGroupName, diskAccessName, options) if err != nil { return DiskAccessesClientGetPrivateLinkResourcesResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DiskAccessesClientGetPrivateLinkResourcesResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskAccessesClientGetPrivateLinkResourcesResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DiskAccessesClientGetPrivateLinkResourcesResponse{}, err } - return client.getPrivateLinkResourcesHandleResponse(resp) + resp, err := client.getPrivateLinkResourcesHandleResponse(httpResp) + return resp, err } // getPrivateLinkResourcesCreateRequest creates the GetPrivateLinkResources request. @@ -417,12 +472,12 @@ func (client *DiskAccessesClient) getPrivateLinkResourcesCreateRequest(ctx conte return nil, errors.New("parameter diskAccessName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -438,34 +493,29 @@ func (client *DiskAccessesClient) getPrivateLinkResourcesHandleResponse(resp *ht } // NewListPager - Lists all the disk access resources under a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// options - DiskAccessesClientListOptions contains the optional parameters for the DiskAccessesClient.List method. +// +// Generated from API version 2023-10-02 +// - options - DiskAccessesClientListOptions contains the optional parameters for the DiskAccessesClient.NewListPager method. func (client *DiskAccessesClient) NewListPager(options *DiskAccessesClientListOptions) *runtime.Pager[DiskAccessesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DiskAccessesClientListResponse]{ More: func(page DiskAccessesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DiskAccessesClientListResponse) (DiskAccessesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return DiskAccessesClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DiskAccessesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return DiskAccessesClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskAccessesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -476,12 +526,12 @@ func (client *DiskAccessesClient) listCreateRequest(ctx context.Context, options return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -497,36 +547,31 @@ func (client *DiskAccessesClient) listHandleResponse(resp *http.Response) (DiskA } // NewListByResourceGroupPager - Lists all the disk access resources under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// options - DiskAccessesClientListByResourceGroupOptions contains the optional parameters for the DiskAccessesClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - options - DiskAccessesClientListByResourceGroupOptions contains the optional parameters for the DiskAccessesClient.NewListByResourceGroupPager +// method. func (client *DiskAccessesClient) NewListByResourceGroupPager(resourceGroupName string, options *DiskAccessesClientListByResourceGroupOptions) *runtime.Pager[DiskAccessesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[DiskAccessesClientListByResourceGroupResponse]{ More: func(page DiskAccessesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DiskAccessesClientListByResourceGroupResponse) (DiskAccessesClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DiskAccessesClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return DiskAccessesClientListByResourceGroupResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DiskAccessesClientListByResourceGroupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskAccessesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -541,12 +586,12 @@ func (client *DiskAccessesClient) listByResourceGroupCreateRequest(ctx context.C return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -562,39 +607,34 @@ func (client *DiskAccessesClient) listByResourceGroupHandleResponse(resp *http.R } // NewListPrivateEndpointConnectionsPager - List information about private endpoint connections under a disk access resource -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// options - DiskAccessesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the DiskAccessesClient.ListPrivateEndpointConnections -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - options - DiskAccessesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the DiskAccessesClient.NewListPrivateEndpointConnectionsPager +// method. func (client *DiskAccessesClient) NewListPrivateEndpointConnectionsPager(resourceGroupName string, diskAccessName string, options *DiskAccessesClientListPrivateEndpointConnectionsOptions) *runtime.Pager[DiskAccessesClientListPrivateEndpointConnectionsResponse] { return runtime.NewPager(runtime.PagingHandler[DiskAccessesClientListPrivateEndpointConnectionsResponse]{ More: func(page DiskAccessesClientListPrivateEndpointConnectionsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DiskAccessesClientListPrivateEndpointConnectionsResponse) (DiskAccessesClientListPrivateEndpointConnectionsResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listPrivateEndpointConnectionsCreateRequest(ctx, resourceGroupName, diskAccessName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DiskAccessesClient.NewListPrivateEndpointConnectionsPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listPrivateEndpointConnectionsCreateRequest(ctx, resourceGroupName, diskAccessName, options) + }, nil) if err != nil { return DiskAccessesClientListPrivateEndpointConnectionsResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DiskAccessesClientListPrivateEndpointConnectionsResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskAccessesClientListPrivateEndpointConnectionsResponse{}, runtime.NewResponseError(resp) - } return client.listPrivateEndpointConnectionsHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -613,12 +653,12 @@ func (client *DiskAccessesClient) listPrivateEndpointConnectionsCreateRequest(ct return nil, errors.New("parameter diskAccessName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -635,42 +675,55 @@ func (client *DiskAccessesClient) listPrivateEndpointConnectionsHandleResponse(r // BeginUpdate - Updates (patches) a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// diskAccess - disk access object supplied in the body of the Patch disk access operation. -// options - DiskAccessesClientBeginUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginUpdate -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - diskAccess - disk access object supplied in the body of the Patch disk access operation. +// - options - DiskAccessesClientBeginUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginUpdate +// method. func (client *DiskAccessesClient) BeginUpdate(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccessUpdate, options *DiskAccessesClientBeginUpdateOptions) (*runtime.Poller[DiskAccessesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, diskAccessName, diskAccess, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskAccessesClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskAccessesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskAccessesClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskAccessesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Updates (patches) a disk access resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskAccessesClient) update(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccessUpdate, options *DiskAccessesClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DiskAccessesClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, diskAccessName, diskAccess, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -688,59 +741,75 @@ func (client *DiskAccessesClient) updateCreateRequest(ctx context.Context, resou return nil, errors.New("parameter diskAccessName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, diskAccess) + if err := runtime.MarshalAsJSON(req, diskAccess); err != nil { + return nil, err + } + return req, nil } // BeginUpdateAPrivateEndpointConnection - Approve or reject a private endpoint connection under disk access resource, this // can't be used to create a new private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption -// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The -// maximum name length is 80 characters. -// privateEndpointConnectionName - The name of the private endpoint connection. -// privateEndpointConnection - private endpoint connection object supplied in the body of the Put private endpoint connection -// operation. -// options - DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginUpdateAPrivateEndpointConnection -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption +// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The +// maximum name length is 80 characters. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - privateEndpointConnection - private endpoint connection object supplied in the body of the Put private endpoint connection +// operation. +// - options - DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginUpdateAPrivateEndpointConnection +// method. func (client *DiskAccessesClient) BeginUpdateAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions) (*runtime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateAPrivateEndpointConnection(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse]{ + Tracer: client.internal.Tracer(), + }) } } // UpdateAPrivateEndpointConnection - Approve or reject a private endpoint connection under disk access resource, this can't // be used to create a new private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskAccessesClient) updateAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions) (*http.Response, error) { + var err error + const operationName = "DiskAccessesClient.BeginUpdateAPrivateEndpointConnection" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateAPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateAPrivateEndpointConnectionCreateRequest creates the UpdateAPrivateEndpointConnection request. @@ -762,13 +831,16 @@ func (client *DiskAccessesClient) updateAPrivateEndpointConnectionCreateRequest( return nil, errors.New("parameter privateEndpointConnectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, privateEndpointConnection) + if err := runtime.MarshalAsJSON(req, privateEndpointConnection); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskencryptionsets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskencryptionsets_client.go similarity index 66% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskencryptionsets_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskencryptionsets_client.go index 77c4430f..59d34d1e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskencryptionsets_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskencryptionsets_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,74 +23,78 @@ import ( // DiskEncryptionSetsClient contains the methods for the DiskEncryptionSets group. // Don't use this type directly, use NewDiskEncryptionSetsClient() instead. type DiskEncryptionSetsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDiskEncryptionSetsClient creates a new instance of DiskEncryptionSetsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDiskEncryptionSetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiskEncryptionSetsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DiskEncryptionSetsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Creates or updates a disk encryption set // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the -// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum -// name length is 80 characters. -// diskEncryptionSet - disk encryption set object supplied in the body of the Put disk encryption set operation. -// options - DiskEncryptionSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the +// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum +// name length is 80 characters. +// - diskEncryptionSet - disk encryption set object supplied in the body of the Put disk encryption set operation. +// - options - DiskEncryptionSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginCreateOrUpdate +// method. func (client *DiskEncryptionSetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSet, options *DiskEncryptionSetsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskEncryptionSetsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskEncryptionSetsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskEncryptionSetsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskEncryptionSetsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Creates or updates a disk encryption set // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskEncryptionSetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSet, options *DiskEncryptionSetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DiskEncryptionSetsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -110,54 +112,70 @@ func (client *DiskEncryptionSetsClient) createOrUpdateCreateRequest(ctx context. return nil, errors.New("parameter diskEncryptionSetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, diskEncryptionSet) + if err := runtime.MarshalAsJSON(req, diskEncryptionSet); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Deletes a disk encryption set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the -// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum -// name length is 80 characters. -// options - DiskEncryptionSetsClientBeginDeleteOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginDelete -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the +// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum +// name length is 80 characters. +// - options - DiskEncryptionSetsClientBeginDeleteOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginDelete +// method. func (client *DiskEncryptionSetsClient) BeginDelete(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientBeginDeleteOptions) (*runtime.Poller[DiskEncryptionSetsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, diskEncryptionSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskEncryptionSetsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskEncryptionSetsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskEncryptionSetsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskEncryptionSetsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a disk encryption set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskEncryptionSetsClient) deleteOperation(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "DiskEncryptionSetsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -175,12 +193,12 @@ func (client *DiskEncryptionSetsClient) deleteCreateRequest(ctx context.Context, return nil, errors.New("parameter diskEncryptionSetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -188,25 +206,33 @@ func (client *DiskEncryptionSetsClient) deleteCreateRequest(ctx context.Context, // Get - Gets information about a disk encryption set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the -// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum -// name length is 80 characters. -// options - DiskEncryptionSetsClientGetOptions contains the optional parameters for the DiskEncryptionSetsClient.Get method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the +// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum +// name length is 80 characters. +// - options - DiskEncryptionSetsClientGetOptions contains the optional parameters for the DiskEncryptionSetsClient.Get method. func (client *DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientGetOptions) (DiskEncryptionSetsClientGetResponse, error) { + var err error + const operationName = "DiskEncryptionSetsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, options) if err != nil { return DiskEncryptionSetsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DiskEncryptionSetsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskEncryptionSetsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DiskEncryptionSetsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -224,12 +250,12 @@ func (client *DiskEncryptionSetsClient) getCreateRequest(ctx context.Context, re return nil, errors.New("parameter diskEncryptionSetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -245,34 +271,30 @@ func (client *DiskEncryptionSetsClient) getHandleResponse(resp *http.Response) ( } // NewListPager - Lists all the disk encryption sets under a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// options - DiskEncryptionSetsClientListOptions contains the optional parameters for the DiskEncryptionSetsClient.List method. +// +// Generated from API version 2023-10-02 +// - options - DiskEncryptionSetsClientListOptions contains the optional parameters for the DiskEncryptionSetsClient.NewListPager +// method. func (client *DiskEncryptionSetsClient) NewListPager(options *DiskEncryptionSetsClientListOptions) *runtime.Pager[DiskEncryptionSetsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DiskEncryptionSetsClientListResponse]{ More: func(page DiskEncryptionSetsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DiskEncryptionSetsClientListResponse) (DiskEncryptionSetsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DiskEncryptionSetsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return DiskEncryptionSetsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DiskEncryptionSetsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskEncryptionSetsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -283,12 +305,12 @@ func (client *DiskEncryptionSetsClient) listCreateRequest(ctx context.Context, o return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -304,39 +326,34 @@ func (client *DiskEncryptionSetsClient) listHandleResponse(resp *http.Response) } // NewListAssociatedResourcesPager - Lists all resources that are encrypted with this disk encryption set. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the -// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum -// name length is 80 characters. -// options - DiskEncryptionSetsClientListAssociatedResourcesOptions contains the optional parameters for the DiskEncryptionSetsClient.ListAssociatedResources -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the +// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum +// name length is 80 characters. +// - options - DiskEncryptionSetsClientListAssociatedResourcesOptions contains the optional parameters for the DiskEncryptionSetsClient.NewListAssociatedResourcesPager +// method. func (client *DiskEncryptionSetsClient) NewListAssociatedResourcesPager(resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientListAssociatedResourcesOptions) *runtime.Pager[DiskEncryptionSetsClientListAssociatedResourcesResponse] { return runtime.NewPager(runtime.PagingHandler[DiskEncryptionSetsClientListAssociatedResourcesResponse]{ More: func(page DiskEncryptionSetsClientListAssociatedResourcesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DiskEncryptionSetsClientListAssociatedResourcesResponse) (DiskEncryptionSetsClientListAssociatedResourcesResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listAssociatedResourcesCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DiskEncryptionSetsClient.NewListAssociatedResourcesPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listAssociatedResourcesCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, options) + }, nil) if err != nil { return DiskEncryptionSetsClientListAssociatedResourcesResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DiskEncryptionSetsClientListAssociatedResourcesResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskEncryptionSetsClientListAssociatedResourcesResponse{}, runtime.NewResponseError(resp) - } return client.listAssociatedResourcesHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -355,12 +372,12 @@ func (client *DiskEncryptionSetsClient) listAssociatedResourcesCreateRequest(ctx return nil, errors.New("parameter diskEncryptionSetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -376,36 +393,31 @@ func (client *DiskEncryptionSetsClient) listAssociatedResourcesHandleResponse(re } // NewListByResourceGroupPager - Lists all the disk encryption sets under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// options - DiskEncryptionSetsClientListByResourceGroupOptions contains the optional parameters for the DiskEncryptionSetsClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - options - DiskEncryptionSetsClientListByResourceGroupOptions contains the optional parameters for the DiskEncryptionSetsClient.NewListByResourceGroupPager +// method. func (client *DiskEncryptionSetsClient) NewListByResourceGroupPager(resourceGroupName string, options *DiskEncryptionSetsClientListByResourceGroupOptions) *runtime.Pager[DiskEncryptionSetsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[DiskEncryptionSetsClientListByResourceGroupResponse]{ More: func(page DiskEncryptionSetsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DiskEncryptionSetsClientListByResourceGroupResponse) (DiskEncryptionSetsClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DiskEncryptionSetsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return DiskEncryptionSetsClientListByResourceGroupResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DiskEncryptionSetsClientListByResourceGroupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskEncryptionSetsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -420,12 +432,12 @@ func (client *DiskEncryptionSetsClient) listByResourceGroupCreateRequest(ctx con return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -442,42 +454,55 @@ func (client *DiskEncryptionSetsClient) listByResourceGroupHandleResponse(resp * // BeginUpdate - Updates (patches) a disk encryption set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the -// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum -// name length is 80 characters. -// diskEncryptionSet - disk encryption set object supplied in the body of the Patch disk encryption set operation. -// options - DiskEncryptionSetsClientBeginUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginUpdate -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the +// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum +// name length is 80 characters. +// - diskEncryptionSet - disk encryption set object supplied in the body of the Patch disk encryption set operation. +// - options - DiskEncryptionSetsClientBeginUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginUpdate +// method. func (client *DiskEncryptionSetsClient) BeginUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSetUpdate, options *DiskEncryptionSetsClientBeginUpdateOptions) (*runtime.Poller[DiskEncryptionSetsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options) if err != nil { return nil, err } - return runtime.NewPoller[DiskEncryptionSetsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskEncryptionSetsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskEncryptionSetsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskEncryptionSetsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Updates (patches) a disk encryption set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskEncryptionSetsClient) update(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSetUpdate, options *DiskEncryptionSetsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DiskEncryptionSetsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -495,13 +520,16 @@ func (client *DiskEncryptionSetsClient) updateCreateRequest(ctx context.Context, return nil, errors.New("parameter diskEncryptionSetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, diskEncryptionSet) + if err := runtime.MarshalAsJSON(req, diskEncryptionSet); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskrestorepoint_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskrestorepoint_client.go similarity index 69% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskrestorepoint_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskrestorepoint_client.go index 82b47b22..43307ca0 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskrestorepoint_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/diskrestorepoint_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,57 +23,56 @@ import ( // DiskRestorePointClient contains the methods for the DiskRestorePoint group. // Don't use this type directly, use NewDiskRestorePointClient() instead. type DiskRestorePointClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDiskRestorePointClient creates a new instance of DiskRestorePointClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDiskRestorePointClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiskRestorePointClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DiskRestorePointClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Get disk restorePoint resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. -// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. -// diskRestorePointName - The name of the disk restore point created. -// options - DiskRestorePointClientGetOptions contains the optional parameters for the DiskRestorePointClient.Get method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. +// - vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. +// - diskRestorePointName - The name of the disk restore point created. +// - options - DiskRestorePointClientGetOptions contains the optional parameters for the DiskRestorePointClient.Get method. func (client *DiskRestorePointClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientGetOptions) (DiskRestorePointClientGetResponse, error) { + var err error + const operationName = "DiskRestorePointClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, options) if err != nil { return DiskRestorePointClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DiskRestorePointClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskRestorePointClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DiskRestorePointClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -101,12 +98,12 @@ func (client *DiskRestorePointClient) getCreateRequest(ctx context.Context, reso return nil, errors.New("parameter diskRestorePointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskRestorePointName}", url.PathEscape(diskRestorePointName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -123,44 +120,56 @@ func (client *DiskRestorePointClient) getHandleResponse(resp *http.Response) (Di // BeginGrantAccess - Grants access to a diskRestorePoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. -// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. -// diskRestorePointName - The name of the disk restore point created. -// grantAccessData - Access data object supplied in the body of the get disk access operation. -// options - DiskRestorePointClientBeginGrantAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginGrantAccess -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. +// - vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. +// - diskRestorePointName - The name of the disk restore point created. +// - grantAccessData - Access data object supplied in the body of the get disk access operation. +// - options - DiskRestorePointClientBeginGrantAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginGrantAccess +// method. func (client *DiskRestorePointClient) BeginGrantAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData, options *DiskRestorePointClientBeginGrantAccessOptions) (*runtime.Poller[DiskRestorePointClientGrantAccessResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.grantAccess(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, grantAccessData, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DiskRestorePointClientGrantAccessResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskRestorePointClientGrantAccessResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskRestorePointClientGrantAccessResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskRestorePointClientGrantAccessResponse]{ + Tracer: client.internal.Tracer(), + }) } } // GrantAccess - Grants access to a diskRestorePoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskRestorePointClient) grantAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData, options *DiskRestorePointClientBeginGrantAccessOptions) (*http.Response, error) { + var err error + const operationName = "DiskRestorePointClient.BeginGrantAccess" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.grantAccessCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, grantAccessData, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // grantAccessCreateRequest creates the GrantAccess request. @@ -186,50 +195,48 @@ func (client *DiskRestorePointClient) grantAccessCreateRequest(ctx context.Conte return nil, errors.New("parameter diskRestorePointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskRestorePointName}", url.PathEscape(diskRestorePointName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, grantAccessData) + if err := runtime.MarshalAsJSON(req, grantAccessData); err != nil { + return nil, err + } + return req, nil } // NewListByRestorePointPager - Lists diskRestorePoints under a vmRestorePoint. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. -// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. -// options - DiskRestorePointClientListByRestorePointOptions contains the optional parameters for the DiskRestorePointClient.ListByRestorePoint -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. +// - vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. +// - options - DiskRestorePointClientListByRestorePointOptions contains the optional parameters for the DiskRestorePointClient.NewListByRestorePointPager +// method. func (client *DiskRestorePointClient) NewListByRestorePointPager(resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, options *DiskRestorePointClientListByRestorePointOptions) *runtime.Pager[DiskRestorePointClientListByRestorePointResponse] { return runtime.NewPager(runtime.PagingHandler[DiskRestorePointClientListByRestorePointResponse]{ More: func(page DiskRestorePointClientListByRestorePointResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DiskRestorePointClientListByRestorePointResponse) (DiskRestorePointClientListByRestorePointResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByRestorePointCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return DiskRestorePointClientListByRestorePointResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DiskRestorePointClient.NewListByRestorePointPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByRestorePointCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, options) + }, nil) if err != nil { return DiskRestorePointClientListByRestorePointResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DiskRestorePointClientListByRestorePointResponse{}, runtime.NewResponseError(resp) - } return client.listByRestorePointHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -252,12 +259,12 @@ func (client *DiskRestorePointClient) listByRestorePointCreateRequest(ctx contex return nil, errors.New("parameter vmRestorePointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{vmRestorePointName}", url.PathEscape(vmRestorePointName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -274,43 +281,55 @@ func (client *DiskRestorePointClient) listByRestorePointHandleResponse(resp *htt // BeginRevokeAccess - Revokes access to a diskRestorePoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. -// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. -// diskRestorePointName - The name of the disk restore point created. -// options - DiskRestorePointClientBeginRevokeAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginRevokeAccess -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection that the disk restore point belongs. +// - vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs. +// - diskRestorePointName - The name of the disk restore point created. +// - options - DiskRestorePointClientBeginRevokeAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginRevokeAccess +// method. func (client *DiskRestorePointClient) BeginRevokeAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientBeginRevokeAccessOptions) (*runtime.Poller[DiskRestorePointClientRevokeAccessResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.revokeAccess(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DiskRestorePointClientRevokeAccessResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DiskRestorePointClientRevokeAccessResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DiskRestorePointClientRevokeAccessResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DiskRestorePointClientRevokeAccessResponse]{ + Tracer: client.internal.Tracer(), + }) } } // RevokeAccess - Revokes access to a diskRestorePoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DiskRestorePointClient) revokeAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientBeginRevokeAccessOptions) (*http.Response, error) { + var err error + const operationName = "DiskRestorePointClient.BeginRevokeAccess" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.revokeAccessCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // revokeAccessCreateRequest creates the RevokeAccess request. @@ -336,12 +355,12 @@ func (client *DiskRestorePointClient) revokeAccessCreateRequest(ctx context.Cont return nil, errors.New("parameter diskRestorePointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskRestorePointName}", url.PathEscape(diskRestorePointName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_disks_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/disks_client.go similarity index 62% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_disks_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/disks_client.go index 37965463..a0ffa752 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_disks_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/disks_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,74 +23,78 @@ import ( // DisksClient contains the methods for the Disks group. // Don't use this type directly, use NewDisksClient() instead. type DisksClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDisksClient creates a new instance of DisksClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDisksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DisksClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DisksClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Creates or updates a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported -// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 -// characters. -// disk - Disk object supplied in the body of the Put disk operation. -// options - DisksClientBeginCreateOrUpdateOptions contains the optional parameters for the DisksClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported +// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 +// characters. +// - disk - Disk object supplied in the body of the Put disk operation. +// - options - DisksClientBeginCreateOrUpdateOptions contains the optional parameters for the DisksClient.BeginCreateOrUpdate +// method. func (client *DisksClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, diskName string, disk Disk, options *DisksClientBeginCreateOrUpdateOptions) (*runtime.Poller[DisksClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, diskName, disk, options) if err != nil { return nil, err } - return runtime.NewPoller[DisksClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DisksClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DisksClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DisksClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Creates or updates a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DisksClient) createOrUpdate(ctx context.Context, resourceGroupName string, diskName string, disk Disk, options *DisksClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DisksClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, diskName, disk, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -110,53 +112,69 @@ func (client *DisksClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, errors.New("parameter diskName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, disk) + if err := runtime.MarshalAsJSON(req, disk); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Deletes a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported -// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 -// characters. -// options - DisksClientBeginDeleteOptions contains the optional parameters for the DisksClient.BeginDelete method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported +// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 +// characters. +// - options - DisksClientBeginDeleteOptions contains the optional parameters for the DisksClient.BeginDelete method. func (client *DisksClient) BeginDelete(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginDeleteOptions) (*runtime.Poller[DisksClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, diskName, options) if err != nil { return nil, err } - return runtime.NewPoller[DisksClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DisksClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DisksClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DisksClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DisksClient) deleteOperation(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "DisksClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, diskName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -174,37 +192,45 @@ func (client *DisksClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, errors.New("parameter diskName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // Get - Gets information about a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported -// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 -// characters. -// options - DisksClientGetOptions contains the optional parameters for the DisksClient.Get method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported +// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 +// characters. +// - options - DisksClientGetOptions contains the optional parameters for the DisksClient.Get method. func (client *DisksClient) Get(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientGetOptions) (DisksClientGetResponse, error) { + var err error + const operationName = "DisksClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, diskName, options) if err != nil { return DisksClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DisksClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DisksClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DisksClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -222,12 +248,12 @@ func (client *DisksClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, errors.New("parameter diskName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -244,43 +270,55 @@ func (client *DisksClient) getHandleResponse(resp *http.Response) (DisksClientGe // BeginGrantAccess - Grants access to a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported -// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 -// characters. -// grantAccessData - Access data object supplied in the body of the get disk access operation. -// options - DisksClientBeginGrantAccessOptions contains the optional parameters for the DisksClient.BeginGrantAccess method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported +// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 +// characters. +// - grantAccessData - Access data object supplied in the body of the get disk access operation. +// - options - DisksClientBeginGrantAccessOptions contains the optional parameters for the DisksClient.BeginGrantAccess method. func (client *DisksClient) BeginGrantAccess(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData, options *DisksClientBeginGrantAccessOptions) (*runtime.Poller[DisksClientGrantAccessResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.grantAccess(ctx, resourceGroupName, diskName, grantAccessData, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DisksClientGrantAccessResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DisksClientGrantAccessResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DisksClientGrantAccessResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DisksClientGrantAccessResponse]{ + Tracer: client.internal.Tracer(), + }) } } // GrantAccess - Grants access to a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DisksClient) grantAccess(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData, options *DisksClientBeginGrantAccessOptions) (*http.Response, error) { + var err error + const operationName = "DisksClient.BeginGrantAccess" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.grantAccessCreateRequest(ctx, resourceGroupName, diskName, grantAccessData, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // grantAccessCreateRequest creates the GrantAccess request. @@ -298,46 +336,44 @@ func (client *DisksClient) grantAccessCreateRequest(ctx context.Context, resourc return nil, errors.New("parameter diskName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, grantAccessData) + if err := runtime.MarshalAsJSON(req, grantAccessData); err != nil { + return nil, err + } + return req, nil } // NewListPager - Lists all the disks under a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// options - DisksClientListOptions contains the optional parameters for the DisksClient.List method. +// +// Generated from API version 2023-10-02 +// - options - DisksClientListOptions contains the optional parameters for the DisksClient.NewListPager method. func (client *DisksClient) NewListPager(options *DisksClientListOptions) *runtime.Pager[DisksClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DisksClientListResponse]{ More: func(page DisksClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DisksClientListResponse) (DisksClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DisksClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return DisksClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DisksClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DisksClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -348,12 +384,12 @@ func (client *DisksClient) listCreateRequest(ctx context.Context, options *Disks return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -369,36 +405,31 @@ func (client *DisksClient) listHandleResponse(resp *http.Response) (DisksClientL } // NewListByResourceGroupPager - Lists all the disks under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// options - DisksClientListByResourceGroupOptions contains the optional parameters for the DisksClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - options - DisksClientListByResourceGroupOptions contains the optional parameters for the DisksClient.NewListByResourceGroupPager +// method. func (client *DisksClient) NewListByResourceGroupPager(resourceGroupName string, options *DisksClientListByResourceGroupOptions) *runtime.Pager[DisksClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[DisksClientListByResourceGroupResponse]{ More: func(page DisksClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DisksClientListByResourceGroupResponse) (DisksClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DisksClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return DisksClientListByResourceGroupResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DisksClientListByResourceGroupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DisksClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -413,12 +444,12 @@ func (client *DisksClient) listByResourceGroupCreateRequest(ctx context.Context, return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -435,42 +466,54 @@ func (client *DisksClient) listByResourceGroupHandleResponse(resp *http.Response // BeginRevokeAccess - Revokes access to a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported -// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 -// characters. -// options - DisksClientBeginRevokeAccessOptions contains the optional parameters for the DisksClient.BeginRevokeAccess method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported +// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 +// characters. +// - options - DisksClientBeginRevokeAccessOptions contains the optional parameters for the DisksClient.BeginRevokeAccess method. func (client *DisksClient) BeginRevokeAccess(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginRevokeAccessOptions) (*runtime.Poller[DisksClientRevokeAccessResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.revokeAccess(ctx, resourceGroupName, diskName, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DisksClientRevokeAccessResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DisksClientRevokeAccessResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DisksClientRevokeAccessResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DisksClientRevokeAccessResponse]{ + Tracer: client.internal.Tracer(), + }) } } // RevokeAccess - Revokes access to a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DisksClient) revokeAccess(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginRevokeAccessOptions) (*http.Response, error) { + var err error + const operationName = "DisksClient.BeginRevokeAccess" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.revokeAccessCreateRequest(ctx, resourceGroupName, diskName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // revokeAccessCreateRequest creates the RevokeAccess request. @@ -488,53 +531,66 @@ func (client *DisksClient) revokeAccessCreateRequest(ctx context.Context, resour return nil, errors.New("parameter diskName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginUpdate - Updates (patches) a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported -// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 -// characters. -// disk - Disk object supplied in the body of the Patch disk operation. -// options - DisksClientBeginUpdateOptions contains the optional parameters for the DisksClient.BeginUpdate method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported +// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 +// characters. +// - disk - Disk object supplied in the body of the Patch disk operation. +// - options - DisksClientBeginUpdateOptions contains the optional parameters for the DisksClient.BeginUpdate method. func (client *DisksClient) BeginUpdate(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate, options *DisksClientBeginUpdateOptions) (*runtime.Poller[DisksClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, diskName, disk, options) if err != nil { return nil, err } - return runtime.NewPoller[DisksClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DisksClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DisksClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DisksClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Updates (patches) a disk. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *DisksClient) update(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate, options *DisksClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "DisksClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, diskName, disk, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -552,13 +608,16 @@ func (client *DisksClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, errors.New("parameter diskName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, disk) + if err := runtime.MarshalAsJSON(req, disk); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleries_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleries_client.go similarity index 65% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleries_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleries_client.go index f2c82893..f24e730a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleries_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleries_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,73 +23,77 @@ import ( // GalleriesClient contains the methods for the Galleries group. // Don't use this type directly, use NewGalleriesClient() instead. type GalleriesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewGalleriesClient creates a new instance of GalleriesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGalleriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleriesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &GalleriesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Create or update a Shared Image Gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods -// allowed in the middle. The maximum length is 80 characters. -// gallery - Parameters supplied to the create or update Shared Image Gallery operation. -// options - GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods +// allowed in the middle. The maximum length is 80 characters. +// - gallery - Parameters supplied to the create or update Shared Image Gallery operation. +// - options - GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate +// method. func (client *GalleriesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery Gallery, options *GalleriesClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleriesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, gallery, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleriesClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleriesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleriesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleriesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a Shared Image Gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleriesClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery Gallery, options *GalleriesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleriesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, gallery, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -109,51 +111,67 @@ func (client *GalleriesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, errors.New("parameter galleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, gallery) + if err := runtime.MarshalAsJSON(req, gallery); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Delete a Shared Image Gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery to be deleted. -// options - GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery to be deleted. +// - options - GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method. func (client *GalleriesClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientBeginDeleteOptions) (*runtime.Poller[GalleriesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleriesClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleriesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleriesClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleriesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Delete a Shared Image Gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleriesClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "GalleriesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -171,12 +189,12 @@ func (client *GalleriesClient) deleteCreateRequest(ctx context.Context, resource return nil, errors.New("parameter galleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -184,23 +202,31 @@ func (client *GalleriesClient) deleteCreateRequest(ctx context.Context, resource // Get - Retrieves information about a Shared Image Gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery. -// options - GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery. +// - options - GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method. func (client *GalleriesClient) Get(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientGetOptions) (GalleriesClientGetResponse, error) { + var err error + const operationName = "GalleriesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, options) if err != nil { return GalleriesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GalleriesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleriesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GalleriesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -218,18 +244,18 @@ func (client *GalleriesClient) getCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter galleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") - if options != nil && options.Select != nil { - reqQP.Set("$select", string(*options.Select)) - } if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } + if options != nil && options.Select != nil { + reqQP.Set("$select", string(*options.Select)) + } + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -245,34 +271,29 @@ func (client *GalleriesClient) getHandleResponse(resp *http.Response) (Galleries } // NewListPager - List galleries under a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// options - GalleriesClientListOptions contains the optional parameters for the GalleriesClient.List method. +// +// Generated from API version 2023-07-03 +// - options - GalleriesClientListOptions contains the optional parameters for the GalleriesClient.NewListPager method. func (client *GalleriesClient) NewListPager(options *GalleriesClientListOptions) *runtime.Pager[GalleriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[GalleriesClientListResponse]{ More: func(page GalleriesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *GalleriesClientListResponse) (GalleriesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return GalleriesClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GalleriesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return GalleriesClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleriesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -283,12 +304,12 @@ func (client *GalleriesClient) listCreateRequest(ctx context.Context, options *G return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -304,36 +325,31 @@ func (client *GalleriesClient) listHandleResponse(resp *http.Response) (Gallerie } // NewListByResourceGroupPager - List galleries under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// options - GalleriesClientListByResourceGroupOptions contains the optional parameters for the GalleriesClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - options - GalleriesClientListByResourceGroupOptions contains the optional parameters for the GalleriesClient.NewListByResourceGroupPager +// method. func (client *GalleriesClient) NewListByResourceGroupPager(resourceGroupName string, options *GalleriesClientListByResourceGroupOptions) *runtime.Pager[GalleriesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[GalleriesClientListByResourceGroupResponse]{ More: func(page GalleriesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *GalleriesClientListByResourceGroupResponse) (GalleriesClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return GalleriesClientListByResourceGroupResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GalleriesClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return GalleriesClientListByResourceGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleriesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -348,12 +364,12 @@ func (client *GalleriesClient) listByResourceGroupCreateRequest(ctx context.Cont return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -370,40 +386,53 @@ func (client *GalleriesClient) listByResourceGroupHandleResponse(resp *http.Resp // BeginUpdate - Update a Shared Image Gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods -// allowed in the middle. The maximum length is 80 characters. -// gallery - Parameters supplied to the update Shared Image Gallery operation. -// options - GalleriesClientBeginUpdateOptions contains the optional parameters for the GalleriesClient.BeginUpdate method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods +// allowed in the middle. The maximum length is 80 characters. +// - gallery - Parameters supplied to the update Shared Image Gallery operation. +// - options - GalleriesClientBeginUpdateOptions contains the optional parameters for the GalleriesClient.BeginUpdate method. func (client *GalleriesClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery GalleryUpdate, options *GalleriesClientBeginUpdateOptions) (*runtime.Poller[GalleriesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, galleryName, gallery, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleriesClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleriesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleriesClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleriesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update a Shared Image Gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleriesClient) update(ctx context.Context, resourceGroupName string, galleryName string, gallery GalleryUpdate, options *GalleriesClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleriesClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, gallery, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -421,13 +450,16 @@ func (client *GalleriesClient) updateCreateRequest(ctx context.Context, resource return nil, errors.New("parameter galleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, gallery) + if err := runtime.MarshalAsJSON(req, gallery); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplications_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryapplications_client.go similarity index 65% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplications_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryapplications_client.go index 342e82b5..cd5d6f3e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplications_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryapplications_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,75 +23,79 @@ import ( // GalleryApplicationsClient contains the methods for the GalleryApplications group. // Don't use this type directly, use NewGalleryApplicationsClient() instead. type GalleryApplicationsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewGalleryApplicationsClient creates a new instance of GalleryApplicationsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGalleryApplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryApplicationsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &GalleryApplicationsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Create or update a gallery Application Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition is to be created. -// galleryApplicationName - The name of the gallery Application Definition to be created or updated. The allowed characters -// are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 -// characters. -// galleryApplication - Parameters supplied to the create or update gallery Application operation. -// options - GalleryApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition is to be created. +// - galleryApplicationName - The name of the gallery Application Definition to be created or updated. The allowed characters +// are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 +// characters. +// - galleryApplication - Parameters supplied to the create or update gallery Application operation. +// - options - GalleryApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginCreateOrUpdate +// method. func (client *GalleryApplicationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplication, options *GalleryApplicationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryApplicationsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryApplicationsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryApplicationsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryApplicationsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a gallery Application Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryApplicationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplication, options *GalleryApplicationsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryApplicationsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -115,53 +117,69 @@ func (client *GalleryApplicationsClient) createOrUpdateCreateRequest(ctx context return nil, errors.New("parameter galleryApplicationName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryApplication) + if err := runtime.MarshalAsJSON(req, galleryApplication); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Delete a gallery Application. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition is to be deleted. -// galleryApplicationName - The name of the gallery Application Definition to be deleted. -// options - GalleryApplicationsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationsClient.BeginDelete -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition is to be deleted. +// - galleryApplicationName - The name of the gallery Application Definition to be deleted. +// - options - GalleryApplicationsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationsClient.BeginDelete +// method. func (client *GalleryApplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientBeginDeleteOptions) (*runtime.Poller[GalleryApplicationsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryApplicationName, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryApplicationsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryApplicationsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryApplicationsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryApplicationsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Delete a gallery Application. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryApplicationsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "GalleryApplicationsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -183,12 +201,12 @@ func (client *GalleryApplicationsClient) deleteCreateRequest(ctx context.Context return nil, errors.New("parameter galleryApplicationName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -196,24 +214,32 @@ func (client *GalleryApplicationsClient) deleteCreateRequest(ctx context.Context // Get - Retrieves information about a gallery Application Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery from which the Application Definitions are to be retrieved. -// galleryApplicationName - The name of the gallery Application Definition to be retrieved. -// options - GalleryApplicationsClientGetOptions contains the optional parameters for the GalleryApplicationsClient.Get method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery from which the Application Definitions are to be retrieved. +// - galleryApplicationName - The name of the gallery Application Definition to be retrieved. +// - options - GalleryApplicationsClientGetOptions contains the optional parameters for the GalleryApplicationsClient.Get method. func (client *GalleryApplicationsClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientGetOptions) (GalleryApplicationsClientGetResponse, error) { + var err error + const operationName = "GalleryApplicationsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, options) if err != nil { return GalleryApplicationsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GalleryApplicationsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryApplicationsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GalleryApplicationsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -235,12 +261,12 @@ func (client *GalleryApplicationsClient) getCreateRequest(ctx context.Context, r return nil, errors.New("parameter galleryApplicationName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -256,37 +282,32 @@ func (client *GalleryApplicationsClient) getHandleResponse(resp *http.Response) } // NewListByGalleryPager - List gallery Application Definitions in a gallery. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery from which Application Definitions are to be listed. -// options - GalleryApplicationsClientListByGalleryOptions contains the optional parameters for the GalleryApplicationsClient.ListByGallery -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery from which Application Definitions are to be listed. +// - options - GalleryApplicationsClientListByGalleryOptions contains the optional parameters for the GalleryApplicationsClient.NewListByGalleryPager +// method. func (client *GalleryApplicationsClient) NewListByGalleryPager(resourceGroupName string, galleryName string, options *GalleryApplicationsClientListByGalleryOptions) *runtime.Pager[GalleryApplicationsClientListByGalleryResponse] { return runtime.NewPager(runtime.PagingHandler[GalleryApplicationsClientListByGalleryResponse]{ More: func(page GalleryApplicationsClientListByGalleryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *GalleryApplicationsClientListByGalleryResponse) (GalleryApplicationsClientListByGalleryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByGalleryCreateRequest(ctx, resourceGroupName, galleryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GalleryApplicationsClient.NewListByGalleryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByGalleryCreateRequest(ctx, resourceGroupName, galleryName, options) + }, nil) if err != nil { return GalleryApplicationsClientListByGalleryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return GalleryApplicationsClientListByGalleryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryApplicationsClientListByGalleryResponse{}, runtime.NewResponseError(resp) - } return client.listByGalleryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -305,12 +326,12 @@ func (client *GalleryApplicationsClient) listByGalleryCreateRequest(ctx context. return nil, errors.New("parameter galleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,43 +348,56 @@ func (client *GalleryApplicationsClient) listByGalleryHandleResponse(resp *http. // BeginUpdate - Update a gallery Application Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition is to be updated. -// galleryApplicationName - The name of the gallery Application Definition to be updated. The allowed characters are alphabets -// and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 -// characters. -// galleryApplication - Parameters supplied to the update gallery Application operation. -// options - GalleryApplicationsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition is to be updated. +// - galleryApplicationName - The name of the gallery Application Definition to be updated. The allowed characters are alphabets +// and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 +// characters. +// - galleryApplication - Parameters supplied to the update gallery Application operation. +// - options - GalleryApplicationsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginUpdate +// method. func (client *GalleryApplicationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplicationUpdate, options *GalleryApplicationsClientBeginUpdateOptions) (*runtime.Poller[GalleryApplicationsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryApplicationsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryApplicationsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryApplicationsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryApplicationsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update a gallery Application Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryApplicationsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplicationUpdate, options *GalleryApplicationsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryApplicationsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -385,13 +419,16 @@ func (client *GalleryApplicationsClient) updateCreateRequest(ctx context.Context return nil, errors.New("parameter galleryApplicationName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryApplication) + if err := runtime.MarshalAsJSON(req, galleryApplication); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplicationversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryapplicationversions_client.go similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplicationversions_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryapplicationversions_client.go index 373f659c..06571af3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplicationversions_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryapplicationversions_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,76 +23,80 @@ import ( // GalleryApplicationVersionsClient contains the methods for the GalleryApplicationVersions group. // Don't use this type directly, use NewGalleryApplicationVersionsClient() instead. type GalleryApplicationVersionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewGalleryApplicationVersionsClient creates a new instance of GalleryApplicationVersionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGalleryApplicationVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryApplicationVersionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &GalleryApplicationVersionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Create or update a gallery Application Version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition resides. -// galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be created. -// galleryApplicationVersionName - The name of the gallery Application Version to be created. Needs to follow semantic version -// name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit -// integer. Format: .. -// galleryApplicationVersion - Parameters supplied to the create or update gallery Application Version operation. -// options - GalleryApplicationVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides. +// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be created. +// - galleryApplicationVersionName - The name of the gallery Application Version to be created. Needs to follow semantic version +// name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit +// integer. Format: .. +// - galleryApplicationVersion - Parameters supplied to the create or update gallery Application Version operation. +// - options - GalleryApplicationVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginCreateOrUpdate +// method. func (client *GalleryApplicationVersionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersion, options *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryApplicationVersionsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryApplicationVersionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryApplicationVersionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryApplicationVersionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a gallery Application Version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryApplicationVersionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersion, options *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryApplicationVersionsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -120,54 +122,70 @@ func (client *GalleryApplicationVersionsClient) createOrUpdateCreateRequest(ctx return nil, errors.New("parameter galleryApplicationVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryApplicationVersion) + if err := runtime.MarshalAsJSON(req, galleryApplicationVersion); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Delete a gallery Application Version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition resides. -// galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides. -// galleryApplicationVersionName - The name of the gallery Application Version to be deleted. -// options - GalleryApplicationVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginDelete -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides. +// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides. +// - galleryApplicationVersionName - The name of the gallery Application Version to be deleted. +// - options - GalleryApplicationVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginDelete +// method. func (client *GalleryApplicationVersionsClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientBeginDeleteOptions) (*runtime.Poller[GalleryApplicationVersionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryApplicationVersionsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryApplicationVersionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryApplicationVersionsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryApplicationVersionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Delete a gallery Application Version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryApplicationVersionsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "GalleryApplicationVersionsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -193,12 +211,12 @@ func (client *GalleryApplicationVersionsClient) deleteCreateRequest(ctx context. return nil, errors.New("parameter galleryApplicationVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -206,26 +224,34 @@ func (client *GalleryApplicationVersionsClient) deleteCreateRequest(ctx context. // Get - Retrieves information about a gallery Application Version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition resides. -// galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides. -// galleryApplicationVersionName - The name of the gallery Application Version to be retrieved. -// options - GalleryApplicationVersionsClientGetOptions contains the optional parameters for the GalleryApplicationVersionsClient.Get -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides. +// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides. +// - galleryApplicationVersionName - The name of the gallery Application Version to be retrieved. +// - options - GalleryApplicationVersionsClientGetOptions contains the optional parameters for the GalleryApplicationVersionsClient.Get +// method. func (client *GalleryApplicationVersionsClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientGetOptions) (GalleryApplicationVersionsClientGetResponse, error) { + var err error + const operationName = "GalleryApplicationVersionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, options) if err != nil { return GalleryApplicationVersionsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GalleryApplicationVersionsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryApplicationVersionsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GalleryApplicationVersionsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -251,7 +277,7 @@ func (client *GalleryApplicationVersionsClient) getCreateRequest(ctx context.Con return nil, errors.New("parameter galleryApplicationVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -259,7 +285,7 @@ func (client *GalleryApplicationVersionsClient) getCreateRequest(ctx context.Con if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -275,39 +301,34 @@ func (client *GalleryApplicationVersionsClient) getHandleResponse(resp *http.Res } // NewListByGalleryApplicationPager - List gallery Application Versions in a gallery Application Definition. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition resides. -// galleryApplicationName - The name of the Shared Application Gallery Application Definition from which the Application Versions -// are to be listed. -// options - GalleryApplicationVersionsClientListByGalleryApplicationOptions contains the optional parameters for the GalleryApplicationVersionsClient.ListByGalleryApplication -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides. +// - galleryApplicationName - The name of the Shared Application Gallery Application Definition from which the Application Versions +// are to be listed. +// - options - GalleryApplicationVersionsClientListByGalleryApplicationOptions contains the optional parameters for the GalleryApplicationVersionsClient.NewListByGalleryApplicationPager +// method. func (client *GalleryApplicationVersionsClient) NewListByGalleryApplicationPager(resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationVersionsClientListByGalleryApplicationOptions) *runtime.Pager[GalleryApplicationVersionsClientListByGalleryApplicationResponse] { return runtime.NewPager(runtime.PagingHandler[GalleryApplicationVersionsClientListByGalleryApplicationResponse]{ More: func(page GalleryApplicationVersionsClientListByGalleryApplicationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *GalleryApplicationVersionsClientListByGalleryApplicationResponse) (GalleryApplicationVersionsClientListByGalleryApplicationResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByGalleryApplicationCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GalleryApplicationVersionsClient.NewListByGalleryApplicationPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByGalleryApplicationCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, options) + }, nil) if err != nil { return GalleryApplicationVersionsClientListByGalleryApplicationResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return GalleryApplicationVersionsClientListByGalleryApplicationResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryApplicationVersionsClientListByGalleryApplicationResponse{}, runtime.NewResponseError(resp) - } return client.listByGalleryApplicationHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -330,12 +351,12 @@ func (client *GalleryApplicationVersionsClient) listByGalleryApplicationCreateRe return nil, errors.New("parameter galleryApplicationName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -352,44 +373,57 @@ func (client *GalleryApplicationVersionsClient) listByGalleryApplicationHandleRe // BeginUpdate - Update a gallery Application Version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Application Gallery in which the Application Definition resides. -// galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be updated. -// galleryApplicationVersionName - The name of the gallery Application Version to be updated. Needs to follow semantic version -// name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit -// integer. Format: .. -// galleryApplicationVersion - Parameters supplied to the update gallery Application Version operation. -// options - GalleryApplicationVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides. +// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be updated. +// - galleryApplicationVersionName - The name of the gallery Application Version to be updated. Needs to follow semantic version +// name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit +// integer. Format: .. +// - galleryApplicationVersion - Parameters supplied to the update gallery Application Version operation. +// - options - GalleryApplicationVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginUpdate +// method. func (client *GalleryApplicationVersionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersionUpdate, options *GalleryApplicationVersionsClientBeginUpdateOptions) (*runtime.Poller[GalleryApplicationVersionsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryApplicationVersionsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryApplicationVersionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryApplicationVersionsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryApplicationVersionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update a gallery Application Version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryApplicationVersionsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersionUpdate, options *GalleryApplicationVersionsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryApplicationVersionsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -415,13 +449,16 @@ func (client *GalleryApplicationVersionsClient) updateCreateRequest(ctx context. return nil, errors.New("parameter galleryApplicationVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryApplicationVersion) + if err := runtime.MarshalAsJSON(req, galleryApplicationVersion); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryimages_client.go similarity index 65% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimages_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryimages_client.go index 8427d5f4..8be1a578 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimages_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryimages_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,75 +23,79 @@ import ( // GalleryImagesClient contains the methods for the GalleryImages group. // Don't use this type directly, use NewGalleryImagesClient() instead. type GalleryImagesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewGalleryImagesClient creates a new instance of GalleryImagesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGalleryImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryImagesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &GalleryImagesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Create or update a gallery image definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition is to be created. -// galleryImageName - The name of the gallery image definition to be created or updated. The allowed characters are alphabets -// and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 -// characters. -// galleryImage - Parameters supplied to the create or update gallery image operation. -// options - GalleryImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition is to be created. +// - galleryImageName - The name of the gallery image definition to be created or updated. The allowed characters are alphabets +// and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 +// characters. +// - galleryImage - Parameters supplied to the create or update gallery image operation. +// - options - GalleryImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginCreateOrUpdate +// method. func (client *GalleryImagesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImage, options *GalleryImagesClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryImagesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryImagesClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryImagesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryImagesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryImagesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a gallery image definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryImagesClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImage, options *GalleryImagesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryImagesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -115,53 +117,69 @@ func (client *GalleryImagesClient) createOrUpdateCreateRequest(ctx context.Conte return nil, errors.New("parameter galleryImageName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryImage) + if err := runtime.MarshalAsJSON(req, galleryImage); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Delete a gallery image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition is to be deleted. -// galleryImageName - The name of the gallery image definition to be deleted. -// options - GalleryImagesClientBeginDeleteOptions contains the optional parameters for the GalleryImagesClient.BeginDelete -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition is to be deleted. +// - galleryImageName - The name of the gallery image definition to be deleted. +// - options - GalleryImagesClientBeginDeleteOptions contains the optional parameters for the GalleryImagesClient.BeginDelete +// method. func (client *GalleryImagesClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientBeginDeleteOptions) (*runtime.Poller[GalleryImagesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryImageName, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryImagesClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryImagesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryImagesClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryImagesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Delete a gallery image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryImagesClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "GalleryImagesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -183,12 +201,12 @@ func (client *GalleryImagesClient) deleteCreateRequest(ctx context.Context, reso return nil, errors.New("parameter galleryImageName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -196,24 +214,32 @@ func (client *GalleryImagesClient) deleteCreateRequest(ctx context.Context, reso // Get - Retrieves information about a gallery image definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery from which the Image Definitions are to be retrieved. -// galleryImageName - The name of the gallery image definition to be retrieved. -// options - GalleryImagesClientGetOptions contains the optional parameters for the GalleryImagesClient.Get method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery from which the Image Definitions are to be retrieved. +// - galleryImageName - The name of the gallery image definition to be retrieved. +// - options - GalleryImagesClientGetOptions contains the optional parameters for the GalleryImagesClient.Get method. func (client *GalleryImagesClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientGetOptions) (GalleryImagesClientGetResponse, error) { + var err error + const operationName = "GalleryImagesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, options) if err != nil { return GalleryImagesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GalleryImagesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryImagesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GalleryImagesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -235,12 +261,12 @@ func (client *GalleryImagesClient) getCreateRequest(ctx context.Context, resourc return nil, errors.New("parameter galleryImageName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -256,37 +282,32 @@ func (client *GalleryImagesClient) getHandleResponse(resp *http.Response) (Galle } // NewListByGalleryPager - List gallery image definitions in a gallery. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery from which Image Definitions are to be listed. -// options - GalleryImagesClientListByGalleryOptions contains the optional parameters for the GalleryImagesClient.ListByGallery -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery from which Image Definitions are to be listed. +// - options - GalleryImagesClientListByGalleryOptions contains the optional parameters for the GalleryImagesClient.NewListByGalleryPager +// method. func (client *GalleryImagesClient) NewListByGalleryPager(resourceGroupName string, galleryName string, options *GalleryImagesClientListByGalleryOptions) *runtime.Pager[GalleryImagesClientListByGalleryResponse] { return runtime.NewPager(runtime.PagingHandler[GalleryImagesClientListByGalleryResponse]{ More: func(page GalleryImagesClientListByGalleryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *GalleryImagesClientListByGalleryResponse) (GalleryImagesClientListByGalleryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByGalleryCreateRequest(ctx, resourceGroupName, galleryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GalleryImagesClient.NewListByGalleryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByGalleryCreateRequest(ctx, resourceGroupName, galleryName, options) + }, nil) if err != nil { return GalleryImagesClientListByGalleryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return GalleryImagesClientListByGalleryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryImagesClientListByGalleryResponse{}, runtime.NewResponseError(resp) - } return client.listByGalleryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -305,12 +326,12 @@ func (client *GalleryImagesClient) listByGalleryCreateRequest(ctx context.Contex return nil, errors.New("parameter galleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,42 +348,55 @@ func (client *GalleryImagesClient) listByGalleryHandleResponse(resp *http.Respon // BeginUpdate - Update a gallery image definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition is to be updated. -// galleryImageName - The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers -// with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. -// galleryImage - Parameters supplied to the update gallery image operation. -// options - GalleryImagesClientBeginUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition is to be updated. +// - galleryImageName - The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers +// with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. +// - galleryImage - Parameters supplied to the update gallery image operation. +// - options - GalleryImagesClientBeginUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginUpdate +// method. func (client *GalleryImagesClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImageUpdate, options *GalleryImagesClientBeginUpdateOptions) (*runtime.Poller[GalleryImagesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryImagesClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryImagesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryImagesClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryImagesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update a gallery image definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryImagesClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImageUpdate, options *GalleryImagesClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryImagesClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -384,13 +418,16 @@ func (client *GalleryImagesClient) updateCreateRequest(ctx context.Context, reso return nil, errors.New("parameter galleryImageName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryImage) + if err := runtime.MarshalAsJSON(req, galleryImage); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimageversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryimageversions_client.go similarity index 66% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimageversions_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryimageversions_client.go index df24c4d2..b16e42ed 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimageversions_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/galleryimageversions_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,76 +23,80 @@ import ( // GalleryImageVersionsClient contains the methods for the GalleryImageVersions group. // Don't use this type directly, use NewGalleryImageVersionsClient() instead. type GalleryImageVersionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewGalleryImageVersionsClient creates a new instance of GalleryImageVersionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGalleryImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryImageVersionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &GalleryImageVersionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Create or update a gallery image version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - The name of the gallery image definition in which the Image Version is to be created. -// galleryImageVersionName - The name of the gallery image version to be created. Needs to follow semantic version name pattern: -// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. -// Format: .. -// galleryImageVersion - Parameters supplied to the create or update gallery image version operation. -// options - GalleryImageVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides. +// - galleryImageName - The name of the gallery image definition in which the Image Version is to be created. +// - galleryImageVersionName - The name of the gallery image version to be created. Needs to follow semantic version name pattern: +// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. +// Format: .. +// - galleryImageVersion - Parameters supplied to the create or update gallery image version operation. +// - options - GalleryImageVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginCreateOrUpdate +// method. func (client *GalleryImageVersionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersion, options *GalleryImageVersionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryImageVersionsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryImageVersionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryImageVersionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryImageVersionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a gallery image version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryImageVersionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersion, options *GalleryImageVersionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryImageVersionsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -120,54 +122,70 @@ func (client *GalleryImageVersionsClient) createOrUpdateCreateRequest(ctx contex return nil, errors.New("parameter galleryImageVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryImageVersion) + if err := runtime.MarshalAsJSON(req, galleryImageVersion); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Delete a gallery image version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - The name of the gallery image definition in which the Image Version resides. -// galleryImageVersionName - The name of the gallery image version to be deleted. -// options - GalleryImageVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryImageVersionsClient.BeginDelete -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides. +// - galleryImageName - The name of the gallery image definition in which the Image Version resides. +// - galleryImageVersionName - The name of the gallery image version to be deleted. +// - options - GalleryImageVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryImageVersionsClient.BeginDelete +// method. func (client *GalleryImageVersionsClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientBeginDeleteOptions) (*runtime.Poller[GalleryImageVersionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryImageVersionsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryImageVersionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryImageVersionsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryImageVersionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Delete a gallery image version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryImageVersionsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "GalleryImageVersionsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -193,12 +211,12 @@ func (client *GalleryImageVersionsClient) deleteCreateRequest(ctx context.Contex return nil, errors.New("parameter galleryImageVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -206,26 +224,34 @@ func (client *GalleryImageVersionsClient) deleteCreateRequest(ctx context.Contex // Get - Retrieves information about a gallery image version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - The name of the gallery image definition in which the Image Version resides. -// galleryImageVersionName - The name of the gallery image version to be retrieved. -// options - GalleryImageVersionsClientGetOptions contains the optional parameters for the GalleryImageVersionsClient.Get -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides. +// - galleryImageName - The name of the gallery image definition in which the Image Version resides. +// - galleryImageVersionName - The name of the gallery image version to be retrieved. +// - options - GalleryImageVersionsClientGetOptions contains the optional parameters for the GalleryImageVersionsClient.Get +// method. func (client *GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientGetOptions) (GalleryImageVersionsClientGetResponse, error) { + var err error + const operationName = "GalleryImageVersionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, options) if err != nil { return GalleryImageVersionsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GalleryImageVersionsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryImageVersionsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GalleryImageVersionsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -251,7 +277,7 @@ func (client *GalleryImageVersionsClient) getCreateRequest(ctx context.Context, return nil, errors.New("parameter galleryImageVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -259,7 +285,7 @@ func (client *GalleryImageVersionsClient) getCreateRequest(ctx context.Context, if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -275,38 +301,33 @@ func (client *GalleryImageVersionsClient) getHandleResponse(resp *http.Response) } // NewListByGalleryImagePager - List gallery image versions in a gallery image definition. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed. -// options - GalleryImageVersionsClientListByGalleryImageOptions contains the optional parameters for the GalleryImageVersionsClient.ListByGalleryImage -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides. +// - galleryImageName - The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed. +// - options - GalleryImageVersionsClientListByGalleryImageOptions contains the optional parameters for the GalleryImageVersionsClient.NewListByGalleryImagePager +// method. func (client *GalleryImageVersionsClient) NewListByGalleryImagePager(resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImageVersionsClientListByGalleryImageOptions) *runtime.Pager[GalleryImageVersionsClientListByGalleryImageResponse] { return runtime.NewPager(runtime.PagingHandler[GalleryImageVersionsClientListByGalleryImageResponse]{ More: func(page GalleryImageVersionsClientListByGalleryImageResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *GalleryImageVersionsClientListByGalleryImageResponse) (GalleryImageVersionsClientListByGalleryImageResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByGalleryImageCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GalleryImageVersionsClient.NewListByGalleryImagePager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByGalleryImageCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, options) + }, nil) if err != nil { return GalleryImageVersionsClientListByGalleryImageResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return GalleryImageVersionsClientListByGalleryImageResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GalleryImageVersionsClientListByGalleryImageResponse{}, runtime.NewResponseError(resp) - } return client.listByGalleryImageHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -329,12 +350,12 @@ func (client *GalleryImageVersionsClient) listByGalleryImageCreateRequest(ctx co return nil, errors.New("parameter galleryImageName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -351,44 +372,57 @@ func (client *GalleryImageVersionsClient) listByGalleryImageHandleResponse(resp // BeginUpdate - Update a gallery image version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery in which the Image Definition resides. -// galleryImageName - The name of the gallery image definition in which the Image Version is to be updated. -// galleryImageVersionName - The name of the gallery image version to be updated. Needs to follow semantic version name pattern: -// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. -// Format: .. -// galleryImageVersion - Parameters supplied to the update gallery image version operation. -// options - GalleryImageVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides. +// - galleryImageName - The name of the gallery image definition in which the Image Version is to be updated. +// - galleryImageVersionName - The name of the gallery image version to be updated. Needs to follow semantic version name pattern: +// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. +// Format: .. +// - galleryImageVersion - Parameters supplied to the update gallery image version operation. +// - options - GalleryImageVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginUpdate +// method. func (client *GalleryImageVersionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersionUpdate, options *GalleryImageVersionsClientBeginUpdateOptions) (*runtime.Poller[GalleryImageVersionsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options) if err != nil { return nil, err } - return runtime.NewPoller[GalleryImageVersionsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GalleryImageVersionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GalleryImageVersionsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GalleryImageVersionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update a gallery image version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GalleryImageVersionsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersionUpdate, options *GalleryImageVersionsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GalleryImageVersionsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -414,13 +448,16 @@ func (client *GalleryImageVersionsClient) updateCreateRequest(ctx context.Contex return nil, errors.New("parameter galleryImageVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, galleryImageVersion) + if err := runtime.MarshalAsJSON(req, galleryImageVersion); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_gallerysharingprofile_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/gallerysharingprofile_client.go similarity index 63% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_gallerysharingprofile_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/gallerysharingprofile_client.go index 3ddc9614..0ccc5ce9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_gallerysharingprofile_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/gallerysharingprofile_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,72 +23,76 @@ import ( // GallerySharingProfileClient contains the methods for the GallerySharingProfile group. // Don't use this type directly, use NewGallerySharingProfileClient() instead. type GallerySharingProfileClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewGallerySharingProfileClient creates a new instance of GallerySharingProfileClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGallerySharingProfileClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GallerySharingProfileClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &GallerySharingProfileClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginUpdate - Update sharing profile of a gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 -// resourceGroupName - The name of the resource group. -// galleryName - The name of the Shared Image Gallery. -// sharingUpdate - Parameters supplied to the update gallery sharing profile. -// options - GallerySharingProfileClientBeginUpdateOptions contains the optional parameters for the GallerySharingProfileClient.BeginUpdate -// method. +// +// Generated from API version 2023-07-03 +// - resourceGroupName - The name of the resource group. +// - galleryName - The name of the Shared Image Gallery. +// - sharingUpdate - Parameters supplied to the update gallery sharing profile. +// - options - GallerySharingProfileClientBeginUpdateOptions contains the optional parameters for the GallerySharingProfileClient.BeginUpdate +// method. func (client *GallerySharingProfileClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate, options *GallerySharingProfileClientBeginUpdateOptions) (*runtime.Poller[GallerySharingProfileClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, galleryName, sharingUpdate, options) if err != nil { return nil, err } - return runtime.NewPoller[GallerySharingProfileClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GallerySharingProfileClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[GallerySharingProfileClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GallerySharingProfileClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update sharing profile of a gallery. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-10-01 +// +// Generated from API version 2023-07-03 func (client *GallerySharingProfileClient) update(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate, options *GallerySharingProfileClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GallerySharingProfileClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, sharingUpdate, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -108,13 +110,16 @@ func (client *GallerySharingProfileClient) updateCreateRequest(ctx context.Conte return nil, errors.New("parameter galleryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-10-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, sharingUpdate) + if err := runtime.MarshalAsJSON(req, sharingUpdate); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_images_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/images_client.go similarity index 66% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_images_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/images_client.go index 1d09de1a..5fecdbf1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_images_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/images_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,72 +23,76 @@ import ( // ImagesClient contains the methods for the Images group. // Don't use this type directly, use NewImagesClient() instead. type ImagesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewImagesClient creates a new instance of ImagesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImagesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &ImagesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Create or update an image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// imageName - The name of the image. -// parameters - Parameters supplied to the Create Image operation. -// options - ImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the ImagesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - imageName - The name of the image. +// - parameters - Parameters supplied to the Create Image operation. +// - options - ImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the ImagesClient.BeginCreateOrUpdate +// method. func (client *ImagesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters Image, options *ImagesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ImagesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, imageName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ImagesClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ImagesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[ImagesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ImagesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update an image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *ImagesClient) createOrUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters Image, options *ImagesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ImagesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, imageName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -108,51 +110,67 @@ func (client *ImagesClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Deletes an Image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// imageName - The name of the image. -// options - ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - imageName - The name of the image. +// - options - ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method. func (client *ImagesClient) BeginDelete(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientBeginDeleteOptions) (*runtime.Poller[ImagesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, imageName, options) if err != nil { return nil, err } - return runtime.NewPoller[ImagesClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ImagesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[ImagesClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ImagesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes an Image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *ImagesClient) deleteOperation(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "ImagesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, imageName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -170,12 +188,12 @@ func (client *ImagesClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -183,23 +201,31 @@ func (client *ImagesClient) deleteCreateRequest(ctx context.Context, resourceGro // Get - Gets an image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// imageName - The name of the image. -// options - ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - imageName - The name of the image. +// - options - ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method. func (client *ImagesClient) Get(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientGetOptions) (ImagesClientGetResponse, error) { + var err error + const operationName = "ImagesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, imageName, options) if err != nil { return ImagesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ImagesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ImagesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ImagesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -217,7 +243,7 @@ func (client *ImagesClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -225,7 +251,7 @@ func (client *ImagesClient) getCreateRequest(ctx context.Context, resourceGroupN if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -242,34 +268,29 @@ func (client *ImagesClient) getHandleResponse(resp *http.Response) (ImagesClient // NewListPager - Gets the list of Images in the subscription. Use nextLink property in the response to get the next page // of Images. Do this till nextLink is null to fetch all the Images. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ImagesClientListOptions contains the optional parameters for the ImagesClient.List method. +// +// Generated from API version 2024-03-01 +// - options - ImagesClientListOptions contains the optional parameters for the ImagesClient.NewListPager method. func (client *ImagesClient) NewListPager(options *ImagesClientListOptions) *runtime.Pager[ImagesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ImagesClientListResponse]{ More: func(page ImagesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *ImagesClientListResponse) (ImagesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return ImagesClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ImagesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return ImagesClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ImagesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -280,12 +301,12 @@ func (client *ImagesClient) listCreateRequest(ctx context.Context, options *Imag return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -300,37 +321,33 @@ func (client *ImagesClient) listHandleResponse(resp *http.Response) (ImagesClien return result, nil } -// NewListByResourceGroupPager - Gets the list of images under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.ListByResourceGroup -// method. +// NewListByResourceGroupPager - Gets the list of images under a resource group. Use nextLink property in the response to +// get the next page of Images. Do this till nextLink is null to fetch all the Images. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.NewListByResourceGroupPager +// method. func (client *ImagesClient) NewListByResourceGroupPager(resourceGroupName string, options *ImagesClientListByResourceGroupOptions) *runtime.Pager[ImagesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[ImagesClientListByResourceGroupResponse]{ More: func(page ImagesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *ImagesClientListByResourceGroupResponse) (ImagesClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return ImagesClientListByResourceGroupResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ImagesClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return ImagesClientListByResourceGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ImagesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -345,12 +362,12 @@ func (client *ImagesClient) listByResourceGroupCreateRequest(ctx context.Context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -367,39 +384,52 @@ func (client *ImagesClient) listByResourceGroupHandleResponse(resp *http.Respons // BeginUpdate - Update an image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// imageName - The name of the image. -// parameters - Parameters supplied to the Update Image operation. -// options - ImagesClientBeginUpdateOptions contains the optional parameters for the ImagesClient.BeginUpdate method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - imageName - The name of the image. +// - parameters - Parameters supplied to the Update Image operation. +// - options - ImagesClientBeginUpdateOptions contains the optional parameters for the ImagesClient.BeginUpdate method. func (client *ImagesClient) BeginUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters ImageUpdate, options *ImagesClientBeginUpdateOptions) (*runtime.Poller[ImagesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, imageName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ImagesClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ImagesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[ImagesClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ImagesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update an image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *ImagesClient) update(ctx context.Context, resourceGroupName string, imageName string, parameters ImageUpdate, options *ImagesClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "ImagesClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, imageName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -417,13 +447,16 @@ func (client *ImagesClient) updateCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_loganalytics_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/loganalytics_client.go similarity index 63% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_loganalytics_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/loganalytics_client.go index b0dd5efe..a3b77f82 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_loganalytics_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/loganalytics_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,32 +23,23 @@ import ( // LogAnalyticsClient contains the methods for the LogAnalytics group. // Don't use this type directly, use NewLogAnalyticsClient() instead. type LogAnalyticsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewLogAnalyticsClient creates a new instance of LogAnalyticsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewLogAnalyticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LogAnalyticsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &LogAnalyticsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } @@ -58,42 +47,54 @@ func NewLogAnalyticsClient(subscriptionID string, credential azcore.TokenCredent // BeginExportRequestRateByInterval - Export logs that show Api requests made by this subscription in the given time window // to show throttling activities. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location upon which virtual-machine-sizes is queried. -// parameters - Parameters supplied to the LogAnalytics getRequestRateByInterval Api. -// options - LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval -// method. +// +// Generated from API version 2024-03-01 +// - location - The location upon which virtual-machine-sizes is queried. +// - parameters - Parameters supplied to the LogAnalytics getRequestRateByInterval Api. +// - options - LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval +// method. func (client *LogAnalyticsClient) BeginExportRequestRateByInterval(ctx context.Context, location string, parameters RequestRateByIntervalInput, options *LogAnalyticsClientBeginExportRequestRateByIntervalOptions) (*runtime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.exportRequestRateByInterval(ctx, location, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[LogAnalyticsClientExportRequestRateByIntervalResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[LogAnalyticsClientExportRequestRateByIntervalResponse]{ FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[LogAnalyticsClientExportRequestRateByIntervalResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[LogAnalyticsClientExportRequestRateByIntervalResponse]{ + Tracer: client.internal.Tracer(), + }) } } // ExportRequestRateByInterval - Export logs that show Api requests made by this subscription in the given time window to // show throttling activities. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *LogAnalyticsClient) exportRequestRateByInterval(ctx context.Context, location string, parameters RequestRateByIntervalInput, options *LogAnalyticsClientBeginExportRequestRateByIntervalOptions) (*http.Response, error) { + var err error + const operationName = "LogAnalyticsClient.BeginExportRequestRateByInterval" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.exportRequestRateByIntervalCreateRequest(ctx, location, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // exportRequestRateByIntervalCreateRequest creates the ExportRequestRateByInterval request. @@ -107,55 +108,70 @@ func (client *LogAnalyticsClient) exportRequestRateByIntervalCreateRequest(ctx c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginExportThrottledRequests - Export logs that show total throttled Api requests for this subscription in the given time // window. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location upon which virtual-machine-sizes is queried. -// parameters - Parameters supplied to the LogAnalytics getThrottledRequests Api. -// options - LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests -// method. +// +// Generated from API version 2024-03-01 +// - location - The location upon which virtual-machine-sizes is queried. +// - parameters - Parameters supplied to the LogAnalytics getThrottledRequests Api. +// - options - LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests +// method. func (client *LogAnalyticsClient) BeginExportThrottledRequests(ctx context.Context, location string, parameters ThrottledRequestsInput, options *LogAnalyticsClientBeginExportThrottledRequestsOptions) (*runtime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.exportThrottledRequests(ctx, location, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[LogAnalyticsClientExportThrottledRequestsResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[LogAnalyticsClientExportThrottledRequestsResponse]{ FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[LogAnalyticsClientExportThrottledRequestsResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[LogAnalyticsClientExportThrottledRequestsResponse]{ + Tracer: client.internal.Tracer(), + }) } } // ExportThrottledRequests - Export logs that show total throttled Api requests for this subscription in the given time window. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *LogAnalyticsClient) exportThrottledRequests(ctx context.Context, location string, parameters ThrottledRequestsInput, options *LogAnalyticsClientBeginExportThrottledRequestsOptions) (*http.Response, error) { + var err error + const operationName = "LogAnalyticsClient.BeginExportThrottledRequests" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.exportThrottledRequestsCreateRequest(ctx, location, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // exportThrottledRequestsCreateRequest creates the ExportThrottledRequests request. @@ -169,13 +185,16 @@ func (client *LogAnalyticsClient) exportThrottledRequestsCreateRequest(ctx conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models.go similarity index 50% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models.go index e74c02ba..1fad0acd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,57 +13,57 @@ import "time" // APIEntityReference - The API entity reference. type APIEntityReference struct { // The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/… - ID *string `json:"id,omitempty"` + ID *string } // APIError - Api error. type APIError struct { // The error code. - Code *string `json:"code,omitempty"` + Code *string // The Api error details - Details []*APIErrorBase `json:"details,omitempty"` + Details []*APIErrorBase // The Api inner error - Innererror *InnerError `json:"innererror,omitempty"` + Innererror *InnerError // The error message. - Message *string `json:"message,omitempty"` + Message *string // The target of the particular error. - Target *string `json:"target,omitempty"` + Target *string } // APIErrorBase - Api error base. type APIErrorBase struct { // The error code. - Code *string `json:"code,omitempty"` + Code *string // The error message. - Message *string `json:"message,omitempty"` + Message *string // The target of the particular error. - Target *string `json:"target,omitempty"` + Target *string } // AccessURI - A disk access SAS uri. type AccessURI struct { // READ-ONLY; A SAS uri for accessing a disk. - AccessSAS *string `json:"accessSAS,omitempty" azure:"ro"` + AccessSAS *string // READ-ONLY; A SAS uri for accessing a VM guest state. - SecurityDataAccessSAS *string `json:"securityDataAccessSAS,omitempty" azure:"ro"` + SecurityDataAccessSAS *string } // AdditionalCapabilities - Enables or disables a capability on the virtual machine or virtual machine scale set. type AdditionalCapabilities struct { // The flag that enables or disables hibernation capability on the VM. - HibernationEnabled *bool `json:"hibernationEnabled,omitempty"` + HibernationEnabled *bool // The flag that enables or disables a capability to have one or more managed data disks with UltraSSDLRS storage account // type on the VM or VMSS. Managed disks with storage account type UltraSSDLRS can // be added to a virtual machine or virtual machine scale set only if this property is enabled. - UltraSSDEnabled *bool `json:"ultraSSDEnabled,omitempty"` + UltraSSDEnabled *bool } // AdditionalUnattendContent - Specifies additional XML formatted information that can be included in the Unattend.xml file, @@ -71,210 +71,195 @@ type AdditionalCapabilities struct { // which the content is applied. type AdditionalUnattendContent struct { // The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. - ComponentName *string `json:"componentName,omitempty"` + ComponentName *string // Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML // must be less than 4KB and must include the root element for the setting or // feature that is being inserted. - Content *string `json:"content,omitempty"` + Content *string // The pass name. Currently, the only allowable value is OobeSystem. - PassName *string `json:"passName,omitempty"` + PassName *string // Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. - SettingName *SettingNames `json:"settingName,omitempty"` + SettingName *SettingNames +} + +// AlternativeOption - Describes the alternative option specified by the Publisher for this image when this image is deprecated. +type AlternativeOption struct { + // Describes the type of the alternative option. + Type *AlternativeType + + // Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the + // Plan name when the type is Plan. + Value *string } // ApplicationProfile - Contains the list of gallery applications that should be made available to the VM/VMSS type ApplicationProfile struct { // Specifies the gallery applications that should be made available to the VM/VMSS - GalleryApplications []*VMGalleryApplication `json:"galleryApplications,omitempty"` + GalleryApplications []*VMGalleryApplication +} + +// AttachDetachDataDisksRequest - Specifies the input for attaching and detaching a list of managed data disks. +type AttachDetachDataDisksRequest struct { + // The list of managed data disks to be attached. + DataDisksToAttach []*DataDisksToAttach + + // The list of managed data disks to be detached. + DataDisksToDetach []*DataDisksToDetach } // AutomaticOSUpgradePolicy - The configuration parameters used for performing automatic OS upgrade. type AutomaticOSUpgradePolicy struct { // Whether OS image rollback feature should be disabled. Default value is false. - DisableAutomaticRollback *bool `json:"disableAutomaticRollback,omitempty"` + DisableAutomaticRollback *bool // Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer - // version of the OS image becomes available. Default value is false. - // If this is set to true for Windows based scale sets, enableAutomaticUpdates + // version of the OS image becomes available. Default value is false. If this is set + // to true for Windows based scale sets, enableAutomaticUpdates // [https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet] // is automatically set to false and cannot be set to true. - EnableAutomaticOSUpgrade *bool `json:"enableAutomaticOSUpgrade,omitempty"` + EnableAutomaticOSUpgrade *bool + + // Indicates whether Auto OS Upgrade should undergo deferral. Deferred OS upgrades will send advanced notifications on a per-VM + // basis that an OS upgrade from rolling upgrades is incoming, via the IMDS + // tag 'Platform.PendingOSUpgrade'. The upgrade then defers until the upgrade is approved via an ApproveRollingUpgrade call. + OSRollingUpgradeDeferral *bool // Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value is false. Auto OS Upgrade // will fallback to the default policy if no policy is defined on the VMSS. - UseRollingUpgradePolicy *bool `json:"useRollingUpgradePolicy,omitempty"` + UseRollingUpgradePolicy *bool } // AutomaticOSUpgradeProperties - Describes automatic OS upgrade properties on the image. type AutomaticOSUpgradeProperties struct { // REQUIRED; Specifies whether automatic OS upgrade is supported on the image. - AutomaticOSUpgradeSupported *bool `json:"automaticOSUpgradeSupported,omitempty"` + AutomaticOSUpgradeSupported *bool } // AutomaticRepairsPolicy - Specifies the configuration parameters for automatic repairs on the virtual machine scale set. type AutomaticRepairsPolicy struct { // Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the // state change has completed. This helps avoid premature or accidental repairs. // The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which // is also the default value. The maximum allowed grace period is 90 minutes // (PT90M). - GracePeriod *string `json:"gracePeriod,omitempty"` + GracePeriod *string // Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale // set. Default value is replace. - RepairAction *RepairAction `json:"repairAction,omitempty"` + RepairAction *RepairAction } // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual // machines specified in the same availability set are allocated to different nodes to maximize // availability. For more information about availability sets, see Availability sets overview [https://docs.microsoft.com/azure/virtual-machines/availability-set-overview]. -// For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates] -// Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability -// set. +// For more information on Azure +// planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates]. +// Currently, a VM can only be added to an +// availability set at creation time. An existing VM cannot be added to an availability set. type AvailabilitySet struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The instance view of a resource. - Properties *AvailabilitySetProperties `json:"properties,omitempty"` + Properties *AvailabilitySetProperties // Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use // 'Aligned' for virtual machines with managed disks and 'Classic' for virtual // machines with unmanaged disks. Default value is 'Classic'. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AvailabilitySetListResult - The List Availability Set operation response. type AvailabilitySetListResult struct { // REQUIRED; The list of availability sets - Value []*AvailabilitySet `json:"value,omitempty"` + Value []*AvailabilitySet // The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // AvailabilitySetProperties - The instance view of a resource. type AvailabilitySetProperties struct { // Fault Domain count. - PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"` + PlatformFaultDomainCount *int32 // Update Domain count. - PlatformUpdateDomainCount *int32 `json:"platformUpdateDomainCount,omitempty"` + PlatformUpdateDomainCount *int32 - // Specifies information about the proximity placement group that the availability set should be assigned to. - // Minimum api-version: 2018-04-01. - ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` + // Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: + // 2018-04-01. + ProximityPlacementGroup *SubResource // A list of references to all virtual machines in the availability set. - VirtualMachines []*SubResource `json:"virtualMachines,omitempty"` + VirtualMachines []*SubResource // READ-ONLY; The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty" azure:"ro"` + Statuses []*InstanceViewStatus } // AvailabilitySetUpdate - Specifies information about the availability set that the virtual machine should be assigned to. // Only tags may be updated. type AvailabilitySetUpdate struct { // The instance view of a resource. - Properties *AvailabilitySetProperties `json:"properties,omitempty"` + Properties *AvailabilitySetProperties // Sku of the availability set - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// AvailabilitySetsClientCreateOrUpdateOptions contains the optional parameters for the AvailabilitySetsClient.CreateOrUpdate -// method. -type AvailabilitySetsClientCreateOrUpdateOptions struct { - // placeholder for future optional parameters -} - -// AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method. -type AvailabilitySetsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method. -type AvailabilitySetsClientGetOptions struct { - // placeholder for future optional parameters -} - -// AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.ListAvailableSizes -// method. -type AvailabilitySetsClientListAvailableSizesOptions struct { - // placeholder for future optional parameters -} - -// AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.ListBySubscription -// method. -type AvailabilitySetsClientListBySubscriptionOptions struct { - // The expand expression to apply to the operation. Allowed values are 'instanceView'. - Expand *string -} - -// AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.List method. -type AvailabilitySetsClientListOptions struct { - // placeholder for future optional parameters -} - -// AvailabilitySetsClientUpdateOptions contains the optional parameters for the AvailabilitySetsClient.Update method. -type AvailabilitySetsClientUpdateOptions struct { - // placeholder for future optional parameters + Tags map[string]*string } // AvailablePatchSummary - Describes the properties of an virtual machine instance view for available patch summary. type AvailablePatchSummary struct { // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension // logs. - AssessmentActivityID *string `json:"assessmentActivityId,omitempty" azure:"ro"` + AssessmentActivityID *string // READ-ONLY; The number of critical or security patches that have been detected as available and not yet installed. - CriticalAndSecurityPatchCount *int32 `json:"criticalAndSecurityPatchCount,omitempty" azure:"ro"` + CriticalAndSecurityPatchCount *int32 // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them. - Error *APIError `json:"error,omitempty" azure:"ro"` + Error *APIError // READ-ONLY; The UTC timestamp when the operation began. - LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` + LastModifiedTime *time.Time // READ-ONLY; The number of all available patches excluding critical and security. - OtherPatchCount *int32 `json:"otherPatchCount,omitempty" azure:"ro"` + OtherPatchCount *int32 // READ-ONLY; The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete // installation but the reboot has not yet occurred. - RebootPending *bool `json:"rebootPending,omitempty" azure:"ro"` + RebootPending *bool // READ-ONLY; The UTC timestamp when the operation began. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes. // At that point it will become "Unknown", "Failed", "Succeeded", or // "CompletedWithWarnings." - Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"` + Status *PatchOperationStatus } -// BillingProfile - Specifies the billing related details of a Azure Spot VM or VMSS. -// Minimum api-version: 2019-03-01. +// BillingProfile - Specifies the billing related details of a Azure Spot VM or VMSS. Minimum api-version: 2019-03-01. type BillingProfile struct { // Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. // This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time @@ -288,179 +273,143 @@ type BillingProfile struct { // You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the // default max price is -1 if it is not provided by you. // Minimum api-version: 2019-03-01. - MaxPrice *float64 `json:"maxPrice,omitempty"` + MaxPrice *float64 } // BootDiagnostics - Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose -// VM status. -// You can easily view the output of your console log. -// Azure also enables you to see a screenshot of the VM from the hypervisor. +// VM status. You can easily view the output of your console log. Azure also enables you to see +// a screenshot of the VM from the hypervisor. type BootDiagnostics struct { // Whether boot diagnostics should be enabled on the Virtual Machine. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool - // Uri of the storage account to use for placing the console output and screenshot. - // If storageUri is not specified while enabling boot diagnostics, managed storage will be used. - StorageURI *string `json:"storageUri,omitempty"` + // Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling + // boot diagnostics, managed storage will be used. + StorageURI *string } // BootDiagnosticsInstanceView - The instance view of a virtual machine boot diagnostics. type BootDiagnosticsInstanceView struct { - // READ-ONLY; The console screenshot blob URI. - // NOTE: This will not be set if boot diagnostics is currently enabled with managed storage. - ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty" azure:"ro"` + // READ-ONLY; The console screenshot blob URI. Note: This will not be set if boot diagnostics is currently enabled with managed + // storage. + ConsoleScreenshotBlobURI *string - // READ-ONLY; The serial console log blob Uri. - // NOTE: This will not be set if boot diagnostics is currently enabled with managed storage. - SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty" azure:"ro"` + // READ-ONLY; The serial console log blob Uri. Note: This will not be set if boot diagnostics is currently enabled with managed + // storage. + SerialConsoleLogBlobURI *string - // READ-ONLY; The boot diagnostics status information for the VM. - // NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. - Status *InstanceViewStatus `json:"status,omitempty" azure:"ro"` + // READ-ONLY; The boot diagnostics status information for the VM. Note: It will be set only if there are errors encountered + // in enabling boot diagnostics. + Status *InstanceViewStatus } // CapacityReservation - Specifies information about the capacity reservation. type CapacityReservation struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently // VM Skus with the capability called 'CapacityReservationSupported' set to true are // supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) // for supported values. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Properties of the Capacity reservation. - Properties *CapacityReservationProperties `json:"properties,omitempty"` + Properties *CapacityReservationProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the // list of zones specified during the capacity reservation group creation. The zone // can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, // enforces VM/VMSS using this capacity reservation to be in same zone. - Zones []*string `json:"zones,omitempty"` + Zones []*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CapacityReservationGroup - Specifies information about the capacity reservation group that the capacity reservations should -// be assigned to. -// Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity -// reservation cannot be added or moved to another capacity reservation group. +// be assigned to. Currently, a capacity reservation can only be added to a capacity reservation group at +// creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. type CapacityReservationGroup struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // capacity reservation group Properties. - Properties *CapacityReservationGroupProperties `json:"properties,omitempty"` + Properties *CapacityReservationGroupProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, // the group supports only regional resources in the region. If provided, // enforces each capacity reservation in the group to be in one of the zones. - Zones []*string `json:"zones,omitempty"` + Zones []*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type CapacityReservationGroupInstanceView struct { // READ-ONLY; List of instance view of the capacity reservations under the capacity reservation group. - CapacityReservations []*CapacityReservationInstanceViewWithName `json:"capacityReservations,omitempty" azure:"ro"` + CapacityReservations []*CapacityReservationInstanceViewWithName + + // READ-ONLY; List of the subscriptions that the capacity reservation group is shared with. Note: Minimum api-version: 2024-03-01. + // Please refer to https://aka.ms/computereservationsharing for more details. + SharedSubscriptionIDs []*SubResourceReadOnly } // CapacityReservationGroupListResult - The List capacity reservation group with resource group response. type CapacityReservationGroupListResult struct { // REQUIRED; The list of capacity reservation groups - Value []*CapacityReservationGroup `json:"value,omitempty"` + Value []*CapacityReservationGroup // The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of // capacity reservation groups. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // CapacityReservationGroupProperties - capacity reservation group Properties. type CapacityReservationGroupProperties struct { + // Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in + // mind the capacity reservation group resource generally can be shared across + // subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between + // the AAD tenants. Note: Minimum api-version: 2024-03-01. Please refer to + // https://aka.ms/computereservationsharing for more details. + SharingProfile *ResourceSharingProfile + // READ-ONLY; A list of all capacity reservation resource ids that belong to capacity reservation group. - CapacityReservations []*SubResourceReadOnly `json:"capacityReservations,omitempty" azure:"ro"` + CapacityReservations []*SubResourceReadOnly // READ-ONLY; The capacity reservation group instance view which has the list of instance views for all the capacity reservations // that belong to the capacity reservation group. - InstanceView *CapacityReservationGroupInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *CapacityReservationGroupInstanceView // READ-ONLY; A list of references to all virtual machines associated to the capacity reservation group. - VirtualMachinesAssociated []*SubResourceReadOnly `json:"virtualMachinesAssociated,omitempty" azure:"ro"` + VirtualMachinesAssociated []*SubResourceReadOnly } // CapacityReservationGroupUpdate - Specifies information about the capacity reservation group. Only tags can be updated. type CapacityReservationGroupUpdate struct { // capacity reservation group Properties. - Properties *CapacityReservationGroupProperties `json:"properties,omitempty"` + Properties *CapacityReservationGroupProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// CapacityReservationGroupsClientCreateOrUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.CreateOrUpdate -// method. -type CapacityReservationGroupsClientCreateOrUpdateOptions struct { - // placeholder for future optional parameters -} - -// CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete -// method. -type CapacityReservationGroupsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get -// method. -type CapacityReservationGroupsClientGetOptions struct { - // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity - // reservations under the capacity reservation group which is a snapshot of the - // runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations. - Expand *CapacityReservationGroupInstanceViewTypes -} - -// CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.ListByResourceGroup -// method. -type CapacityReservationGroupsClientListByResourceGroupOptions struct { - // The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet - // VM Instance or both resource Ids which are associated to capacity - // reservation group in the response. - Expand *ExpandTypesForGetCapacityReservationGroups -} - -// CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.ListBySubscription -// method. -type CapacityReservationGroupsClientListBySubscriptionOptions struct { - // The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet - // VM Instance or both resource Ids which are associated to capacity - // reservation group in the response. - Expand *ExpandTypesForGetCapacityReservationGroups -} - -// CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update -// method. -type CapacityReservationGroupsClientUpdateOptions struct { - // placeholder for future optional parameters + Tags map[string]*string } // CapacityReservationInstanceView - The instance view of a capacity reservation that provides as snapshot of the runtime @@ -468,33 +417,33 @@ type CapacityReservationGroupsClientUpdateOptions struct { // operations. type CapacityReservationInstanceView struct { // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // Unutilized capacity of the capacity reservation. - UtilizationInfo *CapacityReservationUtilization `json:"utilizationInfo,omitempty"` + UtilizationInfo *CapacityReservationUtilization } // CapacityReservationInstanceViewWithName - The instance view of a capacity reservation that includes the name of the capacity // reservation. It is used for the response to the instance view of a capacity reservation group. type CapacityReservationInstanceViewWithName struct { // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // Unutilized capacity of the capacity reservation. - UtilizationInfo *CapacityReservationUtilization `json:"utilizationInfo,omitempty"` + UtilizationInfo *CapacityReservationUtilization // READ-ONLY; The name of the capacity reservation. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // CapacityReservationListResult - The list capacity reservation operation response. type CapacityReservationListResult struct { // REQUIRED; The list of capacity reservations - Value []*CapacityReservation `json:"value,omitempty"` + Value []*CapacityReservation // The URI to fetch the next page of capacity reservations. Call ListNext() with this URI to fetch the next page of capacity // reservations. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // CapacityReservationProfile - The parameters of a capacity reservation Profile. @@ -502,151 +451,127 @@ type CapacityReservationProfile struct { // Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset // vm instances provided enough capacity has been reserved. Please refer to // https://aka.ms/CapacityReservation for more details. - CapacityReservationGroup *SubResource `json:"capacityReservationGroup,omitempty"` + CapacityReservationGroup *SubResource } // CapacityReservationProperties - Properties of the Capacity reservation. type CapacityReservationProperties struct { // READ-ONLY; The Capacity reservation instance view. - InstanceView *CapacityReservationInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *CapacityReservationInstanceView + + // READ-ONLY; Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. Note: The + // fault domain count specified for a resource (like virtual machines scale set) must be less + // than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01. + PlatformFaultDomainCount *int32 // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; The date time when the capacity reservation was last updated. - ProvisioningTime *time.Time `json:"provisioningTime,omitempty" azure:"ro"` + ProvisioningTime *time.Time // READ-ONLY; A unique id generated and assigned to the capacity reservation by the platform which does not change throughout // the lifetime of the resource. - ReservationID *string `json:"reservationId,omitempty" azure:"ro"` + ReservationID *string - // READ-ONLY; Specifies the time at which the Capacity Reservation resource was created. - // Minimum api-version: 2022-03-01. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + // READ-ONLY; Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. + TimeCreated *time.Time // READ-ONLY; A list of all virtual machine resource ids that are associated with the capacity reservation. - VirtualMachinesAssociated []*SubResourceReadOnly `json:"virtualMachinesAssociated,omitempty" azure:"ro"` + VirtualMachinesAssociated []*SubResourceReadOnly } // CapacityReservationUpdate - Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. type CapacityReservationUpdate struct { // Properties of the Capacity reservation. - Properties *CapacityReservationProperties `json:"properties,omitempty"` + Properties *CapacityReservationProperties // SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM // Skus with the capability called 'CapacityReservationSupported' set to true are // supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) // for supported values. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // CapacityReservationUtilization - Represents the capacity reservation utilization in terms of resources allocated. type CapacityReservationUtilization struct { - // READ-ONLY; A list of all virtual machines resource ids allocated against the capacity reservation. - VirtualMachinesAllocated []*SubResourceReadOnly `json:"virtualMachinesAllocated,omitempty" azure:"ro"` -} + // READ-ONLY; The value provides the current capacity of the VM size which was reserved successfully and for which the customer + // is getting billed. Minimum api-version: 2022-08-01. + CurrentCapacity *int32 -// CapacityReservationsClientBeginCreateOrUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginCreateOrUpdate -// method. -type CapacityReservationsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CapacityReservationsClientBeginDeleteOptions contains the optional parameters for the CapacityReservationsClient.BeginDelete -// method. -type CapacityReservationsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CapacityReservationsClientBeginUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginUpdate -// method. -type CapacityReservationsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CapacityReservationsClientGetOptions contains the optional parameters for the CapacityReservationsClient.Get method. -type CapacityReservationsClientGetOptions struct { - // The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity - // reservation that is managed by the platform and can change outside of - // control plane operations. - Expand *CapacityReservationInstanceViewTypes -} - -// CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.ListByCapacityReservationGroup -// method. -type CapacityReservationsClientListByCapacityReservationGroupOptions struct { - // placeholder for future optional parameters -} - -// CloudError - An error response from the Compute service. -type CloudError struct { - // Api error. - Error *APIError `json:"error,omitempty"` + // READ-ONLY; A list of all virtual machines resource ids allocated against the capacity reservation. + VirtualMachinesAllocated []*SubResourceReadOnly } // CloudService - Describes the cloud service. type CloudService struct { // REQUIRED; Resource location. - Location *string `json:"location,omitempty"` + Location *string // Cloud service properties - Properties *CloudServiceProperties `json:"properties,omitempty"` + Properties *CloudServiceProperties + + // The system meta data relating to this resource. + SystemData *SystemData // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string + + // List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. + // This field is optional. + Zones []*string // READ-ONLY; Resource Id. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CloudServiceExtensionProfile - Describes a cloud service extension profile. type CloudServiceExtensionProfile struct { // List of extensions for the cloud service. - Extensions []*Extension `json:"extensions,omitempty"` + Extensions []*Extension } // CloudServiceExtensionProperties - Extension Properties. type CloudServiceExtensionProperties struct { // Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become // available. - AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"` + AutoUpgradeMinorVersion *bool // Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension // without changing any of the public or protected settings. If forceUpdateTag is // not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor // any of public or protected settings change, extension would flow to the role // instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not - ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ForceUpdateTag *string // Protected settings for the extension which are encrypted before sent to the role instance. - ProtectedSettings *string `json:"protectedSettings,omitempty"` - ProtectedSettingsFromKeyVault *CloudServiceVaultAndSecretReference `json:"protectedSettingsFromKeyVault,omitempty"` + ProtectedSettings any + + // Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance. + ProtectedSettingsFromKeyVault *CloudServiceVaultAndSecretReference // The name of the extension handler publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied // to all roles in the cloud service. - RolesAppliedTo []*string `json:"rolesAppliedTo,omitempty"` + RolesAppliedTo []*string // Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension // (like RDP), this is the XML setting for the extension. - Settings *string `json:"settings,omitempty"` + Settings any // Specifies the type of the extension. - Type *string `json:"type,omitempty"` + Type *string // Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an // asterisk (*) is used as the value, the latest version of the extension is used. @@ -654,74 +579,60 @@ type CloudServiceExtensionProperties struct { // version of the specified major version is selected. If a major version number // and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, // an auto-upgrade is performed on the role instance. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` + TypeHandlerVersion *string // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // CloudServiceInstanceView - InstanceView of CloudService as a whole type CloudServiceInstanceView struct { // Instance view statuses. - RoleInstance *InstanceViewStatusesSummary `json:"roleInstance,omitempty"` + RoleInstance *InstanceViewStatusesSummary // READ-ONLY; Specifies a list of unique identifiers generated internally for the cloud service. // NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. - PrivateIDs []*string `json:"privateIds,omitempty" azure:"ro"` + PrivateIDs []*string // READ-ONLY; The version of the SDK that was used to generate the package for the cloud service. - SdkVersion *string `json:"sdkVersion,omitempty" azure:"ro"` + SdkVersion *string // READ-ONLY - Statuses []*ResourceInstanceViewStatus `json:"statuses,omitempty" azure:"ro"` + Statuses []*ResourceInstanceViewStatus } +// CloudServiceListResult - The list operation result. type CloudServiceListResult struct { - // REQUIRED - Value []*CloudService `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // REQUIRED; The list of resources. + Value []*CloudService + + // The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null + // to fetch all the resources. + NextLink *string } // CloudServiceNetworkProfile - Network Profile for the cloud service. type CloudServiceNetworkProfile struct { // List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a // Public Load Balancer and an Internal Load Balancer. - LoadBalancerConfigurations []*LoadBalancerConfiguration `json:"loadBalancerConfigurations,omitempty"` + LoadBalancerConfigurations []*LoadBalancerConfiguration + + // Slot type for the cloud service. Possible values are + // Production + // Staging + // If not specified, the default value is Production. + SlotType *CloudServiceSlotType // The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. // This property cannot be updated once it is set. The swappable cloud service // referred by this id must be present otherwise an error will be thrown. - SwappableCloudService *SubResource `json:"swappableCloudService,omitempty"` -} - -// CloudServiceOperatingSystemsClientGetOSFamilyOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSFamily -// method. -type CloudServiceOperatingSystemsClientGetOSFamilyOptions struct { - // placeholder for future optional parameters -} - -// CloudServiceOperatingSystemsClientGetOSVersionOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSVersion -// method. -type CloudServiceOperatingSystemsClientGetOSVersionOptions struct { - // placeholder for future optional parameters -} - -// CloudServiceOperatingSystemsClientListOSFamiliesOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSFamilies -// method. -type CloudServiceOperatingSystemsClientListOSFamiliesOptions struct { - // placeholder for future optional parameters -} - -// CloudServiceOperatingSystemsClientListOSVersionsOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSVersions -// method. -type CloudServiceOperatingSystemsClientListOSVersionsOptions struct { - // placeholder for future optional parameters + SwappableCloudService *SubResource } // CloudServiceOsProfile - Describes the OS profile for the cloud service. type CloudServiceOsProfile struct { // Specifies set of certificates that should be installed onto the role instances. - Secrets []*CloudServiceVaultSecretGroup `json:"secrets,omitempty"` + Secrets []*CloudServiceVaultSecretGroup } // CloudServiceProperties - Cloud service properties @@ -729,38 +640,38 @@ type CloudServiceProperties struct { // (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override // the role instance count and vm size specified in the .cscfg and .csdef // respectively. The default value is false. - AllowModelOverride *bool `json:"allowModelOverride,omitempty"` + AllowModelOverride *bool // Specifies the XML service configuration (.cscfg) for the cloud service. - Configuration *string `json:"configuration,omitempty"` + Configuration *string // Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can // be Shared Access Signature (SAS) URI from any storage account. This is a // write-only property and is not returned in GET calls. - ConfigurationURL *string `json:"configurationUrl,omitempty"` + ConfigurationURL *string // Describes a cloud service extension profile. - ExtensionProfile *CloudServiceExtensionProfile `json:"extensionProfile,omitempty"` + ExtensionProfile *CloudServiceExtensionProfile // Network Profile for the cloud service. - NetworkProfile *CloudServiceNetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *CloudServiceNetworkProfile // Describes the OS profile for the cloud service. - OSProfile *CloudServiceOsProfile `json:"osProfile,omitempty"` + OSProfile *CloudServiceOsProfile // Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be // Shared Access Signature (SAS) URI from any storage account. This is a write-only // property and is not returned in GET calls. - PackageURL *string `json:"packageUrl,omitempty"` + PackageURL *string // Describes the role profile for the cloud service. - RoleProfile *CloudServiceRoleProfile `json:"roleProfile,omitempty"` + RoleProfile *CloudServiceRoleProfile // (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is true. If // false, the service model is still deployed, but the code is not run immediately. // Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service // still incurs charges, even if it is poweredoff. - StartCloudService *bool `json:"startCloudService,omitempty"` + StartCloudService *bool // Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates // can be initiated manually in each update domain or initiated automatically in @@ -771,534 +682,464 @@ type CloudServiceProperties struct { // If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If // set to Auto, the update is automatically applied to each update domain in // sequence. - UpgradeMode *CloudServiceUpgradeMode `json:"upgradeMode,omitempty"` + UpgradeMode *CloudServiceUpgradeMode // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; The unique identifier for the cloud service. - UniqueID *string `json:"uniqueId,omitempty" azure:"ro"` + UniqueID *string } // CloudServiceRole - Describes a role of the cloud service. type CloudServiceRole struct { - Properties *CloudServiceRoleProperties `json:"properties,omitempty"` + // The cloud service role properties. + Properties *CloudServiceRoleProperties // Describes the cloud service role sku. - SKU *CloudServiceRoleSKU `json:"sku,omitempty"` + SKU *CloudServiceRoleSKU // READ-ONLY; Resource id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` -} - -// CloudServiceRoleInstancesClientBeginDeleteOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginDelete -// method. -type CloudServiceRoleInstancesClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServiceRoleInstancesClientBeginRebuildOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRebuild -// method. -type CloudServiceRoleInstancesClientBeginRebuildOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServiceRoleInstancesClientBeginReimageOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginReimage -// method. -type CloudServiceRoleInstancesClientBeginReimageOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServiceRoleInstancesClientBeginRestartOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRestart -// method. -type CloudServiceRoleInstancesClientBeginRestartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServiceRoleInstancesClientGetInstanceViewOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetInstanceView -// method. -type CloudServiceRoleInstancesClientGetInstanceViewOptions struct { - // placeholder for future optional parameters -} - -// CloudServiceRoleInstancesClientGetOptions contains the optional parameters for the CloudServiceRoleInstancesClient.Get -// method. -type CloudServiceRoleInstancesClientGetOptions struct { - // The expand expression to apply to the operation. 'UserData' is not supported for cloud services. - Expand *InstanceViewTypes -} - -// CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetRemoteDesktopFile -// method. -type CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions struct { - // placeholder for future optional parameters -} - -// CloudServiceRoleInstancesClientListOptions contains the optional parameters for the CloudServiceRoleInstancesClient.List -// method. -type CloudServiceRoleInstancesClientListOptions struct { - // The expand expression to apply to the operation. 'UserData' is not supported for cloud services. - Expand *InstanceViewTypes + Type *string } +// CloudServiceRoleListResult - The list operation result. type CloudServiceRoleListResult struct { - // REQUIRED - Value []*CloudServiceRole `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // REQUIRED; The list of resources. + Value []*CloudServiceRole + + // The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null + // to fetch all the resources. + NextLink *string } // CloudServiceRoleProfile - Describes the role profile for the cloud service. type CloudServiceRoleProfile struct { // List of roles for the cloud service. - Roles []*CloudServiceRoleProfileProperties `json:"roles,omitempty"` + Roles []*CloudServiceRoleProfileProperties } // CloudServiceRoleProfileProperties - Describes the role properties. type CloudServiceRoleProfileProperties struct { // Resource name. - Name *string `json:"name,omitempty"` + Name *string // Describes the cloud service role sku. - SKU *CloudServiceRoleSKU `json:"sku,omitempty"` + SKU *CloudServiceRoleSKU } +// CloudServiceRoleProperties - The cloud service role properties. type CloudServiceRoleProperties struct { // READ-ONLY; Specifies the ID which uniquely identifies a cloud service role. - UniqueID *string `json:"uniqueId,omitempty" azure:"ro"` + UniqueID *string } // CloudServiceRoleSKU - Describes the cloud service role sku. type CloudServiceRoleSKU struct { // Specifies the number of role instances in the cloud service. - Capacity *int64 `json:"capacity,omitempty"` + Capacity *int64 // The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete // and recreate the cloud service or move back to the old sku. - Name *string `json:"name,omitempty"` + Name *string // Specifies the tier of the cloud service. Possible Values are // Standard // Basic - Tier *string `json:"tier,omitempty"` -} - -// CloudServiceRolesClientGetOptions contains the optional parameters for the CloudServiceRolesClient.Get method. -type CloudServiceRolesClientGetOptions struct { - // placeholder for future optional parameters -} - -// CloudServiceRolesClientListOptions contains the optional parameters for the CloudServiceRolesClient.List method. -type CloudServiceRolesClientListOptions struct { - // placeholder for future optional parameters + Tier *string } type CloudServiceUpdate struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } +// CloudServiceVaultAndSecretReference - Protected settings for the extension, referenced using KeyVault which are encrypted +// before sent to the role instance. type CloudServiceVaultAndSecretReference struct { - SecretURL *string `json:"secretUrl,omitempty"` - SourceVault *SubResource `json:"sourceVault,omitempty"` + // Secret URL which contains the protected settings of the extension + SecretURL *string + + // The ARM Resource ID of the Key Vault + SourceVault *SubResource } // CloudServiceVaultCertificate - Describes a single certificate reference in a Key Vault, and where the certificate should // reside on the role instance. type CloudServiceVaultCertificate struct { // This is the URL of a certificate that has been uploaded to Key Vault as a secret. - CertificateURL *string `json:"certificateUrl,omitempty"` + CertificateURL *string } // CloudServiceVaultSecretGroup - Describes a set of certificates which are all in the same Key Vault. type CloudServiceVaultSecretGroup struct { // The relative URL of the Key Vault containing all of the certificates in VaultCertificates. - SourceVault *SubResource `json:"sourceVault,omitempty"` + SourceVault *SubResource // The list of key vault references in SourceVault which contain certificates. - VaultCertificates []*CloudServiceVaultCertificate `json:"vaultCertificates,omitempty"` -} - -// CloudServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudServicesClient.BeginCreateOrUpdate -// method. -type CloudServicesClientBeginCreateOrUpdateOptions struct { - // The cloud service object. - Parameters *CloudService - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginDeleteInstancesOptions contains the optional parameters for the CloudServicesClient.BeginDeleteInstances -// method. -type CloudServicesClientBeginDeleteInstancesOptions struct { - // List of cloud service role instance names. - Parameters *RoleInstances - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginDeleteOptions contains the optional parameters for the CloudServicesClient.BeginDelete method. -type CloudServicesClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginPowerOffOptions contains the optional parameters for the CloudServicesClient.BeginPowerOff method. -type CloudServicesClientBeginPowerOffOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginRebuildOptions contains the optional parameters for the CloudServicesClient.BeginRebuild method. -type CloudServicesClientBeginRebuildOptions struct { - // List of cloud service role instance names. - Parameters *RoleInstances - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginReimageOptions contains the optional parameters for the CloudServicesClient.BeginReimage method. -type CloudServicesClientBeginReimageOptions struct { - // List of cloud service role instance names. - Parameters *RoleInstances - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginRestartOptions contains the optional parameters for the CloudServicesClient.BeginRestart method. -type CloudServicesClientBeginRestartOptions struct { - // List of cloud service role instance names. - Parameters *RoleInstances - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginStartOptions contains the optional parameters for the CloudServicesClient.BeginStart method. -type CloudServicesClientBeginStartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientBeginUpdateOptions contains the optional parameters for the CloudServicesClient.BeginUpdate method. -type CloudServicesClientBeginUpdateOptions struct { - // The cloud service object. - Parameters *CloudServiceUpdate - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesClientGetInstanceViewOptions contains the optional parameters for the CloudServicesClient.GetInstanceView -// method. -type CloudServicesClientGetInstanceViewOptions struct { - // placeholder for future optional parameters -} - -// CloudServicesClientGetOptions contains the optional parameters for the CloudServicesClient.Get method. -type CloudServicesClientGetOptions struct { - // placeholder for future optional parameters -} - -// CloudServicesClientListAllOptions contains the optional parameters for the CloudServicesClient.ListAll method. -type CloudServicesClientListAllOptions struct { - // placeholder for future optional parameters -} - -// CloudServicesClientListOptions contains the optional parameters for the CloudServicesClient.List method. -type CloudServicesClientListOptions struct { - // placeholder for future optional parameters -} - -// CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.BeginWalkUpdateDomain -// method. -type CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions struct { - // The update domain object. - Parameters *UpdateDomain - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CloudServicesUpdateDomainClientGetUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.GetUpdateDomain -// method. -type CloudServicesUpdateDomainClientGetUpdateDomainOptions struct { - // placeholder for future optional parameters -} - -// CloudServicesUpdateDomainClientListUpdateDomainsOptions contains the optional parameters for the CloudServicesUpdateDomainClient.ListUpdateDomains -// method. -type CloudServicesUpdateDomainClientListUpdateDomainsOptions struct { - // placeholder for future optional parameters -} - -// CommunityGalleriesClientGetOptions contains the optional parameters for the CommunityGalleriesClient.Get method. -type CommunityGalleriesClientGetOptions struct { - // placeholder for future optional parameters + VaultCertificates []*CloudServiceVaultCertificate } // CommunityGallery - Specifies information about the Community Gallery that you want to create or update. type CommunityGallery struct { // The identifier information of community gallery. - Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"` + Identifier *CommunityGalleryIdentifier + + // Describes the properties of a community gallery. + Properties *CommunityGalleryProperties // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CommunityGalleryIdentifier - The identifier information of community gallery. type CommunityGalleryIdentifier struct { // The unique id of this community gallery. - UniqueID *string `json:"uniqueId,omitempty"` + UniqueID *string } // CommunityGalleryImage - Specifies information about the gallery image definition that you want to create or update. type CommunityGalleryImage struct { // The identifier information of community gallery. - Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"` + Identifier *CommunityGalleryIdentifier // Describes the properties of a gallery image definition. - Properties *CommunityGalleryImageProperties `json:"properties,omitempty"` + Properties *CommunityGalleryImageProperties // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string +} + +// CommunityGalleryImageIdentifier - This is the community gallery image definition identifier. +type CommunityGalleryImageIdentifier struct { + // The name of the gallery image definition offer. + Offer *string + + // The name of the gallery image definition publisher. + Publisher *string + + // The name of the gallery image definition SKU. + SKU *string +} + +// CommunityGalleryImageList - The List Community Gallery Images operation response. +type CommunityGalleryImageList struct { + // REQUIRED; A list of community gallery images. + Value []*CommunityGalleryImage + + // The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community + // gallery images. + NextLink *string } // CommunityGalleryImageProperties - Describes the properties of a gallery image definition. type CommunityGalleryImageProperties struct { - // REQUIRED; This is the gallery image definition identifier. - Identifier *GalleryImageIdentifier `json:"identifier,omitempty"` + // REQUIRED; This is the community gallery image definition identifier. + Identifier *CommunityGalleryImageIdentifier // REQUIRED; This property allows the user to specify whether the virtual machines created under this image are 'Generalized' // or 'Specialized'. - OSState *OperatingSystemStateTypes `json:"osState,omitempty"` + OSState *OperatingSystemStateTypes // REQUIRED; This property allows you to specify the type of the OS that is included in the disk when creating a VM from a - // managed image. - // Possible values are: - // Windows - // Linux - OSType *OperatingSystemTypes `json:"osType,omitempty"` + // managed image. Possible values are: Windows, Linux. + OSType *OperatingSystemTypes + + // The architecture of the image. Applicable to OS disks only. + Architecture *Architecture + + // The artifact tags of a community gallery resource. + ArtifactTags map[string]*string // Describes the disallowed disk types. - Disallowed *Disallowed `json:"disallowed,omitempty"` + Disallowed *Disallowed + + // The disclaimer for a community gallery resource. + Disclaimer *string // The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property // is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time + + // The end-user license agreement for the current community gallery image. + Eula *string // A list of gallery image features. - Features []*GalleryImageFeature `json:"features,omitempty"` + Features []*GalleryImageFeature // The hypervisor generation of the Virtual Machine. Applicable to OS disks only. - HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGeneration + + // Privacy statement URI for the current community gallery image. + PrivacyStatementURI *string // Describes the gallery image definition purchase plan. This is used by marketplace images. - PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"` + PurchasePlan *ImagePurchasePlan // The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. - Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"` + Recommended *RecommendedMachineConfiguration } // CommunityGalleryImageVersion - Specifies information about the gallery image version that you want to create or update. type CommunityGalleryImageVersion struct { // The identifier information of community gallery. - Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"` + Identifier *CommunityGalleryIdentifier // Describes the properties of a gallery image version. - Properties *CommunityGalleryImageVersionProperties `json:"properties,omitempty"` + Properties *CommunityGalleryImageVersionProperties // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string +} + +// CommunityGalleryImageVersionList - The List Community Gallery Image versions operation response. +type CommunityGalleryImageVersionList struct { + // REQUIRED; A list of community gallery image versions. + Value []*CommunityGalleryImageVersion + + // The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of + // community gallery image versions. + NextLink *string } // CommunityGalleryImageVersionProperties - Describes the properties of a gallery image version. type CommunityGalleryImageVersionProperties struct { + // The artifact tags of a community gallery resource. + ArtifactTags map[string]*string + + // The disclaimer for a community gallery resource. + Disclaimer *string + // The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This // property is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time + + // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. + ExcludeFromLatest *bool // The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This // property is updatable. - PublishedDate *time.Time `json:"publishedDate,omitempty"` -} + PublishedDate *time.Time -// CommunityGalleryImageVersionsClientGetOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.Get -// method. -type CommunityGalleryImageVersionsClientGetOptions struct { - // placeholder for future optional parameters -} - -// CommunityGalleryImagesClientGetOptions contains the optional parameters for the CommunityGalleryImagesClient.Get method. -type CommunityGalleryImagesClientGetOptions struct { - // placeholder for future optional parameters + // Describes the storage profile of the image version. + StorageProfile *SharedGalleryImageVersionStorageProfile } // CommunityGalleryInfo - Information of community gallery if current gallery is shared to community type CommunityGalleryInfo struct { - // Community gallery publisher eula - Eula *string `json:"eula,omitempty"` + // End-user license agreement for community gallery image. + Eula *string - // Community gallery public name prefix - PublicNamePrefix *string `json:"publicNamePrefix,omitempty"` + // The prefix of the gallery name that will be displayed publicly. Visible to all users. + PublicNamePrefix *string - // Community gallery publisher contact email - PublisherContact *string `json:"publisherContact,omitempty"` + // Community gallery publisher support email. The email address of the publisher. Visible to all users. + PublisherContact *string - // Community gallery publisher uri - PublisherURI *string `json:"publisherUri,omitempty"` + // The link to the publisher website. Visible to all users. + PublisherURI *string // READ-ONLY; Contains info about whether community gallery sharing is enabled. - CommunityGalleryEnabled *bool `json:"communityGalleryEnabled,omitempty" azure:"ro"` + CommunityGalleryEnabled *bool // READ-ONLY; Community gallery public name list. - PublicNames []*string `json:"publicNames,omitempty" azure:"ro"` + PublicNames []*string +} + +// CommunityGalleryMetadata - The metadata of community gallery. +type CommunityGalleryMetadata struct { + // REQUIRED; A list of public names the gallery has. + PublicNames []*string + + // REQUIRED; The publisher email id of this community gallery. + PublisherContact *string + + // The end-user license agreement for this community gallery. + Eula *string + + // The link for the privacy statement of this community gallery from the gallery publisher. + PrivacyStatementURI *string + + // The publisher URI of this community gallery. + PublisherURI *string +} + +// CommunityGalleryProperties - Describes the properties of a community gallery. +type CommunityGalleryProperties struct { + // The artifact tags of a community gallery resource. + ArtifactTags map[string]*string + + // The metadata of community gallery. + CommunityMetadata *CommunityGalleryMetadata + + // The disclaimer for a community gallery resource. + Disclaimer *string +} + +// CopyCompletionError - Indicates the error details if the background copy of a resource created via the CopyStart operation +// fails. +type CopyCompletionError struct { + // REQUIRED; Indicates the error code if the background copy of a resource created via the CopyStart operation fails. + ErrorCode *CopyCompletionErrorReason + + // REQUIRED; Indicates the error message if the background copy of a resource created via the CopyStart operation fails. + ErrorMessage *string } // CreationData - Data used when creating a disk. type CreationData struct { // REQUIRED; This enumerates the possible sources of a disk's creation. - CreateOption *DiskCreateOption `json:"createOption,omitempty"` + CreateOption *DiskCreateOption + + // Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. + ElasticSanResourceID *string - // Required if creating from a Gallery Image. The id of the ImageDiskReference will be the ARM id of the shared galley image - // version from which to create a disk. - GalleryImageReference *ImageDiskReference `json:"galleryImageReference,omitempty"` + // Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference + // will be the ARM id of the shared galley image version from which to create a + // disk. + GalleryImageReference *ImageDiskReference - // Disk source information. - ImageReference *ImageDiskReference `json:"imageReference,omitempty"` + // Disk source information for PIR or user images. + ImageReference *ImageDiskReference // Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default. - LogicalSectorSize *int32 `json:"logicalSectorSize,omitempty"` + LogicalSectorSize *int32 + + // Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance + // target. This flag can only be set on disk creation time and cannot be + // disabled after enabled. + PerformancePlus *bool + + // If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed. + ProvisionedBandwidthCopySpeed *ProvisionedBandwidthCopyOption // If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. - SecurityDataURI *string `json:"securityDataUri,omitempty"` + SecurityDataURI *string // If createOption is Copy, this is the ARM id of the source snapshot or disk. - SourceResourceID *string `json:"sourceResourceId,omitempty"` + SourceResourceID *string // If createOption is Import, this is the URI of a blob to be imported into a managed disk. - SourceURI *string `json:"sourceUri,omitempty"` + SourceURI *string // Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to // import as a disk. - StorageAccountID *string `json:"storageAccountId,omitempty"` + StorageAccountID *string // If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be // between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 // bytes (32 TiB + 512 bytes for the VHD footer). - UploadSizeBytes *int64 `json:"uploadSizeBytes,omitempty"` + UploadSizeBytes *int64 // READ-ONLY; If this field is set, this is the unique id identifying the source of this resource. - SourceUniqueID *string `json:"sourceUniqueId,omitempty" azure:"ro"` + SourceUniqueID *string } // DataDisk - Describes a data disk. type DataDisk struct { - // REQUIRED; Specifies how the virtual machine should be created. - // Possible values are: - // Attach \u2013 This value is used when you are using a specialized disk to create the virtual machine. - // FromImage \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform - // image, you also use the imageReference element described above. If you are - // using a marketplace image, you also use the plan element previously described. - CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"` + // REQUIRED; Specifies how the virtual machine disk should be created. Possible values are Attach: This value is used when + // you are using a specialized disk to create the virtual machine. FromImage: This value is + // used when you are using an image to create the virtual machine data disk. If you are using a platform image, you should + // also use the imageReference element described above. If you are using a + // marketplace image, you should also use the plan element previously described. Empty: This value is used when creating an + // empty data disk. Copy: This value is used to create a data disk from a snapshot + // or another disk. Restore: This value is used to create a data disk from a disk restore point. + CreateOption *DiskCreateOptionTypes // REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and // therefore must be unique for each data disk attached to a VM. - Lun *int32 `json:"lun,omitempty"` + Lun *int32 - // Specifies the caching requirements. - // Possible values are: - // None - // ReadOnly - // ReadWrite - // Default: None for Standard storage. ReadOnly for Premium storage - Caching *CachingTypes `json:"caching,omitempty"` + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for + // Standard storage. ReadOnly for Premium storage. + Caching *CachingTypes - // Specifies whether data disk should be deleted or detached upon VM deletion. - // Possible values: - // Delete If this value is used, the data disk is deleted when VM is deleted. - // Detach If this value is used, the data disk is retained after VM is deleted. - // The default value is set to detach - DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"` + // Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value + // is used, the data disk is deleted when VM is deleted. Detach. If this value is + // used, the data disk is retained after VM is deleted. The default value is set to Detach. + DeleteOption *DiskDeleteOptionTypes // Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the - // virtual machine. Supported values: ForceDetach. - // detachOption: ForceDetach is applicable only for managed data disks. If a previous detachment attempt of the data disk - // did not complete due to an unexpected failure from the virtual machine and the - // disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes - // might not have been flushed when using this detach behavior. - // This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update - // toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. - DetachOption *DiskDetachOptionTypes `json:"detachOption,omitempty"` + // virtual machine. Supported values: ForceDetach. detachOption: ForceDetach is + // applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected + // failure from the virtual machine and the disk is still not released then + // use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed + // when using this detach behavior. This feature is still in preview mode and is + // not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting + // detachOption: 'ForceDetach'. + DetachOption *DiskDetachOptionTypes // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a - // virtual machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 + // for the disk and the value cannot be larger than 1023. + DiskSizeGB *int32 // The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. // If SourceImage is provided, the destination virtual hard drive must not // exist. - Image *VirtualHardDisk `json:"image,omitempty"` + Image *VirtualHardDisk // The managed disk parameters. - ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` + ManagedDisk *ManagedDiskParameters // The disk name. - Name *string `json:"name,omitempty"` + Name *string + + // The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk. + SourceResource *APIEntityReference // Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset - ToBeDetached *bool `json:"toBeDetached,omitempty"` + ToBeDetached *bool // The virtual hard disk. - Vhd *VirtualHardDisk `json:"vhd,omitempty"` + Vhd *VirtualHardDisk // Specifies whether writeAccelerator should be enabled or disabled on the disk. - WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` + WriteAcceleratorEnabled *bool // READ-ONLY; Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for // VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine // Scale Set. - DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty" azure:"ro"` + DiskIOPSReadWrite *int64 // READ-ONLY; Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned // only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the // VirtualMachine Scale Set. - DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty" azure:"ro"` + DiskMBpsReadWrite *int64 } // DataDiskImage - Contains the data disk images information. type DataDiskImage struct { // READ-ONLY; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM // and therefore must be unique for each data disk attached to a VM. - Lun *int32 `json:"lun,omitempty" azure:"ro"` + Lun *int32 } // DataDiskImageEncryption - Contains encryption settings for a data disk image. @@ -1306,1047 +1147,875 @@ type DataDiskImageEncryption struct { // REQUIRED; This property specifies the logical unit number of the data disk. This value is used to identify data disks within // the Virtual Machine and therefore must be unique for each data disk attached to the // Virtual Machine. - Lun *int32 `json:"lun,omitempty"` + Lun *int32 // A relative URI containing the resource ID of the disk encryption set. - DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"` + DiskEncryptionSetID *string +} + +// DataDisksToAttach - Describes the data disk to be attached. +type DataDisksToAttach struct { + // REQUIRED; ID of the managed data disk. + DiskID *string + + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for + // Standard storage. ReadOnly for Premium storage. + Caching *CachingTypes + + // Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value + // is used, the data disk is deleted when VM is deleted. Detach. If this value is + // used, the data disk is retained after VM is deleted. The default value is set to Detach. + DeleteOption *DiskDeleteOptionTypes + + // Specifies the customer managed disk encryption set resource id for the managed disk. + DiskEncryptionSet *DiskEncryptionSetParameters + + // The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be + // unique for each data disk attached to a VM. If not specified, lun would be auto + // assigned. + Lun *int32 + + // Specifies whether writeAccelerator should be enabled or disabled on the disk. + WriteAcceleratorEnabled *bool +} + +// DataDisksToDetach - Describes the data disk to be detached. +type DataDisksToDetach struct { + // REQUIRED; ID of the managed data disk. + DiskID *string + + // Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details. + DetachOption *DiskDetachOptionTypes } // DedicatedHost - Specifies information about the Dedicated host. type DedicatedHost struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute // SKUs for a list of possible values. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Properties of the dedicated host. - Properties *DedicatedHostProperties `json:"properties,omitempty"` + Properties *DedicatedHostProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DedicatedHostAllocatableVM - Represents the dedicated host unutilized capacity in terms of a specific VM size. type DedicatedHostAllocatableVM struct { // Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity. - Count *float64 `json:"count,omitempty"` + Count *float64 // VM size in terms of which the unutilized capacity is represented. - VMSize *string `json:"vmSize,omitempty"` + VMSize *string } // DedicatedHostAvailableCapacity - Dedicated host unutilized capacity. type DedicatedHostAvailableCapacity struct { // The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the // dedicated host. - AllocatableVMs []*DedicatedHostAllocatableVM `json:"allocatableVMs,omitempty"` + AllocatableVMs []*DedicatedHostAllocatableVM } // DedicatedHostGroup - Specifies information about the dedicated host group that the dedicated hosts should be assigned to. -// Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot -// be added to another dedicated host group. +// Currently, a dedicated host can only be added to a dedicated host group at creation time. An +// existing dedicated host cannot be added to another dedicated host group. type DedicatedHostGroup struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Dedicated Host Group Properties. - Properties *DedicatedHostGroupProperties `json:"properties,omitempty"` + Properties *DedicatedHostGroupProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. // If not provided, the group supports all zones in the region. If provided, // enforces each host in the group to be in the same zone. - Zones []*string `json:"zones,omitempty"` + Zones []*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type DedicatedHostGroupInstanceView struct { // List of instance view of the dedicated hosts under the dedicated host group. - Hosts []*DedicatedHostInstanceViewWithName `json:"hosts,omitempty"` + Hosts []*DedicatedHostInstanceViewWithName } // DedicatedHostGroupListResult - The List Dedicated Host Group with resource group response. type DedicatedHostGroupListResult struct { // REQUIRED; The list of dedicated host groups - Value []*DedicatedHostGroup `json:"value,omitempty"` + Value []*DedicatedHostGroup // The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated // Host Groups. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // DedicatedHostGroupProperties - Dedicated Host Group Properties. type DedicatedHostGroupProperties struct { // REQUIRED; Number of fault domains that the host group can span. - PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"` + PlatformFaultDomainCount *int32 - // Enables or disables a capability on the dedicated host group. - // Minimum api-version: 2022-03-01. - AdditionalCapabilities *DedicatedHostGroupPropertiesAdditionalCapabilities `json:"additionalCapabilities,omitempty"` + // Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. + AdditionalCapabilities *DedicatedHostGroupPropertiesAdditionalCapabilities // Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. // Automatic placement means resources are allocated on dedicated hosts, that are - // chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. - // Minimum api-version: 2020-06-01. - SupportAutomaticPlacement *bool `json:"supportAutomaticPlacement,omitempty"` + // chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: + // 2020-06-01. + SupportAutomaticPlacement *bool // READ-ONLY; A list of references to all dedicated hosts in the dedicated host group. - Hosts []*SubResourceReadOnly `json:"hosts,omitempty" azure:"ro"` + Hosts []*SubResourceReadOnly // READ-ONLY; The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the // dedicated host group. - InstanceView *DedicatedHostGroupInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *DedicatedHostGroupInstanceView } -// DedicatedHostGroupPropertiesAdditionalCapabilities - Enables or disables a capability on the dedicated host group. -// Minimum api-version: 2022-03-01. +// DedicatedHostGroupPropertiesAdditionalCapabilities - Enables or disables a capability on the dedicated host group. Minimum +// api-version: 2022-03-01. type DedicatedHostGroupPropertiesAdditionalCapabilities struct { // The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated // Host Group. For the Virtual Machines to be UltraSSD Enabled, // UltraSSDEnabled flag for the resource needs to be set true as well. The value is defaulted to 'false' when not provided. // Please refer to - // https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd for more details on Ultra SSD feature. - // NOTE: The ultraSSDEnabled setting can only be enabled for Host Groups that are created as zonal. - // Minimum api-version: 2022-03-01. - UltraSSDEnabled *bool `json:"ultraSSDEnabled,omitempty"` + // https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd for more details on Ultra SSD feature. Note: + // The ultraSSDEnabled setting can only be enabled for Host Groups that are + // created as zonal. Minimum api-version: 2022-03-01. + UltraSSDEnabled *bool } // DedicatedHostGroupUpdate - Specifies information about the dedicated host group that the dedicated host should be assigned // to. Only tags may be updated. type DedicatedHostGroupUpdate struct { // Dedicated Host Group Properties. - Properties *DedicatedHostGroupProperties `json:"properties,omitempty"` + Properties *DedicatedHostGroupProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. // If not provided, the group supports all zones in the region. If provided, // enforces each host in the group to be in the same zone. - Zones []*string `json:"zones,omitempty"` -} - -// DedicatedHostGroupsClientCreateOrUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.CreateOrUpdate -// method. -type DedicatedHostGroupsClientCreateOrUpdateOptions struct { - // placeholder for future optional parameters -} - -// DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete method. -type DedicatedHostGroupsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method. -type DedicatedHostGroupsClientGetOptions struct { - // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated - // hosts under the dedicated host group. 'UserData' is not supported for - // dedicated host group. - Expand *InstanceViewTypes -} - -// DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.ListByResourceGroup -// method. -type DedicatedHostGroupsClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.ListBySubscription -// method. -type DedicatedHostGroupsClientListBySubscriptionOptions struct { - // placeholder for future optional parameters -} - -// DedicatedHostGroupsClientUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.Update method. -type DedicatedHostGroupsClientUpdateOptions struct { - // placeholder for future optional parameters + Zones []*string } // DedicatedHostInstanceView - The instance view of a dedicated host. type DedicatedHostInstanceView struct { // Unutilized capacity of the dedicated host. - AvailableCapacity *DedicatedHostAvailableCapacity `json:"availableCapacity,omitempty"` + AvailableCapacity *DedicatedHostAvailableCapacity // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // READ-ONLY; Specifies the unique id of the dedicated physical machine on which the dedicated host resides. - AssetID *string `json:"assetId,omitempty" azure:"ro"` + AssetID *string } // DedicatedHostInstanceViewWithName - The instance view of a dedicated host that includes the name of the dedicated host. // It is used for the response to the instance view of a dedicated host group. type DedicatedHostInstanceViewWithName struct { // Unutilized capacity of the dedicated host. - AvailableCapacity *DedicatedHostAvailableCapacity `json:"availableCapacity,omitempty"` + AvailableCapacity *DedicatedHostAvailableCapacity // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // READ-ONLY; Specifies the unique id of the dedicated physical machine on which the dedicated host resides. - AssetID *string `json:"assetId,omitempty" azure:"ro"` + AssetID *string // READ-ONLY; The name of the dedicated host. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // DedicatedHostListResult - The list dedicated host operation response. type DedicatedHostListResult struct { // REQUIRED; The list of dedicated hosts - Value []*DedicatedHost `json:"value,omitempty"` + Value []*DedicatedHost // The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // DedicatedHostProperties - Properties of the dedicated host. type DedicatedHostProperties struct { // Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' // when not provided. - AutoReplaceOnFailure *bool `json:"autoReplaceOnFailure,omitempty"` + AutoReplaceOnFailure *bool - // Specifies the software license type that will be applied to the VMs deployed on the dedicated host. - // Possible values are: - // None - // WindowsServerHybrid - // WindowsServerPerpetual - // Default: None - LicenseType *DedicatedHostLicenseTypes `json:"licenseType,omitempty"` + // Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: + // None, WindowsServerHybrid, WindowsServerPerpetual. The default value is: None. + LicenseType *DedicatedHostLicenseTypes // Fault domain of the dedicated host within a dedicated host group. - PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"` + PlatformFaultDomain *int32 - // READ-ONLY; A unique id generated and assigned to the dedicated host by the platform. - // Does not change throughout the lifetime of the host. - HostID *string `json:"hostId,omitempty" azure:"ro"` + // READ-ONLY; A unique id generated and assigned to the dedicated host by the platform. Does not change throughout the lifetime + // of the host. + HostID *string // READ-ONLY; The dedicated host instance view. - InstanceView *DedicatedHostInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *DedicatedHostInstanceView // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; The date when the host was first provisioned. - ProvisioningTime *time.Time `json:"provisioningTime,omitempty" azure:"ro"` + ProvisioningTime *time.Time - // READ-ONLY; Specifies the time at which the Dedicated Host resource was created. - // Minimum api-version: 2022-03-01. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + // READ-ONLY; Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01. + TimeCreated *time.Time // READ-ONLY; A list of references to all virtual machines in the Dedicated Host. - VirtualMachines []*SubResourceReadOnly `json:"virtualMachines,omitempty" azure:"ro"` + VirtualMachines []*SubResourceReadOnly +} + +// DedicatedHostSizeListResult - The List Dedicated Host sizes operation response. +type DedicatedHostSizeListResult struct { + // The list of dedicated host sizes. + Value []*string } // DedicatedHostUpdate - Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may // be updated. type DedicatedHostUpdate struct { // Properties of the dedicated host. - Properties *DedicatedHostProperties `json:"properties,omitempty"` + Properties *DedicatedHostProperties - // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// DedicatedHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginCreateOrUpdate -// method. -type DedicatedHostsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} + // List all available dedicated host sizes for resizing [https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes]. + // Resizing can be only used to scale up DedicatedHost. Only name is + // required to be set. + SKU *SKU -// DedicatedHostsClientBeginDeleteOptions contains the optional parameters for the DedicatedHostsClient.BeginDelete method. -type DedicatedHostsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DedicatedHostsClientBeginRestartOptions contains the optional parameters for the DedicatedHostsClient.BeginRestart method. -type DedicatedHostsClientBeginRestartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DedicatedHostsClientBeginUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginUpdate method. -type DedicatedHostsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DedicatedHostsClientGetOptions contains the optional parameters for the DedicatedHostsClient.Get method. -type DedicatedHostsClientGetOptions struct { - // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated - // host. 'UserData' is not supported for dedicated host. - Expand *InstanceViewTypes -} - -// DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.ListByHostGroup -// method. -type DedicatedHostsClientListByHostGroupOptions struct { - // placeholder for future optional parameters + // Resource tags + Tags map[string]*string } -// DiagnosticsProfile - Specifies the boot diagnostic settings state. -// Minimum api-version: 2015-06-15. +// DiagnosticsProfile - Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. type DiagnosticsProfile struct { - // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. - // NOTE: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the - // VM. - // You can easily view the output of your console log. - // Azure also enables you to see a screenshot of the VM from the hypervisor. - BootDiagnostics *BootDiagnostics `json:"bootDiagnostics,omitempty"` + // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. NOTE: + // If storageUri is being specified then ensure that the storage account is in + // the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you + // to see a screenshot of the VM from the hypervisor. + BootDiagnostics *BootDiagnostics } // DiffDiskSettings - Describes the parameters of ephemeral disk settings that can be specified for operating system disk. -// NOTE: The ephemeral disk settings can only be specified for managed disk. +// Note: The ephemeral disk settings can only be specified for managed disk. type DiffDiskSettings struct { // Specifies the ephemeral disk settings for operating system disk. - Option *DiffDiskOptions `json:"option,omitempty"` + Option *DiffDiskOptions - // Specifies the ephemeral disk placement for operating system disk. - // Possible values are: - // CacheDisk - // ResourceDisk - // Default: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used. - // Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux - // VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check - // which VM sizes exposes a cache disk. - Placement *DiffDiskPlacement `json:"placement,omitempty"` + // Specifies the ephemeral disk placement for operating system disk. Possible values are: CacheDisk, ResourceDisk, NvmeDisk. + // The defaulting behavior is: CacheDisk if one is configured for the VM size + // otherwise ResourceDisk or NvmeDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes + // and Linux VM at + // https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version + // for NvmeDisk: 2024-03-01. + Placement *DiffDiskPlacement } // Disallowed - Describes the disallowed disk types. type Disallowed struct { // A list of disk types. - DiskTypes []*string `json:"diskTypes,omitempty"` + DiskTypes []*string } // DisallowedConfiguration - Specifies the disallowed configuration for a virtual machine image. type DisallowedConfiguration struct { // VM disk types which are disallowed. - VMDiskType *VMDiskTypes `json:"vmDiskType,omitempty"` + VMDiskType *VMDiskTypes } // Disk resource. type Disk struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The extended location where the disk will be created. Extended location cannot be changed. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Disk resource properties. - Properties *DiskProperties `json:"properties,omitempty"` + Properties *DiskProperties - // The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, or StandardSSDZRS. - SKU *DiskSKU `json:"sku,omitempty"` + // The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, StandardSSDZRS, or PremiumV2_LRS. + SKU *DiskSKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // The Logical zone list for Disk. - Zones []*string `json:"zones,omitempty"` + Zones []*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; A relative URI containing the ID of the VM that has the disk attached. - ManagedBy *string `json:"managedBy,omitempty" azure:"ro"` + ManagedBy *string // READ-ONLY; List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to // a value greater than one for disks to allow attaching them to multiple VMs. - ManagedByExtended []*string `json:"managedByExtended,omitempty" azure:"ro"` + ManagedByExtended []*string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DiskAccess - disk access resource. type DiskAccess struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The extended location where the disk access will be created. Extended location cannot be changed. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` - Properties *DiskAccessProperties `json:"properties,omitempty"` + ExtendedLocation *ExtendedLocation + Properties *DiskAccessProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DiskAccessList - The List disk access operation response. type DiskAccessList struct { // REQUIRED; A list of disk access resources. - Value []*DiskAccess `json:"value,omitempty"` + Value []*DiskAccess // The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch the next page of disk access // resources. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } type DiskAccessProperties struct { // READ-ONLY; A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection // is supported. - PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` + PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; The disk access resource provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; The time when the disk access was created. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time } // DiskAccessUpdate - Used for updating a disk access resource. type DiskAccessUpdate struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// DiskAccessesClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginCreateOrUpdate -// method. -type DiskAccessesClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginDeleteAPrivateEndpointConnection -// method. -type DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskAccessesClientBeginDeleteOptions contains the optional parameters for the DiskAccessesClient.BeginDelete method. -type DiskAccessesClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginUpdateAPrivateEndpointConnection -// method. -type DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskAccessesClientBeginUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginUpdate method. -type DiskAccessesClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskAccessesClientGetAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.GetAPrivateEndpointConnection -// method. -type DiskAccessesClientGetAPrivateEndpointConnectionOptions struct { - // placeholder for future optional parameters -} - -// DiskAccessesClientGetOptions contains the optional parameters for the DiskAccessesClient.Get method. -type DiskAccessesClientGetOptions struct { - // placeholder for future optional parameters -} - -// DiskAccessesClientGetPrivateLinkResourcesOptions contains the optional parameters for the DiskAccessesClient.GetPrivateLinkResources -// method. -type DiskAccessesClientGetPrivateLinkResourcesOptions struct { - // placeholder for future optional parameters -} - -// DiskAccessesClientListByResourceGroupOptions contains the optional parameters for the DiskAccessesClient.ListByResourceGroup -// method. -type DiskAccessesClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// DiskAccessesClientListOptions contains the optional parameters for the DiskAccessesClient.List method. -type DiskAccessesClientListOptions struct { - // placeholder for future optional parameters -} - -// DiskAccessesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the DiskAccessesClient.ListPrivateEndpointConnections -// method. -type DiskAccessesClientListPrivateEndpointConnectionsOptions struct { - // placeholder for future optional parameters + Tags map[string]*string } // DiskEncryptionSet - disk encryption set resource. type DiskEncryptionSet struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used // to encrypt disks. - Identity *EncryptionSetIdentity `json:"identity,omitempty"` - Properties *EncryptionSetProperties `json:"properties,omitempty"` + Identity *EncryptionSetIdentity + Properties *EncryptionSetProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DiskEncryptionSetList - The List disk encryption set operation response. type DiskEncryptionSetList struct { // REQUIRED; A list of disk encryption sets. - Value []*DiskEncryptionSet `json:"value,omitempty"` + Value []*DiskEncryptionSet // The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the next page of disk encryption // sets. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // DiskEncryptionSetParameters - Describes the parameter of customer managed disk encryption set resource id that can be specified -// for disk. -// NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview -// for more details. +// for disk. Note: The disk encryption set resource id can only be specified for managed disk. Please +// refer https://aka.ms/mdssewithcmkoverview for more details. type DiskEncryptionSetParameters struct { // Resource Id - ID *string `json:"id,omitempty"` + ID *string } // DiskEncryptionSetUpdate - disk encryption set update resource. type DiskEncryptionSetUpdate struct { // The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used // to encrypt disks. - Identity *EncryptionSetIdentity `json:"identity,omitempty"` + Identity *EncryptionSetIdentity // disk encryption set resource update properties. - Properties *DiskEncryptionSetUpdateProperties `json:"properties,omitempty"` + Properties *DiskEncryptionSetUpdateProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // DiskEncryptionSetUpdateProperties - disk encryption set resource update properties. type DiskEncryptionSetUpdateProperties struct { // Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots - ActiveKey *KeyForDiskEncryptionSet `json:"activeKey,omitempty"` + ActiveKey *KeyForDiskEncryptionSet // The type of key used to encrypt the data of the disk. - EncryptionType *DiskEncryptionSetType `json:"encryptionType,omitempty"` - - // Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. - RotationToLatestKeyVersionEnabled *bool `json:"rotationToLatestKeyVersionEnabled,omitempty"` -} - -// DiskEncryptionSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginCreateOrUpdate -// method. -type DiskEncryptionSetsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskEncryptionSetsClientBeginDeleteOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginDelete -// method. -type DiskEncryptionSetsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskEncryptionSetsClientBeginUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginUpdate -// method. -type DiskEncryptionSetsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskEncryptionSetsClientGetOptions contains the optional parameters for the DiskEncryptionSetsClient.Get method. -type DiskEncryptionSetsClientGetOptions struct { - // placeholder for future optional parameters -} + EncryptionType *DiskEncryptionSetType -// DiskEncryptionSetsClientListAssociatedResourcesOptions contains the optional parameters for the DiskEncryptionSetsClient.ListAssociatedResources -// method. -type DiskEncryptionSetsClientListAssociatedResourcesOptions struct { - // placeholder for future optional parameters -} - -// DiskEncryptionSetsClientListByResourceGroupOptions contains the optional parameters for the DiskEncryptionSetsClient.ListByResourceGroup -// method. -type DiskEncryptionSetsClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} + // Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the + // property. + FederatedClientID *string -// DiskEncryptionSetsClientListOptions contains the optional parameters for the DiskEncryptionSetsClient.List method. -type DiskEncryptionSetsClientListOptions struct { - // placeholder for future optional parameters + // Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. + RotationToLatestKeyVersionEnabled *bool } // DiskEncryptionSettings - Describes a Encryption Settings for a Disk type DiskEncryptionSettings struct { // Specifies the location of the disk encryption key, which is a Key Vault Secret. - DiskEncryptionKey *KeyVaultSecretReference `json:"diskEncryptionKey,omitempty"` + DiskEncryptionKey *KeyVaultSecretReference // Specifies whether disk encryption should be enabled on the virtual machine. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // Specifies the location of the key encryption key in Key Vault. - KeyEncryptionKey *KeyVaultKeyReference `json:"keyEncryptionKey,omitempty"` + KeyEncryptionKey *KeyVaultKeyReference } // DiskImageEncryption - This is the disk image encryption base class. type DiskImageEncryption struct { // A relative URI containing the resource ID of the disk encryption set. - DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"` + DiskEncryptionSetID *string } // DiskInstanceView - The instance view of the disk. type DiskInstanceView struct { // Specifies the encryption settings for the OS Disk. // Minimum api-version: 2015-06-15 - EncryptionSettings []*DiskEncryptionSettings `json:"encryptionSettings,omitempty"` + EncryptionSettings []*DiskEncryptionSettings // The disk name. - Name *string `json:"name,omitempty"` + Name *string // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus } // DiskList - The List Disks operation response. type DiskList struct { // REQUIRED; A list of disks. - Value []*Disk `json:"value,omitempty"` + Value []*Disk // The uri to fetch the next page of disks. Call ListNext() with this to fetch the next page of disks. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // DiskProperties - Disk resource properties. type DiskProperties struct { // REQUIRED; Disk source information. CreationData information cannot be changed after the disk has been created. - CreationData *CreationData `json:"creationData,omitempty"` + CreationData *CreationData // Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. // Does not apply to Ultra disks. - BurstingEnabled *bool `json:"burstingEnabled,omitempty"` + BurstingEnabled *bool // Percentage complete for the background copy when a resource is created via the CopyStart operation. - CompletionPercent *float32 `json:"completionPercent,omitempty"` + CompletionPercent *float32 // Additional authentication requirements when exporting or uploading to a disk or snapshot. - DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"` + DataAccessAuthMode *DataAccessAuthMode // ARM id of the DiskAccess resource for using private endpoints on disks. - DiskAccessID *string `json:"diskAccessId,omitempty"` + DiskAccessID *string // The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer // between 4k and 256k bytes. - DiskIOPSReadOnly *int64 `json:"diskIOPSReadOnly,omitempty"` + DiskIOPSReadOnly *int64 // The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k // bytes. - DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"` + DiskIOPSReadWrite *int64 // The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions // of bytes per second - MB here uses the ISO notation, of powers of 10. - DiskMBpsReadOnly *int64 `json:"diskMBpsReadOnly,omitempty"` + DiskMBpsReadOnly *int64 // The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here // uses the ISO notation, of powers of 10. - DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"` + DiskMBpsReadWrite *int64 // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this // field is present for updates or creation with other options, it indicates a // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + DiskSizeGB *int32 // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"` + EncryptionSettingsCollection *EncryptionSettingsCollection // The hypervisor generation of the Virtual Machine. Applicable to OS disks only. - HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGeneration // The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can // be mounted on multiple VMs at the same time. - MaxShares *int32 `json:"maxShares,omitempty"` + MaxShares *int32 // Policy for accessing the disk via network. - NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` + NetworkAccessPolicy *NetworkAccessPolicy // The Operating System type. - OSType *OperatingSystemTypes `json:"osType,omitempty"` + OSType *OperatingSystemTypes + + // Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times + // a day) by detached from one virtual machine and attached to another. This + // property should not be set for disks that are not detached and attached frequently as it causes the disks to not align + // with the fault domain of the virtual machine. + OptimizedForFrequentAttach *bool // Policy for controlling export on the disk. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: // MicrosoftWindowsServer, product: WindowsServer} - PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"` + PurchasePlan *DiskPurchasePlan // Contains the security related information for the resource. - SecurityProfile *DiskSecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *DiskSecurityProfile // List of supported capabilities for the image from which the OS disk was created. - SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` + SupportedCapabilities *SupportedCapabilities // Indicates the OS on a disk supports hibernation. - SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + SupportsHibernation *bool // Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. // Does not apply to Ultra disks. - Tier *string `json:"tier,omitempty"` + Tier *string + + // READ-ONLY; Latest time when bursting was last enabled on a disk. + BurstingEnabledTime *time.Time // READ-ONLY; The size of the disk in bytes. This field is read only. - DiskSizeBytes *int64 `json:"diskSizeBytes,omitempty" azure:"ro"` + DiskSizeBytes *int64 // READ-ONLY; The state of the disk. - DiskState *DiskState `json:"diskState,omitempty" azure:"ro"` + DiskState *DiskState + + // READ-ONLY; The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached + // or detached from a VM or the time when the VM to which the disk was attached was + // deallocated or started. + LastOwnershipUpdateTime *time.Time // READ-ONLY; Properties of the disk for which update is pending. - PropertyUpdatesInProgress *PropertyUpdatesInProgress `json:"propertyUpdatesInProgress,omitempty" azure:"ro"` + PropertyUpdatesInProgress *PropertyUpdatesInProgress // READ-ONLY; The disk provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than // one for disks to allow attaching them to multiple VMs. - ShareInfo []*ShareInfoElement `json:"shareInfo,omitempty" azure:"ro"` + ShareInfo []*ShareInfoElement // READ-ONLY; The time when the disk was created. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time // READ-ONLY; Unique Guid identifying the resource. - UniqueID *string `json:"uniqueId,omitempty" azure:"ro"` + UniqueID *string } // DiskPurchasePlan - Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. type DiskPurchasePlan struct { // REQUIRED; The plan ID. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference // element. - Product *string `json:"product,omitempty"` + Product *string // REQUIRED; The publisher ID. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // The Offer Promotion Code. - PromotionCode *string `json:"promotionCode,omitempty"` + PromotionCode *string } // DiskRestorePoint - Properties of disk restore point type DiskRestorePoint struct { // Properties of an incremental disk restore point - Properties *DiskRestorePointProperties `json:"properties,omitempty"` + Properties *DiskRestorePointProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } -// DiskRestorePointClientBeginGrantAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginGrantAccess -// method. -type DiskRestorePointClientBeginGrantAccessOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DiskRestorePointClientBeginRevokeAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginRevokeAccess -// method. -type DiskRestorePointClientBeginRevokeAccessOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} +// DiskRestorePointAttributes - Disk Restore Point details. +type DiskRestorePointAttributes struct { + // Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while + // creating a restore point. + Encryption *RestorePointEncryption -// DiskRestorePointClientGetOptions contains the optional parameters for the DiskRestorePointClient.Get method. -type DiskRestorePointClientGetOptions struct { - // placeholder for future optional parameters -} + // Resource Id of the source disk restore point. + SourceDiskRestorePoint *APIEntityReference -// DiskRestorePointClientListByRestorePointOptions contains the optional parameters for the DiskRestorePointClient.ListByRestorePoint -// method. -type DiskRestorePointClientListByRestorePointOptions struct { - // placeholder for future optional parameters + // READ-ONLY; Resource Id + ID *string } // DiskRestorePointInstanceView - The instance view of a disk restore point. type DiskRestorePointInstanceView struct { // Disk restore point Id. - ID *string `json:"id,omitempty"` + ID *string // The disk restore point replication status information. - ReplicationStatus *DiskRestorePointReplicationStatus `json:"replicationStatus,omitempty"` + ReplicationStatus *DiskRestorePointReplicationStatus } // DiskRestorePointList - The List Disk Restore Points operation response. type DiskRestorePointList struct { // REQUIRED; A list of disk restore points. - Value []*DiskRestorePoint `json:"value,omitempty"` + Value []*DiskRestorePoint // The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the next page of disk restore // points. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // DiskRestorePointProperties - Properties of an incremental disk restore point type DiskRestorePointProperties struct { // Percentage complete for the background copy of disk restore point when source resource is from a different region. - CompletionPercent *float32 `json:"completionPercent,omitempty"` + CompletionPercent *float32 // ARM id of the DiskAccess resource for using private endpoints on disks. - DiskAccessID *string `json:"diskAccessId,omitempty"` + DiskAccessID *string // The hypervisor generation of the Virtual Machine. Applicable to OS disks only. - HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGeneration // Policy for accessing the disk via network. - NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` + NetworkAccessPolicy *NetworkAccessPolicy // Policy for controlling export on the disk. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // Purchase plan information for the the image from which the OS disk was created. - PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"` + PurchasePlan *DiskPurchasePlan + + // Contains the security related information for the resource. + SecurityProfile *DiskSecurityProfile // List of supported capabilities for the image from which the OS disk was created. - SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` + SupportedCapabilities *SupportedCapabilities // Indicates the OS on a disk supports hibernation. - SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + SupportsHibernation *bool // READ-ONLY; Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. - Encryption *Encryption `json:"encryption,omitempty" azure:"ro"` + Encryption *Encryption // READ-ONLY; id of the backing snapshot's MIS family - FamilyID *string `json:"familyId,omitempty" azure:"ro"` + FamilyID *string // READ-ONLY; The Operating System type. - OSType *OperatingSystemTypes `json:"osType,omitempty" azure:"ro"` + OSType *OperatingSystemTypes // READ-ONLY; Replication state of disk restore point when source resource is from a different region. - ReplicationState *string `json:"replicationState,omitempty" azure:"ro"` + ReplicationState *string // READ-ONLY; arm id of source disk or source disk restore point. - SourceResourceID *string `json:"sourceResourceId,omitempty" azure:"ro"` + SourceResourceID *string // READ-ONLY; Location of source disk or source disk restore point when source resource is from a different region. - SourceResourceLocation *string `json:"sourceResourceLocation,omitempty" azure:"ro"` + SourceResourceLocation *string // READ-ONLY; unique incarnation id of the source disk - SourceUniqueID *string `json:"sourceUniqueId,omitempty" azure:"ro"` + SourceUniqueID *string // READ-ONLY; The timestamp of restorePoint creation - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time } // DiskRestorePointReplicationStatus - The instance view of a disk restore point. type DiskRestorePointReplicationStatus struct { // Replication completion percentage. - CompletionPercent *int32 `json:"completionPercent,omitempty"` + CompletionPercent *int32 // The resource status information. - Status *InstanceViewStatus `json:"status,omitempty"` + Status *InstanceViewStatus } -// DiskSKU - The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, or StandardSSDZRS. +// DiskSKU - The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, StandardSSDZRS, +// or PremiumV2_LRS. type DiskSKU struct { // The sku name. - Name *DiskStorageAccountTypes `json:"name,omitempty"` + Name *DiskStorageAccountTypes // READ-ONLY; The sku tier. - Tier *string `json:"tier,omitempty" azure:"ro"` + Tier *string } // DiskSecurityProfile - Contains the security related information for the resource. type DiskSecurityProfile struct { // ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key - SecureVMDiskEncryptionSetID *string `json:"secureVMDiskEncryptionSetId,omitempty"` + SecureVMDiskEncryptionSetID *string // Specifies the SecurityType of the VM. Applicable for OS disks only. - SecurityType *DiskSecurityTypes `json:"securityType,omitempty"` + SecurityType *DiskSecurityTypes } // DiskUpdate - Disk update resource. type DiskUpdate struct { // Disk resource update properties. - Properties *DiskUpdateProperties `json:"properties,omitempty"` + Properties *DiskUpdateProperties - // The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, or StandardSSDZRS. - SKU *DiskSKU `json:"sku,omitempty"` + // The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, StandardSSDZRS, or PremiumV2_LRS. + SKU *DiskSKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // DiskUpdateProperties - Disk resource update properties. type DiskUpdateProperties struct { // Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. // Does not apply to Ultra disks. - BurstingEnabled *bool `json:"burstingEnabled,omitempty"` + BurstingEnabled *bool // Additional authentication requirements when exporting or uploading to a disk or snapshot. - DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"` + DataAccessAuthMode *DataAccessAuthMode // ARM id of the DiskAccess resource for using private endpoints on disks. - DiskAccessID *string `json:"diskAccessId,omitempty"` + DiskAccessID *string // The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer // between 4k and 256k bytes. - DiskIOPSReadOnly *int64 `json:"diskIOPSReadOnly,omitempty"` + DiskIOPSReadOnly *int64 // The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k // bytes. - DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"` + DiskIOPSReadWrite *int64 // The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions // of bytes per second - MB here uses the ISO notation, of powers of 10. - DiskMBpsReadOnly *int64 `json:"diskMBpsReadOnly,omitempty"` + DiskMBpsReadOnly *int64 // The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here // uses the ISO notation, of powers of 10. - DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"` + DiskMBpsReadWrite *int64 // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this // field is present for updates or creation with other options, it indicates a // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + DiskSizeGB *int32 // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"` + EncryptionSettingsCollection *EncryptionSettingsCollection // The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can // be mounted on multiple VMs at the same time. - MaxShares *int32 `json:"maxShares,omitempty"` + MaxShares *int32 // Policy for accessing the disk via network. - NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` + NetworkAccessPolicy *NetworkAccessPolicy // the Operating System type. - OSType *OperatingSystemTypes `json:"osType,omitempty"` + OSType *OperatingSystemTypes + + // Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times + // a day) by detached from one virtual machine and attached to another. This + // property should not be set for disks that are not detached and attached frequently as it causes the disks to not align + // with the fault domain of the virtual machine. + OptimizedForFrequentAttach *bool // Policy for controlling export on the disk. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // Purchase plan information to be added on the OS disk - PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"` + PurchasePlan *DiskPurchasePlan // List of supported capabilities to be added on the OS disk. - SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` + SupportedCapabilities *SupportedCapabilities // Indicates the OS on a disk supports hibernation. - SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + SupportsHibernation *bool // Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. // Does not apply to Ultra disks. - Tier *string `json:"tier,omitempty"` + Tier *string // READ-ONLY; Properties of the disk for which update is pending. - PropertyUpdatesInProgress *PropertyUpdatesInProgress `json:"propertyUpdatesInProgress,omitempty" azure:"ro"` -} - -// DisksClientBeginCreateOrUpdateOptions contains the optional parameters for the DisksClient.BeginCreateOrUpdate method. -type DisksClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DisksClientBeginDeleteOptions contains the optional parameters for the DisksClient.BeginDelete method. -type DisksClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DisksClientBeginGrantAccessOptions contains the optional parameters for the DisksClient.BeginGrantAccess method. -type DisksClientBeginGrantAccessOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DisksClientBeginRevokeAccessOptions contains the optional parameters for the DisksClient.BeginRevokeAccess method. -type DisksClientBeginRevokeAccessOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DisksClientBeginUpdateOptions contains the optional parameters for the DisksClient.BeginUpdate method. -type DisksClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DisksClientGetOptions contains the optional parameters for the DisksClient.Get method. -type DisksClientGetOptions struct { - // placeholder for future optional parameters -} - -// DisksClientListByResourceGroupOptions contains the optional parameters for the DisksClient.ListByResourceGroup method. -type DisksClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// DisksClientListOptions contains the optional parameters for the DisksClient.List method. -type DisksClientListOptions struct { - // placeholder for future optional parameters + PropertyUpdatesInProgress *PropertyUpdatesInProgress } // Encryption at rest settings for disk or snapshot type Encryption struct { // ResourceId of the disk encryption set to use for enabling encryption at rest. - DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"` + DiskEncryptionSetID *string // The type of key used to encrypt the data of the disk. - Type *EncryptionType `json:"type,omitempty"` + Type *EncryptionType +} + +// EncryptionIdentity - Specifies the Managed Identity used by ADE to get access token for keyvault operations. +type EncryptionIdentity struct { + // Specifies ARM Resource ID of one of the user identities associated with the VM. + UserAssignedIdentityResourceID *string } // EncryptionImages - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the // gallery artifact. type EncryptionImages struct { // A list of encryption specifications for data disk images. - DataDiskImages []*DataDiskImageEncryption `json:"dataDiskImages,omitempty"` + DataDiskImages []*DataDiskImageEncryption // Contains encryption settings for an OS disk image. - OSDiskImage *OSDiskImageEncryption `json:"osDiskImage,omitempty"` + OSDiskImage *OSDiskImageEncryption } // EncryptionSetIdentity - The managed identity for the disk encryption set. It should be given permission on the key vault @@ -2355,41 +2024,50 @@ type EncryptionSetIdentity struct { // The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption // Sets can be updated with Identity type None during migration of // subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. - Type *DiskEncryptionSetIdentityType `json:"type,omitempty"` + Type *DiskEncryptionSetIdentityType + + // The list of user identities associated with the disk encryption set. The user identity dictionary key references will be + // ARM resource ids in the form: + // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + UserAssignedIdentities map[string]*UserAssignedIdentitiesValue // READ-ONLY; The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id // header in the PUT request if the resource has a systemAssigned(implicit) // identity - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id // header in the PUT request if the resource has a systemAssigned(implicit) identity - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } type EncryptionSetProperties struct { // The key vault key which is currently used by this disk encryption set. - ActiveKey *KeyForDiskEncryptionSet `json:"activeKey,omitempty"` + ActiveKey *KeyForDiskEncryptionSet // The type of key used to encrypt the data of the disk. - EncryptionType *DiskEncryptionSetType `json:"encryptionType,omitempty"` + EncryptionType *DiskEncryptionSetType + + // Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the + // property. + FederatedClientID *string // Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. - RotationToLatestKeyVersionEnabled *bool `json:"rotationToLatestKeyVersionEnabled,omitempty"` + RotationToLatestKeyVersionEnabled *bool // READ-ONLY; The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will // not be attempted until the error on this disk encryption set is fixed. - AutoKeyRotationError *APIError `json:"autoKeyRotationError,omitempty" azure:"ro"` + AutoKeyRotationError *APIError // READ-ONLY; The time when the active key of this disk encryption set was updated. - LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"` + LastKeyRotationTimestamp *time.Time // READ-ONLY; A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is // in progress. It will be empty if there is no ongoing key rotation. - PreviousKeys []*KeyForDiskEncryptionSet `json:"previousKeys,omitempty" azure:"ro"` + PreviousKeys []*KeyForDiskEncryptionSet // READ-ONLY; The disk encryption set provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // EncryptionSettingsCollection - Encryption settings for disk or snapshot @@ -2397,383 +2075,355 @@ type EncryptionSettingsCollection struct { // REQUIRED; Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this // flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. // If EncryptionSettings is null in the request object, the existing settings remain unchanged. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // A collection of encryption settings, one for each disk volume. - EncryptionSettings []*EncryptionSettingsElement `json:"encryptionSettings,omitempty"` + EncryptionSettings []*EncryptionSettingsElement // Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds // to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk // Encryption. - EncryptionSettingsVersion *string `json:"encryptionSettingsVersion,omitempty"` + EncryptionSettingsVersion *string } // EncryptionSettingsElement - Encryption settings for one disk volume. type EncryptionSettingsElement struct { // Key Vault Secret Url and vault id of the disk encryption key - DiskEncryptionKey *KeyVaultAndSecretReference `json:"diskEncryptionKey,omitempty"` + DiskEncryptionKey *KeyVaultAndSecretReference // Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap // the disk encryption key. - KeyEncryptionKey *KeyVaultAndKeyReference `json:"keyEncryptionKey,omitempty"` + KeyEncryptionKey *KeyVaultAndKeyReference +} + +// EventGridAndResourceGraph - Specifies eventGridAndResourceGraph related Scheduled Event related configurations. +type EventGridAndResourceGraph struct { + // Specifies if event grid and resource graph is enabled for Scheduled event related configurations. + Enable *bool } // ExtendedLocation - The complex type of the extended location. type ExtendedLocation struct { // The name of the extended location. - Name *string `json:"name,omitempty"` + Name *string // The type of the extended location. - Type *ExtendedLocationTypes `json:"type,omitempty"` + Type *ExtendedLocationTypes } // Extension - Describes a cloud service Extension. type Extension struct { // The name of the extension. - Name *string `json:"name,omitempty"` + Name *string // Extension Properties. - Properties *CloudServiceExtensionProperties `json:"properties,omitempty"` -} - -// GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate -// method. -type GalleriesClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method. -type GalleriesClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleriesClientBeginUpdateOptions contains the optional parameters for the GalleriesClient.BeginUpdate method. -type GalleriesClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method. -type GalleriesClientGetOptions struct { - // The expand query option to apply on the operation. - Expand *GalleryExpandParams - // The select expression to apply on the operation. - Select *SelectPermissions -} - -// GalleriesClientListByResourceGroupOptions contains the optional parameters for the GalleriesClient.ListByResourceGroup -// method. -type GalleriesClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// GalleriesClientListOptions contains the optional parameters for the GalleriesClient.List method. -type GalleriesClientListOptions struct { - // placeholder for future optional parameters + Properties *CloudServiceExtensionProperties } // Gallery - Specifies information about the Shared Image Gallery that you want to create or update. type Gallery struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a Shared Image Gallery. - Properties *GalleryProperties `json:"properties,omitempty"` + Properties *GalleryProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GalleryApplication - Specifies information about the gallery Application Definition that you want to create or update. type GalleryApplication struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a gallery Application Definition. - Properties *GalleryApplicationProperties `json:"properties,omitempty"` + Properties *GalleryApplicationProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string +} + +// GalleryApplicationCustomAction - A custom action that can be performed with a Gallery Application Version. +type GalleryApplicationCustomAction struct { + // REQUIRED; The name of the custom action. Must be unique within the Gallery Application Version. + Name *string + + // REQUIRED; The script to run when executing this custom action. + Script *string + + // Description to help the users understand what this custom action does. + Description *string + + // The parameters that this custom action uses + Parameters []*GalleryApplicationCustomActionParameter +} + +// GalleryApplicationCustomActionParameter - The definition of a parameter that can be passed to a custom action of a Gallery +// Application Version. +type GalleryApplicationCustomActionParameter struct { + // REQUIRED; The name of the custom action. Must be unique within the Gallery Application Version. + Name *string + + // The default value of the parameter. Only applies to string types + DefaultValue *string + + // A description to help users understand what this parameter means + Description *string + + // Indicates whether this parameter must be passed when running the custom action. + Required *bool + + // Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob + Type *GalleryApplicationCustomActionParameterType } // GalleryApplicationList - The List Gallery Applications operation response. type GalleryApplicationList struct { // REQUIRED; A list of Gallery Applications. - Value []*GalleryApplication `json:"value,omitempty"` + Value []*GalleryApplication // The uri to fetch the next page of Application Definitions in the Application Gallery. Call ListNext() with this to fetch // the next page of gallery Application Definitions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // GalleryApplicationProperties - Describes the properties of a gallery Application Definition. type GalleryApplicationProperties struct { - // REQUIRED; This property allows you to specify the supported type of the OS that application is built for. - // Possible values are: - // Windows - // Linux - SupportedOSType *OperatingSystemTypes `json:"supportedOSType,omitempty"` + // REQUIRED; This property allows you to specify the supported type of the OS that application is built for. Possible values + // are: Windows, Linux. + SupportedOSType *OperatingSystemTypes + + // A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. + CustomActions []*GalleryApplicationCustomAction // The description of this gallery Application Definition resource. This property is updatable. - Description *string `json:"description,omitempty"` + Description *string // The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This // property is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time // The Eula agreement for the gallery Application Definition. - Eula *string `json:"eula,omitempty"` + Eula *string // The privacy statement uri. - PrivacyStatementURI *string `json:"privacyStatementUri,omitempty"` + PrivacyStatementURI *string // The release note uri. - ReleaseNoteURI *string `json:"releaseNoteUri,omitempty"` + ReleaseNoteURI *string } // GalleryApplicationUpdate - Specifies information about the gallery Application Definition that you want to update. type GalleryApplicationUpdate struct { // Describes the properties of a gallery Application Definition. - Properties *GalleryApplicationProperties `json:"properties,omitempty"` + Properties *GalleryApplicationProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GalleryApplicationVersion - Specifies information about the gallery Application Version that you want to create or update. type GalleryApplicationVersion struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a gallery image version. - Properties *GalleryApplicationVersionProperties `json:"properties,omitempty"` + Properties *GalleryApplicationVersionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GalleryApplicationVersionList - The List Gallery Application version operation response. type GalleryApplicationVersionList struct { // REQUIRED; A list of gallery Application Versions. - Value []*GalleryApplicationVersion `json:"value,omitempty"` + Value []*GalleryApplicationVersion // The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to fetch the next page of gallery // Application Versions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // GalleryApplicationVersionProperties - Describes the properties of a gallery image version. type GalleryApplicationVersionProperties struct { // REQUIRED; The publishing profile of a gallery image version. - PublishingProfile *GalleryApplicationVersionPublishingProfile `json:"publishingProfile,omitempty"` + PublishingProfile *GalleryApplicationVersionPublishingProfile + + // The safety profile of the Gallery Application Version. + SafetyProfile *GalleryApplicationVersionSafetyProfile // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *GalleryApplicationVersionPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *GalleryProvisioningState // READ-ONLY; This is the replication status of the gallery image version. - ReplicationStatus *ReplicationStatus `json:"replicationStatus,omitempty" azure:"ro"` + ReplicationStatus *ReplicationStatus } // GalleryApplicationVersionPublishingProfile - The publishing profile of a gallery image version. type GalleryApplicationVersionPublishingProfile struct { // REQUIRED; The source image from which the Image Version is going to be created. - Source *UserArtifactSource `json:"source,omitempty"` + Source *UserArtifactSource + + // Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only. + AdvancedSettings map[string]*string + + // A list of custom actions that can be performed with this Gallery Application Version. + CustomActions []*GalleryApplicationCustomAction // Optional. Whether or not this application reports health. - EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"` + EnableHealthCheck *bool // The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property // is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. - ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` - ManageActions *UserArtifactManage `json:"manageActions,omitempty"` + ExcludeFromLatest *bool + ManageActions *UserArtifactManage // The number of replicas of the Image Version to be created per region. This property would take effect for a region when // regionalReplicaCount is not specified. This property is updatable. - ReplicaCount *int32 `json:"replicaCount,omitempty"` + ReplicaCount *int32 // Optional parameter which specifies the mode to be used for replication. This property is not updatable. - ReplicationMode *ReplicationMode `json:"replicationMode,omitempty"` + ReplicationMode *ReplicationMode + + // Additional settings for the VM app that contains the target package and config file name when it is deployed to target + // VM or VM scale set. + Settings *UserArtifactSettings // Specifies the storage account type to be used to store the image. This property is not updatable. - StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountType // The target extended locations where the Image Version is going to be replicated to. This property is updatable. - TargetExtendedLocations []*GalleryTargetExtendedLocation `json:"targetExtendedLocations,omitempty"` + TargetExtendedLocations []*GalleryTargetExtendedLocation // The target regions where the Image Version is going to be replicated to. This property is updatable. - TargetRegions []*TargetRegion `json:"targetRegions,omitempty"` + TargetRegions []*TargetRegion // READ-ONLY; The timestamp for when the gallery image version is published. - PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"` + PublishedDate *time.Time +} + +// GalleryApplicationVersionSafetyProfile - The safety profile of the Gallery Application Version. +type GalleryApplicationVersionSafetyProfile struct { + // Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + AllowDeletionOfReplicatedLocations *bool } // GalleryApplicationVersionUpdate - Specifies information about the gallery Application Version that you want to update. type GalleryApplicationVersionUpdate struct { // Describes the properties of a gallery image version. - Properties *GalleryApplicationVersionProperties `json:"properties,omitempty"` + Properties *GalleryApplicationVersionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` -} - -// GalleryApplicationVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginCreateOrUpdate -// method. -type GalleryApplicationVersionsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryApplicationVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginDelete -// method. -type GalleryApplicationVersionsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryApplicationVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginUpdate -// method. -type GalleryApplicationVersionsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryApplicationVersionsClientGetOptions contains the optional parameters for the GalleryApplicationVersionsClient.Get -// method. -type GalleryApplicationVersionsClientGetOptions struct { - // The expand expression to apply on the operation. - Expand *ReplicationStatusTypes -} - -// GalleryApplicationVersionsClientListByGalleryApplicationOptions contains the optional parameters for the GalleryApplicationVersionsClient.ListByGalleryApplication -// method. -type GalleryApplicationVersionsClientListByGalleryApplicationOptions struct { - // placeholder for future optional parameters -} - -// GalleryApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginCreateOrUpdate -// method. -type GalleryApplicationsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryApplicationsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationsClient.BeginDelete -// method. -type GalleryApplicationsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryApplicationsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginUpdate -// method. -type GalleryApplicationsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryApplicationsClientGetOptions contains the optional parameters for the GalleryApplicationsClient.Get method. -type GalleryApplicationsClientGetOptions struct { - // placeholder for future optional parameters -} - -// GalleryApplicationsClientListByGalleryOptions contains the optional parameters for the GalleryApplicationsClient.ListByGallery -// method. -type GalleryApplicationsClientListByGalleryOptions struct { - // placeholder for future optional parameters + Type *string } // GalleryArtifactPublishingProfileBase - Describes the basic gallery artifact publishing profile. type GalleryArtifactPublishingProfileBase struct { // The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property // is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. - ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` + ExcludeFromLatest *bool // The number of replicas of the Image Version to be created per region. This property would take effect for a region when // regionalReplicaCount is not specified. This property is updatable. - ReplicaCount *int32 `json:"replicaCount,omitempty"` + ReplicaCount *int32 // Optional parameter which specifies the mode to be used for replication. This property is not updatable. - ReplicationMode *ReplicationMode `json:"replicationMode,omitempty"` + ReplicationMode *ReplicationMode // Specifies the storage account type to be used to store the image. This property is not updatable. - StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountType // The target extended locations where the Image Version is going to be replicated to. This property is updatable. - TargetExtendedLocations []*GalleryTargetExtendedLocation `json:"targetExtendedLocations,omitempty"` + TargetExtendedLocations []*GalleryTargetExtendedLocation // The target regions where the Image Version is going to be replicated to. This property is updatable. - TargetRegions []*TargetRegion `json:"targetRegions,omitempty"` + TargetRegions []*TargetRegion // READ-ONLY; The timestamp for when the gallery image version is published. - PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"` + PublishedDate *time.Time +} + +// GalleryArtifactSafetyProfileBase - This is the safety profile of the Gallery Artifact Version. +type GalleryArtifactSafetyProfileBase struct { + // Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + AllowDeletionOfReplicatedLocations *bool } // GalleryArtifactSource - The source image from which the Image Version is going to be created. type GalleryArtifactSource struct { // REQUIRED; The managed artifact. - ManagedImage *ManagedArtifact `json:"managedImage,omitempty"` + ManagedImage *ManagedArtifact +} + +// GalleryArtifactVersionFullSource - The source of the gallery artifact version. +type GalleryArtifactVersionFullSource struct { + // The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source. + CommunityGalleryImageID *string + + // The id of the gallery artifact version source. + ID *string + + // The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image + // Version. + VirtualMachineID *string } // GalleryArtifactVersionSource - The gallery artifact version source. type GalleryArtifactVersionSource struct { - // The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. - ID *string `json:"id,omitempty"` - - // The uri of the gallery artifact version source. Currently used to specify vhd/blob source. - URI *string `json:"uri,omitempty"` + // The id of the gallery artifact version source. + ID *string } // GalleryDataDiskImage - This is the data disk image. @@ -2781,448 +2431,417 @@ type GalleryDataDiskImage struct { // REQUIRED; This property specifies the logical unit number of the data disk. This value is used to identify data disks within // the Virtual Machine and therefore must be unique for each data disk attached to the // Virtual Machine. - Lun *int32 `json:"lun,omitempty"` + Lun *int32 // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' - HostCaching *HostCaching `json:"hostCaching,omitempty"` + HostCaching *HostCaching - // The gallery artifact version source. - Source *GalleryArtifactVersionSource `json:"source,omitempty"` + // The source for the disk image. + Source *GalleryDiskImageSource // READ-ONLY; This property indicates the size of the VHD to be created. - SizeInGB *int32 `json:"sizeInGB,omitempty" azure:"ro"` + SizeInGB *int32 } // GalleryDiskImage - This is the disk image base class. type GalleryDiskImage struct { // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' - HostCaching *HostCaching `json:"hostCaching,omitempty"` + HostCaching *HostCaching - // The gallery artifact version source. - Source *GalleryArtifactVersionSource `json:"source,omitempty"` + // The source for the disk image. + Source *GalleryDiskImageSource // READ-ONLY; This property indicates the size of the VHD to be created. - SizeInGB *int32 `json:"sizeInGB,omitempty" azure:"ro"` + SizeInGB *int32 +} + +// GalleryDiskImageSource - The source for the disk image. +type GalleryDiskImageSource struct { + // The id of the gallery artifact version source. + ID *string + + // The Storage Account Id that contains the vhd blob being used as a source for this artifact version. + StorageAccountID *string + + // The uri of the gallery artifact version source. Currently used to specify vhd/blob source. + URI *string } // GalleryExtendedLocation - The name of the extended location. type GalleryExtendedLocation struct { - Name *string `json:"name,omitempty"` + Name *string // It is type of the extended location. - Type *GalleryExtendedLocationType `json:"type,omitempty"` + Type *GalleryExtendedLocationType } // GalleryIdentifier - Describes the gallery unique name. type GalleryIdentifier struct { // READ-ONLY; The unique name of the Shared Image Gallery. This name is generated automatically by Azure. - UniqueName *string `json:"uniqueName,omitempty" azure:"ro"` + UniqueName *string } // GalleryImage - Specifies information about the gallery image definition that you want to create or update. type GalleryImage struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a gallery image definition. - Properties *GalleryImageProperties `json:"properties,omitempty"` + Properties *GalleryImageProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GalleryImageFeature - A feature for gallery image. type GalleryImageFeature struct { // The name of the gallery image feature. - Name *string `json:"name,omitempty"` + Name *string // The value of the gallery image feature. - Value *string `json:"value,omitempty"` + Value *string } // GalleryImageIdentifier - This is the gallery image definition identifier. type GalleryImageIdentifier struct { // REQUIRED; The name of the gallery image definition offer. - Offer *string `json:"offer,omitempty"` + Offer *string // REQUIRED; The name of the gallery image definition publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // REQUIRED; The name of the gallery image definition SKU. - SKU *string `json:"sku,omitempty"` + SKU *string } // GalleryImageList - The List Gallery Images operation response. type GalleryImageList struct { // REQUIRED; A list of Shared Image Gallery images. - Value []*GalleryImage `json:"value,omitempty"` + Value []*GalleryImage // The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the // next page of gallery image definitions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // GalleryImageProperties - Describes the properties of a gallery image definition. type GalleryImageProperties struct { // REQUIRED; This is the gallery image definition identifier. - Identifier *GalleryImageIdentifier `json:"identifier,omitempty"` + Identifier *GalleryImageIdentifier // REQUIRED; This property allows the user to specify whether the virtual machines created under this image are 'Generalized' // or 'Specialized'. - OSState *OperatingSystemStateTypes `json:"osState,omitempty"` + OSState *OperatingSystemStateTypes // REQUIRED; This property allows you to specify the type of the OS that is included in the disk when creating a VM from a - // managed image. - // Possible values are: - // Windows - // Linux - OSType *OperatingSystemTypes `json:"osType,omitempty"` + // managed image. Possible values are: Windows, Linux. + OSType *OperatingSystemTypes // The architecture of the image. Applicable to OS disks only. - Architecture *Architecture `json:"architecture,omitempty"` + Architecture *Architecture // The description of this gallery image definition resource. This property is updatable. - Description *string `json:"description,omitempty"` + Description *string // Describes the disallowed disk types. - Disallowed *Disallowed `json:"disallowed,omitempty"` + Disallowed *Disallowed // The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property // is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time // The Eula agreement for the gallery image definition. - Eula *string `json:"eula,omitempty"` + Eula *string // A list of gallery image features. - Features []*GalleryImageFeature `json:"features,omitempty"` + Features []*GalleryImageFeature // The hypervisor generation of the Virtual Machine. Applicable to OS disks only. - HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGeneration // The privacy statement uri. - PrivacyStatementURI *string `json:"privacyStatementUri,omitempty"` + PrivacyStatementURI *string // Describes the gallery image definition purchase plan. This is used by marketplace images. - PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"` + PurchasePlan *ImagePurchasePlan // The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. - Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"` + Recommended *RecommendedMachineConfiguration // The release note uri. - ReleaseNoteURI *string `json:"releaseNoteUri,omitempty"` + ReleaseNoteURI *string // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *GalleryImagePropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *GalleryProvisioningState } // GalleryImageUpdate - Specifies information about the gallery image definition that you want to update. type GalleryImageUpdate struct { // Describes the properties of a gallery image definition. - Properties *GalleryImageProperties `json:"properties,omitempty"` + Properties *GalleryImageProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GalleryImageVersion - Specifies information about the gallery image version that you want to create or update. type GalleryImageVersion struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a gallery image version. - Properties *GalleryImageVersionProperties `json:"properties,omitempty"` + Properties *GalleryImageVersionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GalleryImageVersionList - The List Gallery Image version operation response. type GalleryImageVersionList struct { // REQUIRED; A list of gallery image versions. - Value []*GalleryImageVersion `json:"value,omitempty"` + Value []*GalleryImageVersion // The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch the next page of gallery image // versions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // GalleryImageVersionProperties - Describes the properties of a gallery image version. type GalleryImageVersionProperties struct { // REQUIRED; This is the storage profile of a Gallery Image Version. - StorageProfile *GalleryImageVersionStorageProfile `json:"storageProfile,omitempty"` + StorageProfile *GalleryImageVersionStorageProfile // The publishing profile of a gallery image Version. - PublishingProfile *GalleryImageVersionPublishingProfile `json:"publishingProfile,omitempty"` + PublishingProfile *GalleryImageVersionPublishingProfile + + // This is the safety profile of the Gallery Image Version. + SafetyProfile *GalleryImageVersionSafetyProfile + + // The security profile of a gallery image version + SecurityProfile *ImageVersionSecurityProfile // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *GalleryImageVersionPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *GalleryProvisioningState // READ-ONLY; This is the replication status of the gallery image version. - ReplicationStatus *ReplicationStatus `json:"replicationStatus,omitempty" azure:"ro"` + ReplicationStatus *ReplicationStatus } // GalleryImageVersionPublishingProfile - The publishing profile of a gallery image Version. type GalleryImageVersionPublishingProfile struct { // The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property // is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. - ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` + ExcludeFromLatest *bool // The number of replicas of the Image Version to be created per region. This property would take effect for a region when // regionalReplicaCount is not specified. This property is updatable. - ReplicaCount *int32 `json:"replicaCount,omitempty"` + ReplicaCount *int32 // Optional parameter which specifies the mode to be used for replication. This property is not updatable. - ReplicationMode *ReplicationMode `json:"replicationMode,omitempty"` + ReplicationMode *ReplicationMode // Specifies the storage account type to be used to store the image. This property is not updatable. - StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountType // The target extended locations where the Image Version is going to be replicated to. This property is updatable. - TargetExtendedLocations []*GalleryTargetExtendedLocation `json:"targetExtendedLocations,omitempty"` + TargetExtendedLocations []*GalleryTargetExtendedLocation // The target regions where the Image Version is going to be replicated to. This property is updatable. - TargetRegions []*TargetRegion `json:"targetRegions,omitempty"` + TargetRegions []*TargetRegion // READ-ONLY; The timestamp for when the gallery image version is published. - PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"` + PublishedDate *time.Time +} + +// GalleryImageVersionSafetyProfile - This is the safety profile of the Gallery Image Version. +type GalleryImageVersionSafetyProfile struct { + // Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + AllowDeletionOfReplicatedLocations *bool + + // READ-ONLY; A list of Policy Violations that have been reported for this Gallery Image Version. + PolicyViolations []*PolicyViolation + + // READ-ONLY; Indicates whether this image has been reported as violating Microsoft's policies. + ReportedForPolicyViolation *bool } // GalleryImageVersionStorageProfile - This is the storage profile of a Gallery Image Version. type GalleryImageVersionStorageProfile struct { // A list of data disk images. - DataDiskImages []*GalleryDataDiskImage `json:"dataDiskImages,omitempty"` + DataDiskImages []*GalleryDataDiskImage // This is the OS disk image. - OSDiskImage *GalleryOSDiskImage `json:"osDiskImage,omitempty"` + OSDiskImage *GalleryOSDiskImage - // The gallery artifact version source. - Source *GalleryArtifactVersionSource `json:"source,omitempty"` + // The source of the gallery artifact version. + Source *GalleryArtifactVersionFullSource +} + +// GalleryImageVersionUefiSettings - Contains UEFI settings for the image version. +type GalleryImageVersionUefiSettings struct { + // Additional UEFI key signatures that will be added to the image in addition to the signature templates + AdditionalSignatures *UefiKeySignatures + + // The name of the template(s) that contains default UEFI key signatures that will be added to the image. + SignatureTemplateNames []*UefiSignatureTemplateName } // GalleryImageVersionUpdate - Specifies information about the gallery image version that you want to update. type GalleryImageVersionUpdate struct { // Describes the properties of a gallery image version. - Properties *GalleryImageVersionProperties `json:"properties,omitempty"` + Properties *GalleryImageVersionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` -} - -// GalleryImageVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginCreateOrUpdate -// method. -type GalleryImageVersionsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryImageVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryImageVersionsClient.BeginDelete -// method. -type GalleryImageVersionsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryImageVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginUpdate -// method. -type GalleryImageVersionsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryImageVersionsClientGetOptions contains the optional parameters for the GalleryImageVersionsClient.Get method. -type GalleryImageVersionsClientGetOptions struct { - // The expand expression to apply on the operation. - Expand *ReplicationStatusTypes -} - -// GalleryImageVersionsClientListByGalleryImageOptions contains the optional parameters for the GalleryImageVersionsClient.ListByGalleryImage -// method. -type GalleryImageVersionsClientListByGalleryImageOptions struct { - // placeholder for future optional parameters -} - -// GalleryImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginCreateOrUpdate -// method. -type GalleryImagesClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryImagesClientBeginDeleteOptions contains the optional parameters for the GalleryImagesClient.BeginDelete method. -type GalleryImagesClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryImagesClientBeginUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginUpdate method. -type GalleryImagesClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GalleryImagesClientGetOptions contains the optional parameters for the GalleryImagesClient.Get method. -type GalleryImagesClientGetOptions struct { - // placeholder for future optional parameters -} - -// GalleryImagesClientListByGalleryOptions contains the optional parameters for the GalleryImagesClient.ListByGallery method. -type GalleryImagesClientListByGalleryOptions struct { - // placeholder for future optional parameters + Type *string } // GalleryList - The List Galleries operation response. type GalleryList struct { // REQUIRED; A list of galleries. - Value []*Gallery `json:"value,omitempty"` + Value []*Gallery // The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // GalleryOSDiskImage - This is the OS disk image. type GalleryOSDiskImage struct { // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' - HostCaching *HostCaching `json:"hostCaching,omitempty"` + HostCaching *HostCaching - // The gallery artifact version source. - Source *GalleryArtifactVersionSource `json:"source,omitempty"` + // The source for the disk image. + Source *GalleryDiskImageSource // READ-ONLY; This property indicates the size of the VHD to be created. - SizeInGB *int32 `json:"sizeInGB,omitempty" azure:"ro"` + SizeInGB *int32 } // GalleryProperties - Describes the properties of a Shared Image Gallery. type GalleryProperties struct { // The description of this Shared Image Gallery resource. This property is updatable. - Description *string `json:"description,omitempty"` + Description *string // Describes the gallery unique name. - Identifier *GalleryIdentifier `json:"identifier,omitempty"` + Identifier *GalleryIdentifier // Profile for gallery sharing to subscription or tenant - SharingProfile *SharingProfile `json:"sharingProfile,omitempty"` + SharingProfile *SharingProfile // Contains information about the soft deletion policy of the gallery. - SoftDeletePolicy *SoftDeletePolicy `json:"softDeletePolicy,omitempty"` + SoftDeletePolicy *SoftDeletePolicy // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *GalleryPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *GalleryProvisioningState // READ-ONLY; Sharing status of current gallery. - SharingStatus *SharingStatus `json:"sharingStatus,omitempty" azure:"ro"` -} - -// GallerySharingProfileClientBeginUpdateOptions contains the optional parameters for the GallerySharingProfileClient.BeginUpdate -// method. -type GallerySharingProfileClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string + SharingStatus *SharingStatus } type GalleryTargetExtendedLocation struct { // Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. - Encryption *EncryptionImages `json:"encryption,omitempty"` + Encryption *EncryptionImages // The name of the extended location. - ExtendedLocation *GalleryExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *GalleryExtendedLocation // The number of replicas of the Image Version to be created per extended location. This property is updatable. - ExtendedLocationReplicaCount *int32 `json:"extendedLocationReplicaCount,omitempty"` + ExtendedLocationReplicaCount *int32 // The name of the region. - Name *string `json:"name,omitempty"` + Name *string // Specifies the storage account type to be used to store the image. This property is not updatable. - StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"` + StorageAccountType *EdgeZoneStorageAccountType } // GalleryUpdate - Specifies information about the Shared Image Gallery that you want to update. type GalleryUpdate struct { // Describes the properties of a Shared Image Gallery. - Properties *GalleryProperties `json:"properties,omitempty"` + Properties *GalleryProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GrantAccessData - Data used for requesting a SAS. type GrantAccessData struct { // REQUIRED - Access *AccessLevel `json:"access,omitempty"` + Access *AccessLevel // REQUIRED; Time duration in seconds until the SAS access expires. - DurationInSeconds *int32 `json:"durationInSeconds,omitempty"` + DurationInSeconds *int32 + + // Used to specify the file format when making request for SAS on a VHDX file format snapshot + FileFormat *FileFormat // Set this flag to true to get additional SAS for VM guest state - GetSecureVMGuestStateSAS *bool `json:"getSecureVMGuestStateSAS,omitempty"` + GetSecureVMGuestStateSAS *bool } // HardwareProfile - Specifies the hardware settings for the virtual machine. type HardwareProfile struct { - // Specifies the size of the virtual machine. - // The enum data type is currently deprecated and will be removed by December 23rd 2023. - // Recommended way to get the list of available sizes is using these APIs: - // List all available virtual machine sizes in an availability set [https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes] - // List all available virtual machine sizes in a region [https://docs.microsoft.com/rest/api/compute/resourceskus/list] - // List all available virtual machine sizes for resizing [https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes]. - // For more information about virtual machine sizes, see Sizes for - // virtual machines [https://docs.microsoft.com/azure/virtual-machines/sizes]. - // The available VM sizes depend on region and availability set. - VMSize *VirtualMachineSizeTypes `json:"vmSize,omitempty"` - - // Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. - // This feature is still in preview mode and is not supported for VirtualMachineScaleSet. - // Please follow the instructions in VM Customization [https://aka.ms/vmcustomization] for more details. - VMSizeProperties *VMSizeProperties `json:"vmSizeProperties,omitempty"` + // Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd + // 2023. The recommended way to get the list of available sizes is using these + // APIs: List all available virtual machine sizes in an availability set [https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes], + // List all available virtual machine sizes in a + // region [https://docs.microsoft.com/rest/api/compute/resourceskus/list], List all available virtual machine sizes for resizing + // [https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes]. For more information about virtual machine + // sizes, see Sizes for virtual machines + // [https://docs.microsoft.com/azure/virtual-machines/sizes]. The available VM sizes depend on region and availability set. + VMSize *VirtualMachineSizeTypes + + // Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature + // is still in preview mode and is not supported for VirtualMachineScaleSet. Please + // follow the instructions in VM Customization [https://aka.ms/vmcustomization] for more details. + VMSizeProperties *VMSizeProperties } // Image - The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual @@ -3230,154 +2849,154 @@ type HardwareProfile struct { // exist. type Image struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The extended location of the Image. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Describes the properties of an Image. - Properties *ImageProperties `json:"properties,omitempty"` + Properties *ImageProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ImageDataDisk - Describes a data disk. type ImageDataDisk struct { // REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and // therefore must be unique for each data disk attached to a VM. - Lun *int32 `json:"lun,omitempty"` + Lun *int32 // The Virtual Hard Disk. - BlobURI *string `json:"blobUri,omitempty"` + BlobURI *string - // Specifies the caching requirements. - // Possible values are: - // None - // ReadOnly - // ReadWrite - // Default: None for Standard storage. ReadOnly for Premium storage - Caching *CachingTypes `json:"caching,omitempty"` + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard + // storage. ReadOnly for Premium storage. + Caching *CachingTypes // Specifies the customer managed disk encryption set resource id for the managed image disk. - DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` + DiskEncryptionSet *DiskEncryptionSetParameters // Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual - // machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // machine image. This value cannot be larger than 1023 GB. + DiskSizeGB *int32 // The managedDisk. - ManagedDisk *SubResource `json:"managedDisk,omitempty"` + ManagedDisk *SubResource // The snapshot. - Snapshot *SubResource `json:"snapshot,omitempty"` + Snapshot *SubResource // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot // be used with OS Disk. - StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountTypes +} + +// ImageDeprecationStatus - Describes image deprecation status properties on the image. +type ImageDeprecationStatus struct { + // Describes the alternative option specified by the Publisher for this image when this image is deprecated. + AlternativeOption *AlternativeOption + + // Describes the state of the image. + ImageState *ImageState + + // The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher. + ScheduledDeprecationTime *time.Time } // ImageDisk - Describes a image disk. type ImageDisk struct { // The Virtual Hard Disk. - BlobURI *string `json:"blobUri,omitempty"` + BlobURI *string - // Specifies the caching requirements. - // Possible values are: - // None - // ReadOnly - // ReadWrite - // Default: None for Standard storage. ReadOnly for Premium storage - Caching *CachingTypes `json:"caching,omitempty"` + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard + // storage. ReadOnly for Premium storage. + Caching *CachingTypes // Specifies the customer managed disk encryption set resource id for the managed image disk. - DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` + DiskEncryptionSet *DiskEncryptionSetParameters // Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual - // machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // machine image. This value cannot be larger than 1023 GB. + DiskSizeGB *int32 // The managedDisk. - ManagedDisk *SubResource `json:"managedDisk,omitempty"` + ManagedDisk *SubResource // The snapshot. - Snapshot *SubResource `json:"snapshot,omitempty"` + Snapshot *SubResource // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot // be used with OS Disk. - StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountTypes } // ImageDiskReference - The source image used for creating the disk. type ImageDiskReference struct { - // REQUIRED; A relative uri containing either a Platform Image Repository or user image reference. - ID *string `json:"id,omitempty"` + // A relative uri containing a community Azure Compute Gallery image reference. + CommunityGalleryImageID *string + + // A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference. + ID *string // If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image // to use. For OS disks, this field is null. - Lun *int32 `json:"lun,omitempty"` + Lun *int32 + + // A relative uri containing a direct shared Azure Compute Gallery image reference. + SharedGalleryImageID *string } // ImageListResult - The List Image operation response. type ImageListResult struct { // REQUIRED; The list of Images. - Value []*Image `json:"value,omitempty"` + Value []*Image // The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // ImageOSDisk - Describes an Operating System disk. type ImageOSDisk struct { - // REQUIRED; The OS State. - OSState *OperatingSystemStateTypes `json:"osState,omitempty"` + // REQUIRED; The OS State. For managed images, use Generalized. + OSState *OperatingSystemStateTypes // REQUIRED; This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom - // image. - // Possible values are: - // Windows - // Linux - OSType *OperatingSystemTypes `json:"osType,omitempty"` + // image. Possible values are: Windows, Linux. + OSType *OperatingSystemTypes // The Virtual Hard Disk. - BlobURI *string `json:"blobUri,omitempty"` + BlobURI *string - // Specifies the caching requirements. - // Possible values are: - // None - // ReadOnly - // ReadWrite - // Default: None for Standard storage. ReadOnly for Premium storage - Caching *CachingTypes `json:"caching,omitempty"` + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard + // storage. ReadOnly for Premium storage. + Caching *CachingTypes // Specifies the customer managed disk encryption set resource id for the managed image disk. - DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` + DiskEncryptionSet *DiskEncryptionSetParameters // Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual - // machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // machine image. This value cannot be larger than 1023 GB. + DiskSizeGB *int32 // The managedDisk. - ManagedDisk *SubResource `json:"managedDisk,omitempty"` + ManagedDisk *SubResource // The snapshot. - Snapshot *SubResource `json:"snapshot,omitempty"` + Snapshot *SubResource // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot // be used with OS Disk. - StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountTypes } // ImageProperties - Describes the properties of an Image. @@ -3386,28 +3005,28 @@ type ImageProperties struct { // source is a blob, then we need the user to specify the value, if the source is // managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the // source managed resource. - HyperVGeneration *HyperVGenerationTypes `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGenerationTypes // The source virtual machine from which Image is created. - SourceVirtualMachine *SubResource `json:"sourceVirtualMachine,omitempty"` + SourceVirtualMachine *SubResource // Specifies the storage settings for the virtual machine disks. - StorageProfile *ImageStorageProfile `json:"storageProfile,omitempty"` + StorageProfile *ImageStorageProfile // READ-ONLY; The provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // ImagePurchasePlan - Describes the gallery image definition purchase plan. This is used by marketplace images. type ImagePurchasePlan struct { // The plan ID. - Name *string `json:"name,omitempty"` + Name *string // The product ID. - Product *string `json:"product,omitempty"` + Product *string // The publisher ID. - Publisher *string `json:"publisher,omitempty"` + Publisher *string } // ImageReference - Specifies information about the image to use. You can specify information about platform images, marketplace @@ -3417,22 +3036,22 @@ type ImagePurchasePlan struct { type ImageReference struct { // Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET // call. - CommunityGalleryImageID *string `json:"communityGalleryImageId,omitempty"` + CommunityGalleryImageID *string // Resource Id - ID *string `json:"id,omitempty"` + ID *string // Specifies the offer of the platform image or marketplace image used to create the virtual machine. - Offer *string `json:"offer,omitempty"` + Offer *string // The image publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // The image SKU. - SKU *string `json:"sku,omitempty"` + SKU *string // Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call. - SharedGalleryImageID *string `json:"sharedGalleryImageId,omitempty"` + SharedGalleryImageID *string // Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats // are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. @@ -3442,232 +3061,218 @@ type ImageReference struct { // deployment, to use 'latest' version of gallery image, just set // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' // in the 'id' field without version input. - Version *string `json:"version,omitempty"` + Version *string // READ-ONLY; Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual // machine. This readonly field differs from 'version', only if the value specified in // 'version' field is 'latest'. - ExactVersion *string `json:"exactVersion,omitempty" azure:"ro"` + ExactVersion *string } // ImageStorageProfile - Describes a storage profile. type ImageStorageProfile struct { // Specifies the parameters that are used to add a data disk to a virtual machine. // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. - DataDisks []*ImageDataDisk `json:"dataDisks,omitempty"` + DataDisks []*ImageDataDisk // Specifies information about the operating system disk used by the virtual machine. // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. - OSDisk *ImageOSDisk `json:"osDisk,omitempty"` + OSDisk *ImageOSDisk // Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions // that provide Zone Redundant Storage (ZRS). - ZoneResilient *bool `json:"zoneResilient,omitempty"` + ZoneResilient *bool } // ImageUpdate - The source user image virtual hard disk. Only tags may be updated. type ImageUpdate struct { // Describes the properties of an Image. - Properties *ImageProperties `json:"properties,omitempty"` + Properties *ImageProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } -// ImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the ImagesClient.BeginCreateOrUpdate method. -type ImagesClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method. -type ImagesClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// ImagesClientBeginUpdateOptions contains the optional parameters for the ImagesClient.BeginUpdate method. -type ImagesClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method. -type ImagesClientGetOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.ListByResourceGroup method. -type ImagesClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// ImagesClientListOptions contains the optional parameters for the ImagesClient.List method. -type ImagesClientListOptions struct { - // placeholder for future optional parameters +// ImageVersionSecurityProfile - The security profile of a gallery image version +type ImageVersionSecurityProfile struct { + // Contains UEFI settings for the image version. + UefiSettings *GalleryImageVersionUefiSettings } // InnerError - Inner error details. type InnerError struct { // The internal error message or exception dump. - Errordetail *string `json:"errordetail,omitempty"` + Errordetail *string // The exception type. - Exceptiontype *string `json:"exceptiontype,omitempty"` + Exceptiontype *string } +// InstanceSKU - The role instance SKU. type InstanceSKU struct { // READ-ONLY; The sku name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The tier of the cloud service role instance. - Tier *string `json:"tier,omitempty" azure:"ro"` + Tier *string } // InstanceViewStatus - Instance view status. type InstanceViewStatus struct { // The status code. - Code *string `json:"code,omitempty"` + Code *string // The short localizable label for the status. - DisplayStatus *string `json:"displayStatus,omitempty"` + DisplayStatus *string // The level code. - Level *StatusLevelTypes `json:"level,omitempty"` + Level *StatusLevelTypes // The detailed status message, including for alerts and error messages. - Message *string `json:"message,omitempty"` + Message *string // The time of the status. - Time *time.Time `json:"time,omitempty"` + Time *time.Time } // InstanceViewStatusesSummary - Instance view statuses. type InstanceViewStatusesSummary struct { - // READ-ONLY - StatusesSummary []*StatusCodeCount `json:"statusesSummary,omitempty" azure:"ro"` + // READ-ONLY; The summary. + StatusesSummary []*StatusCodeCount } // KeyForDiskEncryptionSet - Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots type KeyForDiskEncryptionSet struct { // REQUIRED; Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled // value. - KeyURL *string `json:"keyUrl,omitempty"` + KeyURL *string // Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault // subscription is not the same as the Disk Encryption Set subscription. - SourceVault *SourceVault `json:"sourceVault,omitempty"` + SourceVault *SourceVault } // KeyVaultAndKeyReference - Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the // encryptionKey type KeyVaultAndKeyReference struct { // REQUIRED; Url pointing to a key or secret in KeyVault - KeyURL *string `json:"keyUrl,omitempty"` + KeyURL *string // REQUIRED; Resource id of the KeyVault containing the key or secret - SourceVault *SourceVault `json:"sourceVault,omitempty"` + SourceVault *SourceVault } // KeyVaultAndSecretReference - Key Vault Secret Url and vault id of the encryption key type KeyVaultAndSecretReference struct { // REQUIRED; Url pointing to a key or secret in KeyVault - SecretURL *string `json:"secretUrl,omitempty"` + SecretURL *string // REQUIRED; Resource id of the KeyVault containing the key or secret - SourceVault *SourceVault `json:"sourceVault,omitempty"` + SourceVault *SourceVault } // KeyVaultKeyReference - Describes a reference to Key Vault Key type KeyVaultKeyReference struct { // REQUIRED; The URL referencing a key encryption key in Key Vault. - KeyURL *string `json:"keyUrl,omitempty"` + KeyURL *string // REQUIRED; The relative URL of the Key Vault containing the key. - SourceVault *SubResource `json:"sourceVault,omitempty"` + SourceVault *SubResource } // KeyVaultSecretReference - Describes a reference to Key Vault Secret type KeyVaultSecretReference struct { // REQUIRED; The URL referencing a secret in a Key Vault. - SecretURL *string `json:"secretUrl,omitempty"` + SecretURL *string // REQUIRED; The relative URL of the Key Vault containing the secret. - SourceVault *SubResource `json:"sourceVault,omitempty"` + SourceVault *SubResource } // LastPatchInstallationSummary - Describes the properties of the last installed patch summary. type LastPatchInstallationSummary struct { // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them. - Error *APIError `json:"error,omitempty" azure:"ro"` + Error *APIError // READ-ONLY; The number of all available patches but excluded explicitly by a customer-specified exclusion list match. - ExcludedPatchCount *int32 `json:"excludedPatchCount,omitempty" azure:"ro"` + ExcludedPatchCount *int32 // READ-ONLY; The count of patches that failed installation. - FailedPatchCount *int32 `json:"failedPatchCount,omitempty" azure:"ro"` + FailedPatchCount *int32 // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension // logs. - InstallationActivityID *string `json:"installationActivityId,omitempty" azure:"ro"` + InstallationActivityID *string // READ-ONLY; The count of patches that successfully installed. - InstalledPatchCount *int32 `json:"installedPatchCount,omitempty" azure:"ro"` + InstalledPatchCount *int32 // READ-ONLY; The UTC timestamp when the operation began. - LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` + LastModifiedTime *time.Time // READ-ONLY; Describes whether the operation ran out of time before it completed all its intended actions - MaintenanceWindowExceeded *bool `json:"maintenanceWindowExceeded,omitempty" azure:"ro"` + MaintenanceWindowExceeded *bool // READ-ONLY; The number of all available patches but not going to be installed because it didn't match a classification or // inclusion list entry. - NotSelectedPatchCount *int32 `json:"notSelectedPatchCount,omitempty" azure:"ro"` + NotSelectedPatchCount *int32 // READ-ONLY; The number of all available patches expected to be installed over the course of the patch installation operation. - PendingPatchCount *int32 `json:"pendingPatchCount,omitempty" azure:"ro"` + PendingPatchCount *int32 // READ-ONLY; The UTC timestamp when the operation began. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes. // At that point it will become "Unknown", "Failed", "Succeeded", or // "CompletedWithWarnings." - Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"` + Status *PatchOperationStatus +} + +// LatestGalleryImageVersion - The gallery image version with latest version in a particular region. +type LatestGalleryImageVersion struct { + // The name of the latest version in the region. + LatestVersionName *string + + // region of the Gallery Image Version. + Location *string } -// LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine. -// For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros]. +// LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux +// distributions, see Linux on Azure-Endorsed Distributions +// [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros]. type LinuxConfiguration struct { // Specifies whether password authentication should be disabled. - DisablePasswordAuthentication *bool `json:"disablePasswordAuthentication,omitempty"` + DisablePasswordAuthentication *bool + + // Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false. + EnableVMAgentPlatformUpdates *bool // [Preview Feature] Specifies settings related to VM Guest Patching on Linux. - PatchSettings *LinuxPatchSettings `json:"patchSettings,omitempty"` + PatchSettings *LinuxPatchSettings - // Indicates whether virtual machine agent should be provisioned on the virtual machine. - // When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM - // Agent is installed on the VM so that extensions can be added to the VM later. - ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"` + // Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified + // in the request body, default behavior is to set it to true. This will ensure + // that VM Agent is installed on the VM so that extensions can be added to the VM later. + ProvisionVMAgent *bool // Specifies the ssh key configuration for a Linux OS. - SSH *SSHConfiguration `json:"ssh,omitempty"` + SSH *SSHConfiguration } // LinuxParameters - Input for InstallPatches on a Linux VM, as directly received by the API type LinuxParameters struct { // The update classifications to select when installing patches for Linux. - ClassificationsToInclude []*VMGuestPatchClassificationLinux `json:"classificationsToInclude,omitempty"` + ClassificationsToInclude []*VMGuestPatchClassificationLinux // This is used as a maintenance run identifier for Auto VM Guest Patching in Linux. - MaintenanceRunID *string `json:"maintenanceRunId,omitempty"` + MaintenanceRunID *string // packages to exclude in the patch operation. Format: packageName_packageVersion - PackageNameMasksToExclude []*string `json:"packageNameMasksToExclude,omitempty"` + PackageNameMasksToExclude []*string // packages to include in the patch operation. Format: packageName_packageVersion - PackageNameMasksToInclude []*string `json:"packageNameMasksToInclude,omitempty"` + PackageNameMasksToInclude []*string } // LinuxPatchSettings - Specifies settings related to VM Guest Patching on Linux. @@ -3676,10 +3281,10 @@ type LinuxPatchSettings struct { // Possible values are: // ImageDefault - You control the timing of patch assessments on a virtual machine. // AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. - AssessmentMode *LinuxPatchAssessmentMode `json:"assessmentMode,omitempty"` + AssessmentMode *LinuxPatchAssessmentMode // Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux. - AutomaticByPlatformSettings *LinuxVMGuestPatchAutomaticByPlatformSettings `json:"automaticByPlatformSettings,omitempty"` + AutomaticByPlatformSettings *LinuxVMGuestPatchAutomaticByPlatformSettings // Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale // set with OrchestrationMode as Flexible. @@ -3687,316 +3292,313 @@ type LinuxPatchSettings struct { // ImageDefault - The virtual machine's default patching configuration is used. // AutomaticByPlatform - The virtual machine will be automatically updated by the platform. The property provisionVMAgent // must be true - PatchMode *LinuxVMGuestPatchMode `json:"patchMode,omitempty"` + PatchMode *LinuxVMGuestPatchMode } // LinuxVMGuestPatchAutomaticByPlatformSettings - Specifies additional settings to be applied when patch mode AutomaticByPlatform // is selected in Linux patch settings. type LinuxVMGuestPatchAutomaticByPlatformSettings struct { + // Enables customer to schedule patching without accidental upgrades + BypassPlatformSafetyChecksOnUserSchedule *bool + // Specifies the reboot setting for all AutomaticByPlatform patch installation operations. - RebootSetting *LinuxVMGuestPatchAutomaticByPlatformRebootSetting `json:"rebootSetting,omitempty"` + RebootSetting *LinuxVMGuestPatchAutomaticByPlatformRebootSetting } // ListUsagesResult - The List Usages operation response. type ListUsagesResult struct { // REQUIRED; The list of compute resource usages. - Value []*Usage `json:"value,omitempty"` + Value []*Usage // The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page // of compute resource usage information. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // LoadBalancerConfiguration - Describes the load balancer configuration. type LoadBalancerConfiguration struct { // REQUIRED; The name of the Load balancer - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Properties of the load balancer configuration. - Properties *LoadBalancerConfigurationProperties `json:"properties,omitempty"` + Properties *LoadBalancerConfigurationProperties // Resource Id - ID *string `json:"id,omitempty"` + ID *string } +// LoadBalancerConfigurationProperties - Describes the properties of the load balancer configuration. type LoadBalancerConfigurationProperties struct { // REQUIRED; Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each // load balancer configuration must have exactly one frontend IP configuration. - FrontendIPConfigurations []*LoadBalancerFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + FrontendIPConfigurations []*LoadBalancerFrontendIPConfiguration } +// LoadBalancerFrontendIPConfiguration - Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP +// address is supported. Each load balancer configuration must have exactly one frontend IP configuration. type LoadBalancerFrontendIPConfiguration struct { // REQUIRED; The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. // This name can be used to access the resource. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Properties of load balancer frontend ip configuration. - Properties *LoadBalancerFrontendIPConfigurationProperties `json:"properties,omitempty"` + Properties *LoadBalancerFrontendIPConfigurationProperties } // LoadBalancerFrontendIPConfigurationProperties - Describes a cloud service IP Configuration type LoadBalancerFrontendIPConfigurationProperties struct { // The virtual network private IP address of the IP configuration. - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddress *string // The reference to the public ip address resource. - PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + PublicIPAddress *SubResource // The reference to the virtual network subnet resource. - Subnet *SubResource `json:"subnet,omitempty"` -} - -// LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval -// method. -type LogAnalyticsClientBeginExportRequestRateByIntervalOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests -// method. -type LogAnalyticsClientBeginExportThrottledRequestsOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string + Subnet *SubResource } // LogAnalyticsInputBase - Api input base class for LogAnalytics Api. type LogAnalyticsInputBase struct { // REQUIRED; SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. - BlobContainerSasURI *string `json:"blobContainerSasUri,omitempty"` + BlobContainerSasURI *string // REQUIRED; From time of the query - FromTime *time.Time `json:"fromTime,omitempty"` + FromTime *time.Time // REQUIRED; To time of the query - ToTime *time.Time `json:"toTime,omitempty"` + ToTime *time.Time // Group query result by Client Application ID. - GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + GroupByClientApplicationID *bool // Group query result by Operation Name. - GroupByOperationName *bool `json:"groupByOperationName,omitempty"` + GroupByOperationName *bool // Group query result by Resource Name. - GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + GroupByResourceName *bool // Group query result by Throttle Policy applied. - GroupByThrottlePolicy *bool `json:"groupByThrottlePolicy,omitempty"` + GroupByThrottlePolicy *bool // Group query result by User Agent. - GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` + GroupByUserAgent *bool } // LogAnalyticsOperationResult - LogAnalytics operation status response type LogAnalyticsOperationResult struct { // READ-ONLY; LogAnalyticsOutput - Properties *LogAnalyticsOutput `json:"properties,omitempty" azure:"ro"` + Properties *LogAnalyticsOutput } // LogAnalyticsOutput - LogAnalytics output properties type LogAnalyticsOutput struct { // READ-ONLY; Output file Uri path to blob container. - Output *string `json:"output,omitempty" azure:"ro"` + Output *string } // MaintenanceRedeployStatus - Maintenance Operation Status. type MaintenanceRedeployStatus struct { // True, if customer is allowed to perform Maintenance. - IsCustomerInitiatedMaintenanceAllowed *bool `json:"isCustomerInitiatedMaintenanceAllowed,omitempty"` + IsCustomerInitiatedMaintenanceAllowed *bool // Message returned for the last Maintenance Operation. - LastOperationMessage *string `json:"lastOperationMessage,omitempty"` + LastOperationMessage *string // The Last Maintenance Operation Result Code. - LastOperationResultCode *MaintenanceOperationResultCodeTypes `json:"lastOperationResultCode,omitempty"` + LastOperationResultCode *MaintenanceOperationResultCodeTypes // End Time for the Maintenance Window. - MaintenanceWindowEndTime *time.Time `json:"maintenanceWindowEndTime,omitempty"` + MaintenanceWindowEndTime *time.Time // Start Time for the Maintenance Window. - MaintenanceWindowStartTime *time.Time `json:"maintenanceWindowStartTime,omitempty"` + MaintenanceWindowStartTime *time.Time // End Time for the Pre Maintenance Window. - PreMaintenanceWindowEndTime *time.Time `json:"preMaintenanceWindowEndTime,omitempty"` + PreMaintenanceWindowEndTime *time.Time // Start Time for the Pre Maintenance Window. - PreMaintenanceWindowStartTime *time.Time `json:"preMaintenanceWindowStartTime,omitempty"` + PreMaintenanceWindowStartTime *time.Time } // ManagedArtifact - The managed artifact. type ManagedArtifact struct { // REQUIRED; The managed artifact id. - ID *string `json:"id,omitempty"` + ID *string } // ManagedDiskParameters - The parameters of a managed disk. type ManagedDiskParameters struct { // Specifies the customer managed disk encryption set resource id for the managed disk. - DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` + DiskEncryptionSet *DiskEncryptionSetParameters // Resource Id - ID *string `json:"id,omitempty"` + ID *string // Specifies the security profile for the managed disk. - SecurityProfile *VMDiskSecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *VMDiskSecurityProfile // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot // be used with OS Disk. - StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountTypes } // NetworkInterfaceReference - Describes a network interface reference. type NetworkInterfaceReference struct { // Resource Id - ID *string `json:"id,omitempty"` + ID *string // Describes a network interface reference properties. - Properties *NetworkInterfaceReferenceProperties `json:"properties,omitempty"` + Properties *NetworkInterfaceReferenceProperties } // NetworkInterfaceReferenceProperties - Describes a network interface reference properties. type NetworkInterfaceReferenceProperties struct { // Specify what happens to the network interface when the VM is deleted - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DeleteOption *DeleteOptions // Specifies the primary network interface in case the virtual machine has more than 1 network interface. - Primary *bool `json:"primary,omitempty"` + Primary *bool } // NetworkProfile - Specifies the network interfaces or the networking configuration of the virtual machine. type NetworkProfile struct { // specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations - NetworkAPIVersion *NetworkAPIVersion `json:"networkApiVersion,omitempty"` + NetworkAPIVersion *NetworkAPIVersion // Specifies the networking configurations that will be used to create the virtual machine networking resources. - NetworkInterfaceConfigurations []*VirtualMachineNetworkInterfaceConfiguration `json:"networkInterfaceConfigurations,omitempty"` + NetworkInterfaceConfigurations []*VirtualMachineNetworkInterfaceConfiguration // Specifies the list of resource Ids for the network interfaces associated with the virtual machine. - NetworkInterfaces []*NetworkInterfaceReference `json:"networkInterfaces,omitempty"` + NetworkInterfaces []*NetworkInterfaceReference } -// OSDisk - Specifies information about the operating system disk used by the virtual machine. -// For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. +// OSDisk - Specifies information about the operating system disk used by the virtual machine. For more information about +// disks, see About disks and VHDs for Azure virtual machines +// [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. type OSDisk struct { - // REQUIRED; Specifies how the virtual machine should be created. - // Possible values are: - // Attach \u2013 This value is used when you are using a specialized disk to create the virtual machine. - // FromImage \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform - // image, you also use the imageReference element described above. If you are - // using a marketplace image, you also use the plan element previously described. - CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"` - - // Specifies the caching requirements. - // Possible values are: - // None - // ReadOnly - // ReadWrite - // Default: None for Standard storage. ReadOnly for Premium storage. - Caching *CachingTypes `json:"caching,omitempty"` - - // Specifies whether OS Disk should be deleted or detached upon VM deletion. - // Possible values: - // Delete If this value is used, the OS disk is deleted when VM is deleted. - // Detach If this value is used, the os disk is retained after VM is deleted. - // The default value is set to detach. For an ephemeral OS Disk, the default value is set to Delete. User cannot change the - // delete option for ephemeral OS Disk. - DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"` + // REQUIRED; Specifies how the virtual machine disk should be created. Possible values are Attach: This value is used when + // you are using a specialized disk to create the virtual machine. FromImage: This value is + // used when you are using an image to create the virtual machine. If you are using a platform image, you should also use + // the imageReference element described above. If you are using a marketplace image, + // you should also use the plan element previously described. + CreateOption *DiskCreateOptionTypes + + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for + // Standard storage. ReadOnly for Premium storage. + Caching *CachingTypes + + // Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value is + // used, the OS disk is deleted when VM is deleted. Detach. If this value is used, + // the os disk is retained after VM is deleted. The default value is set to Detach. For an ephemeral OS Disk, the default + // value is set to Delete. The user cannot change the delete option for an ephemeral + // OS Disk. + DeleteOption *DiskDeleteOptionTypes // Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. - DiffDiskSettings *DiffDiskSettings `json:"diffDiskSettings,omitempty"` + DiffDiskSettings *DiffDiskSettings // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a - // virtual machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 + // for the disk and the value cannot be larger than 1023. + DiskSizeGB *int32 - // Specifies the encryption settings for the OS Disk. - // Minimum api-version: 2015-06-15 - EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"` + // Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15. + EncryptionSettings *DiskEncryptionSettings // The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. // If SourceImage is provided, the destination virtual hard drive must not // exist. - Image *VirtualHardDisk `json:"image,omitempty"` + Image *VirtualHardDisk // The managed disk parameters. - ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` + ManagedDisk *ManagedDiskParameters // The disk name. - Name *string `json:"name,omitempty"` + Name *string // This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or - // a specialized VHD. - // Possible values are: - // Windows - // Linux - OSType *OperatingSystemTypes `json:"osType,omitempty"` + // a specialized VHD. Possible values are: Windows, Linux. + OSType *OperatingSystemTypes // The virtual hard disk. - Vhd *VirtualHardDisk `json:"vhd,omitempty"` + Vhd *VirtualHardDisk // Specifies whether writeAccelerator should be enabled or disabled on the disk. - WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` + WriteAcceleratorEnabled *bool } // OSDiskImage - Contains the os disk image information. type OSDiskImage struct { // REQUIRED; The operating system of the osDiskImage. - OperatingSystem *OperatingSystemTypes `json:"operatingSystem,omitempty"` + OperatingSystem *OperatingSystemTypes } // OSDiskImageEncryption - Contains encryption settings for an OS disk image. type OSDiskImageEncryption struct { // A relative URI containing the resource ID of the disk encryption set. - DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"` + DiskEncryptionSetID *string // This property specifies the security profile of an OS disk image. - SecurityProfile *OSDiskImageSecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *OSDiskImageSecurityProfile } // OSDiskImageSecurityProfile - Contains security profile for an OS disk image. type OSDiskImageSecurityProfile struct { // confidential VM encryption types - ConfidentialVMEncryptionType *ConfidentialVMEncryptionType `json:"confidentialVMEncryptionType,omitempty"` + ConfidentialVMEncryptionType *ConfidentialVMEncryptionType // secure VM disk encryption set id - SecureVMDiskEncryptionSetID *string `json:"secureVMDiskEncryptionSetId,omitempty"` + SecureVMDiskEncryptionSetID *string } // OSFamily - Describes a cloud service OS family. type OSFamily struct { // OS family properties. - Properties *OSFamilyProperties `json:"properties,omitempty"` + Properties *OSFamilyProperties // READ-ONLY; Resource Id. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource location. - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } +// OSFamilyListResult - The list operation result. type OSFamilyListResult struct { - // REQUIRED - Value []*OSFamily `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // REQUIRED; The list of resources. + Value []*OSFamily + + // The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null + // to fetch all the resources. + NextLink *string } // OSFamilyProperties - OS family properties. type OSFamilyProperties struct { // READ-ONLY; The OS family label. - Label *string `json:"label,omitempty" azure:"ro"` + Label *string // READ-ONLY; The OS family name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; List of OS versions belonging to this family. - Versions []*OSVersionPropertiesBase `json:"versions,omitempty" azure:"ro"` + Versions []*OSVersionPropertiesBase +} + +type OSImageNotificationProfile struct { + // Specifies whether the OS Image Scheduled event is enabled or disabled. + Enable *bool + + // Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image + // Scheduled Event before the event is auto approved (timed out). The configuration + // is specified in ISO 8601 format, and the value must be 15 minutes (PT15M) + NotBeforeTimeout *string } // OSProfile - Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once @@ -4017,7 +3619,7 @@ type OSProfile struct { // For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp] // For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension // [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection] - AdminPassword *string `json:"adminPassword,omitempty"` + AdminPassword *string // Specifies the name of the administrator account. // This property cannot be updated after the VM is created. @@ -4028,181 +3630,208 @@ type OSProfile struct { // Minimum-length (Linux): 1 character // Max-length (Linux): 64 characters // Max-length (Windows): 20 characters. - AdminUsername *string `json:"adminUsername,omitempty"` - - // Specifies whether extension operations should be allowed on the virtual machine. - // This may only be set to False when no extensions are present on the virtual machine. - AllowExtensionOperations *bool `json:"allowExtensionOperations,omitempty"` + AdminUsername *string - // Specifies the host OS name of the virtual machine. - // This name cannot be updated after the VM is created. - // Max-length (Windows): 15 characters - // Max-length (Linux): 64 characters. - // For naming conventions and restrictions see Azure infrastructure services implementation guidelines [https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules]. - ComputerName *string `json:"computerName,omitempty"` + // Specifies whether extension operations should be allowed on the virtual machine. This may only be set to False when no + // extensions are present on the virtual machine. + AllowExtensionOperations *bool + + // Specifies the host OS name of the virtual machine. This name cannot be updated after the VM is created. Max-length (Windows): + // 15 characters. Max-length (Linux): 64 characters. For naming conventions + // and restrictions see Azure infrastructure services implementation guidelines [https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules]. + ComputerName *string // Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved // as a file on the Virtual Machine. The maximum length of the binary array is - // 65535 bytes. - // Note: Do not pass any secrets or passwords in customData property - // This property cannot be updated after the VM is created. - // customData is passed to the VM to be saved as a file, for more information see Custom Data on Azure VMs [https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/] - // For using cloud-init for your Linux VM, see Using cloud-init to customize a Linux VM during creation [https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init] - CustomData *string `json:"customData,omitempty"` - - // Specifies the Linux operating system settings on the virtual machine. - // For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros]. - LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` + // 65535 bytes. Note: Do not pass any secrets or passwords in customData property. This property cannot be updated after the + // VM is created. The property 'customData' is passed to the VM to be saved as a + // file, for more information see Custom Data on Azure VMs [https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/]. + // For using cloud-init for your Linux VM, see Using cloud-init to + // customize a Linux VM during creation [https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init]. + CustomData *string + + // Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see + // Linux on Azure-Endorsed Distributions + // [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros]. + LinuxConfiguration *LinuxConfiguration // Optional property which must either be set to True or omitted. - RequireGuestProvisionSignal *bool `json:"requireGuestProvisionSignal,omitempty"` + RequireGuestProvisionSignal *bool // Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine // it is recommended to use the Azure Key Vault virtual machine extension for // Linux [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure Key Vault virtual machine // extension for Windows // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows]. - Secrets []*VaultSecretGroup `json:"secrets,omitempty"` + Secrets []*VaultSecretGroup // Specifies Windows operating system settings on the virtual machine. - WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` + WindowsConfiguration *WindowsConfiguration +} + +// OSProfileProvisioningData - Additional parameters for Reimaging Non-Ephemeral Virtual Machine. +type OSProfileProvisioningData struct { + // Specifies the password of the administrator account. + // Minimum-length (Windows): 8 characters + // Minimum-length (Linux): 6 characters + // Max-length (Windows): 123 characters + // Max-length (Linux): 72 characters + // Complexity requirements: 3 out of 4 conditions below need to be fulfilled + // Has lower characters + // Has upper characters + // Has a digit + // Has a special character (Regex match [\W_]) + // Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", + // "Password22", "iloveyou!" + // For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp] + // For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension + // [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection] + AdminPassword *string + + // Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved + // as a file on the Virtual Machine. The maximum length of the binary array is + // 65535 bytes. Note: Do not pass any secrets or passwords in customData property. This property cannot be updated after the + // VM is created. The property customData is passed to the VM to be saved as a + // file, for more information see Custom Data on Azure VMs [https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/]. + // If using cloud-init for your Linux VM, see Using cloud-init to + // customize a Linux VM during creation [https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init]. + CustomData *string } // OSVersion - Describes a cloud service OS version. type OSVersion struct { // OS version properties. - Properties *OSVersionProperties `json:"properties,omitempty"` + Properties *OSVersionProperties // READ-ONLY; Resource Id. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource location. - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } +// OSVersionListResult - The list operation result. type OSVersionListResult struct { - // REQUIRED - Value []*OSVersion `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // REQUIRED; The list of resources. + Value []*OSVersion + + // The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null + // to fetch all the resources. + NextLink *string } // OSVersionProperties - OS version properties. type OSVersionProperties struct { // READ-ONLY; The family of this OS version. - Family *string `json:"family,omitempty" azure:"ro"` + Family *string // READ-ONLY; The family label of this OS version. - FamilyLabel *string `json:"familyLabel,omitempty" azure:"ro"` + FamilyLabel *string // READ-ONLY; Specifies whether this OS version is active. - IsActive *bool `json:"isActive,omitempty" azure:"ro"` + IsActive *bool // READ-ONLY; Specifies whether this is the default OS version for its family. - IsDefault *bool `json:"isDefault,omitempty" azure:"ro"` + IsDefault *bool // READ-ONLY; The OS version label. - Label *string `json:"label,omitempty" azure:"ro"` + Label *string // READ-ONLY; The OS version. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // OSVersionPropertiesBase - Configuration view of an OS version. type OSVersionPropertiesBase struct { // READ-ONLY; Specifies whether this OS version is active. - IsActive *bool `json:"isActive,omitempty" azure:"ro"` + IsActive *bool // READ-ONLY; Specifies whether this is the default OS version for its family. - IsDefault *bool `json:"isDefault,omitempty" azure:"ro"` + IsDefault *bool // READ-ONLY; The OS version label. - Label *string `json:"label,omitempty" azure:"ro"` + Label *string // READ-ONLY; The OS version. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // OperationListResult - The List Compute Operation operation response. type OperationListResult struct { // READ-ONLY; The list of compute operations - Value []*OperationValue `json:"value,omitempty" azure:"ro"` + Value []*OperationValue } // OperationValue - Describes the properties of a Compute Operation value. type OperationValue struct { // Describes the properties of a Compute Operation Value Display. - Display *OperationValueDisplay `json:"display,omitempty"` + Display *OperationValueDisplay // READ-ONLY; The name of the compute operation. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The origin of the compute operation. - Origin *string `json:"origin,omitempty" azure:"ro"` + Origin *string } // OperationValueDisplay - Describes the properties of a Compute Operation Value Display. type OperationValueDisplay struct { // READ-ONLY; The description of the operation. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the compute operation. - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; The resource provider for the operation. - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; The display name of the resource the operation applies to. - Resource *string `json:"resource,omitempty" azure:"ro"` -} - -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -type OperationsClientListOptions struct { - // placeholder for future optional parameters + Resource *string } // OrchestrationServiceStateInput - The input for OrchestrationServiceState type OrchestrationServiceStateInput struct { // REQUIRED; The action to be performed. - Action *OrchestrationServiceStateAction `json:"action,omitempty"` + Action *OrchestrationServiceStateAction // REQUIRED; The name of the service. - ServiceName *OrchestrationServiceNames `json:"serviceName,omitempty"` + ServiceName *OrchestrationServiceNames } // OrchestrationServiceSummary - Summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { // READ-ONLY; The name of the service. - ServiceName *OrchestrationServiceNames `json:"serviceName,omitempty" azure:"ro"` + ServiceName *OrchestrationServiceNames // READ-ONLY; The current state of the service. - ServiceState *OrchestrationServiceState `json:"serviceState,omitempty" azure:"ro"` + ServiceState *OrchestrationServiceState } // PatchInstallationDetail - Information about a specific patch that was encountered during an installation action. type PatchInstallationDetail struct { // READ-ONLY; The classification(s) of the patch as provided by the patch publisher. - Classifications []*string `json:"classifications,omitempty" azure:"ro"` + Classifications []*string // READ-ONLY; The state of the patch after the installation operation completed. - InstallationState *PatchInstallationState `json:"installationState,omitempty" azure:"ro"` + InstallationState *PatchInstallationState // READ-ONLY; The KBID of the patch. Only applies to Windows patches. - KbID *string `json:"kbId,omitempty" azure:"ro"` + KbID *string // READ-ONLY; The friendly name of the patch. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; A unique identifier for the patch. - PatchID *string `json:"patchId,omitempty" azure:"ro"` + PatchID *string // READ-ONLY; The version string of the package. It may conform to Semantic Versioning. Only applies to Linux. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // PatchSettings - Specifies settings related to VM Guest Patching on Windows. @@ -4211,14 +3840,14 @@ type PatchSettings struct { // Possible values are: // ImageDefault - You control the timing of patch assessments on a virtual machine. // AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. - AssessmentMode *WindowsPatchAssessmentMode `json:"assessmentMode,omitempty"` + AssessmentMode *WindowsPatchAssessmentMode // Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows. - AutomaticByPlatformSettings *WindowsVMGuestPatchAutomaticByPlatformSettings `json:"automaticByPlatformSettings,omitempty"` + AutomaticByPlatformSettings *WindowsVMGuestPatchAutomaticByPlatformSettings // Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must // be set to true and 'patchMode' must be set to 'AutomaticByPlatform'. - EnableHotpatching *bool `json:"enableHotpatching,omitempty"` + EnableHotpatching *bool // Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale // set with OrchestrationMode as Flexible. @@ -4230,43 +3859,43 @@ type PatchSettings struct { // must be true. // AutomaticByPlatform - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and // WindowsConfiguration.enableAutomaticUpdates must be true - PatchMode *WindowsVMGuestPatchMode `json:"patchMode,omitempty"` + PatchMode *WindowsVMGuestPatchMode } -// PirCommunityGalleryResource - Base information about the community gallery resource in pir. +// PirCommunityGalleryResource - Base information about the community gallery resource in azure compute gallery. type PirCommunityGalleryResource struct { // The identifier information of community gallery. - Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"` + Identifier *CommunityGalleryIdentifier // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PirResource - The Resource model definition. type PirResource struct { // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // PirSharedGalleryResource - Base information about the shared gallery resource in pir. type PirSharedGalleryResource struct { // The identifier information of shared gallery. - Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"` + Identifier *SharedGalleryIdentifier // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // Plan - Specifies information about the marketplace image used to create the virtual machine. This element is only used @@ -4276,695 +3905,689 @@ type PirSharedGalleryResource struct { // information and then click Save. type Plan struct { // The plan ID. - Name *string `json:"name,omitempty"` + Name *string // Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. - Product *string `json:"product,omitempty"` + Product *string // The promotion code. - PromotionCode *string `json:"promotionCode,omitempty"` + PromotionCode *string // The publisher ID. - Publisher *string `json:"publisher,omitempty"` + Publisher *string +} + +// PolicyViolation - A policy violation reported against a gallery artifact. +type PolicyViolation struct { + // Describes the nature of the policy violation. + Category *PolicyViolationCategory + + // Describes specific details about why this policy violation was reported. + Details *string +} + +// PriorityMixPolicy - Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration +// mode. With this property the customer is able to specify the base number of regular +// priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this +// base target has been reached. +type PriorityMixPolicy struct { + // The base number of regular priority VMs that will be created in this scale set as it scales out. + BaseRegularPriorityCount *int32 + + // The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular + // priority. + RegularPriorityPercentageAboveBase *int32 } // PrivateEndpoint - The Private Endpoint resource. type PrivateEndpoint struct { // READ-ONLY; The ARM identifier for Private Endpoint - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // PrivateEndpointConnection - The Private Endpoint Connection resource. type PrivateEndpointConnection struct { // Resource properties. - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Properties *PrivateEndpointConnectionProperties // READ-ONLY; private endpoint connection Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; private endpoint connection name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; private endpoint connection type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateEndpointConnectionListResult - A list of private link resources type PrivateEndpointConnectionListResult struct { // The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Array of private endpoint connections - Value []*PrivateEndpointConnection `json:"value,omitempty"` + Value []*PrivateEndpointConnection } // PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties. type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between DiskAccess and Virtual Network. - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // READ-ONLY; The resource of private end point. - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty" azure:"ro"` + PrivateEndpoint *PrivateEndpoint // READ-ONLY; The provisioning state of the private endpoint connection resource. - ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PrivateEndpointConnectionProvisioningState } // PrivateLinkResource - A private link resource type PrivateLinkResource struct { // Resource properties. - Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + Properties *PrivateLinkResourceProperties // READ-ONLY; private link resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; private link resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; private link resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkResourceListResult - A list of private link resources type PrivateLinkResourceListResult struct { // Array of private link resources - Value []*PrivateLinkResource `json:"value,omitempty"` + Value []*PrivateLinkResource } // PrivateLinkResourceProperties - Properties of a private link resource. type PrivateLinkResourceProperties struct { // The private link resource DNS zone name. - RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` + RequiredZoneNames []*string // READ-ONLY; The private link resource group id. - GroupID *string `json:"groupId,omitempty" azure:"ro"` + GroupID *string // READ-ONLY; The private link resource required member names. - RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` + RequiredMembers []*string } // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer // and provider. type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. - ActionsRequired *string `json:"actionsRequired,omitempty"` + ActionsRequired *string // The reason for approval/rejection of the connection. - Description *string `json:"description,omitempty"` + Description *string // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` + Status *PrivateEndpointServiceConnectionStatus } // PropertyUpdatesInProgress - Properties of the disk for which update is pending. type PropertyUpdatesInProgress struct { // The target performance tier of the disk if a tier change operation is in progress. - TargetTier *string `json:"targetTier,omitempty"` + TargetTier *string } // ProximityPlacementGroup - Specifies information about the proximity placement group. type ProximityPlacementGroup struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a Proximity Placement Group. - Properties *ProximityPlacementGroupProperties `json:"properties,omitempty"` + Properties *ProximityPlacementGroupProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the // proximity placement group can be created. - Zones []*string `json:"zones,omitempty"` + Zones []*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ProximityPlacementGroupListResult - The List Proximity Placement Group operation response. type ProximityPlacementGroupListResult struct { // REQUIRED; The list of proximity placement groups - Value []*ProximityPlacementGroup `json:"value,omitempty"` + Value []*ProximityPlacementGroup // The URI to fetch the next page of proximity placement groups. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // ProximityPlacementGroupProperties - Describes the properties of a Proximity Placement Group. type ProximityPlacementGroupProperties struct { // Describes colocation status of the Proximity Placement Group. - ColocationStatus *InstanceViewStatus `json:"colocationStatus,omitempty"` + ColocationStatus *InstanceViewStatus // Specifies the user intent of the proximity placement group. - Intent *ProximityPlacementGroupPropertiesIntent `json:"intent,omitempty"` + Intent *ProximityPlacementGroupPropertiesIntent - // Specifies the type of the proximity placement group. - // Possible values are: - // Standard : Co-locate resources within an Azure region or Availability Zone. - // Ultra : For future use. - ProximityPlacementGroupType *ProximityPlacementGroupType `json:"proximityPlacementGroupType,omitempty"` + // Specifies the type of the proximity placement group. Possible values are: Standard : Co-locate resources within an Azure + // region or Availability Zone. Ultra : For future use. + ProximityPlacementGroupType *ProximityPlacementGroupType // READ-ONLY; A list of references to all availability sets in the proximity placement group. - AvailabilitySets []*SubResourceWithColocationStatus `json:"availabilitySets,omitempty" azure:"ro"` + AvailabilitySets []*SubResourceWithColocationStatus // READ-ONLY; A list of references to all virtual machine scale sets in the proximity placement group. - VirtualMachineScaleSets []*SubResourceWithColocationStatus `json:"virtualMachineScaleSets,omitempty" azure:"ro"` + VirtualMachineScaleSets []*SubResourceWithColocationStatus // READ-ONLY; A list of references to all virtual machines in the proximity placement group. - VirtualMachines []*SubResourceWithColocationStatus `json:"virtualMachines,omitempty" azure:"ro"` + VirtualMachines []*SubResourceWithColocationStatus } // ProximityPlacementGroupPropertiesIntent - Specifies the user intent of the proximity placement group. type ProximityPlacementGroupPropertiesIntent struct { // Specifies possible sizes of virtual machines that can be created in the proximity placement group. - VMSizes []*string `json:"vmSizes,omitempty"` + VMSizes []*string } // ProximityPlacementGroupUpdate - Specifies information about the proximity placement group. type ProximityPlacementGroupUpdate struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// ProximityPlacementGroupsClientCreateOrUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.CreateOrUpdate -// method. -type ProximityPlacementGroupsClientCreateOrUpdateOptions struct { - // placeholder for future optional parameters -} - -// ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete -// method. -type ProximityPlacementGroupsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get method. -type ProximityPlacementGroupsClientGetOptions struct { - // includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group. - IncludeColocationStatus *string + Tags map[string]*string } -// ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListByResourceGroup -// method. -type ProximityPlacementGroupsClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} +// ProxyAgentSettings - Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2024-03-01. +type ProxyAgentSettings struct { + // Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set. + Enabled *bool -// ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListBySubscription -// method. -type ProximityPlacementGroupsClientListBySubscriptionOptions struct { - // placeholder for future optional parameters -} + // Increase the value of this property allows user to reset the key used for securing communication channel between guest + // and host. + KeyIncarnationID *int32 -// ProximityPlacementGroupsClientUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.Update -// method. -type ProximityPlacementGroupsClientUpdateOptions struct { - // placeholder for future optional parameters + // Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor + // but not enforce access control over requests to host endpoints in Audit mode, + // while in Enforce mode it will enforce access control. The default value is Enforce mode. + Mode *Mode } // ProxyOnlyResource - The ProxyOnly Resource model definition. type ProxyOnlyResource struct { // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ProxyResource - The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a // location type ProxyResource struct { // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PublicIPAddressSKU - Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. type PublicIPAddressSKU struct { // Specify public IP sku name - Name *PublicIPAddressSKUName `json:"name,omitempty"` + Name *PublicIPAddressSKUName // Specify public IP sku tier - Tier *PublicIPAddressSKUTier `json:"tier,omitempty"` + Tier *PublicIPAddressSKUTier } // PurchasePlan - Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. type PurchasePlan struct { // REQUIRED; The plan ID. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference // element. - Product *string `json:"product,omitempty"` + Product *string // REQUIRED; The publisher ID. - Publisher *string `json:"publisher,omitempty"` + Publisher *string } // RecommendedMachineConfiguration - The properties describe the recommended machine configuration for this Image Definition. // These properties are updatable. type RecommendedMachineConfiguration struct { // Describes the resource range. - Memory *ResourceRange `json:"memory,omitempty"` + Memory *ResourceRange // Describes the resource range. - VCPUs *ResourceRange `json:"vCPUs,omitempty"` + VCPUs *ResourceRange } // RecoveryWalkResponse - Response after calling a manual recovery walk type RecoveryWalkResponse struct { // READ-ONLY; The next update domain that needs to be walked. Null means walk spanning all update domains has been completed - NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty" azure:"ro"` + NextPlatformUpdateDomain *int32 // READ-ONLY; Whether the recovery walk was performed - WalkPerformed *bool `json:"walkPerformed,omitempty" azure:"ro"` + WalkPerformed *bool } // RegionalReplicationStatus - This is the regional replication status. type RegionalReplicationStatus struct { // READ-ONLY; The details of the replication status. - Details *string `json:"details,omitempty" azure:"ro"` + Details *string // READ-ONLY; It indicates progress of the replication job. - Progress *int32 `json:"progress,omitempty" azure:"ro"` + Progress *int32 // READ-ONLY; The region to which the gallery image version is being replicated to. - Region *string `json:"region,omitempty" azure:"ro"` + Region *string // READ-ONLY; This is the regional replication state. - State *ReplicationState `json:"state,omitempty" azure:"ro"` + State *ReplicationState } // RegionalSharingStatus - Gallery regional sharing status type RegionalSharingStatus struct { // Details of gallery regional sharing failure. - Details *string `json:"details,omitempty"` + Details *string // Region name - Region *string `json:"region,omitempty"` + Region *string // READ-ONLY; Gallery sharing state in current region - State *SharingState `json:"state,omitempty" azure:"ro"` + State *SharingState } // ReplicationStatus - This is the replication status of the gallery image version. type ReplicationStatus struct { // READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. - AggregatedState *AggregatedReplicationState `json:"aggregatedState,omitempty" azure:"ro"` + AggregatedState *AggregatedReplicationState // READ-ONLY; This is a summary of replication status for each region. - Summary []*RegionalReplicationStatus `json:"summary,omitempty" azure:"ro"` + Summary []*RegionalReplicationStatus } // RequestRateByIntervalInput - Api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // REQUIRED; SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. - BlobContainerSasURI *string `json:"blobContainerSasUri,omitempty"` + BlobContainerSasURI *string // REQUIRED; From time of the query - FromTime *time.Time `json:"fromTime,omitempty"` + FromTime *time.Time // REQUIRED; Interval value in minutes used to create LogAnalytics call rate logs. - IntervalLength *IntervalInMins `json:"intervalLength,omitempty"` + IntervalLength *IntervalInMins // REQUIRED; To time of the query - ToTime *time.Time `json:"toTime,omitempty"` + ToTime *time.Time // Group query result by Client Application ID. - GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + GroupByClientApplicationID *bool // Group query result by Operation Name. - GroupByOperationName *bool `json:"groupByOperationName,omitempty"` + GroupByOperationName *bool // Group query result by Resource Name. - GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + GroupByResourceName *bool // Group query result by Throttle Policy applied. - GroupByThrottlePolicy *bool `json:"groupByThrottlePolicy,omitempty"` + GroupByThrottlePolicy *bool // Group query result by User Agent. - GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` + GroupByUserAgent *bool +} + +// ResiliencyPolicy - Describes an resiliency policy - resilientVMCreationPolicy and/or resilientVMDeletionPolicy. +type ResiliencyPolicy struct { + // The configuration parameters used while performing resilient VM creation. + ResilientVMCreationPolicy *ResilientVMCreationPolicy + + // The configuration parameters used while performing resilient VM deletion. + ResilientVMDeletionPolicy *ResilientVMDeletionPolicy +} + +// ResilientVMCreationPolicy - The configuration parameters used while performing resilient VM creation. +type ResilientVMCreationPolicy struct { + // Specifies whether resilient VM creation should be enabled on the virtual machine scale set. The default value is false. + Enabled *bool +} + +// ResilientVMDeletionPolicy - The configuration parameters used while performing resilient VM deletion. +type ResilientVMDeletionPolicy struct { + // Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. The default value is false. + Enabled *bool } // Resource - The Resource model definition. type Resource struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceInstanceViewStatus - Instance view status. type ResourceInstanceViewStatus struct { // The level code. - Level *StatusLevelTypes `json:"level,omitempty"` + Level *StatusLevelTypes // READ-ONLY; The status code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The short localizable label for the status. - DisplayStatus *string `json:"displayStatus,omitempty" azure:"ro"` + DisplayStatus *string // READ-ONLY; The detailed status message, including for alerts and error messages. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The time of the status. - Time *time.Time `json:"time,omitempty" azure:"ro"` + Time *time.Time } // ResourceRange - Describes the resource range. type ResourceRange struct { // The maximum number of the resource. - Max *int32 `json:"max,omitempty"` + Max *int32 // The minimum number of the resource. - Min *int32 `json:"min,omitempty"` + Min *int32 } // ResourceSKU - Describes an available Compute SKU. type ResourceSKU struct { // READ-ONLY; The api versions that support this SKU. - APIVersions []*string `json:"apiVersions,omitempty" azure:"ro"` + APIVersions []*string // READ-ONLY; A name value pair to describe the capability. - Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty" azure:"ro"` + Capabilities []*ResourceSKUCapabilities // READ-ONLY; Specifies the number of virtual machines in the scale set. - Capacity *ResourceSKUCapacity `json:"capacity,omitempty" azure:"ro"` + Capacity *ResourceSKUCapacity // READ-ONLY; Metadata for retrieving price info. - Costs []*ResourceSKUCosts `json:"costs,omitempty" azure:"ro"` + Costs []*ResourceSKUCosts // READ-ONLY; The Family of this particular SKU. - Family *string `json:"family,omitempty" azure:"ro"` + Family *string // READ-ONLY; The Kind of resources that are supported in this SKU. - Kind *string `json:"kind,omitempty" azure:"ro"` + Kind *string // READ-ONLY; A list of locations and availability zones in those locations where the SKU is available. - LocationInfo []*ResourceSKULocationInfo `json:"locationInfo,omitempty" azure:"ro"` + LocationInfo []*ResourceSKULocationInfo // READ-ONLY; The set of locations that the SKU is available. - Locations []*string `json:"locations,omitempty" azure:"ro"` + Locations []*string // READ-ONLY; The name of SKU. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of resource the SKU applies to. - ResourceType *string `json:"resourceType,omitempty" azure:"ro"` + ResourceType *string // READ-ONLY; The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. - Restrictions []*ResourceSKURestrictions `json:"restrictions,omitempty" azure:"ro"` + Restrictions []*ResourceSKURestrictions // READ-ONLY; The Size of the SKU. - Size *string `json:"size,omitempty" azure:"ro"` + Size *string // READ-ONLY; Specifies the tier of virtual machines in a scale set. // Possible Values: // Standard // Basic - Tier *string `json:"tier,omitempty" azure:"ro"` + Tier *string } // ResourceSKUCapabilities - Describes The SKU capabilities object. type ResourceSKUCapabilities struct { // READ-ONLY; An invariant to describe the feature. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; An invariant if the feature is measured by quantity. - Value *string `json:"value,omitempty" azure:"ro"` + Value *string } // ResourceSKUCapacity - Describes scaling information of a SKU. type ResourceSKUCapacity struct { // READ-ONLY; The default capacity. - Default *int64 `json:"default,omitempty" azure:"ro"` + Default *int64 // READ-ONLY; The maximum capacity that can be set. - Maximum *int64 `json:"maximum,omitempty" azure:"ro"` + Maximum *int64 // READ-ONLY; The minimum capacity. - Minimum *int64 `json:"minimum,omitempty" azure:"ro"` + Minimum *int64 // READ-ONLY; The scale type applicable to the sku. - ScaleType *ResourceSKUCapacityScaleType `json:"scaleType,omitempty" azure:"ro"` + ScaleType *ResourceSKUCapacityScaleType } // ResourceSKUCosts - Describes metadata for retrieving price info. type ResourceSKUCosts struct { // READ-ONLY; An invariant to show the extended unit. - ExtendedUnit *string `json:"extendedUnit,omitempty" azure:"ro"` + ExtendedUnit *string // READ-ONLY; Used for querying price from commerce. - MeterID *string `json:"meterID,omitempty" azure:"ro"` + MeterID *string // READ-ONLY; The multiplier is needed to extend the base metered cost. - Quantity *int64 `json:"quantity,omitempty" azure:"ro"` + Quantity *int64 } // ResourceSKULocationInfo - Describes an available Compute SKU Location Information. type ResourceSKULocationInfo struct { // READ-ONLY; The names of extended locations. - ExtendedLocations []*string `json:"extendedLocations,omitempty" azure:"ro"` + ExtendedLocations []*string // READ-ONLY; Location of the SKU - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; The type of the extended location. - Type *ExtendedLocationType `json:"type,omitempty" azure:"ro"` + Type *ExtendedLocationType // READ-ONLY; Details of capabilities available to a SKU in specific zones. - ZoneDetails []*ResourceSKUZoneDetails `json:"zoneDetails,omitempty" azure:"ro"` + ZoneDetails []*ResourceSKUZoneDetails // READ-ONLY; List of availability zones where the SKU is supported. - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // ResourceSKURestrictionInfo - Describes an available Compute SKU Restriction Information. type ResourceSKURestrictionInfo struct { // READ-ONLY; Locations where the SKU is restricted - Locations []*string `json:"locations,omitempty" azure:"ro"` + Locations []*string // READ-ONLY; List of availability zones where the SKU is restricted. - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // ResourceSKURestrictions - Describes scaling information of a SKU. type ResourceSKURestrictions struct { // READ-ONLY; The reason for restriction. - ReasonCode *ResourceSKURestrictionsReasonCode `json:"reasonCode,omitempty" azure:"ro"` + ReasonCode *ResourceSKURestrictionsReasonCode // READ-ONLY; The information about the restriction where the SKU cannot be used. - RestrictionInfo *ResourceSKURestrictionInfo `json:"restrictionInfo,omitempty" azure:"ro"` + RestrictionInfo *ResourceSKURestrictionInfo // READ-ONLY; The type of restrictions. - Type *ResourceSKURestrictionsType `json:"type,omitempty" azure:"ro"` + Type *ResourceSKURestrictionsType // READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where // the SKU is restricted. - Values []*string `json:"values,omitempty" azure:"ro"` + Values []*string } // ResourceSKUZoneDetails - Describes The zonal capabilities of a SKU. type ResourceSKUZoneDetails struct { // READ-ONLY; A list of capabilities that are available for the SKU in the specified list of zones. - Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty" azure:"ro"` + Capabilities []*ResourceSKUCapabilities // READ-ONLY; The set of zones that the SKU is available in with the specified capabilities. - Name []*string `json:"name,omitempty" azure:"ro"` -} - -// ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.List method. -type ResourceSKUsClientListOptions struct { - // The filter to apply on the operation. Only location filter is supported currently. - Filter *string - // To Include Extended Locations information or not in the response. - IncludeExtendedLocations *string + Name []*string } // ResourceSKUsResult - The List Resource Skus operation response. type ResourceSKUsResult struct { // REQUIRED; The list of skus available for the subscription. - Value []*ResourceSKU `json:"value,omitempty"` + Value []*ResourceSKU // The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus - NextLink *string `json:"nextLink,omitempty"` + NextLink *string +} + +type ResourceSharingProfile struct { + // Specifies an array of subscription resource IDs that capacity reservation group is shared with. Note: Minimum api-version: + // 2024-03-01. Please refer to https://aka.ms/computereservationsharing for more + // details. + SubscriptionIDs []*SubResource } // ResourceURIList - The List resources which are encrypted with the disk encryption set. type ResourceURIList struct { // REQUIRED; A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. - Value []*string `json:"value,omitempty"` + Value []*string // The uri to fetch the next page of encrypted resources. Call ListNext() with this to fetch the next page of encrypted resources. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // ResourceWithOptionalLocation - The Resource model definition with location property as optional. type ResourceWithOptionalLocation struct { // Resource location - Location *string `json:"location,omitempty"` + Location *string // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RestorePoint - Restore Point details. type RestorePoint struct { // The restore point properties. - Properties *RestorePointProperties `json:"properties,omitempty"` + Properties *RestorePointProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RestorePointCollection - Create or update Restore Point collection parameters. type RestorePointCollection struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The restore point collection properties. - Properties *RestorePointCollectionProperties `json:"properties,omitempty"` + Properties *RestorePointCollectionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RestorePointCollectionListResult - The List restore point collection operation response. type RestorePointCollectionListResult struct { // The uri to fetch the next page of RestorePointCollections. Call ListNext() with this to fetch the next page of RestorePointCollections - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Gets the list of restore point collections. - Value []*RestorePointCollection `json:"value,omitempty"` + Value []*RestorePointCollection } // RestorePointCollectionProperties - The restore point collection properties. type RestorePointCollectionProperties struct { // The properties of the source resource that this restore point collection is created from. - Source *RestorePointCollectionSourceProperties `json:"source,omitempty"` + Source *RestorePointCollectionSourceProperties // READ-ONLY; The provisioning state of the restore point collection. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; The unique id of the restore point collection. - RestorePointCollectionID *string `json:"restorePointCollectionId,omitempty" azure:"ro"` + RestorePointCollectionID *string // READ-ONLY; A list containing all restore points created under this restore point collection. - RestorePoints []*RestorePoint `json:"restorePoints,omitempty" azure:"ro"` + RestorePoints []*RestorePoint } // RestorePointCollectionSourceProperties - The properties of the source resource that this restore point collection is created // from. type RestorePointCollectionSourceProperties struct { // Resource Id of the source resource used to create this restore point collection - ID *string `json:"id,omitempty"` + ID *string // READ-ONLY; Location of the source resource used to create this restore point collection. - Location *string `json:"location,omitempty" azure:"ro"` + Location *string } // RestorePointCollectionUpdate - Update Restore Point collection parameters. type RestorePointCollectionUpdate struct { // The restore point collection properties. - Properties *RestorePointCollectionProperties `json:"properties,omitempty"` + Properties *RestorePointCollectionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete -// method. -type RestorePointCollectionsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// RestorePointCollectionsClientCreateOrUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.CreateOrUpdate -// method. -type RestorePointCollectionsClientCreateOrUpdateOptions struct { - // placeholder for future optional parameters -} - -// RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get method. -type RestorePointCollectionsClientGetOptions struct { - // The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points - // in the restorePointCollection. - Expand *RestorePointCollectionExpandOptions -} - -// RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.ListAll -// method. -type RestorePointCollectionsClientListAllOptions struct { - // placeholder for future optional parameters + Tags map[string]*string } -// RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.List method. -type RestorePointCollectionsClientListOptions struct { - // placeholder for future optional parameters -} +// RestorePointEncryption - Encryption at rest settings for disk restore point. It is an optional property that can be specified +// in the input while creating a restore point. +type RestorePointEncryption struct { + // Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. Note: The disk + // encryption set resource id can only be specified for managed disk. Please + // refer https://aka.ms/mdssewithcmkoverview for more details. + DiskEncryptionSet *DiskEncryptionSetParameters -// RestorePointCollectionsClientUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.Update -// method. -type RestorePointCollectionsClientUpdateOptions struct { - // placeholder for future optional parameters + // The type of key used to encrypt the data of the disk restore point. + Type *RestorePointEncryptionType } // RestorePointInstanceView - The instance view of a restore point. type RestorePointInstanceView struct { // The disk restore points information. - DiskRestorePoints []*DiskRestorePointInstanceView `json:"diskRestorePoints,omitempty"` + DiskRestorePoints []*DiskRestorePointInstanceView // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus } // RestorePointProperties - The restore point properties. @@ -4972,402 +4595,430 @@ type RestorePointProperties struct { // ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent // is accepted as a valid input. Please refer to // https://aka.ms/RestorePoints for more details. - ConsistencyMode *ConsistencyModeTypes `json:"consistencyMode,omitempty"` + ConsistencyMode *ConsistencyModeTypes // List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks // will be included. - ExcludeDisks []*APIEntityReference `json:"excludeDisks,omitempty"` + ExcludeDisks []*APIEntityReference + + // Gets the details of the VM captured at the time of the restore point creation. + SourceMetadata *RestorePointSourceMetadata // Resource Id of the source restore point from which a copy needs to be created. - SourceRestorePoint *APIEntityReference `json:"sourceRestorePoint,omitempty"` + SourceRestorePoint *APIEntityReference // Gets the creation time of the restore point. - TimeCreated *time.Time `json:"timeCreated,omitempty"` + TimeCreated *time.Time // READ-ONLY; The restore point instance view. - InstanceView *RestorePointInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *RestorePointInstanceView // READ-ONLY; Gets the provisioning state of the restore point. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` - - // READ-ONLY; Gets the details of the VM captured at the time of the restore point creation. - SourceMetadata *RestorePointSourceMetadata `json:"sourceMetadata,omitempty" azure:"ro"` + ProvisioningState *string } // RestorePointSourceMetadata - Describes the properties of the Virtual Machine for which the restore point was created. The // properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the // time of the restore point creation. type RestorePointSourceMetadata struct { - // Gets the diagnostics profile. - DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` + // Gets the storage profile. + StorageProfile *RestorePointSourceVMStorageProfile - // Gets the hardware profile. - HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` + // READ-ONLY; Gets the diagnostics profile. + DiagnosticsProfile *DiagnosticsProfile - // Gets the license type, which is for bring your own license scenario. - LicenseType *string `json:"licenseType,omitempty"` + // READ-ONLY; Gets the hardware profile. + HardwareProfile *HardwareProfile - // Location of the VM from which the restore point was created. - Location *string `json:"location,omitempty"` + // READ-ONLY; HyperVGeneration of the source VM for which restore point is captured. + HyperVGeneration *HyperVGenerationTypes - // Gets the OS profile. - OSProfile *OSProfile `json:"osProfile,omitempty"` + // READ-ONLY; Gets the license type, which is for bring your own license scenario. + LicenseType *string - // Gets the security profile. - SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` + // READ-ONLY; Location of the VM from which the restore point was created. + Location *string - // Gets the storage profile. - StorageProfile *RestorePointSourceVMStorageProfile `json:"storageProfile,omitempty"` + // READ-ONLY; Gets the OS profile. + OSProfile *OSProfile + + // READ-ONLY; Gets the security profile. + SecurityProfile *SecurityProfile + + // READ-ONLY; UserData associated with the source VM for which restore point is captured, which is a base-64 encoded value. + UserData *string - // Gets the virtual machine unique id. - VMID *string `json:"vmId,omitempty"` + // READ-ONLY; Gets the virtual machine unique id. + VMID *string } // RestorePointSourceVMDataDisk - Describes a data disk. type RestorePointSourceVMDataDisk struct { - // Gets the caching type. - Caching *CachingTypes `json:"caching,omitempty"` + // Contains Disk Restore Point properties. + DiskRestorePoint *DiskRestorePointAttributes - // Gets the disk restore point Id. - DiskRestorePoint *APIEntityReference `json:"diskRestorePoint,omitempty"` + // Contains the managed disk details. + ManagedDisk *ManagedDiskParameters - // Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // READ-ONLY; Gets the caching type. + Caching *CachingTypes - // Gets the logical unit number. - Lun *int32 `json:"lun,omitempty"` + // READ-ONLY; Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. + DiskSizeGB *int32 - // Gets the managed disk details - ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` + // READ-ONLY; Gets the logical unit number. + Lun *int32 + + // READ-ONLY; Gets the disk name. + Name *string - // Gets the disk name. - Name *string `json:"name,omitempty"` + // READ-ONLY; Shows true if the disk is write-accelerator enabled. + WriteAcceleratorEnabled *bool } // RestorePointSourceVMOSDisk - Describes an Operating System disk. type RestorePointSourceVMOSDisk struct { - // Gets the caching type. - Caching *CachingTypes `json:"caching,omitempty"` + // Contains Disk Restore Point properties. + DiskRestorePoint *DiskRestorePointAttributes - // Gets the disk restore point Id. - DiskRestorePoint *APIEntityReference `json:"diskRestorePoint,omitempty"` + // Gets the managed disk details + ManagedDisk *ManagedDiskParameters - // Gets the disk size in GB. - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // READ-ONLY; Gets the caching type. + Caching *CachingTypes - // Gets the disk encryption settings. - EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"` + // READ-ONLY; Gets the disk size in GB. + DiskSizeGB *int32 - // Gets the managed disk details - ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` + // READ-ONLY; Gets the disk encryption settings. + EncryptionSettings *DiskEncryptionSettings - // Gets the disk name. - Name *string `json:"name,omitempty"` + // READ-ONLY; Gets the disk name. + Name *string - // Gets the Operating System type. - OSType *OperatingSystemType `json:"osType,omitempty"` + // READ-ONLY; Gets the Operating System type. + OSType *OperatingSystemType + + // READ-ONLY; Shows true if the disk is write-accelerator enabled. + WriteAcceleratorEnabled *bool } // RestorePointSourceVMStorageProfile - Describes the storage profile. type RestorePointSourceVMStorageProfile struct { // Gets the data disks of the VM captured at the time of the restore point creation. - DataDisks []*RestorePointSourceVMDataDisk `json:"dataDisks,omitempty"` + DataDisks []*RestorePointSourceVMDataDisk // Gets the OS disk of the VM captured at the time of the restore point creation. - OSDisk *RestorePointSourceVMOSDisk `json:"osDisk,omitempty"` -} - -// RestorePointsClientBeginCreateOptions contains the optional parameters for the RestorePointsClient.BeginCreate method. -type RestorePointsClientBeginCreateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} + OSDisk *RestorePointSourceVMOSDisk -// RestorePointsClientBeginDeleteOptions contains the optional parameters for the RestorePointsClient.BeginDelete method. -type RestorePointsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// RestorePointsClientGetOptions contains the optional parameters for the RestorePointsClient.Get method. -type RestorePointsClientGetOptions struct { - // The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore - // point. - Expand *RestorePointExpandOptions + // READ-ONLY; Gets the disk controller type of the VM captured at the time of the restore point creation. + DiskControllerType *DiskControllerTypes } // RetrieveBootDiagnosticsDataResult - The SAS URIs of the console screenshot and serial log blobs. type RetrieveBootDiagnosticsDataResult struct { // READ-ONLY; The console screenshot blob URI - ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty" azure:"ro"` + ConsoleScreenshotBlobURI *string // READ-ONLY; The serial console log blob URI. - SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty" azure:"ro"` + SerialConsoleLogBlobURI *string } +// RoleInstance - Describes the cloud service role instance. type RoleInstance struct { - Properties *RoleInstanceProperties `json:"properties,omitempty"` - SKU *InstanceSKU `json:"sku,omitempty"` + // Role instance properties. + Properties *RoleInstanceProperties + + // The role instance SKU. + SKU *InstanceSKU // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource Location. - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource Name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource tags. - Tags map[string]*string `json:"tags,omitempty" azure:"ro"` + Tags map[string]*string // READ-ONLY; Resource Type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } +// RoleInstanceListResult - The list operation result. type RoleInstanceListResult struct { - // REQUIRED - Value []*RoleInstance `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // REQUIRED; The list of resources. + Value []*RoleInstance + + // The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null + // to fetch all the resources. + NextLink *string } // RoleInstanceNetworkProfile - Describes the network profile for the role instance. type RoleInstanceNetworkProfile struct { // READ-ONLY; Specifies the list of resource Ids for the network interfaces associated with the role instance. - NetworkInterfaces []*SubResource `json:"networkInterfaces,omitempty" azure:"ro"` + NetworkInterfaces []*SubResource } +// RoleInstanceProperties - Role instance properties. type RoleInstanceProperties struct { // The instance view of the role instance. - InstanceView *RoleInstanceView `json:"instanceView,omitempty"` + InstanceView *RoleInstanceView // Describes the network profile for the role instance. - NetworkProfile *RoleInstanceNetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *RoleInstanceNetworkProfile } // RoleInstanceView - The instance view of the role instance. type RoleInstanceView struct { // READ-ONLY; The Fault Domain. - PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty" azure:"ro"` + PlatformFaultDomain *int32 // READ-ONLY; The Update Domain. - PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty" azure:"ro"` + PlatformUpdateDomain *int32 // READ-ONLY; Specifies a unique identifier generated internally for the cloud service associated with this role instance. // NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. - PrivateID *string `json:"privateId,omitempty" azure:"ro"` + PrivateID *string // READ-ONLY - Statuses []*ResourceInstanceViewStatus `json:"statuses,omitempty" azure:"ro"` + Statuses []*ResourceInstanceViewStatus } // RoleInstances - Specifies a list of role instances from the cloud service. type RoleInstances struct { // REQUIRED; List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. - RoleInstances []*string `json:"roleInstances,omitempty"` + RoleInstances []*string } // RollbackStatusInfo - Information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // READ-ONLY; The number of instances which failed to rollback. - FailedRolledbackInstanceCount *int32 `json:"failedRolledbackInstanceCount,omitempty" azure:"ro"` + FailedRolledbackInstanceCount *int32 // READ-ONLY; Error details if OS rollback failed. - RollbackError *APIError `json:"rollbackError,omitempty" azure:"ro"` + RollbackError *APIError // READ-ONLY; The number of instances which have been successfully rolled back. - SuccessfullyRolledbackInstanceCount *int32 `json:"successfullyRolledbackInstanceCount,omitempty" azure:"ro"` + SuccessfullyRolledbackInstanceCount *int32 } // RollingUpgradePolicy - The configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent // to determine the batch size. - EnableCrossZoneUpgrade *bool `json:"enableCrossZoneUpgrade,omitempty"` + EnableCrossZoneUpgrade *bool // The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one // batch. As this is a maximum, unhealthy instances in previous or future batches // can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter // is 20%. - MaxBatchInstancePercent *int32 `json:"maxBatchInstancePercent,omitempty"` + MaxBatchInstancePercent *int32 + + // Create new virtual machines to upgrade the scale set, rather than updating the existing virtual machines. Existing virtual + // machines will be deleted once the new virtual machines are created for each + // batch. + MaxSurge *bool // The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either // as a result of being upgraded, or by being found in an unhealthy state by // the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting // any batch. The default value for this parameter is 20%. - MaxUnhealthyInstancePercent *int32 `json:"maxUnhealthyInstancePercent,omitempty"` + MaxUnhealthyInstancePercent *int32 // The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check // will happen after each batch is upgraded. If this percentage is ever exceeded, // the rolling update aborts. The default value for this parameter is 20%. - MaxUnhealthyUpgradedInstancePercent *int32 `json:"maxUnhealthyUpgradedInstancePercent,omitempty"` + MaxUnhealthyUpgradedInstancePercent *int32 // The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time // duration should be specified in ISO 8601 format. The default value is 0 seconds // (PT0S). - PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"` + PauseTimeBetweenBatches *string // Upgrade all unhealthy instances in a scale set before any healthy instances. - PrioritizeUnhealthyInstances *bool `json:"prioritizeUnhealthyInstances,omitempty"` + PrioritizeUnhealthyInstances *bool + + // Rollback failed instances to previous model if the Rolling Upgrade policy is violated. + RollbackFailedInstancesOnPolicyBreach *bool } // RollingUpgradeProgressInfo - Information about the number of virtual machine instances in each upgrade state. type RollingUpgradeProgressInfo struct { // READ-ONLY; The number of instances that have failed to be upgraded successfully. - FailedInstanceCount *int32 `json:"failedInstanceCount,omitempty" azure:"ro"` + FailedInstanceCount *int32 // READ-ONLY; The number of instances that are currently being upgraded. - InProgressInstanceCount *int32 `json:"inProgressInstanceCount,omitempty" azure:"ro"` + InProgressInstanceCount *int32 // READ-ONLY; The number of instances that have not yet begun to be upgraded. - PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty" azure:"ro"` + PendingInstanceCount *int32 // READ-ONLY; The number of instances that have been successfully upgraded. - SuccessfulInstanceCount *int32 `json:"successfulInstanceCount,omitempty" azure:"ro"` + SuccessfulInstanceCount *int32 } // RollingUpgradeRunningStatus - Information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // READ-ONLY; Code indicating the current status of the upgrade. - Code *RollingUpgradeStatusCode `json:"code,omitempty" azure:"ro"` + Code *RollingUpgradeStatusCode // READ-ONLY; The last action performed on the rolling upgrade. - LastAction *RollingUpgradeActionType `json:"lastAction,omitempty" azure:"ro"` + LastAction *RollingUpgradeActionType // READ-ONLY; Last action time of the upgrade. - LastActionTime *time.Time `json:"lastActionTime,omitempty" azure:"ro"` + LastActionTime *time.Time // READ-ONLY; Start time of the upgrade. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time } // RollingUpgradeStatusInfo - The status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The status of the latest virtual machine scale set rolling upgrade. - Properties *RollingUpgradeStatusInfoProperties `json:"properties,omitempty"` + Properties *RollingUpgradeStatusInfoProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RollingUpgradeStatusInfoProperties - The status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfoProperties struct { // READ-ONLY; Error details for this upgrade, if there are any. - Error *APIError `json:"error,omitempty" azure:"ro"` + Error *APIError // READ-ONLY; The rolling upgrade policies applied for this upgrade. - Policy *RollingUpgradePolicy `json:"policy,omitempty" azure:"ro"` + Policy *RollingUpgradePolicy // READ-ONLY; Information about the number of virtual machine instances in each upgrade state. - Progress *RollingUpgradeProgressInfo `json:"progress,omitempty" azure:"ro"` + Progress *RollingUpgradeProgressInfo // READ-ONLY; Information about the current running state of the overall upgrade. - RunningStatus *RollingUpgradeRunningStatus `json:"runningStatus,omitempty" azure:"ro"` + RunningStatus *RollingUpgradeRunningStatus } // RunCommandDocument - Describes the properties of a Run Command. type RunCommandDocument struct { // REQUIRED; The VM run command description. - Description *string `json:"description,omitempty"` + Description *string // REQUIRED; The VM run command id. - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; The VM run command label. - Label *string `json:"label,omitempty"` + Label *string // REQUIRED; The Operating System type. - OSType *OperatingSystemTypes `json:"osType,omitempty"` + OSType *OperatingSystemTypes // REQUIRED; The VM run command schema. - Schema *string `json:"$schema,omitempty"` + Schema *string // REQUIRED; The script to be executed. - Script []*string `json:"script,omitempty"` + Script []*string // The parameters used by the script. - Parameters []*RunCommandParameterDefinition `json:"parameters,omitempty"` + Parameters []*RunCommandParameterDefinition } // RunCommandDocumentBase - Describes the properties of a Run Command metadata. type RunCommandDocumentBase struct { // REQUIRED; The VM run command description. - Description *string `json:"description,omitempty"` + Description *string // REQUIRED; The VM run command id. - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; The VM run command label. - Label *string `json:"label,omitempty"` + Label *string // REQUIRED; The Operating System type. - OSType *OperatingSystemTypes `json:"osType,omitempty"` + OSType *OperatingSystemTypes // REQUIRED; The VM run command schema. - Schema *string `json:"$schema,omitempty"` + Schema *string } // RunCommandInput - Capture Virtual Machine parameters. type RunCommandInput struct { // REQUIRED; The run command id. - CommandID *string `json:"commandId,omitempty"` + CommandID *string // The run command parameters. - Parameters []*RunCommandInputParameter `json:"parameters,omitempty"` + Parameters []*RunCommandInputParameter // Optional. The script to be executed. When this value is given, the given script will override the default script of the // command. - Script []*string `json:"script,omitempty"` + Script []*string } // RunCommandInputParameter - Describes the properties of a run command parameter. type RunCommandInputParameter struct { // REQUIRED; The run command parameter name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The run command parameter value. - Value *string `json:"value,omitempty"` + Value *string } // RunCommandListResult - The List Virtual Machine operation response. type RunCommandListResult struct { // REQUIRED; The list of virtual machine run commands. - Value []*RunCommandDocumentBase `json:"value,omitempty"` + Value []*RunCommandDocumentBase // The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string +} + +// RunCommandManagedIdentity - Contains clientId or objectId (use only one, not both) of a user-assigned managed identity +// that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of +// system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given +// access to blob's container with 'Storage Blob Data Reader' role assignment +// with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user +// assigned identity, make sure you add it under VM's identity. For more info on +// managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. +type RunCommandManagedIdentity struct { + // Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided. + ClientID *string + + // Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided. + ObjectID *string } // RunCommandParameterDefinition - Describes the properties of a run command parameter. type RunCommandParameterDefinition struct { // REQUIRED; The run command parameter name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The run command parameter type. - Type *string `json:"type,omitempty"` + Type *string // The run command parameter default value. - DefaultValue *string `json:"defaultValue,omitempty"` + DefaultValue *string // The run command parameter required. - Required *bool `json:"required,omitempty"` + Required *bool } type RunCommandResult struct { // Run command operation response. - Value []*InstanceViewStatus `json:"value,omitempty"` + Value []*InstanceViewStatus } // SKU - Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set @@ -5375,70 +5026,77 @@ type RunCommandResult struct { // SKU name. type SKU struct { // Specifies the number of virtual machines in the scale set. - Capacity *int64 `json:"capacity,omitempty"` + Capacity *int64 // The sku name. - Name *string `json:"name,omitempty"` + Name *string // Specifies the tier of virtual machines in a scale set. // Possible Values: // Standard // Basic - Tier *string `json:"tier,omitempty"` + Tier *string } // SSHConfiguration - SSH configuration for Linux based VMs running on Azure type SSHConfiguration struct { // The list of SSH public keys used to authenticate with linux based VMs. - PublicKeys []*SSHPublicKey `json:"publicKeys,omitempty"` + PublicKeys []*SSHPublicKey +} + +// SSHGenerateKeyPairInputParameters - Parameters for GenerateSshKeyPair. +type SSHGenerateKeyPairInputParameters struct { + // The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, + // will default to RSA + EncryptionType *SSHEncryptionTypes } // SSHPublicKey - Contains information about SSH certificate public key and the path on the Linux VM where the public key // is placed. type SSHPublicKey struct { // SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa - // format. - // For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). - KeyData *string `json:"keyData,omitempty"` + // format. For creating ssh keys, see [Create SSH keys on Linux and Mac for + // Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). + KeyData *string // Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key // is appended to the file. Example: /home/user/.ssh/authorized_keys - Path *string `json:"path,omitempty"` + Path *string } // SSHPublicKeyGenerateKeyPairResult - Response from generation of an SSH key pair. type SSHPublicKeyGenerateKeyPairResult struct { // REQUIRED; The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName} - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is // returned in RFC3447 format and should be treated as a secret. - PrivateKey *string `json:"privateKey,omitempty"` + PrivateKey *string // REQUIRED; Public key portion of the key pair used to authenticate to a virtual machine through ssh. The public key is in // ssh-rsa format. - PublicKey *string `json:"publicKey,omitempty"` + PublicKey *string } // SSHPublicKeyResource - Specifies information about the SSH public key. type SSHPublicKeyResource struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Properties of the SSH public key. - Properties *SSHPublicKeyResourceProperties `json:"properties,omitempty"` + Properties *SSHPublicKeyResourceProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SSHPublicKeyResourceProperties - Properties of the SSH public key. @@ -5447,70 +5105,32 @@ type SSHPublicKeyResourceProperties struct { // resource is created, the publicKey property will be populated when // generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at // least 2048-bit and in ssh-rsa format. - PublicKey *string `json:"publicKey,omitempty"` + PublicKey *string } // SSHPublicKeyUpdateResource - Specifies information about the SSH public key. type SSHPublicKeyUpdateResource struct { // Properties of the SSH public key. - Properties *SSHPublicKeyResourceProperties `json:"properties,omitempty"` + Properties *SSHPublicKeyResourceProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// SSHPublicKeysClientCreateOptions contains the optional parameters for the SSHPublicKeysClient.Create method. -type SSHPublicKeysClientCreateOptions struct { - // placeholder for future optional parameters -} - -// SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method. -type SSHPublicKeysClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair -// method. -type SSHPublicKeysClientGenerateKeyPairOptions struct { - // placeholder for future optional parameters -} - -// SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method. -type SSHPublicKeysClientGetOptions struct { - // placeholder for future optional parameters -} - -// SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.ListByResourceGroup -// method. -type SSHPublicKeysClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.ListBySubscription -// method. -type SSHPublicKeysClientListBySubscriptionOptions struct { - // placeholder for future optional parameters -} - -// SSHPublicKeysClientUpdateOptions contains the optional parameters for the SSHPublicKeysClient.Update method. -type SSHPublicKeysClientUpdateOptions struct { - // placeholder for future optional parameters + Tags map[string]*string } // SSHPublicKeysGroupListResult - The list SSH public keys operation response. type SSHPublicKeysGroupListResult struct { // REQUIRED; The list of SSH public keys - Value []*SSHPublicKeyResource `json:"value,omitempty"` + Value []*SSHPublicKeyResource // The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the next page of SSH public keys. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // ScaleInPolicy - Describes a scale-in policy for a virtual machine scale set. type ScaleInPolicy struct { // This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine // scale set is being scaled-in.(Feature in Preview) - ForceDeletion *bool `json:"forceDeletion,omitempty"` + ForceDeletion *bool // The rules to be followed when scaling-in a virtual machine scale set. // Possible values are: @@ -5525,353 +5145,429 @@ type ScaleInPolicy struct { // will be chosen for removal. For zonal virtual machine scale sets, the // scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will // be chosen for removal. - Rules []*VirtualMachineScaleSetScaleInRules `json:"rules,omitempty"` + Rules []*VirtualMachineScaleSetScaleInRules +} + +type ScheduledEventsAdditionalPublishingTargets struct { + // The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting. + EventGridAndResourceGraph *EventGridAndResourceGraph +} + +// ScheduledEventsPolicy - Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related +// configurations. +type ScheduledEventsPolicy struct { + // The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets. + ScheduledEventsAdditionalPublishingTargets *ScheduledEventsAdditionalPublishingTargets + + // The configuration parameters used while creating userInitiatedReboot scheduled event setting creation. + UserInitiatedReboot *UserInitiatedReboot + + // The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation. + UserInitiatedRedeploy *UserInitiatedRedeploy } type ScheduledEventsProfile struct { + // Specifies OS Image Scheduled Event related configurations. + OSImageNotificationProfile *OSImageNotificationProfile + // Specifies Terminate Scheduled Event related configurations. - TerminateNotificationProfile *TerminateNotificationProfile `json:"terminateNotificationProfile,omitempty"` + TerminateNotificationProfile *TerminateNotificationProfile +} + +// SecurityPostureReference - Specifies the security posture to be used for all virtual machines in the scale set. Minimum +// api-version: 2023-03-01 +type SecurityPostureReference struct { + // List of virtual machine extensions to exclude when applying the Security Posture. + ExcludeExtensions []*VirtualMachineExtension + + // The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest + ID *string } // SecurityProfile - Specifies the Security profile settings for the virtual machine or virtual machine scale set. type SecurityProfile struct { // This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual // machine scale set. This will enable the encryption for all the disks - // including Resource/Temp disk at host itself. - // Default: The Encryption at host will be disabled unless this property is set to true for the resource. - EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"` + // including Resource/Temp disk at host itself. The default behavior is: The Encryption at host will be disabled unless this + // property is set to true for the resource. + EncryptionAtHost *bool - // Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. - // Default: UefiSettings will not be enabled unless this property is set. - SecurityType *SecurityTypes `json:"securityType,omitempty"` + // Specifies the Managed Identity used by ADE to get access token for keyvault operations. + EncryptionIdentity *EncryptionIdentity - // Specifies the security settings like secure boot and vTPM used while creating the virtual machine. - // Minimum api-version: 2020-12-01 - UefiSettings *UefiSettings `json:"uefiSettings,omitempty"` -} + // Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2024-03-01. + ProxyAgentSettings *ProxyAgentSettings -type ShareInfoElement struct { - // READ-ONLY; A relative URI containing the ID of the VM that has the disk attached. - VMURI *string `json:"vmUri,omitempty" azure:"ro"` + // Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The + // default behavior is: UefiSettings will not be enabled unless this property is + // set. + SecurityType *SecurityTypes + + // Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: + // 2020-12-01. + UefiSettings *UefiSettings } -// SharedGalleriesClientGetOptions contains the optional parameters for the SharedGalleriesClient.Get method. -type SharedGalleriesClientGetOptions struct { - // placeholder for future optional parameters +// ServiceArtifactReference - Specifies the service artifact reference id used to set same image version for all virtual machines +// in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01 +type ServiceArtifactReference struct { + // The service artifact reference id in the form of + // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName} + ID *string } -// SharedGalleriesClientListOptions contains the optional parameters for the SharedGalleriesClient.List method. -type SharedGalleriesClientListOptions struct { - // The query parameter to decide what shared galleries to fetch when doing listing operations. - SharedTo *SharedToValues +type ShareInfoElement struct { + // READ-ONLY; A relative URI containing the ID of the VM that has the disk attached. + VMURI *string } // SharedGallery - Specifies information about the Shared Gallery that you want to create or update. type SharedGallery struct { // The identifier information of shared gallery. - Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"` + Identifier *SharedGalleryIdentifier + + // Specifies the properties of a shared gallery + Properties *SharedGalleryProperties // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string +} + +// SharedGalleryDataDiskImage - This is the data disk image. +type SharedGalleryDataDiskImage struct { + // REQUIRED; This property specifies the logical unit number of the data disk. This value is used to identify data disks within + // the Virtual Machine and therefore must be unique for each data disk attached to the + // Virtual Machine. + Lun *int32 + + // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' + HostCaching *SharedGalleryHostCaching + + // READ-ONLY; This property indicates the size of the VHD to be created. + DiskSizeGB *int32 +} + +// SharedGalleryDiskImage - This is the disk image base class. +type SharedGalleryDiskImage struct { + // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' + HostCaching *SharedGalleryHostCaching + + // READ-ONLY; This property indicates the size of the VHD to be created. + DiskSizeGB *int32 } // SharedGalleryIdentifier - The identifier information of shared gallery. type SharedGalleryIdentifier struct { // The unique id of this shared gallery. - UniqueID *string `json:"uniqueId,omitempty"` + UniqueID *string } // SharedGalleryImage - Specifies information about the gallery image definition that you want to create or update. type SharedGalleryImage struct { // The identifier information of shared gallery. - Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"` + Identifier *SharedGalleryIdentifier // Describes the properties of a gallery image definition. - Properties *SharedGalleryImageProperties `json:"properties,omitempty"` + Properties *SharedGalleryImageProperties // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // SharedGalleryImageList - The List Shared Gallery Images operation response. type SharedGalleryImageList struct { // REQUIRED; A list of shared gallery images. - Value []*SharedGalleryImage `json:"value,omitempty"` + Value []*SharedGalleryImage // The uri to fetch the next page of shared gallery images. Call ListNext() with this to fetch the next page of shared gallery // images. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // SharedGalleryImageProperties - Describes the properties of a gallery image definition. type SharedGalleryImageProperties struct { // REQUIRED; This is the gallery image definition identifier. - Identifier *GalleryImageIdentifier `json:"identifier,omitempty"` + Identifier *GalleryImageIdentifier // REQUIRED; This property allows the user to specify whether the virtual machines created under this image are 'Generalized' // or 'Specialized'. - OSState *OperatingSystemStateTypes `json:"osState,omitempty"` + OSState *OperatingSystemStateTypes // REQUIRED; This property allows you to specify the type of the OS that is included in the disk when creating a VM from a - // managed image. - // Possible values are: - // Windows - // Linux - OSType *OperatingSystemTypes `json:"osType,omitempty"` + // managed image. Possible values are: Windows, Linux. + OSType *OperatingSystemTypes + + // The architecture of the image. Applicable to OS disks only. + Architecture *Architecture + + // The artifact tags of a shared gallery resource. + ArtifactTags map[string]*string // Describes the disallowed disk types. - Disallowed *Disallowed `json:"disallowed,omitempty"` + Disallowed *Disallowed // The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property // is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time + + // End-user license agreement for the current community gallery image. + Eula *string // A list of gallery image features. - Features []*GalleryImageFeature `json:"features,omitempty"` + Features []*GalleryImageFeature // The hypervisor generation of the Virtual Machine. Applicable to OS disks only. - HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGeneration + + // Privacy statement uri for the current community gallery image. + PrivacyStatementURI *string // Describes the gallery image definition purchase plan. This is used by marketplace images. - PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"` + PurchasePlan *ImagePurchasePlan // The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. - Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"` + Recommended *RecommendedMachineConfiguration } // SharedGalleryImageVersion - Specifies information about the gallery image version that you want to create or update. type SharedGalleryImageVersion struct { // The identifier information of shared gallery. - Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"` + Identifier *SharedGalleryIdentifier // Describes the properties of a gallery image version. - Properties *SharedGalleryImageVersionProperties `json:"properties,omitempty"` + Properties *SharedGalleryImageVersionProperties // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // SharedGalleryImageVersionList - The List Shared Gallery Image versions operation response. type SharedGalleryImageVersionList struct { // REQUIRED; A list of shared gallery images versions. - Value []*SharedGalleryImageVersion `json:"value,omitempty"` + Value []*SharedGalleryImageVersion // The uri to fetch the next page of shared gallery image versions. Call ListNext() with this to fetch the next page of shared // gallery image versions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // SharedGalleryImageVersionProperties - Describes the properties of a gallery image version. type SharedGalleryImageVersionProperties struct { + // The artifact tags of a shared gallery resource. + ArtifactTags map[string]*string + // The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This // property is updatable. - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + EndOfLifeDate *time.Time + + // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. + ExcludeFromLatest *bool // The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This // property is updatable. - PublishedDate *time.Time `json:"publishedDate,omitempty"` -} - -// SharedGalleryImageVersionsClientGetOptions contains the optional parameters for the SharedGalleryImageVersionsClient.Get -// method. -type SharedGalleryImageVersionsClientGetOptions struct { - // placeholder for future optional parameters -} + PublishedDate *time.Time -// SharedGalleryImageVersionsClientListOptions contains the optional parameters for the SharedGalleryImageVersionsClient.List -// method. -type SharedGalleryImageVersionsClientListOptions struct { - // The query parameter to decide what shared galleries to fetch when doing listing operations. - SharedTo *SharedToValues + // Describes the storage profile of the image version. + StorageProfile *SharedGalleryImageVersionStorageProfile } -// SharedGalleryImagesClientGetOptions contains the optional parameters for the SharedGalleryImagesClient.Get method. -type SharedGalleryImagesClientGetOptions struct { - // placeholder for future optional parameters -} +// SharedGalleryImageVersionStorageProfile - This is the storage profile of a Gallery Image Version. +type SharedGalleryImageVersionStorageProfile struct { + // A list of data disk images. + DataDiskImages []*SharedGalleryDataDiskImage -// SharedGalleryImagesClientListOptions contains the optional parameters for the SharedGalleryImagesClient.List method. -type SharedGalleryImagesClientListOptions struct { - // The query parameter to decide what shared galleries to fetch when doing listing operations. - SharedTo *SharedToValues + // This is the OS disk image. + OSDiskImage *SharedGalleryOSDiskImage } // SharedGalleryList - The List Shared Galleries operation response. type SharedGalleryList struct { // REQUIRED; A list of shared galleries. - Value []*SharedGallery `json:"value,omitempty"` + Value []*SharedGallery // The uri to fetch the next page of shared galleries. Call ListNext() with this to fetch the next page of shared galleries. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string +} + +// SharedGalleryOSDiskImage - This is the OS disk image. +type SharedGalleryOSDiskImage struct { + // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' + HostCaching *SharedGalleryHostCaching + + // READ-ONLY; This property indicates the size of the VHD to be created. + DiskSizeGB *int32 +} + +// SharedGalleryProperties - Specifies the properties of a shared gallery +type SharedGalleryProperties struct { + // READ-ONLY; The artifact tags of a shared gallery resource. + ArtifactTags map[string]*string } // SharingProfile - Profile for gallery sharing to subscription or tenant type SharingProfile struct { // Information of community gallery if current gallery is shared to community. - CommunityGalleryInfo interface{} `json:"communityGalleryInfo,omitempty"` + CommunityGalleryInfo *CommunityGalleryInfo - // This property allows you to specify the permission of sharing gallery. - // Possible values are: - // Private - // Groups - Permissions *GallerySharingPermissionTypes `json:"permissions,omitempty"` + // This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community. + Permissions *GallerySharingPermissionTypes // READ-ONLY; A list of sharing profile groups. - Groups []*SharingProfileGroup `json:"groups,omitempty" azure:"ro"` + Groups []*SharingProfileGroup } // SharingProfileGroup - Group of the gallery sharing profile type SharingProfileGroup struct { // A list of subscription/tenant ids the gallery is aimed to be shared to. - IDs []*string `json:"ids,omitempty"` + IDs []*string - // This property allows you to specify the type of sharing group. - // Possible values are: - // Subscriptions - // AADTenants - // Community - Type *SharingProfileGroupTypes `json:"type,omitempty"` + // This property allows you to specify the type of sharing group. Possible values are: Subscriptions, AADTenants. + Type *SharingProfileGroupTypes } // SharingStatus - Sharing status of current gallery. type SharingStatus struct { // Summary of all regional sharing status. - Summary []*RegionalSharingStatus `json:"summary,omitempty"` + Summary []*RegionalSharingStatus // READ-ONLY; Aggregated sharing state of current gallery. - AggregatedState *SharingState `json:"aggregatedState,omitempty" azure:"ro"` + AggregatedState *SharingState } // SharingUpdate - Specifies information about the gallery sharing profile update. type SharingUpdate struct { - // REQUIRED; This property allows you to specify the operation type of gallery sharing update. - // Possible values are: - // Add - // Remove - // Reset - OperationType *SharingUpdateOperationTypes `json:"operationType,omitempty"` + // REQUIRED; This property allows you to specify the operation type of gallery sharing update. Possible values are: Add, Remove, + // Reset. + OperationType *SharingUpdateOperationTypes // A list of sharing profile groups. - Groups []*SharingProfileGroup `json:"groups,omitempty"` + Groups []*SharingProfileGroup } // Snapshot resource. type Snapshot struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The extended location where the snapshot will be created. Extended location cannot be changed. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Snapshot resource properties. - Properties *SnapshotProperties `json:"properties,omitempty"` + Properties *SnapshotProperties // The snapshots sku name. Can be StandardLRS, PremiumLRS, or Standard_ZRS. This is an optional parameter for incremental // snapshot and the default behavior is the SKU will be set to the same sku as the // previous snapshot - SKU *SnapshotSKU `json:"sku,omitempty"` + SKU *SnapshotSKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Unused. Always Null. - ManagedBy *string `json:"managedBy,omitempty" azure:"ro"` + ManagedBy *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SnapshotList - The List Snapshots operation response. type SnapshotList struct { // REQUIRED; A list of snapshots. - Value []*Snapshot `json:"value,omitempty"` + Value []*Snapshot // The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // SnapshotProperties - Snapshot resource properties. type SnapshotProperties struct { // REQUIRED; Disk source information. CreationData information cannot be changed after the disk has been created. - CreationData *CreationData `json:"creationData,omitempty"` + CreationData *CreationData // Percentage complete for the background copy when a resource is created via the CopyStart operation. - CompletionPercent *float32 `json:"completionPercent,omitempty"` + CompletionPercent *float32 + + // Indicates the error details if the background copy of a resource created via the CopyStart operation fails. + CopyCompletionError *CopyCompletionError // Additional authentication requirements when exporting or uploading to a disk or snapshot. - DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"` + DataAccessAuthMode *DataAccessAuthMode // ARM id of the DiskAccess resource for using private endpoints on disks. - DiskAccessID *string `json:"diskAccessId,omitempty"` + DiskAccessID *string // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this // field is present for updates or creation with other options, it indicates a // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + DiskSizeGB *int32 // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"` + EncryptionSettingsCollection *EncryptionSettingsCollection // The hypervisor generation of the Virtual Machine. Applicable to OS disks only. - HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGeneration // Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can // be diffed. - Incremental *bool `json:"incremental,omitempty"` + Incremental *bool // Policy for accessing the disk via network. - NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` + NetworkAccessPolicy *NetworkAccessPolicy // The Operating System type. - OSType *OperatingSystemTypes `json:"osType,omitempty"` + OSType *OperatingSystemTypes // Policy for controlling export on the disk. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // Purchase plan information for the image from which the source disk for the snapshot was originally created. - PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"` + PurchasePlan *DiskPurchasePlan // Contains the security related information for the resource. - SecurityProfile *DiskSecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *DiskSecurityProfile // List of supported capabilities for the image from which the source disk from the snapshot was originally created. - SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` + SupportedCapabilities *SupportedCapabilities // Indicates the OS on a snapshot supports hibernation. - SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + SupportsHibernation *bool // READ-ONLY; The size of the disk in bytes. This field is read only. - DiskSizeBytes *int64 `json:"diskSizeBytes,omitempty" azure:"ro"` + DiskSizeBytes *int64 // READ-ONLY; The state of the snapshot. - DiskState *DiskState `json:"diskState,omitempty" azure:"ro"` + DiskState *DiskState + + // READ-ONLY; Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only + // be called on incremental snapshots with the same family id. + IncrementalSnapshotFamilyID *string // READ-ONLY; The disk provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; The time when the snapshot was created. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time // READ-ONLY; Unique Guid identifying the resource. - UniqueID *string `json:"uniqueId,omitempty" azure:"ro"` + UniqueID *string } // SnapshotSKU - The snapshots sku name. Can be StandardLRS, PremiumLRS, or Standard_ZRS. This is an optional parameter for @@ -5879,472 +5575,506 @@ type SnapshotProperties struct { // previous snapshot type SnapshotSKU struct { // The sku name. - Name *SnapshotStorageAccountTypes `json:"name,omitempty"` + Name *SnapshotStorageAccountTypes // READ-ONLY; The sku tier. - Tier *string `json:"tier,omitempty" azure:"ro"` + Tier *string } // SnapshotUpdate - Snapshot update resource. type SnapshotUpdate struct { // Snapshot resource update properties. - Properties *SnapshotUpdateProperties `json:"properties,omitempty"` + Properties *SnapshotUpdateProperties // The snapshots sku name. Can be StandardLRS, PremiumLRS, or Standard_ZRS. This is an optional parameter for incremental // snapshot and the default behavior is the SKU will be set to the same sku as the // previous snapshot - SKU *SnapshotSKU `json:"sku,omitempty"` + SKU *SnapshotSKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // SnapshotUpdateProperties - Snapshot resource update properties. type SnapshotUpdateProperties struct { // Additional authentication requirements when exporting or uploading to a disk or snapshot. - DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"` + DataAccessAuthMode *DataAccessAuthMode // ARM id of the DiskAccess resource for using private endpoints on disks. - DiskAccessID *string `json:"diskAccessId,omitempty"` + DiskAccessID *string // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this // field is present for updates or creation with other options, it indicates a // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + DiskSizeGB *int32 // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"` + EncryptionSettingsCollection *EncryptionSettingsCollection // Policy for accessing the disk via network. - NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` + NetworkAccessPolicy *NetworkAccessPolicy // the Operating System type. - OSType *OperatingSystemTypes `json:"osType,omitempty"` + OSType *OperatingSystemTypes // Policy for controlling export on the disk. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // List of supported capabilities for the image from which the OS disk was created. - SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` + SupportedCapabilities *SupportedCapabilities // Indicates the OS on a snapshot supports hibernation. - SupportsHibernation *bool `json:"supportsHibernation,omitempty"` -} - -// SnapshotsClientBeginCreateOrUpdateOptions contains the optional parameters for the SnapshotsClient.BeginCreateOrUpdate -// method. -type SnapshotsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method. -type SnapshotsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SnapshotsClientBeginGrantAccessOptions contains the optional parameters for the SnapshotsClient.BeginGrantAccess method. -type SnapshotsClientBeginGrantAccessOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SnapshotsClientBeginRevokeAccessOptions contains the optional parameters for the SnapshotsClient.BeginRevokeAccess method. -type SnapshotsClientBeginRevokeAccessOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method. -type SnapshotsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method. -type SnapshotsClientGetOptions struct { - // placeholder for future optional parameters -} - -// SnapshotsClientListByResourceGroupOptions contains the optional parameters for the SnapshotsClient.ListByResourceGroup -// method. -type SnapshotsClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.List method. -type SnapshotsClientListOptions struct { - // placeholder for future optional parameters + SupportsHibernation *bool } // SoftDeletePolicy - Contains information about the soft deletion policy of the gallery. type SoftDeletePolicy struct { // Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. - IsSoftDeleteEnabled *bool `json:"isSoftDeleteEnabled,omitempty"` + IsSoftDeleteEnabled *bool } // SourceVault - The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName} type SourceVault struct { // Resource Id - ID *string `json:"id,omitempty"` + ID *string } -// SpotRestorePolicy - Specifies the Spot-Try-Restore properties for the virtual machine scale set. -// With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically +// SpotRestorePolicy - Specifies the Spot-Try-Restore properties for the virtual machine scale set. With this property customer +// can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically // based on capacity availability and pricing constraint. type SpotRestorePolicy struct { // Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based // on capacity availability and pricing constraints - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances - RestoreTimeout *string `json:"restoreTimeout,omitempty"` + RestoreTimeout *string } +// StatusCodeCount - The status code and count of the cloud service instance view statuses type StatusCodeCount struct { // READ-ONLY; The instance view status code - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; Number of instances having this status code - Count *int32 `json:"count,omitempty" azure:"ro"` + Count *int32 } // StorageProfile - Specifies the storage settings for the virtual machine disks. type StorageProfile struct { - // Specifies the parameters that are used to add a data disk to a virtual machine. - // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. - DataDisks []*DataDisk `json:"dataDisks,omitempty"` + // Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see About + // disks and VHDs for Azure virtual machines + // [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. + DataDisks []*DataDisk + + // Specifies the disk controller type configured for the VM. Note: This property will be set to the default disk controller + // type if not specified provided virtual machine is being created with + // 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified + // minimum api version. You need to deallocate the VM before updating its disk + // controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates + // the VM. Minimum api-version: 2022-08-01. + DiskControllerType *DiskControllerTypes // Specifies information about the image to use. You can specify information about platform images, marketplace images, or // virtual machine images. This element is required when you want to use a platform // image, marketplace image, or virtual machine image, but is not used in other creation operations. - ImageReference *ImageReference `json:"imageReference,omitempty"` + ImageReference *ImageReference - // Specifies information about the operating system disk used by the virtual machine. - // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. - OSDisk *OSDisk `json:"osDisk,omitempty"` + // Specifies information about the operating system disk used by the virtual machine. For more information about disks, see + // About disks and VHDs for Azure virtual machines + // [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. + OSDisk *OSDisk } type SubResource struct { // Resource Id - ID *string `json:"id,omitempty"` + ID *string } type SubResourceReadOnly struct { // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } type SubResourceWithColocationStatus struct { // Describes colocation status of a resource in the Proximity Placement Group. - ColocationStatus *InstanceViewStatus `json:"colocationStatus,omitempty"` + ColocationStatus *InstanceViewStatus // Resource Id - ID *string `json:"id,omitempty"` + ID *string } // SupportedCapabilities - List of supported capabilities persisted on the disk resource for VM use. type SupportedCapabilities struct { // True if the image from which the OS disk is created supports accelerated networking. - AcceleratedNetwork *bool `json:"acceleratedNetwork,omitempty"` + AcceleratedNetwork *bool // CPU architecture supported by an OS disk. - Architecture *Architecture `json:"architecture,omitempty"` + Architecture *Architecture + + // The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI. + DiskControllerTypes *string +} + +// SystemData - The system meta data relating to this resource. +type SystemData struct { + // READ-ONLY; Specifies the time in UTC at which the Cloud Service (extended support) resource was created. + // Minimum api-version: 2022-04-04. + CreatedAt *time.Time + + // READ-ONLY; Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified. + // Minimum api-version: 2022-04-04. + LastModifiedAt *time.Time } // TargetRegion - Describes the target region information. type TargetRegion struct { // REQUIRED; The name of the region. - Name *string `json:"name,omitempty"` + Name *string // Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. - Encryption *EncryptionImages `json:"encryption,omitempty"` + Encryption *EncryptionImages + + // Contains the flag setting to hide an image when users specify version='latest' + ExcludeFromLatest *bool // The number of replicas of the Image Version to be created per region. This property is updatable. - RegionalReplicaCount *int32 `json:"regionalReplicaCount,omitempty"` + RegionalReplicaCount *int32 // Specifies the storage account type to be used to store the image. This property is not updatable. - StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountType } type TerminateNotificationProfile struct { // Specifies whether the Terminate Scheduled event is enabled or disabled. - Enable *bool `json:"enable,omitempty"` + Enable *bool // Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event // before the event is auto approved (timed out). The configuration must be // specified in ISO 8601 format, the default value is 5 minutes (PT5M) - NotBeforeTimeout *string `json:"notBeforeTimeout,omitempty"` + NotBeforeTimeout *string } // ThrottledRequestsInput - Api request input for LogAnalytics getThrottledRequests Api. type ThrottledRequestsInput struct { // REQUIRED; SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. - BlobContainerSasURI *string `json:"blobContainerSasUri,omitempty"` + BlobContainerSasURI *string // REQUIRED; From time of the query - FromTime *time.Time `json:"fromTime,omitempty"` + FromTime *time.Time // REQUIRED; To time of the query - ToTime *time.Time `json:"toTime,omitempty"` + ToTime *time.Time // Group query result by Client Application ID. - GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + GroupByClientApplicationID *bool // Group query result by Operation Name. - GroupByOperationName *bool `json:"groupByOperationName,omitempty"` + GroupByOperationName *bool // Group query result by Resource Name. - GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + GroupByResourceName *bool // Group query result by Throttle Policy applied. - GroupByThrottlePolicy *bool `json:"groupByThrottlePolicy,omitempty"` + GroupByThrottlePolicy *bool // Group query result by User Agent. - GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` + GroupByUserAgent *bool +} + +// UefiKey - A UEFI key signature. +type UefiKey struct { + // The type of key signature. + Type *UefiKeyType + + // The value of the key signature. + Value []*string +} + +// UefiKeySignatures - Additional UEFI key signatures that will be added to the image in addition to the signature templates +type UefiKeySignatures struct { + // The database of UEFI keys for this image version. + Db []*UefiKey + + // The database of revoked UEFI keys for this image version. + Dbx []*UefiKey + + // The Key Encryption Keys of this image version. + Kek []*UefiKey + + // The Platform Key of this image version. + Pk *UefiKey } -// UefiSettings - Specifies the security settings like secure boot and vTPM used while creating the virtual machine. -// Minimum api-version: 2020-12-01 +// UefiSettings - Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum +// api-version: 2020-12-01. type UefiSettings struct { - // Specifies whether secure boot should be enabled on the virtual machine. - // Minimum api-version: 2020-12-01 - SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"` + // Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01. + SecureBootEnabled *bool - // Specifies whether vTPM should be enabled on the virtual machine. - // Minimum api-version: 2020-12-01 - VTpmEnabled *bool `json:"vTpmEnabled,omitempty"` + // Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01. + VTpmEnabled *bool } // UpdateDomain - Defines an update domain for the cloud service. type UpdateDomain struct { // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource Name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } +// UpdateDomainListResult - The list operation result. type UpdateDomainListResult struct { - // REQUIRED - Value []*UpdateDomain `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // REQUIRED; The list of resources. + Value []*UpdateDomain + + // The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null + // to fetch all the resources. + NextLink *string } // UpdateResource - The Update Resource model definition. type UpdateResource struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // UpdateResourceDefinition - The Update Resource model definition. type UpdateResourceDefinition struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // UpgradeOperationHistoricalStatusInfo - Virtual Machine Scale Set OS Upgrade History operation response. type UpgradeOperationHistoricalStatusInfo struct { // READ-ONLY; Resource location - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Information about the properties of the upgrade operation. - Properties *UpgradeOperationHistoricalStatusInfoProperties `json:"properties,omitempty" azure:"ro"` + Properties *UpgradeOperationHistoricalStatusInfoProperties // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // UpgradeOperationHistoricalStatusInfoProperties - Describes each OS upgrade on the Virtual Machine Scale Set. type UpgradeOperationHistoricalStatusInfoProperties struct { // READ-ONLY; Error Details for this upgrade if there are any. - Error *APIError `json:"error,omitempty" azure:"ro"` + Error *APIError // READ-ONLY; Counts of the VMs in each state. - Progress *RollingUpgradeProgressInfo `json:"progress,omitempty" azure:"ro"` + Progress *RollingUpgradeProgressInfo // READ-ONLY; Information about OS rollback if performed - RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty" azure:"ro"` + RollbackInfo *RollbackStatusInfo // READ-ONLY; Information about the overall status of the upgrade operation. - RunningStatus *UpgradeOperationHistoryStatus `json:"runningStatus,omitempty" azure:"ro"` + RunningStatus *UpgradeOperationHistoryStatus // READ-ONLY; Invoker of the Upgrade Operation - StartedBy *UpgradeOperationInvoker `json:"startedBy,omitempty" azure:"ro"` + StartedBy *UpgradeOperationInvoker // READ-ONLY; Image Reference details - TargetImageReference *ImageReference `json:"targetImageReference,omitempty" azure:"ro"` + TargetImageReference *ImageReference } // UpgradeOperationHistoryStatus - Information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // READ-ONLY; Code indicating the current status of the upgrade. - Code *UpgradeState `json:"code,omitempty" azure:"ro"` + Code *UpgradeState // READ-ONLY; End time of the upgrade. - EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` + EndTime *time.Time // READ-ONLY; Start time of the upgrade. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time } // UpgradePolicy - Describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Configuration parameters used for performing automatic OS Upgrade. - AutomaticOSUpgradePolicy *AutomaticOSUpgradePolicy `json:"automaticOSUpgradePolicy,omitempty"` + AutomaticOSUpgradePolicy *AutomaticOSUpgradePolicy // Specifies the mode of an upgrade to virtual machines in the scale set. // Possible values are: // Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade // action. // Automatic - All virtual machines in the scale set are automatically updated at the same time. - Mode *UpgradeMode `json:"mode,omitempty"` + Mode *UpgradeMode // The configuration parameters used while performing a rolling upgrade. - RollingUpgradePolicy *RollingUpgradePolicy `json:"rollingUpgradePolicy,omitempty"` + RollingUpgradePolicy *RollingUpgradePolicy } // Usage - Describes Compute Resource Usage. type Usage struct { // REQUIRED; The current usage of the resource. - CurrentValue *int32 `json:"currentValue,omitempty"` + CurrentValue *int32 // REQUIRED; The maximum permitted usage of the resource. - Limit *int64 `json:"limit,omitempty"` + Limit *int64 // REQUIRED; The name of the type of usage. - Name *UsageName `json:"name,omitempty"` + Name *UsageName // REQUIRED; An enum describing the unit of usage measurement. - Unit *string `json:"unit,omitempty"` -} - -// UsageClientListOptions contains the optional parameters for the UsageClient.List method. -type UsageClientListOptions struct { - // placeholder for future optional parameters + Unit *string } // UsageName - The Usage Names. type UsageName struct { // The localized name of the resource. - LocalizedValue *string `json:"localizedValue,omitempty"` + LocalizedValue *string // The name of the resource. - Value *string `json:"value,omitempty"` + Value *string } type UserArtifactManage struct { // REQUIRED; Required. The path and arguments to install the gallery application. This is limited to 4096 characters. - Install *string `json:"install,omitempty"` + Install *string // REQUIRED; Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. - Remove *string `json:"remove,omitempty"` + Remove *string // Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove // command on the previous version and install command on the current version // of the gallery application. This is limited to 4096 characters. - Update *string `json:"update,omitempty"` + Update *string +} + +// UserArtifactSettings - Additional settings for the VM app that contains the target package and config file name when it +// is deployed to target VM or VM scale set. +type UserArtifactSettings struct { + // Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, + // the config file will be named the Gallery Application name appended with + // "_config". + ConfigFileName *string + + // Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, + // the package file will be named the same as the Gallery Application name. + PackageFileName *string } // UserArtifactSource - The source image from which the Image Version is going to be created. type UserArtifactSource struct { // REQUIRED; Required. The mediaLink of the artifact, must be a readable storage page blob. - MediaLink *string `json:"mediaLink,omitempty"` + MediaLink *string // Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. - DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"` + DefaultConfigurationLink *string } type UserAssignedIdentitiesValue struct { // READ-ONLY; The client id of user assigned identity. - ClientID *string `json:"clientId,omitempty" azure:"ro"` + ClientID *string // READ-ONLY; The principal id of user assigned identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string +} + +// UserInitiatedReboot - Specifies Reboot related Scheduled Event related configurations. +type UserInitiatedReboot struct { + // Specifies Reboot Scheduled Event related configurations. + AutomaticallyApprove *bool +} + +// UserInitiatedRedeploy - Specifies Redeploy related Scheduled Event related configurations. +type UserInitiatedRedeploy struct { + // Specifies Redeploy Scheduled Event related configurations. + AutomaticallyApprove *bool } -// VMDiskSecurityProfile - Specifies the security profile settings for the managed disk. -// NOTE: It can only be set for Confidential VMs +// VMDiskSecurityProfile - Specifies the security profile settings for the managed disk. Note: It can only be set for Confidential +// VMs. type VMDiskSecurityProfile struct { // Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key // encrypted ConfidentialVM OS Disk and VMGuest blob. - DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` + DiskEncryptionSet *DiskEncryptionSetParameters - // Specifies the EncryptionType of the managed disk. - // It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly - // for encryption of just the VMGuestState blob. - // NOTE: It can be set for only Confidential VMs. - SecurityEncryptionType *SecurityEncryptionTypes `json:"securityEncryptionType,omitempty"` + // Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk + // along with VMGuestState blob, VMGuestStateOnly for encryption of just the + // VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. Note: It can be set + // for only Confidential VMs. + SecurityEncryptionType *SecurityEncryptionTypes } // VMGalleryApplication - Specifies the required information to reference a compute gallery application version type VMGalleryApplication struct { // REQUIRED; Specifies the GalleryApplicationVersion resource id on the form of // /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version} - PackageReferenceID *string `json:"packageReferenceId,omitempty"` + PackageReferenceID *string // Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided - ConfigurationReference *string `json:"configurationReference,omitempty"` + ConfigurationReference *string // If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the // VM/VMSS - EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"` + EnableAutomaticUpgrade *bool // Optional, Specifies the order in which the packages have to be installed - Order *int32 `json:"order,omitempty"` + Order *int32 // Optional, Specifies a passthrough value for more generic context. - Tags *string `json:"tags,omitempty"` + Tags *string // Optional, If true, any failure for any operation in the VmApplication will fail the deployment - TreatFailureAsDeploymentFailure *bool `json:"treatFailureAsDeploymentFailure,omitempty"` + TreatFailureAsDeploymentFailure *bool +} + +// VMImagesInEdgeZoneListResult - The List VmImages in EdgeZone operation response. +type VMImagesInEdgeZoneListResult struct { + // The URI to fetch the next page of VMImages in EdgeZone. Call ListNext() with this URI to fetch the next page of VmImages. + NextLink *string + + // The list of VMImages in EdgeZone + Value []*VirtualMachineImageResource } type VMScaleSetConvertToSinglePlacementGroupInput struct { // Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, // please use Virtual Machine Scale Set VMs - Get API. If not provided, the // platform will choose one with maximum number of virtual machine instances. - ActivePlacementGroupID *string `json:"activePlacementGroupId,omitempty"` + ActivePlacementGroupID *string } // VMSizeProperties - Specifies VM Size Property settings on the virtual machine. type VMSizeProperties struct { - // Specifies the number of vCPUs available for the VM. - // When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available - // for that VM size exposed in api response of List all available virtual machine - // sizes in a region [https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list] . - VCPUsAvailable *int32 `json:"vCPUsAvailable,omitempty"` - - // Specifies the vCPU to physical core ratio. - // When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the - // VM Size exposed in api response of List all available virtual machine sizes in - // a region [https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list] + // Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default + // behavior is to set it to the value of vCPUs available for that VM size exposed + // in api response of List all available virtual machine sizes in a region [https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list]. + VCPUsAvailable *int32 + + // Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior + // is set to the value of vCPUsPerCore for the VM Size exposed in api response of + // List all available virtual machine sizes in a region [https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list]. // Setting this property to 1 also means that hyper-threading is disabled. - VCPUsPerCore *int32 `json:"vCPUsPerCore,omitempty"` + VCPUsPerCore *int32 } // VaultCertificate - Describes a single certificate reference in a Key Vault, and where the certificate should reside on // the VM. type VaultCertificate struct { // For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified - // certificate store is implicitly in the LocalMachine account. - // For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name .crt - // for the X509 certificate file and .prv for private - // key. Both of these files are .pem formatted. - CertificateStore *string `json:"certificateStore,omitempty"` + // certificate store is implicitly in the LocalMachine account. For Linux + // VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name .crt + // for the X509 certificate file and .prv for private key. Both + // of these files are .pem formatted. + CertificateStore *string // This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, // see Add a key or secret to the key vault @@ -6360,248 +6090,235 @@ type VaultCertificate struct { // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure Key Vault virtual machine extension // for Windows // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows]. - CertificateURL *string `json:"certificateUrl,omitempty"` + CertificateURL *string } // VaultSecretGroup - Describes a set of certificates which are all in the same Key Vault. type VaultSecretGroup struct { // The relative URL of the Key Vault containing all of the certificates in VaultCertificates. - SourceVault *SubResource `json:"sourceVault,omitempty"` + SourceVault *SubResource // The list of key vault references in SourceVault which contain certificates. - VaultCertificates []*VaultCertificate `json:"vaultCertificates,omitempty"` + VaultCertificates []*VaultCertificate } // VirtualHardDisk - Describes the uri of a disk. type VirtualHardDisk struct { // Specifies the virtual hard disk's uri. - URI *string `json:"uri,omitempty"` + URI *string } // VirtualMachine - Describes a Virtual Machine. type VirtualMachine struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The extended location of the Virtual Machine. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // The identity of the virtual machine, if configured. - Identity *VirtualMachineIdentity `json:"identity,omitempty"` + Identity *VirtualMachineIdentity // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace // images. Before you can use a marketplace image from an API, you must // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click // Want to deploy programmatically, Get Started ->. Enter any required // information and then click Save. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // Describes the properties of a Virtual Machine. - Properties *VirtualMachineProperties `json:"properties,omitempty"` + Properties *VirtualMachineProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // The virtual machine zones. - Zones []*string `json:"zones,omitempty"` + Zones []*string + + // READ-ONLY; Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header + // to ensure optimistic updates. + Etag *string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string + + // READ-ONLY; ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This + // property is used by platform for internal resource group delete optimization. + ManagedBy *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The virtual machine child extension resources. - Resources []*VirtualMachineExtension `json:"resources,omitempty" azure:"ro"` + Resources []*VirtualMachineExtension // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineAgentInstanceView - The instance view of the VM Agent running on the virtual machine. type VirtualMachineAgentInstanceView struct { // The virtual machine extension handler instance view. - ExtensionHandlers []*VirtualMachineExtensionHandlerInstanceView `json:"extensionHandlers,omitempty"` + ExtensionHandlers []*VirtualMachineExtensionHandlerInstanceView // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // The VM Agent full version. - VMAgentVersion *string `json:"vmAgentVersion,omitempty"` + VMAgentVersion *string } // VirtualMachineAssessPatchesResult - Describes the properties of an AssessPatches result. type VirtualMachineAssessPatchesResult struct { // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension // logs. - AssessmentActivityID *string `json:"assessmentActivityId,omitempty" azure:"ro"` + AssessmentActivityID *string // READ-ONLY; The list of patches that have been detected as available for installation. - AvailablePatches []*VirtualMachineSoftwarePatchProperties `json:"availablePatches,omitempty" azure:"ro"` + AvailablePatches []*VirtualMachineSoftwarePatchProperties // READ-ONLY; The number of critical or security patches that have been detected as available and not yet installed. - CriticalAndSecurityPatchCount *int32 `json:"criticalAndSecurityPatchCount,omitempty" azure:"ro"` + CriticalAndSecurityPatchCount *int32 // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them. - Error *APIError `json:"error,omitempty" azure:"ro"` + Error *APIError // READ-ONLY; The number of all available patches excluding critical and security. - OtherPatchCount *int32 `json:"otherPatchCount,omitempty" azure:"ro"` + OtherPatchCount *int32 // READ-ONLY; The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete // installation but the reboot has not yet occurred. - RebootPending *bool `json:"rebootPending,omitempty" azure:"ro"` + RebootPending *bool // READ-ONLY; The UTC timestamp when the operation began. - StartDateTime *time.Time `json:"startDateTime,omitempty" azure:"ro"` + StartDateTime *time.Time // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes. // At that point it will become "Unknown", "Failed", "Succeeded", or // "CompletedWithWarnings." - Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"` + Status *PatchOperationStatus } // VirtualMachineCaptureParameters - Capture Virtual Machine parameters. type VirtualMachineCaptureParameters struct { // REQUIRED; The destination container name. - DestinationContainerName *string `json:"destinationContainerName,omitempty"` + DestinationContainerName *string // REQUIRED; Specifies whether to overwrite the destination virtual hard disk, in case of conflict. - OverwriteVhds *bool `json:"overwriteVhds,omitempty"` + OverwriteVhds *bool // REQUIRED; The captured virtual hard disk's name prefix. - VhdPrefix *string `json:"vhdPrefix,omitempty"` + VhdPrefix *string } // VirtualMachineCaptureResult - Output of virtual machine capture operation. type VirtualMachineCaptureResult struct { // Resource Id - ID *string `json:"id,omitempty"` + ID *string // READ-ONLY; the version of the content - ContentVersion *string `json:"contentVersion,omitempty" azure:"ro"` + ContentVersion *string // READ-ONLY; parameters of the captured virtual machine - Parameters interface{} `json:"parameters,omitempty" azure:"ro"` + Parameters any // READ-ONLY; a list of resource items of the captured virtual machine - Resources []interface{} `json:"resources,omitempty" azure:"ro"` + Resources []any // READ-ONLY; the schema of the captured virtual machine - Schema *string `json:"$schema,omitempty" azure:"ro"` + Schema *string } // VirtualMachineExtension - Describes a Virtual Machine Extension. type VirtualMachineExtension struct { // Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a Virtual Machine Extension. - Properties *VirtualMachineExtensionProperties `json:"properties,omitempty"` + Properties *VirtualMachineExtensionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineExtensionHandlerInstanceView - The instance view of a virtual machine extension handler. type VirtualMachineExtensionHandlerInstanceView struct { // The extension handler status. - Status *InstanceViewStatus `json:"status,omitempty"` + Status *InstanceViewStatus // Specifies the type of the extension; an example is "CustomScriptExtension". - Type *string `json:"type,omitempty"` + Type *string // Specifies the version of the script handler. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` + TypeHandlerVersion *string } // VirtualMachineExtensionImage - Describes a Virtual Machine Extension Image. type VirtualMachineExtensionImage struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a Virtual Machine Extension Image. - Properties *VirtualMachineExtensionImageProperties `json:"properties,omitempty"` + Properties *VirtualMachineExtensionImageProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineExtensionImageProperties - Describes the properties of a Virtual Machine Extension Image. type VirtualMachineExtensionImageProperties struct { // REQUIRED; The type of role (IaaS or PaaS) this extension supports. - ComputeRole *string `json:"computeRole,omitempty"` + ComputeRole *string // REQUIRED; The schema defined by publisher, where extension consumers should provide settings in a matching schema. - HandlerSchema *string `json:"handlerSchema,omitempty"` + HandlerSchema *string // REQUIRED; The operating system this extension supports. - OperatingSystem *string `json:"operatingSystem,omitempty"` + OperatingSystem *string // Whether the handler can support multiple extensions. - SupportsMultipleExtensions *bool `json:"supportsMultipleExtensions,omitempty"` + SupportsMultipleExtensions *bool // Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there // might be cases where a publisher wants to explicitly indicate the extension is // only enabled for CRP VMs but not VMSS. - VMScaleSetEnabled *bool `json:"vmScaleSetEnabled,omitempty"` -} - -// VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get -// method. -type VirtualMachineExtensionImagesClientGetOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes -// method. -type VirtualMachineExtensionImagesClientListTypesOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions -// method. -type VirtualMachineExtensionImagesClientListVersionsOptions struct { - // The filter to apply on the operation. - Filter *string - Orderby *string - Top *int32 + VMScaleSetEnabled *bool } // VirtualMachineExtensionInstanceView - The instance view of a virtual machine extension. type VirtualMachineExtensionInstanceView struct { // The virtual machine extension name. - Name *string `json:"name,omitempty"` + Name *string // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // The resource status information. - Substatuses []*InstanceViewStatus `json:"substatuses,omitempty"` + Substatuses []*InstanceViewStatus // Specifies the type of the extension; an example is "CustomScriptExtension". - Type *string `json:"type,omitempty"` + Type *string // Specifies the version of the script handler. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` + TypeHandlerVersion *string } // VirtualMachineExtensionProperties - Describes the properties of a Virtual Machine Extension. @@ -6609,51 +6326,54 @@ type VirtualMachineExtensionProperties struct { // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, // however, the extension will not upgrade minor versions unless redeployed, even // with this property set to true. - AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"` + AutoUpgradeMinorVersion *bool // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension // available. - EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"` + EnableAutomaticUpgrade *bool // How the extension handler should be forced to update even if the extension configuration has not changed. - ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ForceUpdateTag *string // The virtual machine extension instance view. - InstanceView *VirtualMachineExtensionInstanceView `json:"instanceView,omitempty"` + InstanceView *VirtualMachineExtensionInstanceView // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - ProtectedSettings interface{} `json:"protectedSettings,omitempty"` + ProtectedSettings any // The extensions protected settings that are passed by reference, and consumed from key vault - ProtectedSettingsFromKeyVault interface{} `json:"protectedSettingsFromKeyVault,omitempty"` + ProtectedSettingsFromKeyVault *KeyVaultSecretReference + + // Collection of extension names after which this extension needs to be provisioned. + ProvisionAfterExtensions []*string // The name of the extension handler publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // Json formatted public settings for the extension. - Settings interface{} `json:"settings,omitempty"` + Settings any // Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting // to the VM will not be suppressed regardless of this value). The default is false. - SuppressFailures *bool `json:"suppressFailures,omitempty"` + SuppressFailures *bool // Specifies the type of the extension; an example is "CustomScriptExtension". - Type *string `json:"type,omitempty"` + Type *string // Specifies the version of the script handler. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` + TypeHandlerVersion *string // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // VirtualMachineExtensionUpdate - Describes a Virtual Machine Extension. type VirtualMachineExtensionUpdate struct { // Describes the properties of a Virtual Machine Extension. - Properties *VirtualMachineExtensionUpdateProperties `json:"properties,omitempty"` + Properties *VirtualMachineExtensionUpdateProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // VirtualMachineExtensionUpdateProperties - Describes the properties of a Virtual Machine Extension. @@ -6661,91 +6381,57 @@ type VirtualMachineExtensionUpdateProperties struct { // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, // however, the extension will not upgrade minor versions unless redeployed, even // with this property set to true. - AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"` + AutoUpgradeMinorVersion *bool // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension // available. - EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"` + EnableAutomaticUpgrade *bool // How the extension handler should be forced to update even if the extension configuration has not changed. - ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ForceUpdateTag *string // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - ProtectedSettings interface{} `json:"protectedSettings,omitempty"` + ProtectedSettings any // The extensions protected settings that are passed by reference, and consumed from key vault - ProtectedSettingsFromKeyVault interface{} `json:"protectedSettingsFromKeyVault,omitempty"` + ProtectedSettingsFromKeyVault *KeyVaultSecretReference // The name of the extension handler publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // Json formatted public settings for the extension. - Settings interface{} `json:"settings,omitempty"` + Settings any // Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting // to the VM will not be suppressed regardless of this value). The default is false. - SuppressFailures *bool `json:"suppressFailures,omitempty"` + SuppressFailures *bool // Specifies the type of the extension; an example is "CustomScriptExtension". - Type *string `json:"type,omitempty"` + Type *string // Specifies the version of the script handler. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` -} - -// VirtualMachineExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginCreateOrUpdate -// method. -type VirtualMachineExtensionsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginDelete -// method. -type VirtualMachineExtensionsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginUpdate -// method. -type VirtualMachineExtensionsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineExtensionsClientGetOptions contains the optional parameters for the VirtualMachineExtensionsClient.Get method. -type VirtualMachineExtensionsClientGetOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List -// method. -type VirtualMachineExtensionsClientListOptions struct { - // The expand expression to apply on the operation. - Expand *string + TypeHandlerVersion *string } // VirtualMachineExtensionsListResult - The List Extension operation response type VirtualMachineExtensionsListResult struct { // The list of extensions - Value []*VirtualMachineExtension `json:"value,omitempty"` + Value []*VirtualMachineExtension } // VirtualMachineHealthStatus - The health status of the VM. type VirtualMachineHealthStatus struct { // READ-ONLY; The health status information for the VM. - Status *InstanceViewStatus `json:"status,omitempty" azure:"ro"` + Status *InstanceViewStatus } // VirtualMachineIPTag - Contains the IP tag associated with the public IP address. type VirtualMachineIPTag struct { // IP tag type. Example: FirstPartyUsage. - IPTagType *string `json:"ipTagType,omitempty"` + IPTagType *string // IP tag associated with the public IP. Example: SQL, Storage etc. - Tag *string `json:"tag,omitempty"` + Tag *string } // VirtualMachineIdentity - Identity for the virtual machine. @@ -6753,335 +6439,283 @@ type VirtualMachineIdentity struct { // The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly // created identity and a set of user assigned identities. The type 'None' will // remove any identities from the virtual machine. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM // resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - UserAssignedIdentities map[string]*UserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentitiesValue // READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant id associated with the virtual machine. This property will only be provided for a system assigned // identity. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // VirtualMachineImage - Describes a Virtual Machine Image. type VirtualMachineImage struct { // REQUIRED; The supported Azure location of the resource. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The name of the resource. - Name *string `json:"name,omitempty"` + Name *string // The extended location of the Virtual Machine. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Resource Id - ID *string `json:"id,omitempty"` + ID *string // Describes the properties of a Virtual Machine Image. - Properties *VirtualMachineImageProperties `json:"properties,omitempty"` + Properties *VirtualMachineImageProperties // Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize // your Azure resources // [https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md]. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // VirtualMachineImageFeature - Specifies additional capabilities supported by the image type VirtualMachineImageFeature struct { // The name of the feature. - Name *string `json:"name,omitempty"` + Name *string // The corresponding value for the feature. - Value *string `json:"value,omitempty"` + Value *string } // VirtualMachineImageProperties - Describes the properties of a Virtual Machine Image. type VirtualMachineImageProperties struct { // Specifies the Architecture Type - Architecture *ArchitectureTypes `json:"architecture,omitempty"` + Architecture *ArchitectureTypes // Describes automatic OS upgrade properties on the image. - AutomaticOSUpgradeProperties *AutomaticOSUpgradeProperties `json:"automaticOSUpgradeProperties,omitempty"` - DataDiskImages []*DataDiskImage `json:"dataDiskImages,omitempty"` + AutomaticOSUpgradeProperties *AutomaticOSUpgradeProperties + DataDiskImages []*DataDiskImage // Specifies disallowed configuration for the VirtualMachine created from the image - Disallowed *DisallowedConfiguration `json:"disallowed,omitempty"` - Features []*VirtualMachineImageFeature `json:"features,omitempty"` + Disallowed *DisallowedConfiguration + Features []*VirtualMachineImageFeature // Specifies the HyperVGeneration Type - HyperVGeneration *HyperVGenerationTypes `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGenerationTypes + + // Describes image deprecation status properties on the image. + ImageDeprecationStatus *ImageDeprecationStatus // Contains the os disk image information. - OSDiskImage *OSDiskImage `json:"osDiskImage,omitempty"` + OSDiskImage *OSDiskImage // Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. - Plan *PurchasePlan `json:"plan,omitempty"` + Plan *PurchasePlan } // VirtualMachineImageResource - Virtual machine image resource information. type VirtualMachineImageResource struct { // REQUIRED; The supported Azure location of the resource. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The name of the resource. - Name *string `json:"name,omitempty"` + Name *string // The extended location of the Virtual Machine. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Resource Id - ID *string `json:"id,omitempty"` + ID *string // Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize // your Azure resources // [https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md]. - Tags map[string]*string `json:"tags,omitempty"` -} - -// VirtualMachineImagesClientGetOptions contains the optional parameters for the VirtualMachineImagesClient.Get method. -type VirtualMachineImagesClientGetOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers -// method. -type VirtualMachineImagesClientListOffersOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineImagesClientListOptions contains the optional parameters for the VirtualMachineImagesClient.List method. -type VirtualMachineImagesClientListOptions struct { - // The expand expression to apply on the operation. - Expand *string - Orderby *string - Top *int32 -} - -// VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers -// method. -type VirtualMachineImagesClientListPublishersOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineImagesClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesClient.ListSKUs -// method. -type VirtualMachineImagesClientListSKUsOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineImagesEdgeZoneClientGetOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.Get -// method. -type VirtualMachineImagesEdgeZoneClientGetOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineImagesEdgeZoneClientListOffersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListOffers -// method. -type VirtualMachineImagesEdgeZoneClientListOffersOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineImagesEdgeZoneClientListOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.List -// method. -type VirtualMachineImagesEdgeZoneClientListOptions struct { - // The expand expression to apply on the operation. - Expand *string - // Specifies the order of the results returned. Formatted as an OData query. - Orderby *string - // An integer value specifying the number of images to return that matches supplied values. - Top *int32 -} - -// VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers -// method. -type VirtualMachineImagesEdgeZoneClientListPublishersOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineImagesEdgeZoneClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListSKUs -// method. -type VirtualMachineImagesEdgeZoneClientListSKUsOptions struct { - // placeholder for future optional parameters + Tags map[string]*string } // VirtualMachineInstallPatchesParameters - Input for InstallPatches as directly received by the API type VirtualMachineInstallPatchesParameters struct { // REQUIRED; Defines when it is acceptable to reboot a VM during a software update operation. - RebootSetting *VMGuestPatchRebootSetting `json:"rebootSetting,omitempty"` + RebootSetting *VMGuestPatchRebootSetting // Input for InstallPatches on a Linux VM, as directly received by the API - LinuxParameters *LinuxParameters `json:"linuxParameters,omitempty"` + LinuxParameters *LinuxParameters // Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such // as PT4H (4 hours) - MaximumDuration *string `json:"maximumDuration,omitempty"` + MaximumDuration *string // Input for InstallPatches on a Windows VM, as directly received by the API - WindowsParameters *WindowsParameters `json:"windowsParameters,omitempty"` + WindowsParameters *WindowsParameters } // VirtualMachineInstallPatchesResult - The result summary of an installation operation. type VirtualMachineInstallPatchesResult struct { // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them. - Error *APIError `json:"error,omitempty" azure:"ro"` + Error *APIError // READ-ONLY; The number of patches that were not installed due to the user blocking their installation. - ExcludedPatchCount *int32 `json:"excludedPatchCount,omitempty" azure:"ro"` + ExcludedPatchCount *int32 // READ-ONLY; The number of patches that could not be installed due to some issue. See errors for details. - FailedPatchCount *int32 `json:"failedPatchCount,omitempty" azure:"ro"` + FailedPatchCount *int32 // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension // logs. - InstallationActivityID *string `json:"installationActivityId,omitempty" azure:"ro"` + InstallationActivityID *string // READ-ONLY; The number of patches successfully installed. - InstalledPatchCount *int32 `json:"installedPatchCount,omitempty" azure:"ro"` + InstalledPatchCount *int32 // READ-ONLY; Whether the operation ran out of time before it completed all its intended actions. - MaintenanceWindowExceeded *bool `json:"maintenanceWindowExceeded,omitempty" azure:"ro"` + MaintenanceWindowExceeded *bool // READ-ONLY; The number of patches that were detected as available for install, but did not meet the operation's criteria. - NotSelectedPatchCount *int32 `json:"notSelectedPatchCount,omitempty" azure:"ro"` + NotSelectedPatchCount *int32 // READ-ONLY; The patches that were installed during the operation. - Patches []*PatchInstallationDetail `json:"patches,omitempty" azure:"ro"` + Patches []*PatchInstallationDetail // READ-ONLY; The number of patches that were identified as meeting the installation criteria, but were not able to be installed. // Typically this happens when maintenanceWindowExceeded == true. - PendingPatchCount *int32 `json:"pendingPatchCount,omitempty" azure:"ro"` + PendingPatchCount *int32 // READ-ONLY; The reboot state of the VM following completion of the operation. - RebootStatus *VMGuestPatchRebootStatus `json:"rebootStatus,omitempty" azure:"ro"` + RebootStatus *VMGuestPatchRebootStatus // READ-ONLY; The UTC timestamp when the operation began. - StartDateTime *time.Time `json:"startDateTime,omitempty" azure:"ro"` + StartDateTime *time.Time // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes. // At that point it will become "Failed", "Succeeded", "Unknown" or "CompletedWithWarnings." - Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"` + Status *PatchOperationStatus } // VirtualMachineInstanceView - The instance view of a virtual machine. type VirtualMachineInstanceView struct { - // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. - // You can easily view the output of your console log. - // Azure also enables you to see a screenshot of the VM from the hypervisor. - BootDiagnostics *BootDiagnosticsInstanceView `json:"bootDiagnostics,omitempty"` + // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You + // can easily view the output of your console log. Azure also enables you to see + // a screenshot of the VM from the hypervisor. + BootDiagnostics *BootDiagnosticsInstanceView // The computer name assigned to the virtual machine. - ComputerName *string `json:"computerName,omitempty"` + ComputerName *string // The virtual machine disk information. - Disks []*DiskInstanceView `json:"disks,omitempty"` + Disks []*DiskInstanceView // The extensions information. - Extensions []*VirtualMachineExtensionInstanceView `json:"extensions,omitempty"` + Extensions []*VirtualMachineExtensionInstanceView // Specifies the HyperVGeneration Type associated with a resource - HyperVGeneration *HyperVGenerationType `json:"hyperVGeneration,omitempty"` + HyperVGeneration *HyperVGenerationType // The Maintenance Operation status on the virtual machine. - MaintenanceRedeployStatus *MaintenanceRedeployStatus `json:"maintenanceRedeployStatus,omitempty"` + MaintenanceRedeployStatus *MaintenanceRedeployStatus // The Operating System running on the virtual machine. - OSName *string `json:"osName,omitempty"` + OSName *string // The version of Operating System running on the virtual machine. - OSVersion *string `json:"osVersion,omitempty"` + OSVersion *string // [Preview Feature] The status of virtual machine patch operations. - PatchStatus *VirtualMachinePatchStatus `json:"patchStatus,omitempty"` + PatchStatus *VirtualMachinePatchStatus // Specifies the fault domain of the virtual machine. - PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"` + PlatformFaultDomain *int32 // Specifies the update domain of the virtual machine. - PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"` + PlatformUpdateDomain *int32 // The Remote desktop certificate thumbprint. - RdpThumbPrint *string `json:"rdpThumbPrint,omitempty"` + RdpThumbPrint *string // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // The VM Agent running on the virtual machine. - VMAgent *VirtualMachineAgentInstanceView `json:"vmAgent,omitempty"` + VMAgent *VirtualMachineAgentInstanceView // READ-ONLY; Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when // the virtual machine is associated with a dedicated host group that has automatic - // placement enabled. - // Minimum api-version: 2020-06-01. - AssignedHost *string `json:"assignedHost,omitempty" azure:"ro"` + // placement enabled. Minimum api-version: 2020-06-01. + AssignedHost *string + + // READ-ONLY; [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool. + IsVMInStandbyPool *bool // READ-ONLY; The health status for the VM. - VMHealth *VirtualMachineHealthStatus `json:"vmHealth,omitempty" azure:"ro"` + VMHealth *VirtualMachineHealthStatus } // VirtualMachineListResult - The List Virtual Machine operation response. type VirtualMachineListResult struct { // REQUIRED; The list of virtual machines. - Value []*VirtualMachine `json:"value,omitempty"` + Value []*VirtualMachine // The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineNetworkInterfaceConfiguration - Describes a virtual machine network interface configurations. type VirtualMachineNetworkInterfaceConfiguration struct { // REQUIRED; The network interface configuration name. - Name *string `json:"name,omitempty"` + Name *string // Describes a virtual machine network profile's IP configuration. - Properties *VirtualMachineNetworkInterfaceConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineNetworkInterfaceConfigurationProperties } // VirtualMachineNetworkInterfaceConfigurationProperties - Describes a virtual machine network profile's IP configuration. type VirtualMachineNetworkInterfaceConfigurationProperties struct { // REQUIRED; Specifies the IP configurations of the network interface. - IPConfigurations []*VirtualMachineNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + IPConfigurations []*VirtualMachineNetworkInterfaceIPConfiguration + + // Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + AuxiliaryMode *NetworkInterfaceAuxiliaryMode + + // Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + AuxiliarySKU *NetworkInterfaceAuxiliarySKU // The dns settings to be applied on the network interfaces. - DNSSettings *VirtualMachineNetworkInterfaceDNSSettingsConfiguration `json:"dnsSettings,omitempty"` + DNSSettings *VirtualMachineNetworkInterfaceDNSSettingsConfiguration // Specify what happens to the network interface when the VM is deleted - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` - DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + DeleteOption *DeleteOptions + + // Specifies whether the network interface is disabled for tcp state tracking. + DisableTCPStateTracking *bool + DscpConfiguration *SubResource // Specifies whether the network interface is accelerated networking-enabled. - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableAcceleratedNetworking *bool // Specifies whether the network interface is FPGA networking-enabled. - EnableFpga *bool `json:"enableFpga,omitempty"` + EnableFpga *bool // Whether IP forwarding enabled on this NIC. - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + EnableIPForwarding *bool // The network security group. - NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` + NetworkSecurityGroup *SubResource // Specifies the primary network interface in case the virtual machine has more than 1 network interface. - Primary *bool `json:"primary,omitempty"` + Primary *bool } // VirtualMachineNetworkInterfaceDNSSettingsConfiguration - Describes a virtual machines network configuration's DNS settings. type VirtualMachineNetworkInterfaceDNSSettingsConfiguration struct { // List of DNS servers IP addresses - DNSServers []*string `json:"dnsServers,omitempty"` + DNSServers []*string } // VirtualMachineNetworkInterfaceIPConfiguration - Describes a virtual machine network profile's IP configuration. type VirtualMachineNetworkInterfaceIPConfiguration struct { // REQUIRED; The IP configuration name. - Name *string `json:"name,omitempty"` + Name *string // Describes a virtual machine network interface IP configuration properties. - Properties *VirtualMachineNetworkInterfaceIPConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineNetworkInterfaceIPConfigurationProperties } // VirtualMachineNetworkInterfaceIPConfigurationProperties - Describes a virtual machine network interface IP configuration @@ -7090,94 +6724,89 @@ type VirtualMachineNetworkInterfaceIPConfigurationProperties struct { // Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend // address pools of multiple application gateways. Multiple virtual machines // cannot use the same application gateway. - ApplicationGatewayBackendAddressPools []*SubResource `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationGatewayBackendAddressPools []*SubResource // Specifies an array of references to application security group. - ApplicationSecurityGroups []*SubResource `json:"applicationSecurityGroups,omitempty"` + ApplicationSecurityGroups []*SubResource // Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address // pools of one public and one internal load balancer. [Multiple virtual // machines cannot use the same basic sku load balancer]. - LoadBalancerBackendAddressPools []*SubResource `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerBackendAddressPools []*SubResource // Specifies the primary network interface in case the virtual machine has more than 1 network interface. - Primary *bool `json:"primary,omitempty"` + Primary *bool // Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. - PrivateIPAddressVersion *IPVersions `json:"privateIPAddressVersion,omitempty"` + PrivateIPAddressVersion *IPVersions // The publicIPAddressConfiguration. - PublicIPAddressConfiguration *VirtualMachinePublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"` + PublicIPAddressConfiguration *VirtualMachinePublicIPAddressConfiguration // Specifies the identifier of the subnet. - Subnet *SubResource `json:"subnet,omitempty"` + Subnet *SubResource } // VirtualMachinePatchStatus - The status of virtual machine patch operations. type VirtualMachinePatchStatus struct { // The available patch summary of the latest assessment operation for the virtual machine. - AvailablePatchSummary *AvailablePatchSummary `json:"availablePatchSummary,omitempty"` + AvailablePatchSummary *AvailablePatchSummary // The installation summary of the latest installation operation for the virtual machine. - LastPatchInstallationSummary *LastPatchInstallationSummary `json:"lastPatchInstallationSummary,omitempty"` + LastPatchInstallationSummary *LastPatchInstallationSummary // READ-ONLY; The enablement status of the specified patchMode - ConfigurationStatuses []*InstanceViewStatus `json:"configurationStatuses,omitempty" azure:"ro"` + ConfigurationStatuses []*InstanceViewStatus } // VirtualMachineProperties - Describes the properties of a Virtual Machine. type VirtualMachineProperties struct { // Specifies additional capabilities enabled or disabled on the virtual machine. - AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"` + AdditionalCapabilities *AdditionalCapabilities - // Specifies the gallery applications that should be made available to the VM/VMSS - ApplicationProfile *ApplicationProfile `json:"applicationProfile,omitempty"` + // Specifies the gallery applications that should be made available to the VM/VMSS. + ApplicationProfile *ApplicationProfile // Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified // in the same availability set are allocated to different nodes to maximize // availability. For more information about availability sets, see Availability sets overview [https://docs.microsoft.com/azure/virtual-machines/availability-set-overview]. - // For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates] - // Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added - // should be under the same resource group as the availability set resource. An - // existing VM cannot be added to an availability set. - // This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. - AvailabilitySet *SubResource `json:"availabilitySet,omitempty"` - - // Specifies the billing related details of a Azure Spot virtual machine. - // Minimum api-version: 2019-03-01. - BillingProfile *BillingProfile `json:"billingProfile,omitempty"` + // For more information on Azure + // planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates]. + // Currently, a VM can only be added to + // availability set at creation time. The availability set to which the VM is being added should be under the same resource + // group as the availability set resource. An existing VM cannot be added to an + // availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. + AvailabilitySet *SubResource + + // Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. + BillingProfile *BillingProfile - // Specifies information about the capacity reservation that is used to allocate virtual machine. - // Minimum api-version: 2021-04-01. - CapacityReservation *CapacityReservationProfile `json:"capacityReservation,omitempty"` + // Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01. + CapacityReservation *CapacityReservationProfile - // Specifies the boot diagnostic settings state. - // Minimum api-version: 2015-06-15. - DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` + // Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. + DiagnosticsProfile *DiagnosticsProfile - // Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. - // For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. - // For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. - EvictionPolicy *VirtualMachineEvictionPolicyTypes `json:"evictionPolicy,omitempty"` + // Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, + // both 'Deallocate' and 'Delete' are supported and the minimum api-version is + // 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. + EvictionPolicy *VirtualMachineEvictionPolicyTypes // Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes // (inclusive) and should be specified in ISO 8601 format. The default value is 90 - // minutes (PT1H30M). - // Minimum api-version: 2020-06-01 - ExtensionsTimeBudget *string `json:"extensionsTimeBudget,omitempty"` + // minutes (PT1H30M). Minimum api-version: 2020-06-01. + ExtensionsTimeBudget *string // Specifies the hardware settings for the virtual machine. - HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` + HardwareProfile *HardwareProfile - // Specifies information about the dedicated host that the virtual machine resides in. - // Minimum api-version: 2018-10-01. - Host *SubResource `json:"host,omitempty"` + // Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. + Host *SubResource - // Specifies information about the dedicated host group that the virtual machine resides in. - // Minimum api-version: 2020-06-01. - // NOTE: User cannot specify both host and hostGroup properties. - HostGroup *SubResource `json:"hostGroup,omitempty"` + // Specifies information about the dedicated host group that the virtual machine resides in. Note: User cannot specify both + // host and hostGroup properties. Minimum api-version: 2020-06-01. + HostGroup *SubResource // Specifies that the image or disk that is being used was licensed on-premises. // Possible values for Windows Server operating system are: @@ -7189,339 +6818,342 @@ type VirtualMachineProperties struct { // For more information, see Azure Hybrid Use Benefit for Windows Server [https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing] // Azure Hybrid Use Benefit for Linux Server [https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux] // Minimum api-version: 2015-06-15 - LicenseType *string `json:"licenseType,omitempty"` + LicenseType *string // Specifies the network interfaces of the virtual machine. - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *NetworkProfile // Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed // once VM is provisioned. - OSProfile *OSProfile `json:"osProfile,omitempty"` + OSProfile *OSProfile // Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine // will by automatically assigned to a fault domain that best maintains - // balance across available fault domains. - // This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.The Virtual Machine Scale - // Set that is referenced, must have 'platformFaultDomainCount' > 1.This property - // cannot be updated once the Virtual Machine is created.Fault domain assignment can be viewed in the Virtual Machine Instance - // View. - // Minimum api‐version: 2020‐12‐01 - PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"` - - // Specifies the priority for the virtual machine. - // Minimum api-version: 2019-03-01 - Priority *VirtualMachinePriorityTypes `json:"priority,omitempty"` - - // Specifies information about the proximity placement group that the virtual machine should be assigned to. - // Minimum api-version: 2018-04-01. - ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` + // balance across available fault domains. This is applicable only if the 'virtualMachineScaleSet' property of this Virtual + // Machine is set. The Virtual Machine Scale Set that is referenced, must have + // 'platformFaultDomainCount' greater than 1. This property cannot be updated once the Virtual Machine is created. Fault domain + // assignment can be viewed in the Virtual Machine Instance View. Minimum + // api‐version: 2020‐12‐01. + PlatformFaultDomain *int32 + + // Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01 + Priority *VirtualMachinePriorityTypes + + // Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: + // 2018-04-01. + ProximityPlacementGroup *SubResource + + // Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the + // virtual machine. + ScheduledEventsPolicy *ScheduledEventsPolicy // Specifies Scheduled Event related configurations. - ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"` + ScheduledEventsProfile *ScheduledEventsProfile // Specifies the Security related profile settings for the virtual machine. - SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *SecurityProfile // Specifies the storage settings for the virtual machine disks. - StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + StorageProfile *StorageProfile - // UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. - // Minimum api-version: 2021-03-01 - UserData *string `json:"userData,omitempty"` + // UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: + // 2021-03-01. + UserData *string // Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines // specified in the same virtual machine scale set are allocated to different // nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing - // VM cannot be added to a virtual machine scale set. - // This property cannot exist along with a non-null properties.availabilitySet reference. - // Minimum api‐version: 2019‐03‐01 - VirtualMachineScaleSet *SubResource `json:"virtualMachineScaleSet,omitempty"` + // VM cannot be added to a virtual machine scale set. This property cannot + // exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. + VirtualMachineScaleSet *SubResource // READ-ONLY; The virtual machine instance view. - InstanceView *VirtualMachineInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *VirtualMachineInstanceView // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string - // READ-ONLY; Specifies the time at which the Virtual Machine resource was created. - // Minimum api-version: 2022-03-01. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + // READ-ONLY; Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. + TimeCreated *time.Time // READ-ONLY; Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS // and can be read using platform BIOS commands. - VMID *string `json:"vmId,omitempty" azure:"ro"` + VMID *string } // VirtualMachinePublicIPAddressConfiguration - Describes a virtual machines IP Configuration's PublicIPAddress configuration type VirtualMachinePublicIPAddressConfiguration struct { // REQUIRED; The publicIP address configuration name. - Name *string `json:"name,omitempty"` + Name *string // Describes a virtual machines IP Configuration's PublicIPAddress configuration - Properties *VirtualMachinePublicIPAddressConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachinePublicIPAddressConfigurationProperties // Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. - SKU *PublicIPAddressSKU `json:"sku,omitempty"` + SKU *PublicIPAddressSKU } // VirtualMachinePublicIPAddressConfigurationProperties - Describes a virtual machines IP Configuration's PublicIPAddress // configuration type VirtualMachinePublicIPAddressConfigurationProperties struct { // The dns settings to be applied on the publicIP addresses . - DNSSettings *VirtualMachinePublicIPAddressDNSSettingsConfiguration `json:"dnsSettings,omitempty"` + DNSSettings *VirtualMachinePublicIPAddressDNSSettingsConfiguration // Specify what happens to the public IP address when the VM is deleted - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DeleteOption *DeleteOptions // The list of IP tags associated with the public IP address. - IPTags []*VirtualMachineIPTag `json:"ipTags,omitempty"` + IPTags []*VirtualMachineIPTag // The idle timeout of the public IP address. - IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + IdleTimeoutInMinutes *int32 // Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. - PublicIPAddressVersion *IPVersions `json:"publicIPAddressVersion,omitempty"` + PublicIPAddressVersion *IPVersions // Specify the public IP allocation type - PublicIPAllocationMethod *PublicIPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPAllocationMethod *PublicIPAllocationMethod // The PublicIPPrefix from which to allocate publicIP addresses. - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + PublicIPPrefix *SubResource } // VirtualMachinePublicIPAddressDNSSettingsConfiguration - Describes a virtual machines network configuration's DNS settings. type VirtualMachinePublicIPAddressDNSSettingsConfiguration struct { // REQUIRED; The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label // is the concatenation of the domain name label and vm network profile unique ID. - DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabel *string + + // The Domain name label scope of the PublicIPAddress resources that will be created. The generated name label is the concatenation + // of the hashed domain name label with policy according to the domain + // name label scope and vm network profile unique ID. + DomainNameLabelScope *DomainNameLabelScopeTypes } // VirtualMachineReimageParameters - Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be // reimaged type VirtualMachineReimageParameters struct { + // Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is not provided, the OS disk + // is reimaged to the existing version of OS Disk. + ExactVersion *string + + // Specifies information required for reimaging the non-ephemeral OS disk. + OSProfile *OSProfileProvisioningData + // Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported // for VM/VMSS with Ephemeral OS disk. - TempDisk *bool `json:"tempDisk,omitempty"` + TempDisk *bool } // VirtualMachineRunCommand - Describes a Virtual Machine run command. type VirtualMachineRunCommand struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // Describes the properties of a Virtual Machine run command. - Properties *VirtualMachineRunCommandProperties `json:"properties,omitempty"` + Properties *VirtualMachineRunCommandProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineRunCommandInstanceView - The instance view of a virtual machine run command. type VirtualMachineRunCommandInstanceView struct { // Script end time. - EndTime *time.Time `json:"endTime,omitempty"` + EndTime *time.Time // Script error stream. - Error *string `json:"error,omitempty"` + Error *string // Communicate script configuration errors or execution messages. - ExecutionMessage *string `json:"executionMessage,omitempty"` + ExecutionMessage *string // Script execution status. - ExecutionState *ExecutionState `json:"executionState,omitempty"` + ExecutionState *ExecutionState // Exit code returned from script execution. - ExitCode *int32 `json:"exitCode,omitempty"` + ExitCode *int32 // Script output stream. - Output *string `json:"output,omitempty"` + Output *string // Script start time. - StartTime *time.Time `json:"startTime,omitempty"` + StartTime *time.Time // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus } // VirtualMachineRunCommandProperties - Describes the properties of a Virtual Machine run command. type VirtualMachineRunCommandProperties struct { // Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. - AsyncExecution *bool `json:"asyncExecution,omitempty"` - - // Specifies the Azure storage blob where script error stream will be uploaded. - ErrorBlobURI *string `json:"errorBlobUri,omitempty"` - - // Specifies the Azure storage blob where script output stream will be uploaded. - OutputBlobURI *string `json:"outputBlobUri,omitempty"` + AsyncExecution *bool + + // User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned + // identity. Make sure managed identity has been given access to blob's + // container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it + // under VM's identity. For more info on managed identity and Run Command, refer + // https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged + ErrorBlobManagedIdentity *RunCommandManagedIdentity + + // Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write + // access OR use managed identity to provide the VM access to the blob. Refer + // errorBlobManagedIdentity parameter. + ErrorBlobURI *string + + // User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned + // identity. Make sure managed identity has been given access to blob's + // container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it + // under VM's identity. For more info on managed identity and Run Command, refer + // https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged + OutputBlobManagedIdentity *RunCommandManagedIdentity + + // Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, + // write access OR use managed identity to provide the VM access to the blob. Refer + // outputBlobManagedIdentity parameter. + OutputBlobURI *string // The parameters used by the script. - Parameters []*RunCommandInputParameter `json:"parameters,omitempty"` + Parameters []*RunCommandInputParameter // The parameters used by the script. - ProtectedParameters []*RunCommandInputParameter `json:"protectedParameters,omitempty"` + ProtectedParameters []*RunCommandInputParameter // Specifies the user account password on the VM when executing the run command. - RunAsPassword *string `json:"runAsPassword,omitempty"` + RunAsPassword *string // Specifies the user account on the VM when executing the run command. - RunAsUser *string `json:"runAsUser,omitempty"` + RunAsUser *string // The source of the run command script. - Source *VirtualMachineRunCommandScriptSource `json:"source,omitempty"` + Source *VirtualMachineRunCommandScriptSource // The timeout in seconds to execute the run command. - TimeoutInSeconds *int32 `json:"timeoutInSeconds,omitempty"` + TimeoutInSeconds *int32 + + // Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. + // If set to false, ProvisioningState would only reflect whether the run + // command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. + // See instance view of run command in case of script failures to see + // executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results + TreatFailureAsDeploymentFailure *bool // READ-ONLY; The virtual machine run command instance view. - InstanceView *VirtualMachineRunCommandInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *VirtualMachineRunCommandInstanceView - // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + // READ-ONLY; The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, + // any failure in the script will fail the deployment and ProvisioningState will be marked as + // Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was + // run or not by the extensions platform, it would not indicate whether script + // failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, + // output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results + ProvisioningState *string } -// VirtualMachineRunCommandScriptSource - Describes the script sources for run command. +// VirtualMachineRunCommandScriptSource - Describes the script sources for run command. Use only one of script, scriptUri, +// commandId. type VirtualMachineRunCommandScriptSource struct { // Specifies a commandId of predefined built-in script. - CommandID *string `json:"commandId,omitempty"` + CommandID *string // Specifies the script content to be executed on the VM. - Script *string `json:"script,omitempty"` + Script *string - // Specifies the script download location. - ScriptURI *string `json:"scriptUri,omitempty"` + // Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. + ScriptURI *string + + // User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case + // of system-assigned identity. Make sure the Azure storage blob exists, and managed + // identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned + // identity, make sure you add it under VM's identity. For more info on + // managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. + ScriptURIManagedIdentity *RunCommandManagedIdentity } // VirtualMachineRunCommandUpdate - Describes a Virtual Machine run command. type VirtualMachineRunCommandUpdate struct { // Describes the properties of a Virtual Machine run command. - Properties *VirtualMachineRunCommandProperties `json:"properties,omitempty"` + Properties *VirtualMachineRunCommandProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -// VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginCreateOrUpdate -// method. -type VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginDelete -// method. -type VirtualMachineRunCommandsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginUpdate -// method. -type VirtualMachineRunCommandsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineRunCommandsClientGetByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.GetByVirtualMachine -// method. -type VirtualMachineRunCommandsClientGetByVirtualMachineOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get -// method. -type VirtualMachineRunCommandsClientGetOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.ListByVirtualMachine -// method. -type VirtualMachineRunCommandsClientListByVirtualMachineOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.List -// method. -type VirtualMachineRunCommandsClientListOptions struct { - // placeholder for future optional parameters + Tags map[string]*string } // VirtualMachineRunCommandsListResult - The List run command operation response type VirtualMachineRunCommandsListResult struct { // REQUIRED; The list of run commands - Value []*VirtualMachineRunCommand `json:"value,omitempty"` + Value []*VirtualMachineRunCommand // The uri to fetch the next page of run commands. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineScaleSet - Describes a Virtual Machine Scale Set. type VirtualMachineScaleSet struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The extended location of the Virtual Machine Scale Set. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // The identity of the virtual machine scale set, if configured. - Identity *VirtualMachineScaleSetIdentity `json:"identity,omitempty"` + Identity *VirtualMachineScaleSetIdentity // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace // images. Before you can use a marketplace image from an API, you must // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click // Want to deploy programmatically, Get Started ->. Enter any required // information and then click Save. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // Describes the properties of a Virtual Machine Scale Set. - Properties *VirtualMachineScaleSetProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetProperties // The virtual machine scale set sku. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set - Zones []*string `json:"zones,omitempty"` + Zones []*string + + // READ-ONLY; Etag is property returned in Create/Update/Get response of the VMSS, so that customer can supply it in the header + // to ensure optimistic updates + Etag *string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineScaleSetDataDisk - Describes a virtual machine scale set data disk. type VirtualMachineScaleSetDataDisk struct { // REQUIRED; The create option. - CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"` + CreateOption *DiskCreateOptionTypes // REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and // therefore must be unique for each data disk attached to a VM. - Lun *int32 `json:"lun,omitempty"` + Lun *int32 - // Specifies the caching requirements. - // Possible values are: - // None - // ReadOnly - // ReadWrite - // Default: None for Standard storage. ReadOnly for Premium storage - Caching *CachingTypes `json:"caching,omitempty"` + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard + // storage. ReadOnly for Premium storage. + Caching *CachingTypes // Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with // Flexible OrchestrationMode only). @@ -7529,66 +7161,65 @@ type VirtualMachineScaleSetDataDisk struct { // Delete If this value is used, the data disk is deleted when the VMSS Flex VM is deleted. // Detach If this value is used, the data disk is retained after VMSS Flex VM is deleted. // The default value is set to Delete. - DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"` + DeleteOption *DiskDeleteOptionTypes // Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not // specified, a default value would be assigned based on diskSizeGB. - DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"` + DiskIOPSReadWrite *int64 // Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. // If not specified, a default value would be assigned based on diskSizeGB. - DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"` + DiskMBpsReadWrite *int64 // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a - // virtual machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // virtual machine image. The property diskSizeGB is the number of bytes x 1024^3 + // for the disk and the value cannot be larger than 1023. + DiskSizeGB *int32 // The managed disk parameters. - ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"` + ManagedDisk *VirtualMachineScaleSetManagedDiskParameters // The disk name. - Name *string `json:"name,omitempty"` + Name *string // Specifies whether writeAccelerator should be enabled or disabled on the disk. - WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` + WriteAcceleratorEnabled *bool } // VirtualMachineScaleSetExtension - Describes a Virtual Machine Scale Set Extension. type VirtualMachineScaleSetExtension struct { // The name of the extension. - Name *string `json:"name,omitempty"` + Name *string // Describes the properties of a Virtual Machine Scale Set Extension. - Properties *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetExtensionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineScaleSetExtensionListResult - The List VM scale set extension operation response. type VirtualMachineScaleSetExtensionListResult struct { // REQUIRED; The list of VM scale set extensions. - Value []*VirtualMachineScaleSetExtension `json:"value,omitempty"` + Value []*VirtualMachineScaleSetExtension // The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale // set extensions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineScaleSetExtensionProfile - Describes a virtual machine scale set extension profile. type VirtualMachineScaleSetExtensionProfile struct { // The virtual machine scale set child extension resources. - Extensions []*VirtualMachineScaleSetExtension `json:"extensions,omitempty"` + Extensions []*VirtualMachineScaleSetExtension // Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes // (inclusive) and should be specified in ISO 8601 format. The default value is 90 - // minutes (PT1H30M). - // Minimum api-version: 2020-06-01 - ExtensionsTimeBudget *string `json:"extensionsTimeBudget,omitempty"` + // minutes (PT1H30M). Minimum api-version: 2020-06-01. + ExtensionsTimeBudget *string } // VirtualMachineScaleSetExtensionProperties - Describes the properties of a Virtual Machine Scale Set Extension. @@ -7596,111 +7227,75 @@ type VirtualMachineScaleSetExtensionProperties struct { // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, // however, the extension will not upgrade minor versions unless redeployed, even // with this property set to true. - AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"` + AutoUpgradeMinorVersion *bool // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension // available. - EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"` + EnableAutomaticUpgrade *bool // If a value is provided and is different from the previous value, the extension handler will be forced to update even if // the extension configuration has not changed. - ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ForceUpdateTag *string // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - ProtectedSettings interface{} `json:"protectedSettings,omitempty"` + ProtectedSettings any // The extensions protected settings that are passed by reference, and consumed from key vault - ProtectedSettingsFromKeyVault interface{} `json:"protectedSettingsFromKeyVault,omitempty"` + ProtectedSettingsFromKeyVault *KeyVaultSecretReference // Collection of extension names after which this extension needs to be provisioned. - ProvisionAfterExtensions []*string `json:"provisionAfterExtensions,omitempty"` + ProvisionAfterExtensions []*string // The name of the extension handler publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // Json formatted public settings for the extension. - Settings interface{} `json:"settings,omitempty"` + Settings any // Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting // to the VM will not be suppressed regardless of this value). The default is false. - SuppressFailures *bool `json:"suppressFailures,omitempty"` + SuppressFailures *bool // Specifies the type of the extension; an example is "CustomScriptExtension". - Type *string `json:"type,omitempty"` + Type *string // Specifies the version of the script handler. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` + TypeHandlerVersion *string // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // VirtualMachineScaleSetExtensionUpdate - Describes a Virtual Machine Scale Set Extension. type VirtualMachineScaleSetExtensionUpdate struct { // Describes the properties of a Virtual Machine Scale Set Extension. - Properties *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetExtensionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the extension. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` -} - -// VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate -// method. -type VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginDelete -// method. -type VirtualMachineScaleSetExtensionsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginUpdate -// method. -type VirtualMachineScaleSetExtensionsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.Get -// method. -type VirtualMachineScaleSetExtensionsClientGetOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.List -// method. -type VirtualMachineScaleSetExtensionsClientListOptions struct { - // placeholder for future optional parameters + Type *string } // VirtualMachineScaleSetHardwareProfile - Specifies the hardware settings for the virtual machine scale set. type VirtualMachineScaleSetHardwareProfile struct { - // Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01. - // Please follow the instructions in VM Customization [https://aka.ms/vmcustomization] for more details. - VMSizeProperties *VMSizeProperties `json:"vmSizeProperties,omitempty"` + // Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow + // the instructions in VM Customization [https://aka.ms/vmcustomization] for more + // details. + VMSizeProperties *VMSizeProperties } // VirtualMachineScaleSetIPConfiguration - Describes a virtual machine scale set network profile's IP configuration. type VirtualMachineScaleSetIPConfiguration struct { // REQUIRED; The IP configuration name. - Name *string `json:"name,omitempty"` - - // Resource Id - ID *string `json:"id,omitempty"` + Name *string // Describes a virtual machine scale set network profile's IP configuration properties. - Properties *VirtualMachineScaleSetIPConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetIPConfigurationProperties } // VirtualMachineScaleSetIPConfigurationProperties - Describes a virtual machine scale set network profile's IP configuration @@ -7709,42 +7304,42 @@ type VirtualMachineScaleSetIPConfigurationProperties struct { // Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address // pools of multiple application gateways. Multiple scale sets cannot use the // same application gateway. - ApplicationGatewayBackendAddressPools []*SubResource `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationGatewayBackendAddressPools []*SubResource // Specifies an array of references to application security group. - ApplicationSecurityGroups []*SubResource `json:"applicationSecurityGroups,omitempty"` + ApplicationSecurityGroups []*SubResource // Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address // pools of one public and one internal load balancer. Multiple scale sets cannot // use the same basic sku load balancer. - LoadBalancerBackendAddressPools []*SubResource `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerBackendAddressPools []*SubResource // Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools // of one public and one internal load balancer. Multiple scale sets cannot use // the same basic sku load balancer. - LoadBalancerInboundNatPools []*SubResource `json:"loadBalancerInboundNatPools,omitempty"` + LoadBalancerInboundNatPools []*SubResource // Specifies the primary network interface in case the virtual machine has more than 1 network interface. - Primary *bool `json:"primary,omitempty"` + Primary *bool // Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAddressVersion *IPVersion // The publicIPAddressConfiguration. - PublicIPAddressConfiguration *VirtualMachineScaleSetPublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"` + PublicIPAddressConfiguration *VirtualMachineScaleSetPublicIPAddressConfiguration // Specifies the identifier of the subnet. - Subnet *APIEntityReference `json:"subnet,omitempty"` + Subnet *APIEntityReference } // VirtualMachineScaleSetIPTag - Contains the IP tag associated with the public IP address. type VirtualMachineScaleSetIPTag struct { // IP tag type. Example: FirstPartyUsage. - IPTagType *string `json:"ipTagType,omitempty"` + IPTagType *string // IP tag associated with the public IP. Example: SQL, Storage etc. - Tag *string `json:"tag,omitempty"` + Tag *string } // VirtualMachineScaleSetIdentity - Identity for the virtual machine scale set. @@ -7752,147 +7347,145 @@ type VirtualMachineScaleSetIdentity struct { // The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly // created identity and a set of user assigned identities. The type 'None' // will remove any identities from the virtual machine scale set. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // The list of user identities associated with the virtual machine scale set. The user identity dictionary key references // will be ARM resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - UserAssignedIdentities map[string]*VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentitiesValue // READ-ONLY; The principal id of virtual machine scale set identity. This property will only be provided for a system assigned // identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant id associated with the virtual machine scale set. This property will only be provided for a system // assigned identity. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` -} - -type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { - // READ-ONLY; The client id of user assigned identity. - ClientID *string `json:"clientId,omitempty" azure:"ro"` - - // READ-ONLY; The principal id of user assigned identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + TenantID *string } // VirtualMachineScaleSetInstanceView - The instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // READ-ONLY; The extensions information. - Extensions []*VirtualMachineScaleSetVMExtensionsSummary `json:"extensions,omitempty" azure:"ro"` + Extensions []*VirtualMachineScaleSetVMExtensionsSummary // READ-ONLY; The orchestration services information. - OrchestrationServices []*OrchestrationServiceSummary `json:"orchestrationServices,omitempty" azure:"ro"` + OrchestrationServices []*OrchestrationServiceSummary // READ-ONLY; The instance view status summary for the virtual machine scale set. - VirtualMachine *VirtualMachineScaleSetInstanceViewStatusesSummary `json:"virtualMachine,omitempty" azure:"ro"` + VirtualMachine *VirtualMachineScaleSetInstanceViewStatusesSummary } // VirtualMachineScaleSetInstanceViewStatusesSummary - Instance view statuses summary for virtual machines of a virtual machine // scale set. type VirtualMachineScaleSetInstanceViewStatusesSummary struct { // READ-ONLY; The extensions information. - StatusesSummary []*VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty" azure:"ro"` + StatusesSummary []*VirtualMachineStatusCodeCount } // VirtualMachineScaleSetListOSUpgradeHistory - List of Virtual Machine Scale Set OS Upgrade History operation response. type VirtualMachineScaleSetListOSUpgradeHistory struct { // REQUIRED; The list of OS upgrades performed on the virtual machine scale set. - Value []*UpgradeOperationHistoricalStatusInfo `json:"value,omitempty"` + Value []*UpgradeOperationHistoricalStatusInfo // The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the next page of history of upgrades. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineScaleSetListResult - The List Virtual Machine operation response. type VirtualMachineScaleSetListResult struct { // REQUIRED; The list of virtual machine scale sets. - Value []*VirtualMachineScaleSet `json:"value,omitempty"` + Value []*VirtualMachineScaleSet // The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineScaleSetListSKUsResult - The Virtual Machine Scale Set List Skus operation response. type VirtualMachineScaleSetListSKUsResult struct { // REQUIRED; The list of skus available for the virtual machine scale set. - Value []*VirtualMachineScaleSetSKU `json:"value,omitempty"` + Value []*VirtualMachineScaleSetSKU // The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS // Skus. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineScaleSetListWithLinkResult - The List Virtual Machine operation response. type VirtualMachineScaleSetListWithLinkResult struct { // REQUIRED; The list of virtual machine scale sets. - Value []*VirtualMachineScaleSet `json:"value,omitempty"` + Value []*VirtualMachineScaleSet // The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual // Machine Scale Sets. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineScaleSetManagedDiskParameters - Describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { // Specifies the customer managed disk encryption set resource id for the managed disk. - DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` + DiskEncryptionSet *DiskEncryptionSetParameters // Specifies the security profile for the managed disk. - SecurityProfile *VMDiskSecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *VMDiskSecurityProfile // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot // be used with OS Disk. - StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountTypes } // VirtualMachineScaleSetNetworkConfiguration - Describes a virtual machine scale set network profile's network configurations. type VirtualMachineScaleSetNetworkConfiguration struct { // REQUIRED; The network configuration name. - Name *string `json:"name,omitempty"` - - // Resource Id - ID *string `json:"id,omitempty"` + Name *string // Describes a virtual machine scale set network profile's IP configuration. - Properties *VirtualMachineScaleSetNetworkConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetNetworkConfigurationProperties } // VirtualMachineScaleSetNetworkConfigurationDNSSettings - Describes a virtual machines scale sets network configuration's // DNS settings. type VirtualMachineScaleSetNetworkConfigurationDNSSettings struct { // List of DNS servers IP addresses - DNSServers []*string `json:"dnsServers,omitempty"` + DNSServers []*string } // VirtualMachineScaleSetNetworkConfigurationProperties - Describes a virtual machine scale set network profile's IP configuration. type VirtualMachineScaleSetNetworkConfigurationProperties struct { // REQUIRED; Specifies the IP configurations of the network interface. - IPConfigurations []*VirtualMachineScaleSetIPConfiguration `json:"ipConfigurations,omitempty"` + IPConfigurations []*VirtualMachineScaleSetIPConfiguration + + // Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + AuxiliaryMode *NetworkInterfaceAuxiliaryMode + + // Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + AuxiliarySKU *NetworkInterfaceAuxiliarySKU // The dns settings to be applied on the network interfaces. - DNSSettings *VirtualMachineScaleSetNetworkConfigurationDNSSettings `json:"dnsSettings,omitempty"` + DNSSettings *VirtualMachineScaleSetNetworkConfigurationDNSSettings // Specify what happens to the network interface when the VM is deleted - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DeleteOption *DeleteOptions + + // Specifies whether the network interface is disabled for tcp state tracking. + DisableTCPStateTracking *bool // Specifies whether the network interface is accelerated networking-enabled. - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableAcceleratedNetworking *bool // Specifies whether the network interface is FPGA networking-enabled. - EnableFpga *bool `json:"enableFpga,omitempty"` + EnableFpga *bool // Whether IP forwarding enabled on this NIC. - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + EnableIPForwarding *bool // The network security group. - NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` + NetworkSecurityGroup *SubResource // Specifies the primary network interface in case the virtual machine has more than 1 network interface. - Primary *bool `json:"primary,omitempty"` + Primary *bool } // VirtualMachineScaleSetNetworkProfile - Describes a virtual machine scale set network profile. @@ -7900,31 +7493,27 @@ type VirtualMachineScaleSetNetworkProfile struct { // A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The // reference will be in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. - HealthProbe *APIEntityReference `json:"healthProbe,omitempty"` + HealthProbe *APIEntityReference // specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations // for Virtual Machine Scale Set with orchestration mode 'Flexible' - NetworkAPIVersion *NetworkAPIVersion `json:"networkApiVersion,omitempty"` + NetworkAPIVersion *NetworkAPIVersion // The list of network configurations. - NetworkInterfaceConfigurations []*VirtualMachineScaleSetNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"` + NetworkInterfaceConfigurations []*VirtualMachineScaleSetNetworkConfiguration } // VirtualMachineScaleSetOSDisk - Describes a virtual machine scale set operating system disk. type VirtualMachineScaleSetOSDisk struct { - // REQUIRED; Specifies how the virtual machines in the scale set should be created. - // The only allowed value is: FromImage \u2013 This value is used when you are using an image to create the virtual machine. - // If you are using a platform image, you also use the imageReference element - // described above. If you are using a marketplace image, you also use the plan element previously described. - CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"` + // REQUIRED; Specifies how the virtual machines in the scale set should be created. The only allowed value is: FromImage. + // This value is used when you are using an image to create the virtual machine. If you are + // using a platform image, you also use the imageReference element described above. If you are using a marketplace image, + // you also use the plan element previously described. + CreateOption *DiskCreateOptionTypes - // Specifies the caching requirements. - // Possible values are: - // None - // ReadOnly - // ReadWrite - // Default: None for Standard storage. ReadOnly for Premium storage - Caching *CachingTypes `json:"caching,omitempty"` + // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard + // storage. ReadOnly for Premium storage. + Caching *CachingTypes // Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with // Flexible OrchestrationMode only). @@ -7933,37 +7522,34 @@ type VirtualMachineScaleSetOSDisk struct { // Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted. // The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the // delete option for Ephemeral OS Disk. - DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"` + DeleteOption *DiskDeleteOptionTypes // Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - DiffDiskSettings *DiffDiskSettings `json:"diffDiskSettings,omitempty"` + DiffDiskSettings *DiffDiskSettings - // Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk - // in a virtual machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a + // virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 + // for the disk and the value cannot be larger than 1023. + DiskSizeGB *int32 // Specifies information about the unmanaged user image to base the scale set on. - Image *VirtualHardDisk `json:"image,omitempty"` + Image *VirtualHardDisk // The managed disk parameters. - ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"` + ManagedDisk *VirtualMachineScaleSetManagedDiskParameters // The disk name. - Name *string `json:"name,omitempty"` + Name *string // This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or - // a specialized VHD. - // Possible values are: - // Windows - // Linux - OSType *OperatingSystemTypes `json:"osType,omitempty"` + // a specialized VHD. Possible values are: Windows, Linux. + OSType *OperatingSystemTypes // Specifies the container urls that are used to store operating system disks for the scale set. - VhdContainers []*string `json:"vhdContainers,omitempty"` + VhdContainers []*string // Specifies whether writeAccelerator should be enabled or disabled on the disk. - WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` + WriteAcceleratorEnabled *bool } // VirtualMachineScaleSetOSProfile - Describes a virtual machine scale set OS profile. @@ -7983,7 +7569,7 @@ type VirtualMachineScaleSetOSProfile struct { // For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp] // For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension // [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection] - AdminPassword *string `json:"adminPassword,omitempty"` + AdminPassword *string // Specifies the name of the administrator account. // Windows-only restriction: Cannot end in "." @@ -7993,35 +7579,38 @@ type VirtualMachineScaleSetOSProfile struct { // Minimum-length (Linux): 1 character // Max-length (Linux): 64 characters // Max-length (Windows): 20 characters - AdminUsername *string `json:"adminUsername,omitempty"` + AdminUsername *string - // Specifies whether extension operations should be allowed on the virtual machine scale set. - // This may only be set to False when no extensions are present on the virtual machine scale set. - AllowExtensionOperations *bool `json:"allowExtensionOperations,omitempty"` + // Specifies whether extension operations should be allowed on the virtual machine scale set. This may only be set to False + // when no extensions are present on the virtual machine scale set. + AllowExtensionOperations *bool // Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to // 15 characters long. - ComputerNamePrefix *string `json:"computerNamePrefix,omitempty"` + ComputerNamePrefix *string // Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved // as a file on the Virtual Machine. The maximum length of the binary array is - // 65535 bytes. - // For using cloud-init for your VM, see Using cloud-init to customize a Linux VM during creation [https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init] - CustomData *string `json:"customData,omitempty"` + // 65535 bytes. For using cloud-init for your VM, see Using cloud-init to customize a Linux VM during creation [https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init] + CustomData *string - // Specifies the Linux operating system settings on the virtual machine. - // For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros]. - LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` + // Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see + // Linux on Azure-Endorsed Distributions + // [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros]. + LinuxConfiguration *LinuxConfiguration + + // Optional property which must either be set to True or omitted. + RequireGuestProvisionSignal *bool // Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates // on a virtual machine it is recommended to use the Azure Key Vault virtual // machine extension for Linux [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure // Key Vault virtual machine extension for Windows // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows]. - Secrets []*VaultSecretGroup `json:"secrets,omitempty"` + Secrets []*VaultSecretGroup // Specifies Windows operating system settings on the virtual machine. - WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` + WindowsConfiguration *WindowsConfiguration } // VirtualMachineScaleSetProperties - Describes the properties of a Virtual Machine Scale Set. @@ -8029,77 +7618,88 @@ type VirtualMachineScaleSetProperties struct { // Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: // whether the Virtual Machines have the capability to support attaching // managed data disks with UltraSSD_LRS storage account type. - AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"` + AdditionalCapabilities *AdditionalCapabilities // Policy for automatic repairs. - AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"` + AutomaticRepairsPolicy *AutomaticRepairsPolicy + + // Optional property which must either be set to True or omitted. + ConstrainedMaximumCapacity *bool // When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This // property will hence ensure that the extensions do not run on the extra // overprovisioned VMs. - DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"` + DoNotRunExtensionsOnOverprovisionedVMs *bool - // Specifies information about the dedicated host group that the virtual machine scale set resides in. - // Minimum api-version: 2020-06-01. - HostGroup *SubResource `json:"hostGroup,omitempty"` + // Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: + // 2020-06-01. + HostGroup *SubResource // Specifies the orchestration mode for the virtual machine scale set. - OrchestrationMode *OrchestrationMode `json:"orchestrationMode,omitempty"` + OrchestrationMode *OrchestrationMode // Specifies whether the Virtual Machine Scale Set should be overprovisioned. - Overprovision *bool `json:"overprovision,omitempty"` + Overprovision *bool // Fault Domain count for each placement group. - PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"` + PlatformFaultDomainCount *int32 - // Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. - // Minimum api-version: 2018-04-01. - ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` + // Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. + PriorityMixPolicy *PriorityMixPolicy + + // Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. Minimum + // api-version: 2018-04-01. + ProximityPlacementGroup *SubResource + + // Policy for Resiliency + ResiliencyPolicy *ResiliencyPolicy // Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - ScaleInPolicy *ScaleInPolicy `json:"scaleInPolicy,omitempty"` + ScaleInPolicy *ScaleInPolicy + + // The ScheduledEventsPolicy. + ScheduledEventsPolicy *ScheduledEventsPolicy // When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup // is true, it may be modified to false. However, if singlePlacementGroup // is false, it may not be modified to true. - SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"` + SinglePlacementGroup *bool // Specifies the Spot Restore properties for the virtual machine scale set. - SpotRestorePolicy *SpotRestorePolicy `json:"spotRestorePolicy,omitempty"` + SpotRestorePolicy *SpotRestorePolicy // The upgrade policy. - UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"` + UpgradePolicy *UpgradePolicy // The virtual machine profile. - VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"` + VirtualMachineProfile *VirtualMachineScaleSetVMProfile // Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property // can only be set if the zones property of the scale set contains more than // one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set. - ZoneBalance *bool `json:"zoneBalance,omitempty"` + ZoneBalance *bool // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string - // READ-ONLY; Specifies the time at which the Virtual Machine Scale Set resource was created. - // Minimum api-version: 2022-03-01. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + // READ-ONLY; Specifies the time at which the Virtual Machine Scale Set resource was created. Minimum api-version: 2021-11-01. + TimeCreated *time.Time // READ-ONLY; Specifies the ID which uniquely identifies a Virtual Machine Scale Set. - UniqueID *string `json:"uniqueId,omitempty" azure:"ro"` + UniqueID *string } // VirtualMachineScaleSetPublicIPAddressConfiguration - Describes a virtual machines scale set IP Configuration's PublicIPAddress // configuration type VirtualMachineScaleSetPublicIPAddressConfiguration struct { // REQUIRED; The publicIP address configuration name. - Name *string `json:"name,omitempty"` + Name *string // Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration - Properties *VirtualMachineScaleSetPublicIPAddressConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetPublicIPAddressConfigurationProperties // Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. - SKU *PublicIPAddressSKU `json:"sku,omitempty"` + SKU *PublicIPAddressSKU } // VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings - Describes a virtual machines scale sets network configuration's @@ -8107,213 +7707,207 @@ type VirtualMachineScaleSetPublicIPAddressConfiguration struct { type VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings struct { // REQUIRED; The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels // of the PublicIPAddress resources that will be created - DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabel *string + + // The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from + // domain name label scope and vm index will be the domain name labels of the + // PublicIPAddress resources that will be created + DomainNameLabelScope *DomainNameLabelScopeTypes } // VirtualMachineScaleSetPublicIPAddressConfigurationProperties - Describes a virtual machines scale set IP Configuration's // PublicIPAddress configuration type VirtualMachineScaleSetPublicIPAddressConfigurationProperties struct { // The dns settings to be applied on the publicIP addresses . - DNSSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings `json:"dnsSettings,omitempty"` + DNSSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings // Specify what happens to the public IP when the VM is deleted - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DeleteOption *DeleteOptions // The list of IP tags associated with the public IP address. - IPTags []*VirtualMachineScaleSetIPTag `json:"ipTags,omitempty"` + IPTags []*VirtualMachineScaleSetIPTag // The idle timeout of the public IP address. - IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + IdleTimeoutInMinutes *int32 // Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. - PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAddressVersion *IPVersion // The PublicIPPrefix from which to allocate publicIP addresses. - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + PublicIPPrefix *SubResource } // VirtualMachineScaleSetReimageParameters - Describes a Virtual Machine Scale Set VM Reimage Parameters. type VirtualMachineScaleSetReimageParameters struct { + // Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is not provided, the OS disk + // is reimaged to the existing version of OS Disk. + ExactVersion *string + + // Parameter to force update ephemeral OS disk for a virtual machine scale set VM + ForceUpdateOSDiskForEphemeral *bool + // The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation // being performed on all virtual machines in the virtual machine scale set. - InstanceIDs []*string `json:"instanceIds,omitempty"` + InstanceIDs []*string + + // Specifies information required for reimaging the non-ephemeral OS disk. + OSProfile *OSProfileProvisioningData // Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported // for VM/VMSS with Ephemeral OS disk. - TempDisk *bool `json:"tempDisk,omitempty"` -} - -// VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel -// method. -type VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade -// method. -type VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade -// method. -type VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest -// method. -type VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions struct { - // placeholder for future optional parameters + TempDisk *bool } // VirtualMachineScaleSetSKU - Describes an available virtual machine scale set sku. type VirtualMachineScaleSetSKU struct { // READ-ONLY; Specifies the number of virtual machines in the scale set. - Capacity *VirtualMachineScaleSetSKUCapacity `json:"capacity,omitempty" azure:"ro"` + Capacity *VirtualMachineScaleSetSKUCapacity // READ-ONLY; The type of resource the sku applies to. - ResourceType *string `json:"resourceType,omitempty" azure:"ro"` + ResourceType *string // READ-ONLY; The Sku. - SKU *SKU `json:"sku,omitempty" azure:"ro"` + SKU *SKU } // VirtualMachineScaleSetSKUCapacity - Describes scaling information of a sku. type VirtualMachineScaleSetSKUCapacity struct { // READ-ONLY; The default capacity. - DefaultCapacity *int64 `json:"defaultCapacity,omitempty" azure:"ro"` + DefaultCapacity *int64 // READ-ONLY; The maximum capacity that can be set. - Maximum *int64 `json:"maximum,omitempty" azure:"ro"` + Maximum *int64 // READ-ONLY; The minimum capacity. - Minimum *int64 `json:"minimum,omitempty" azure:"ro"` + Minimum *int64 // READ-ONLY; The scale type applicable to the sku. - ScaleType *VirtualMachineScaleSetSKUScaleType `json:"scaleType,omitempty" azure:"ro"` + ScaleType *VirtualMachineScaleSetSKUScaleType } // VirtualMachineScaleSetStorageProfile - Describes a virtual machine scale set storage profile. type VirtualMachineScaleSetStorageProfile struct { - // Specifies the parameters that are used to add data disks to the virtual machines in the scale set. - // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. - DataDisks []*VirtualMachineScaleSetDataDisk `json:"dataDisks,omitempty"` + // Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information + // about disks, see About disks and VHDs for Azure virtual machines + // [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. + DataDisks []*VirtualMachineScaleSetDataDisk + DiskControllerType *string // Specifies information about the image to use. You can specify information about platform images, marketplace images, or // virtual machine images. This element is required when you want to use a platform // image, marketplace image, or virtual machine image, but is not used in other creation operations. - ImageReference *ImageReference `json:"imageReference,omitempty"` + ImageReference *ImageReference - // Specifies information about the operating system disk used by the virtual machines in the scale set. - // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. - OSDisk *VirtualMachineScaleSetOSDisk `json:"osDisk,omitempty"` + // Specifies information about the operating system disk used by the virtual machines in the scale set. For more information + // about disks, see About disks and VHDs for Azure virtual machines + // [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview]. + OSDisk *VirtualMachineScaleSetOSDisk } // VirtualMachineScaleSetUpdate - Describes a Virtual Machine Scale Set. type VirtualMachineScaleSetUpdate struct { // The identity of the virtual machine scale set, if configured. - Identity *VirtualMachineScaleSetIdentity `json:"identity,omitempty"` + Identity *VirtualMachineScaleSetIdentity // The purchase plan when deploying a virtual machine scale set from VM Marketplace images. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // Describes the properties of a Virtual Machine Scale Set. - Properties *VirtualMachineScaleSetUpdateProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetUpdateProperties // The virtual machine scale set sku. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // VirtualMachineScaleSetUpdateIPConfiguration - Describes a virtual machine scale set network profile's IP configuration. // NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual // network type VirtualMachineScaleSetUpdateIPConfiguration struct { - // Resource Id - ID *string `json:"id,omitempty"` - // The IP configuration name. - Name *string `json:"name,omitempty"` + Name *string // Describes a virtual machine scale set network profile's IP configuration properties. - Properties *VirtualMachineScaleSetUpdateIPConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetUpdateIPConfigurationProperties } // VirtualMachineScaleSetUpdateIPConfigurationProperties - Describes a virtual machine scale set network profile's IP configuration // properties. type VirtualMachineScaleSetUpdateIPConfigurationProperties struct { // The application gateway backend address pools. - ApplicationGatewayBackendAddressPools []*SubResource `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationGatewayBackendAddressPools []*SubResource // Specifies an array of references to application security group. - ApplicationSecurityGroups []*SubResource `json:"applicationSecurityGroups,omitempty"` + ApplicationSecurityGroups []*SubResource // The load balancer backend address pools. - LoadBalancerBackendAddressPools []*SubResource `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerBackendAddressPools []*SubResource // The load balancer inbound nat pools. - LoadBalancerInboundNatPools []*SubResource `json:"loadBalancerInboundNatPools,omitempty"` + LoadBalancerInboundNatPools []*SubResource // Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. - Primary *bool `json:"primary,omitempty"` + Primary *bool // Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAddressVersion *IPVersion // The publicIPAddressConfiguration. - PublicIPAddressConfiguration *VirtualMachineScaleSetUpdatePublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"` + PublicIPAddressConfiguration *VirtualMachineScaleSetUpdatePublicIPAddressConfiguration // The subnet. - Subnet *APIEntityReference `json:"subnet,omitempty"` + Subnet *APIEntityReference } // VirtualMachineScaleSetUpdateNetworkConfiguration - Describes a virtual machine scale set network profile's network configurations. type VirtualMachineScaleSetUpdateNetworkConfiguration struct { - // Resource Id - ID *string `json:"id,omitempty"` - // The network configuration name. - Name *string `json:"name,omitempty"` + Name *string // Describes a virtual machine scale set updatable network profile's IP configuration.Use this object for updating network // profile's IP Configuration. - Properties *VirtualMachineScaleSetUpdateNetworkConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetUpdateNetworkConfigurationProperties } // VirtualMachineScaleSetUpdateNetworkConfigurationProperties - Describes a virtual machine scale set updatable network profile's // IP configuration.Use this object for updating network profile's IP Configuration. type VirtualMachineScaleSetUpdateNetworkConfigurationProperties struct { + // Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + AuxiliaryMode *NetworkInterfaceAuxiliaryMode + + // Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + AuxiliarySKU *NetworkInterfaceAuxiliarySKU + // The dns settings to be applied on the network interfaces. - DNSSettings *VirtualMachineScaleSetNetworkConfigurationDNSSettings `json:"dnsSettings,omitempty"` + DNSSettings *VirtualMachineScaleSetNetworkConfigurationDNSSettings // Specify what happens to the network interface when the VM is deleted - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DeleteOption *DeleteOptions + + // Specifies whether the network interface is disabled for tcp state tracking. + DisableTCPStateTracking *bool // Specifies whether the network interface is accelerated networking-enabled. - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableAcceleratedNetworking *bool // Specifies whether the network interface is FPGA networking-enabled. - EnableFpga *bool `json:"enableFpga,omitempty"` + EnableFpga *bool // Whether IP forwarding enabled on this NIC. - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + EnableIPForwarding *bool // The virtual machine scale set IP Configuration. - IPConfigurations []*VirtualMachineScaleSetUpdateIPConfiguration `json:"ipConfigurations,omitempty"` + IPConfigurations []*VirtualMachineScaleSetUpdateIPConfiguration // The network security group. - NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` + NetworkSecurityGroup *SubResource // Whether this is a primary NIC on a virtual machine. - Primary *bool `json:"primary,omitempty"` + Primary *bool } // VirtualMachineScaleSetUpdateNetworkProfile - Describes a virtual machine scale set network profile. @@ -8321,21 +7915,21 @@ type VirtualMachineScaleSetUpdateNetworkProfile struct { // A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The // reference will be in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. - HealthProbe *APIEntityReference `json:"healthProbe,omitempty"` + HealthProbe *APIEntityReference // specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations // for Virtual Machine Scale Set with orchestration mode 'Flexible' - NetworkAPIVersion *NetworkAPIVersion `json:"networkApiVersion,omitempty"` + NetworkAPIVersion *NetworkAPIVersion // The list of network configurations. - NetworkInterfaceConfigurations []*VirtualMachineScaleSetUpdateNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"` + NetworkInterfaceConfigurations []*VirtualMachineScaleSetUpdateNetworkConfiguration } // VirtualMachineScaleSetUpdateOSDisk - Describes virtual machine scale set operating system disk Update Object. This should // be used for Updating VMSS OS Disk. type VirtualMachineScaleSetUpdateOSDisk struct { // The caching type. - Caching *CachingTypes `json:"caching,omitempty"` + Caching *CachingTypes // Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with // Flexible OrchestrationMode only). @@ -8344,41 +7938,44 @@ type VirtualMachineScaleSetUpdateOSDisk struct { // Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted. // The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the // delete option for Ephemeral OS Disk. - DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"` + DeleteOption *DiskDeleteOptionTypes + + // Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. + DiffDiskSettings *DiffDiskSettings - // Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk - // in a virtual machine image. - // This value cannot be larger than 1023 GB - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a + // virtual machine image. + // diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023 + DiskSizeGB *int32 // The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. // If SourceImage is provided, the destination VirtualHardDisk should not // exist. - Image *VirtualHardDisk `json:"image,omitempty"` + Image *VirtualHardDisk // The managed disk parameters. - ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"` + ManagedDisk *VirtualMachineScaleSetManagedDiskParameters // The list of virtual hard disk container uris. - VhdContainers []*string `json:"vhdContainers,omitempty"` + VhdContainers []*string // Specifies whether writeAccelerator should be enabled or disabled on the disk. - WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` + WriteAcceleratorEnabled *bool } // VirtualMachineScaleSetUpdateOSProfile - Describes a virtual machine scale set OS profile. type VirtualMachineScaleSetUpdateOSProfile struct { // A base-64 encoded string of custom data. - CustomData *string `json:"customData,omitempty"` + CustomData *string // The Linux Configuration of the OS profile. - LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` + LinuxConfiguration *LinuxConfiguration // The List of certificates for addition to the VM. - Secrets []*VaultSecretGroup `json:"secrets,omitempty"` + Secrets []*VaultSecretGroup // The Windows Configuration of the OS profile. - WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` + WindowsConfiguration *WindowsConfiguration } // VirtualMachineScaleSetUpdateProperties - Describes the properties of a Virtual Machine Scale Set. @@ -8386,335 +7983,331 @@ type VirtualMachineScaleSetUpdateProperties struct { // Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: // whether the Virtual Machines have the capability to support attaching // managed data disks with UltraSSD_LRS storage account type. - AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"` + AdditionalCapabilities *AdditionalCapabilities // Policy for automatic repairs. - AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"` + AutomaticRepairsPolicy *AutomaticRepairsPolicy // When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This // property will hence ensure that the extensions do not run on the extra // overprovisioned VMs. - DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"` + DoNotRunExtensionsOnOverprovisionedVMs *bool // Specifies whether the Virtual Machine Scale Set should be overprovisioned. - Overprovision *bool `json:"overprovision,omitempty"` + Overprovision *bool + + // Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. + PriorityMixPolicy *PriorityMixPolicy // Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. // Minimum api-version: 2018-04-01. - ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` + ProximityPlacementGroup *SubResource + + // Policy for Resiliency + ResiliencyPolicy *ResiliencyPolicy // Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - ScaleInPolicy *ScaleInPolicy `json:"scaleInPolicy,omitempty"` + ScaleInPolicy *ScaleInPolicy // When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup // is true, it may be modified to false. However, if singlePlacementGroup // is false, it may not be modified to true. - SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"` + SinglePlacementGroup *bool + + // Specifies the Spot Restore properties for the virtual machine scale set. + SpotRestorePolicy *SpotRestorePolicy // The upgrade policy. - UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"` + UpgradePolicy *UpgradePolicy // The virtual machine profile. - VirtualMachineProfile *VirtualMachineScaleSetUpdateVMProfile `json:"virtualMachineProfile,omitempty"` + VirtualMachineProfile *VirtualMachineScaleSetUpdateVMProfile } // VirtualMachineScaleSetUpdatePublicIPAddressConfiguration - Describes a virtual machines scale set IP Configuration's PublicIPAddress // configuration type VirtualMachineScaleSetUpdatePublicIPAddressConfiguration struct { // The publicIP address configuration name. - Name *string `json:"name,omitempty"` + Name *string // Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration - Properties *VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties } // VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties - Describes a virtual machines scale set IP Configuration's // PublicIPAddress configuration type VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties struct { // The dns settings to be applied on the publicIP addresses . - DNSSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings `json:"dnsSettings,omitempty"` + DNSSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings // Specify what happens to the public IP when the VM is deleted - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DeleteOption *DeleteOptions // The idle timeout of the public IP address. - IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + IdleTimeoutInMinutes *int32 // The PublicIPPrefix from which to allocate publicIP addresses. - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + PublicIPPrefix *SubResource } // VirtualMachineScaleSetUpdateStorageProfile - Describes a virtual machine scale set storage profile. type VirtualMachineScaleSetUpdateStorageProfile struct { // The data disks. - DataDisks []*VirtualMachineScaleSetDataDisk `json:"dataDisks,omitempty"` + DataDisks []*VirtualMachineScaleSetDataDisk + DiskControllerType *string // The image reference. - ImageReference *ImageReference `json:"imageReference,omitempty"` + ImageReference *ImageReference // The OS disk. - OSDisk *VirtualMachineScaleSetUpdateOSDisk `json:"osDisk,omitempty"` + OSDisk *VirtualMachineScaleSetUpdateOSDisk } // VirtualMachineScaleSetUpdateVMProfile - Describes a virtual machine scale set virtual machine profile. type VirtualMachineScaleSetUpdateVMProfile struct { - // Specifies the billing related details of a Azure Spot VMSS. - // Minimum api-version: 2019-03-01. - BillingProfile *BillingProfile `json:"billingProfile,omitempty"` + // Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. + BillingProfile *BillingProfile // The virtual machine scale set diagnostics profile. - DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` + DiagnosticsProfile *DiagnosticsProfile // The virtual machine scale set extension profile. - ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"` + ExtensionProfile *VirtualMachineScaleSetExtensionProfile + + // Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. + HardwareProfile *VirtualMachineScaleSetHardwareProfile // The license type, which is for bring your own license scenario. - LicenseType *string `json:"licenseType,omitempty"` + LicenseType *string // The virtual machine scale set network profile. - NetworkProfile *VirtualMachineScaleSetUpdateNetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *VirtualMachineScaleSetUpdateNetworkProfile // The virtual machine scale set OS profile. - OSProfile *VirtualMachineScaleSetUpdateOSProfile `json:"osProfile,omitempty"` + OSProfile *VirtualMachineScaleSetUpdateOSProfile // Specifies Scheduled Event related configurations. - ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"` + ScheduledEventsProfile *ScheduledEventsProfile // The virtual machine scale set Security profile - SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *SecurityProfile // The virtual machine scale set storage profile. - StorageProfile *VirtualMachineScaleSetUpdateStorageProfile `json:"storageProfile,omitempty"` + StorageProfile *VirtualMachineScaleSetUpdateStorageProfile // UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. // Minimum api-version: 2021-03-01 - UserData *string `json:"userData,omitempty"` + UserData *string } // VirtualMachineScaleSetVM - Describes a virtual machine scale set virtual machine. type VirtualMachineScaleSetVM struct { // REQUIRED; Resource location - Location *string `json:"location,omitempty"` + Location *string // The identity of the virtual machine, if configured. - Identity *VirtualMachineIdentity `json:"identity,omitempty"` + Identity *VirtualMachineIdentity // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace // images. Before you can use a marketplace image from an API, you must // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click // Want to deploy programmatically, Get Started ->. Enter any required // information and then click Save. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // Describes the properties of a virtual machine scale set virtual machine. - Properties *VirtualMachineScaleSetVMProperties `json:"properties,omitempty"` + Properties *VirtualMachineScaleSetVMProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string + + // READ-ONLY; Etag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header + // to ensure optimistic updates. + Etag *string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The virtual machine instance ID. - InstanceID *string `json:"instanceId,omitempty" azure:"ro"` + InstanceID *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The virtual machine child extension resources. - Resources []*VirtualMachineExtension `json:"resources,omitempty" azure:"ro"` + Resources []*VirtualMachineExtension // READ-ONLY; The virtual machine SKU. - SKU *SKU `json:"sku,omitempty" azure:"ro"` + SKU *SKU // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY; The virtual machine zones. - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // VirtualMachineScaleSetVMExtension - Describes a VMSS VM Extension. type VirtualMachineScaleSetVMExtension struct { + // The location of the extension. + Location *string + // Describes the properties of a Virtual Machine Extension. - Properties *VirtualMachineExtensionProperties `json:"properties,omitempty"` + Properties *VirtualMachineExtensionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the extension. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineScaleSetVMExtensionUpdate - Describes a VMSS VM Extension. type VirtualMachineScaleSetVMExtensionUpdate struct { // Describes the properties of a Virtual Machine Extension. - Properties *VirtualMachineExtensionUpdateProperties `json:"properties,omitempty"` + Properties *VirtualMachineExtensionUpdateProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the extension. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` -} - -// VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate -// method. -type VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginDelete -// method. -type VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginUpdate -// method. -type VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.Get -// method. -type VirtualMachineScaleSetVMExtensionsClientGetOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// VirtualMachineScaleSetVMExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.List -// method. -type VirtualMachineScaleSetVMExtensionsClientListOptions struct { - // The expand expression to apply on the operation. - Expand *string + Type *string } // VirtualMachineScaleSetVMExtensionsListResult - The List VMSS VM Extension operation response type VirtualMachineScaleSetVMExtensionsListResult struct { // The list of VMSS VM extensions - Value []*VirtualMachineScaleSetVMExtension `json:"value,omitempty"` + Value []*VirtualMachineScaleSetVMExtension } // VirtualMachineScaleSetVMExtensionsSummary - Extensions summary for virtual machines of a virtual machine scale set. type VirtualMachineScaleSetVMExtensionsSummary struct { // READ-ONLY; The extension name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The extensions information. - StatusesSummary []*VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty" azure:"ro"` + StatusesSummary []*VirtualMachineStatusCodeCount } // VirtualMachineScaleSetVMInstanceIDs - Specifies a list of virtual machine instance IDs from the VM scale set. type VirtualMachineScaleSetVMInstanceIDs struct { // The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation // being performed on all virtual machines in the virtual machine scale set. - InstanceIDs []*string `json:"instanceIds,omitempty"` + InstanceIDs []*string } // VirtualMachineScaleSetVMInstanceRequiredIDs - Specifies a list of virtual machine instance IDs from the VM scale set. type VirtualMachineScaleSetVMInstanceRequiredIDs struct { // REQUIRED; The virtual machine scale set instance ids. - InstanceIDs []*string `json:"instanceIds,omitempty"` + InstanceIDs []*string } // VirtualMachineScaleSetVMInstanceView - The instance view of a virtual machine scale set VM. type VirtualMachineScaleSetVMInstanceView struct { - // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. - // You can easily view the output of your console log. - // Azure also enables you to see a screenshot of the VM from the hypervisor. - BootDiagnostics *BootDiagnosticsInstanceView `json:"bootDiagnostics,omitempty"` + // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You + // can easily view the output of your console log. Azure also enables you to see + // a screenshot of the VM from the hypervisor. + BootDiagnostics *BootDiagnosticsInstanceView + + // Specifies the host OS name of the virtual machine. + // This name cannot be updated after the VM is created. + // Max-length (Windows): 15 characters + // Max-length (Linux): 64 characters. + // For naming conventions and restrictions see Azure infrastructure services implementation guidelines + // [https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions]. + ComputerName *string // The disks information. - Disks []*DiskInstanceView `json:"disks,omitempty"` + Disks []*DiskInstanceView // The extensions information. - Extensions []*VirtualMachineExtensionInstanceView `json:"extensions,omitempty"` + Extensions []*VirtualMachineExtensionInstanceView + + // The hypervisor generation of the Virtual Machine [V1, V2] + HyperVGeneration *HyperVGeneration // The Maintenance Operation status on the virtual machine. - MaintenanceRedeployStatus *MaintenanceRedeployStatus `json:"maintenanceRedeployStatus,omitempty"` + MaintenanceRedeployStatus *MaintenanceRedeployStatus + + // The Operating System running on the hybrid machine. + OSName *string + + // The version of Operating System running on the hybrid machine. + OSVersion *string // The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. - PlacementGroupID *string `json:"placementGroupId,omitempty"` + PlacementGroupID *string // The Fault Domain count. - PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"` + PlatformFaultDomain *int32 // The Update Domain count. - PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"` + PlatformUpdateDomain *int32 // The Remote desktop certificate thumbprint. - RdpThumbPrint *string `json:"rdpThumbPrint,omitempty"` + RdpThumbPrint *string // The resource status information. - Statuses []*InstanceViewStatus `json:"statuses,omitempty"` + Statuses []*InstanceViewStatus // The VM Agent running on the virtual machine. - VMAgent *VirtualMachineAgentInstanceView `json:"vmAgent,omitempty"` + VMAgent *VirtualMachineAgentInstanceView // READ-ONLY; Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when // the virtual machine is associated with a dedicated host group that has automatic - // placement enabled. - // Minimum api-version: 2020-06-01. - AssignedHost *string `json:"assignedHost,omitempty" azure:"ro"` + // placement enabled. Minimum api-version: 2020-06-01. + AssignedHost *string // READ-ONLY; The health status for the VM. - VMHealth *VirtualMachineHealthStatus `json:"vmHealth,omitempty" azure:"ro"` + VMHealth *VirtualMachineHealthStatus } // VirtualMachineScaleSetVMListResult - The List Virtual Machine Scale Set VMs operation response. type VirtualMachineScaleSetVMListResult struct { // REQUIRED; The list of virtual machine scale sets VMs. - Value []*VirtualMachineScaleSetVM `json:"value,omitempty"` + Value []*VirtualMachineScaleSetVM // The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS // VMs - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // VirtualMachineScaleSetVMNetworkProfileConfiguration - Describes a virtual machine scale set VM network profile. type VirtualMachineScaleSetVMNetworkProfileConfiguration struct { // The list of network configurations. - NetworkInterfaceConfigurations []*VirtualMachineScaleSetNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"` + NetworkInterfaceConfigurations []*VirtualMachineScaleSetNetworkConfiguration } // VirtualMachineScaleSetVMProfile - Describes a virtual machine scale set virtual machine profile. type VirtualMachineScaleSetVMProfile struct { // Specifies the gallery applications that should be made available to the VM/VMSS - ApplicationProfile *ApplicationProfile `json:"applicationProfile,omitempty"` + ApplicationProfile *ApplicationProfile - // Specifies the billing related details of a Azure Spot VMSS. - // Minimum api-version: 2019-03-01. - BillingProfile *BillingProfile `json:"billingProfile,omitempty"` + // Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. + BillingProfile *BillingProfile - // Specifies the capacity reservation related details of a scale set. - // Minimum api-version: 2021-04-01. - CapacityReservation *CapacityReservationProfile `json:"capacityReservation,omitempty"` + // Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01. + CapacityReservation *CapacityReservationProfile - // Specifies the boot diagnostic settings state. - // Minimum api-version: 2015-06-15. - DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` + // Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. + DiagnosticsProfile *DiagnosticsProfile - // Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. - // For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. - // For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. - EvictionPolicy *VirtualMachineEvictionPolicyTypes `json:"evictionPolicy,omitempty"` + // Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, + // both 'Deallocate' and 'Delete' are supported and the minimum api-version is + // 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. + EvictionPolicy *VirtualMachineEvictionPolicyTypes // Specifies a collection of settings for extensions installed on virtual machines in the scale set. - ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"` + ExtensionProfile *VirtualMachineScaleSetExtensionProfile - // Specifies the hardware profile related details of a scale set. - // Minimum api-version: 2022-03-01. - HardwareProfile *VirtualMachineScaleSetHardwareProfile `json:"hardwareProfile,omitempty"` + // Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. + HardwareProfile *VirtualMachineScaleSetHardwareProfile // Specifies that the image or disk that is being used was licensed on-premises. // Possible values for Windows Server operating system are: @@ -8726,31 +8319,41 @@ type VirtualMachineScaleSetVMProfile struct { // For more information, see Azure Hybrid Use Benefit for Windows Server [https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing] // Azure Hybrid Use Benefit for Linux Server [https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux] // Minimum api-version: 2015-06-15 - LicenseType *string `json:"licenseType,omitempty"` + LicenseType *string // Specifies properties of the network interfaces of the virtual machines in the scale set. - NetworkProfile *VirtualMachineScaleSetNetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *VirtualMachineScaleSetNetworkProfile // Specifies the operating system settings for the virtual machines in the scale set. - OSProfile *VirtualMachineScaleSetOSProfile `json:"osProfile,omitempty"` + OSProfile *VirtualMachineScaleSetOSProfile - // Specifies the priority for the virtual machines in the scale set. - // Minimum api-version: 2017-10-30-preview - Priority *VirtualMachinePriorityTypes `json:"priority,omitempty"` + // Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview. + Priority *VirtualMachinePriorityTypes // Specifies Scheduled Event related configurations. - ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"` + ScheduledEventsProfile *ScheduledEventsProfile + + // Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 + SecurityPostureReference *SecurityPostureReference // Specifies the Security related profile settings for the virtual machines in the scale set. - SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *SecurityProfile + + // Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when + // using 'latest' image version. Minimum api-version: 2022-11-01 + ServiceArtifactReference *ServiceArtifactReference // Specifies the storage settings for the virtual machine disks. - StorageProfile *VirtualMachineScaleSetStorageProfile `json:"storageProfile,omitempty"` + StorageProfile *VirtualMachineScaleSetStorageProfile // UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets - // in here. - // Minimum api-version: 2021-03-01 - UserData *string `json:"userData,omitempty"` + // in here. Minimum api-version: 2021-03-01. + UserData *string + + // READ-ONLY; Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. Minimum API version + // for this property is 2024-03-01. This value will be added to VMSS Flex VM tags when + // creating/updating the VMSS VM Profile with minimum api-version 2024-03-01. + TimeCreated *time.Time } // VirtualMachineScaleSetVMProperties - Describes the properties of a virtual machine scale set virtual machine. @@ -8758,22 +8361,22 @@ type VirtualMachineScaleSetVMProperties struct { // Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the // virtual machine has the capability to support attaching managed data disks with // UltraSSD_LRS storage account type. - AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"` + AdditionalCapabilities *AdditionalCapabilities // Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified // in the same availability set are allocated to different nodes to maximize // availability. For more information about availability sets, see Availability sets overview [https://docs.microsoft.com/azure/virtual-machines/availability-set-overview]. - // For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates] - // Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability - // set. - AvailabilitySet *SubResource `json:"availabilitySet,omitempty"` + // For more information on Azure + // planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates]. + // Currently, a VM can only be added to + // availability set at creation time. An existing VM cannot be added to an availability set. + AvailabilitySet *SubResource - // Specifies the boot diagnostic settings state. - // Minimum api-version: 2015-06-15. - DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` + // Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. + DiagnosticsProfile *DiagnosticsProfile // Specifies the hardware settings for the virtual machine. - HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` + HardwareProfile *HardwareProfile // Specifies that the image or disk that is being used was licensed on-premises. // Possible values for Windows Server operating system are: @@ -8785,688 +8388,184 @@ type VirtualMachineScaleSetVMProperties struct { // For more information, see Azure Hybrid Use Benefit for Windows Server [https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing] // Azure Hybrid Use Benefit for Linux Server [https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux] // Minimum api-version: 2015-06-15 - LicenseType *string `json:"licenseType,omitempty"` + LicenseType *string // Specifies the network interfaces of the virtual machine. - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *NetworkProfile // Specifies the network profile configuration of the virtual machine. - NetworkProfileConfiguration *VirtualMachineScaleSetVMNetworkProfileConfiguration `json:"networkProfileConfiguration,omitempty"` + NetworkProfileConfiguration *VirtualMachineScaleSetVMNetworkProfileConfiguration // Specifies the operating system settings for the virtual machine. - OSProfile *OSProfile `json:"osProfile,omitempty"` + OSProfile *OSProfile // Specifies the protection policy of the virtual machine. - ProtectionPolicy *VirtualMachineScaleSetVMProtectionPolicy `json:"protectionPolicy,omitempty"` + ProtectionPolicy *VirtualMachineScaleSetVMProtectionPolicy // Specifies the Security related profile settings for the virtual machine. - SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` + SecurityProfile *SecurityProfile // Specifies the storage settings for the virtual machine disks. - StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + StorageProfile *StorageProfile // UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. // Minimum api-version: 2021-03-01 - UserData *string `json:"userData,omitempty"` + UserData *string // READ-ONLY; The virtual machine instance view. - InstanceView *VirtualMachineScaleSetVMInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *VirtualMachineScaleSetVMInstanceView // READ-ONLY; Specifies whether the latest model has been applied to the virtual machine. - LatestModelApplied *bool `json:"latestModelApplied,omitempty" azure:"ro"` + LatestModelApplied *bool // READ-ONLY; Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or // the customized model for the virtual machine. - ModelDefinitionApplied *string `json:"modelDefinitionApplied,omitempty" azure:"ro"` + ModelDefinitionApplied *string // READ-ONLY; The provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string + + // READ-ONLY; Specifies the time at which the Virtual Machine resource was created. + // Minimum api-version: 2021-11-01. + TimeCreated *time.Time // READ-ONLY; Azure VM unique ID. - VMID *string `json:"vmId,omitempty" azure:"ro"` + VMID *string } // VirtualMachineScaleSetVMProtectionPolicy - The protection policy of a virtual machine scale set VM. type VirtualMachineScaleSetVMProtectionPolicy struct { // Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. - ProtectFromScaleIn *bool `json:"protectFromScaleIn,omitempty"` + ProtectFromScaleIn *bool // Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied // to the virtual machine scale set VM. - ProtectFromScaleSetActions *bool `json:"protectFromScaleSetActions,omitempty"` + ProtectFromScaleSetActions *bool } // VirtualMachineScaleSetVMReimageParameters - Describes a Virtual Machine Scale Set VM Reimage Parameters. type VirtualMachineScaleSetVMReimageParameters struct { - // Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported - // for VM/VMSS with Ephemeral OS disk. - TempDisk *bool `json:"tempDisk,omitempty"` -} - -// VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate -// method. -type VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginDelete -// method. -type VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate -// method. -type VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.Get -// method. -type VirtualMachineScaleSetVMRunCommandsClientGetOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// VirtualMachineScaleSetVMRunCommandsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.List -// method. -type VirtualMachineScaleSetVMRunCommandsClientListOptions struct { - // The expand expression to apply on the operation. - Expand *string -} - -// VirtualMachineScaleSetVMsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDeallocate -// method. -type VirtualMachineScaleSetVMsClientBeginDeallocateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDelete -// method. -type VirtualMachineScaleSetVMsClientBeginDeleteOptions struct { - // Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) - ForceDeletion *bool - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPerformMaintenance -// method. -type VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPowerOff -// method. -type VirtualMachineScaleSetVMsClientBeginPowerOffOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false - // indicates otherwise. Default value for this flag is false if not specified - SkipShutdown *bool -} - -// VirtualMachineScaleSetVMsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRedeploy -// method. -type VirtualMachineScaleSetVMsClientBeginRedeployOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimageAll -// method. -type VirtualMachineScaleSetVMsClientBeginReimageAllOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimage -// method. -type VirtualMachineScaleSetVMsClientBeginReimageOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // Parameters for the Reimaging Virtual machine in ScaleSet. - VMScaleSetVMReimageInput *VirtualMachineScaleSetVMReimageParameters -} - -// VirtualMachineScaleSetVMsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRestart -// method. -type VirtualMachineScaleSetVMsClientBeginRestartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginRunCommandOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRunCommand -// method. -type VirtualMachineScaleSetVMsClientBeginRunCommandOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginStart -// method. -type VirtualMachineScaleSetVMsClientBeginStartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginUpdate -// method. -type VirtualMachineScaleSetVMsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetVMsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.GetInstanceView -// method. -type VirtualMachineScaleSetVMsClientGetInstanceViewOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineScaleSetVMsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.Get -// method. -type VirtualMachineScaleSetVMsClientGetOptions struct { - // The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. - // 'UserData' will retrieve the UserData of the virtual machine. - Expand *InstanceViewTypes -} - -// VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.List -// method. -type VirtualMachineScaleSetVMsClientListOptions struct { - // The expand expression to apply to the operation. Allowed values are 'instanceView'. - Expand *string - // The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', - // 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq - // false'. - Filter *string - // The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. - Select *string -} - -// VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData -// method. -type VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions struct { - // Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. - // NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. - SasURIExpirationTimeInMinutes *int32 -} - -// VirtualMachineScaleSetVMsClientSimulateEvictionOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.SimulateEviction -// method. -type VirtualMachineScaleSetVMsClientSimulateEvictionOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginCreateOrUpdate -// method. -type VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate -// method. -type VirtualMachineScaleSetsClientBeginDeallocateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // A list of virtual machine instance IDs from the VM scale set. - VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs -} - -// VirtualMachineScaleSetsClientBeginDeleteInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeleteInstances -// method. -type VirtualMachineScaleSetsClientBeginDeleteInstancesOptions struct { - // Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview) - ForceDeletion *bool - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete -// method. -type VirtualMachineScaleSetsClientBeginDeleteOptions struct { - // Optional parameter to force delete a VM scale set. (Feature in Preview) - ForceDeletion *bool - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance -// method. -type VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // A list of virtual machine instance IDs from the VM scale set. - VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs -} - -// VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff -// method. -type VirtualMachineScaleSetsClientBeginPowerOffOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false - // indicates otherwise. Default value for this flag is false if not specified - SkipShutdown *bool - // A list of virtual machine instance IDs from the VM scale set. - VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs -} - -// VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy -// method. -type VirtualMachineScaleSetsClientBeginRedeployOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // A list of virtual machine instance IDs from the VM scale set. - VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs -} - -// VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll -// method. -type VirtualMachineScaleSetsClientBeginReimageAllOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // A list of virtual machine instance IDs from the VM scale set. - VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs -} - -// VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage -// method. -type VirtualMachineScaleSetsClientBeginReimageOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // Parameters for Reimaging VM ScaleSet. - VMScaleSetReimageInput *VirtualMachineScaleSetReimageParameters -} - -// VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart -// method. -type VirtualMachineScaleSetsClientBeginRestartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // A list of virtual machine instance IDs from the VM scale set. - VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs -} - -// VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState -// method. -type VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart -// method. -type VirtualMachineScaleSetsClientBeginStartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // A list of virtual machine instance IDs from the VM scale set. - VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs -} - -// VirtualMachineScaleSetsClientBeginUpdateInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdateInstances -// method. -type VirtualMachineScaleSetsClientBeginUpdateInstancesOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdate -// method. -type VirtualMachineScaleSetsClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup -// method. -type VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions contains the optional parameters -// for the VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk method. -type VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions struct { - // The placement group id for which the manual recovery walk is requested. - PlacementGroupID *string - // The zone in which the manual recovery walk is requested for cross zone virtual machine scale set - Zone *string -} - -// VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView -// method. -type VirtualMachineScaleSetsClientGetInstanceViewOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetOSUpgradeHistory -// method. -type VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get method. -type VirtualMachineScaleSetsClientGetOptions struct { - // The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was - // provided by the user during the VM scale set Create/Update operation - Expand *ExpandTypesForGetVMScaleSets -} + // Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is not provided, the OS disk + // is reimaged to the existing version of OS Disk. + ExactVersion *string -// VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListAll -// method. -type VirtualMachineScaleSetsClientListAllOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListByLocation -// method. -type VirtualMachineScaleSetsClientListByLocationOptions struct { - // placeholder for future optional parameters -} + // Parameter to force update ephemeral OS disk for a virtual machine scale set VM + ForceUpdateOSDiskForEphemeral *bool -// VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.List method. -type VirtualMachineScaleSetsClientListOptions struct { - // placeholder for future optional parameters -} + // Specifies information required for reimaging the non-ephemeral OS disk. + OSProfile *OSProfileProvisioningData -// VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListSKUs -// method. -type VirtualMachineScaleSetsClientListSKUsOptions struct { - // placeholder for future optional parameters + // Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported + // for VM/VMSS with Ephemeral OS disk. + TempDisk *bool } // VirtualMachineSize - Describes the properties of a VM size. type VirtualMachineSize struct { // The maximum number of data disks that can be attached to the virtual machine size. - MaxDataDiskCount *int32 `json:"maxDataDiskCount,omitempty"` + MaxDataDiskCount *int32 // The amount of memory, in MB, supported by the virtual machine size. - MemoryInMB *int32 `json:"memoryInMB,omitempty"` + MemoryInMB *int32 // The name of the virtual machine size. - Name *string `json:"name,omitempty"` + Name *string // The number of cores supported by the virtual machine size. For Constrained vCPU capable VM sizes, this number represents // the total vCPUs of quota that the VM uses. For accurate vCPU count, please // refer to https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or https://docs.microsoft.com/rest/api/compute/resourceskus/list - NumberOfCores *int32 `json:"numberOfCores,omitempty"` + NumberOfCores *int32 // The OS disk size, in MB, allowed by the virtual machine size. - OSDiskSizeInMB *int32 `json:"osDiskSizeInMB,omitempty"` + OSDiskSizeInMB *int32 // The resource disk size, in MB, allowed by the virtual machine size. - ResourceDiskSizeInMB *int32 `json:"resourceDiskSizeInMB,omitempty"` + ResourceDiskSizeInMB *int32 } // VirtualMachineSizeListResult - The List Virtual Machine operation response. type VirtualMachineSizeListResult struct { // The list of virtual machine sizes. - Value []*VirtualMachineSize `json:"value,omitempty"` -} - -// VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.List method. -type VirtualMachineSizesClientListOptions struct { - // placeholder for future optional parameters + Value []*VirtualMachineSize } // VirtualMachineSoftwarePatchProperties - Describes the properties of a Virtual Machine software patch. type VirtualMachineSoftwarePatchProperties struct { // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension // logs. - ActivityID *string `json:"activityId,omitempty" azure:"ro"` + ActivityID *string // READ-ONLY; Describes the availability of a given patch. - AssessmentState *PatchAssessmentState `json:"assessmentState,omitempty" azure:"ro"` + AssessmentState *PatchAssessmentState // READ-ONLY; The classification(s) of the patch as provided by the patch publisher. - Classifications []*string `json:"classifications,omitempty" azure:"ro"` + Classifications []*string // READ-ONLY; The KBID of the patch. Only applies to Windows patches. - KbID *string `json:"kbId,omitempty" azure:"ro"` + KbID *string // READ-ONLY; The UTC timestamp of the last update to this patch record. - LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty" azure:"ro"` + LastModifiedDateTime *time.Time // READ-ONLY; The friendly name of the patch. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; A unique identifier for the patch. - PatchID *string `json:"patchId,omitempty" azure:"ro"` + PatchID *string // READ-ONLY; The UTC timestamp when the repository published this patch. - PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"` + PublishedDate *time.Time // READ-ONLY; Describes the reboot requirements of the patch. - RebootBehavior *VMGuestPatchRebootBehavior `json:"rebootBehavior,omitempty" azure:"ro"` + RebootBehavior *VMGuestPatchRebootBehavior // READ-ONLY; The version number of the patch. This property applies only to Linux patches. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // VirtualMachineStatusCodeCount - The status code and count of the virtual machine scale set instance view status summary. type VirtualMachineStatusCodeCount struct { // READ-ONLY; The instance view status code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The number of instances having a particular status code. - Count *int32 `json:"count,omitempty" azure:"ro"` + Count *int32 } // VirtualMachineUpdate - Describes a Virtual Machine Update. type VirtualMachineUpdate struct { // The identity of the virtual machine, if configured. - Identity *VirtualMachineIdentity `json:"identity,omitempty"` + Identity *VirtualMachineIdentity // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace // images. Before you can use a marketplace image from an API, you must // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click // Want to deploy programmatically, Get Started ->. Enter any required // information and then click Save. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // Describes the properties of a Virtual Machine. - Properties *VirtualMachineProperties `json:"properties,omitempty"` + Properties *VirtualMachineProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // The virtual machine zones. - Zones []*string `json:"zones,omitempty"` -} - -// VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches -// method. -type VirtualMachinesClientBeginAssessPatchesOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginCaptureOptions contains the optional parameters for the VirtualMachinesClient.BeginCapture method. -type VirtualMachinesClientBeginCaptureOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks -// method. -type VirtualMachinesClientBeginConvertToManagedDisksOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginCreateOrUpdate -// method. -type VirtualMachinesClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate -// method. -type VirtualMachinesClientBeginDeallocateOptions struct { - // Optional parameter to hibernate a virtual machine. (Feature in Preview) - Hibernate *bool - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete method. -type VirtualMachinesClientBeginDeleteOptions struct { - // Optional parameter to force delete virtual machines. - ForceDeletion *bool - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginInstallPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginInstallPatches -// method. -type VirtualMachinesClientBeginInstallPatchesOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance -// method. -type VirtualMachinesClientBeginPerformMaintenanceOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff -// method. -type VirtualMachinesClientBeginPowerOffOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string - // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false - // indicates otherwise. Default value for this flag is false if not specified - SkipShutdown *bool -} - -// VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply method. -type VirtualMachinesClientBeginReapplyOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy -// method. -type VirtualMachinesClientBeginRedeployOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage method. -type VirtualMachinesClientBeginReimageOptions struct { - // Parameters supplied to the Reimage Virtual Machine operation. - Parameters *VirtualMachineReimageParameters - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart method. -type VirtualMachinesClientBeginRestartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginRunCommandOptions contains the optional parameters for the VirtualMachinesClient.BeginRunCommand -// method. -type VirtualMachinesClientBeginRunCommandOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart method. -type VirtualMachinesClientBeginStartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientBeginUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginUpdate method. -type VirtualMachinesClientBeginUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize method. -type VirtualMachinesClientGeneralizeOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method. -type VirtualMachinesClientGetOptions struct { - // The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual - // machine that is managed by the platform and can change outside of control - // plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user - // during the VM Create/Update operation. - Expand *InstanceViewTypes -} - -// VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView method. -type VirtualMachinesClientInstanceViewOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.ListAll method. -type VirtualMachinesClientListAllOptions struct { - // The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq - // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' - Filter *string - // statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. - StatusOnly *string -} - -// VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.ListAvailableSizes -// method. -type VirtualMachinesClientListAvailableSizesOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.ListByLocation -// method. -type VirtualMachinesClientListByLocationOptions struct { - // placeholder for future optional parameters -} - -// VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.List method. -type VirtualMachinesClientListOptions struct { - // The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq - // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' - Filter *string -} - -// VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData -// method. -type VirtualMachinesClientRetrieveBootDiagnosticsDataOptions struct { - // Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. - // NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. - SasURIExpirationTimeInMinutes *int32 -} - -// VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction -// method. -type VirtualMachinesClientSimulateEvictionOptions struct { - // placeholder for future optional parameters + Zones []*string } // WinRMConfiguration - Describes Windows Remote Management configuration of the VM type WinRMConfiguration struct { // The list of Windows Remote Management listeners - Listeners []*WinRMListener `json:"listeners,omitempty"` + Listeners []*WinRMListener } // WinRMListener - Describes Protocol and thumbprint of Windows Remote Management listener type WinRMListener struct { // This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, // see Add a key or secret to the key vault - // [https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add]. In this case, your certificate needs to be It - // is the Base64 encoding of the following JSON Object which is encoded in UTF-8: + // [https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add]. In this case, your certificate needs to be the + // Base64 encoding of the following JSON Object which is encoded in UTF-8: // { // "data":"", // "dataType":"pfx", @@ -9477,64 +8576,68 @@ type WinRMListener struct { // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure Key Vault virtual machine extension // for Windows // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows]. - CertificateURL *string `json:"certificateUrl,omitempty"` + CertificateURL *string - // Specifies the protocol of WinRM listener. - // Possible values are: - // http - // https - Protocol *ProtocolTypes `json:"protocol,omitempty"` + // Specifies the protocol of WinRM listener. Possible values are: http, https. + Protocol *ProtocolTypes } // WindowsConfiguration - Specifies Windows operating system settings on the virtual machine. type WindowsConfiguration struct { // Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is // used by Windows Setup. - AdditionalUnattendContent []*AdditionalUnattendContent `json:"additionalUnattendContent,omitempty"` + AdditionalUnattendContent []*AdditionalUnattendContent - // Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. - // For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. - EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"` + // Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine + // scale sets, this property can be updated and updates will take effect on OS + // reprovisioning. + EnableAutomaticUpdates *bool + + // Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false. + EnableVMAgentPlatformUpdates *bool // [Preview Feature] Specifies settings related to VM Guest Patching on Windows. - PatchSettings *PatchSettings `json:"patchSettings,omitempty"` + PatchSettings *PatchSettings - // Indicates whether virtual machine agent should be provisioned on the virtual machine. - // When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM + // Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified + // in the request body, it is set to true by default. This will ensure that VM // Agent is installed on the VM so that extensions can be added to the VM later. - ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"` + ProvisionVMAgent *bool - // Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". - // Possible values can be TimeZoneInfo.Id [https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id] - // value from time zones returned by TimeZoneInfo.GetSystemTimeZones + // Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be TimeZoneInfo.Id + // [https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id] value from time zones returned by + // TimeZoneInfo.GetSystemTimeZones // [https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones]. - TimeZone *string `json:"timeZone,omitempty"` + TimeZone *string // Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. - WinRM *WinRMConfiguration `json:"winRM,omitempty"` + WinRM *WinRMConfiguration } // WindowsParameters - Input for InstallPatches on a Windows VM, as directly received by the API type WindowsParameters struct { // The update classifications to select when installing patches for Windows. - ClassificationsToInclude []*VMGuestPatchClassificationWindows `json:"classificationsToInclude,omitempty"` + ClassificationsToInclude []*VMGuestPatchClassificationWindows // Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true. - ExcludeKbsRequiringReboot *bool `json:"excludeKbsRequiringReboot,omitempty"` + ExcludeKbsRequiringReboot *bool // Kbs to exclude in the patch operation - KbNumbersToExclude []*string `json:"kbNumbersToExclude,omitempty"` + KbNumbersToExclude []*string // Kbs to include in the patch operation - KbNumbersToInclude []*string `json:"kbNumbersToInclude,omitempty"` + KbNumbersToInclude []*string // This is used to install patches that were published on or before this given max published date. - MaxPatchPublishDate *time.Time `json:"maxPatchPublishDate,omitempty"` + MaxPatchPublishDate *time.Time } // WindowsVMGuestPatchAutomaticByPlatformSettings - Specifies additional settings to be applied when patch mode AutomaticByPlatform // is selected in Windows patch settings. type WindowsVMGuestPatchAutomaticByPlatformSettings struct { + // Enables customer to schedule patching without accidental upgrades + BypassPlatformSafetyChecksOnUserSchedule *bool + // Specifies the reboot setting for all AutomaticByPlatform patch installation operations. - RebootSetting *WindowsVMGuestPatchAutomaticByPlatformRebootSetting `json:"rebootSetting,omitempty"` + RebootSetting *WindowsVMGuestPatchAutomaticByPlatformRebootSetting } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go new file mode 100644 index 00000000..1bdfcb44 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go @@ -0,0 +1,19966 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcompute + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type APIEntityReference. +func (a APIEntityReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type APIEntityReference. +func (a *APIEntityReference) UnmarshalJSON(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 APIError. +func (a APIError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", a.Code) + populate(objectMap, "details", a.Details) + populate(objectMap, "innererror", a.Innererror) + populate(objectMap, "message", a.Message) + populate(objectMap, "target", a.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type APIError. +func (a *APIError) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &a.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &a.Details) + delete(rawMsg, key) + case "innererror": + err = unpopulate(val, "Innererror", &a.Innererror) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &a.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &a.Target) + 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 APIErrorBase. +func (a APIErrorBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", a.Code) + populate(objectMap, "message", a.Message) + populate(objectMap, "target", a.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type APIErrorBase. +func (a *APIErrorBase) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &a.Code) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &a.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &a.Target) + 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 AccessURI. +func (a AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "accessSAS", a.AccessSAS) + populate(objectMap, "securityDataAccessSAS", a.SecurityDataAccessSAS) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AccessURI. +func (a *AccessURI) UnmarshalJSON(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 "accessSAS": + err = unpopulate(val, "AccessSAS", &a.AccessSAS) + delete(rawMsg, key) + case "securityDataAccessSAS": + err = unpopulate(val, "SecurityDataAccessSAS", &a.SecurityDataAccessSAS) + 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 AdditionalCapabilities. +func (a AdditionalCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hibernationEnabled", a.HibernationEnabled) + populate(objectMap, "ultraSSDEnabled", a.UltraSSDEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AdditionalCapabilities. +func (a *AdditionalCapabilities) UnmarshalJSON(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 "hibernationEnabled": + err = unpopulate(val, "HibernationEnabled", &a.HibernationEnabled) + delete(rawMsg, key) + case "ultraSSDEnabled": + err = unpopulate(val, "UltraSSDEnabled", &a.UltraSSDEnabled) + 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 AdditionalUnattendContent. +func (a AdditionalUnattendContent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["componentName"] = "Microsoft-Windows-Shell-Setup" + populate(objectMap, "content", a.Content) + objectMap["passName"] = "OobeSystem" + populate(objectMap, "settingName", a.SettingName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AdditionalUnattendContent. +func (a *AdditionalUnattendContent) UnmarshalJSON(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 "componentName": + err = unpopulate(val, "ComponentName", &a.ComponentName) + delete(rawMsg, key) + case "content": + err = unpopulate(val, "Content", &a.Content) + delete(rawMsg, key) + case "passName": + err = unpopulate(val, "PassName", &a.PassName) + delete(rawMsg, key) + case "settingName": + err = unpopulate(val, "SettingName", &a.SettingName) + 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 AlternativeOption. +func (a AlternativeOption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "type", a.Type) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AlternativeOption. +func (a *AlternativeOption) UnmarshalJSON(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 "type": + err = unpopulate(val, "Type", &a.Type) + 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 ApplicationProfile. +func (a ApplicationProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "galleryApplications", a.GalleryApplications) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationProfile. +func (a *ApplicationProfile) UnmarshalJSON(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 "galleryApplications": + err = unpopulate(val, "GalleryApplications", &a.GalleryApplications) + 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 AttachDetachDataDisksRequest. +func (a AttachDetachDataDisksRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDisksToAttach", a.DataDisksToAttach) + populate(objectMap, "dataDisksToDetach", a.DataDisksToDetach) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AttachDetachDataDisksRequest. +func (a *AttachDetachDataDisksRequest) UnmarshalJSON(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 "dataDisksToAttach": + err = unpopulate(val, "DataDisksToAttach", &a.DataDisksToAttach) + delete(rawMsg, key) + case "dataDisksToDetach": + err = unpopulate(val, "DataDisksToDetach", &a.DataDisksToDetach) + 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 AutomaticOSUpgradePolicy. +func (a AutomaticOSUpgradePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "disableAutomaticRollback", a.DisableAutomaticRollback) + populate(objectMap, "enableAutomaticOSUpgrade", a.EnableAutomaticOSUpgrade) + populate(objectMap, "osRollingUpgradeDeferral", a.OSRollingUpgradeDeferral) + populate(objectMap, "useRollingUpgradePolicy", a.UseRollingUpgradePolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AutomaticOSUpgradePolicy. +func (a *AutomaticOSUpgradePolicy) UnmarshalJSON(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 "disableAutomaticRollback": + err = unpopulate(val, "DisableAutomaticRollback", &a.DisableAutomaticRollback) + delete(rawMsg, key) + case "enableAutomaticOSUpgrade": + err = unpopulate(val, "EnableAutomaticOSUpgrade", &a.EnableAutomaticOSUpgrade) + delete(rawMsg, key) + case "osRollingUpgradeDeferral": + err = unpopulate(val, "OSRollingUpgradeDeferral", &a.OSRollingUpgradeDeferral) + delete(rawMsg, key) + case "useRollingUpgradePolicy": + err = unpopulate(val, "UseRollingUpgradePolicy", &a.UseRollingUpgradePolicy) + 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 AutomaticOSUpgradeProperties. +func (a AutomaticOSUpgradeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "automaticOSUpgradeSupported", a.AutomaticOSUpgradeSupported) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AutomaticOSUpgradeProperties. +func (a *AutomaticOSUpgradeProperties) UnmarshalJSON(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 "automaticOSUpgradeSupported": + err = unpopulate(val, "AutomaticOSUpgradeSupported", &a.AutomaticOSUpgradeSupported) + 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 AutomaticRepairsPolicy. +func (a AutomaticRepairsPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", a.Enabled) + populate(objectMap, "gracePeriod", a.GracePeriod) + populate(objectMap, "repairAction", a.RepairAction) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AutomaticRepairsPolicy. +func (a *AutomaticRepairsPolicy) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &a.Enabled) + delete(rawMsg, key) + case "gracePeriod": + err = unpopulate(val, "GracePeriod", &a.GracePeriod) + delete(rawMsg, key) + case "repairAction": + err = unpopulate(val, "RepairAction", &a.RepairAction) + 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 AvailabilitySet. +func (a AvailabilitySet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilitySet. +func (a *AvailabilitySet) UnmarshalJSON(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) + case "location": + err = unpopulate(val, "Location", &a.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &a.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &a.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + 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 AvailabilitySetListResult. +func (a AvailabilitySetListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilitySetListResult. +func (a *AvailabilitySetListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + 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 AvailabilitySetProperties. +func (a AvailabilitySetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "platformFaultDomainCount", a.PlatformFaultDomainCount) + populate(objectMap, "platformUpdateDomainCount", a.PlatformUpdateDomainCount) + populate(objectMap, "proximityPlacementGroup", a.ProximityPlacementGroup) + populate(objectMap, "statuses", a.Statuses) + populate(objectMap, "virtualMachines", a.VirtualMachines) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilitySetProperties. +func (a *AvailabilitySetProperties) UnmarshalJSON(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 "platformFaultDomainCount": + err = unpopulate(val, "PlatformFaultDomainCount", &a.PlatformFaultDomainCount) + delete(rawMsg, key) + case "platformUpdateDomainCount": + err = unpopulate(val, "PlatformUpdateDomainCount", &a.PlatformUpdateDomainCount) + delete(rawMsg, key) + case "proximityPlacementGroup": + err = unpopulate(val, "ProximityPlacementGroup", &a.ProximityPlacementGroup) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &a.Statuses) + delete(rawMsg, key) + case "virtualMachines": + err = unpopulate(val, "VirtualMachines", &a.VirtualMachines) + 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 AvailabilitySetUpdate. +func (a AvailabilitySetUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilitySetUpdate. +func (a *AvailabilitySetUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &a.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &a.Tags) + 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 AvailablePatchSummary. +func (a AvailablePatchSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assessmentActivityId", a.AssessmentActivityID) + populate(objectMap, "criticalAndSecurityPatchCount", a.CriticalAndSecurityPatchCount) + populate(objectMap, "error", a.Error) + populateDateTimeRFC3339(objectMap, "lastModifiedTime", a.LastModifiedTime) + populate(objectMap, "otherPatchCount", a.OtherPatchCount) + populate(objectMap, "rebootPending", a.RebootPending) + populateDateTimeRFC3339(objectMap, "startTime", a.StartTime) + populate(objectMap, "status", a.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailablePatchSummary. +func (a *AvailablePatchSummary) UnmarshalJSON(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 "assessmentActivityId": + err = unpopulate(val, "AssessmentActivityID", &a.AssessmentActivityID) + delete(rawMsg, key) + case "criticalAndSecurityPatchCount": + err = unpopulate(val, "CriticalAndSecurityPatchCount", &a.CriticalAndSecurityPatchCount) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &a.Error) + delete(rawMsg, key) + case "lastModifiedTime": + err = unpopulateDateTimeRFC3339(val, "LastModifiedTime", &a.LastModifiedTime) + delete(rawMsg, key) + case "otherPatchCount": + err = unpopulate(val, "OtherPatchCount", &a.OtherPatchCount) + delete(rawMsg, key) + case "rebootPending": + err = unpopulate(val, "RebootPending", &a.RebootPending) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &a.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &a.Status) + 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 BillingProfile. +func (b BillingProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxPrice", b.MaxPrice) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BillingProfile. +func (b *BillingProfile) UnmarshalJSON(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 "maxPrice": + err = unpopulate(val, "MaxPrice", &b.MaxPrice) + 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 BootDiagnostics. +func (b BootDiagnostics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", b.Enabled) + populate(objectMap, "storageUri", b.StorageURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BootDiagnostics. +func (b *BootDiagnostics) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &b.Enabled) + delete(rawMsg, key) + case "storageUri": + err = unpopulate(val, "StorageURI", &b.StorageURI) + 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 BootDiagnosticsInstanceView. +func (b BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "consoleScreenshotBlobUri", b.ConsoleScreenshotBlobURI) + populate(objectMap, "serialConsoleLogBlobUri", b.SerialConsoleLogBlobURI) + populate(objectMap, "status", b.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BootDiagnosticsInstanceView. +func (b *BootDiagnosticsInstanceView) UnmarshalJSON(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 "consoleScreenshotBlobUri": + err = unpopulate(val, "ConsoleScreenshotBlobURI", &b.ConsoleScreenshotBlobURI) + delete(rawMsg, key) + case "serialConsoleLogBlobUri": + err = unpopulate(val, "SerialConsoleLogBlobURI", &b.SerialConsoleLogBlobURI) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &b.Status) + 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 CapacityReservation. +func (c CapacityReservation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "sku", c.SKU) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + populate(objectMap, "zones", c.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservation. +func (c *CapacityReservation) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &c.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &c.Zones) + 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 CapacityReservationGroup. +func (c CapacityReservationGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + populate(objectMap, "zones", c.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationGroup. +func (c *CapacityReservationGroup) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &c.Zones) + 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 CapacityReservationGroupInstanceView. +func (c CapacityReservationGroupInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacityReservations", c.CapacityReservations) + populate(objectMap, "sharedSubscriptionIds", c.SharedSubscriptionIDs) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationGroupInstanceView. +func (c *CapacityReservationGroupInstanceView) UnmarshalJSON(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 "capacityReservations": + err = unpopulate(val, "CapacityReservations", &c.CapacityReservations) + delete(rawMsg, key) + case "sharedSubscriptionIds": + err = unpopulate(val, "SharedSubscriptionIDs", &c.SharedSubscriptionIDs) + 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 CapacityReservationGroupListResult. +func (c CapacityReservationGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationGroupListResult. +func (c *CapacityReservationGroupListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CapacityReservationGroupProperties. +func (c CapacityReservationGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacityReservations", c.CapacityReservations) + populate(objectMap, "instanceView", c.InstanceView) + populate(objectMap, "sharingProfile", c.SharingProfile) + populate(objectMap, "virtualMachinesAssociated", c.VirtualMachinesAssociated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationGroupProperties. +func (c *CapacityReservationGroupProperties) UnmarshalJSON(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 "capacityReservations": + err = unpopulate(val, "CapacityReservations", &c.CapacityReservations) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &c.InstanceView) + delete(rawMsg, key) + case "sharingProfile": + err = unpopulate(val, "SharingProfile", &c.SharingProfile) + delete(rawMsg, key) + case "virtualMachinesAssociated": + err = unpopulate(val, "VirtualMachinesAssociated", &c.VirtualMachinesAssociated) + 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 CapacityReservationGroupUpdate. +func (c CapacityReservationGroupUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "tags", c.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationGroupUpdate. +func (c *CapacityReservationGroupUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + 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 CapacityReservationInstanceView. +func (c CapacityReservationInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "statuses", c.Statuses) + populate(objectMap, "utilizationInfo", c.UtilizationInfo) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationInstanceView. +func (c *CapacityReservationInstanceView) UnmarshalJSON(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 "statuses": + err = unpopulate(val, "Statuses", &c.Statuses) + delete(rawMsg, key) + case "utilizationInfo": + err = unpopulate(val, "UtilizationInfo", &c.UtilizationInfo) + 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 CapacityReservationInstanceViewWithName. +func (c CapacityReservationInstanceViewWithName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + populate(objectMap, "statuses", c.Statuses) + populate(objectMap, "utilizationInfo", c.UtilizationInfo) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationInstanceViewWithName. +func (c *CapacityReservationInstanceViewWithName) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &c.Statuses) + delete(rawMsg, key) + case "utilizationInfo": + err = unpopulate(val, "UtilizationInfo", &c.UtilizationInfo) + 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 CapacityReservationListResult. +func (c CapacityReservationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationListResult. +func (c *CapacityReservationListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CapacityReservationProfile. +func (c CapacityReservationProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacityReservationGroup", c.CapacityReservationGroup) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationProfile. +func (c *CapacityReservationProfile) UnmarshalJSON(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 "capacityReservationGroup": + err = unpopulate(val, "CapacityReservationGroup", &c.CapacityReservationGroup) + 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 CapacityReservationProperties. +func (c CapacityReservationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "instanceView", c.InstanceView) + populate(objectMap, "platformFaultDomainCount", c.PlatformFaultDomainCount) + populate(objectMap, "provisioningState", c.ProvisioningState) + populateDateTimeRFC3339(objectMap, "provisioningTime", c.ProvisioningTime) + populate(objectMap, "reservationId", c.ReservationID) + populateDateTimeRFC3339(objectMap, "timeCreated", c.TimeCreated) + populate(objectMap, "virtualMachinesAssociated", c.VirtualMachinesAssociated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationProperties. +func (c *CapacityReservationProperties) UnmarshalJSON(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 "instanceView": + err = unpopulate(val, "InstanceView", &c.InstanceView) + delete(rawMsg, key) + case "platformFaultDomainCount": + err = unpopulate(val, "PlatformFaultDomainCount", &c.PlatformFaultDomainCount) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "provisioningTime": + err = unpopulateDateTimeRFC3339(val, "ProvisioningTime", &c.ProvisioningTime) + delete(rawMsg, key) + case "reservationId": + err = unpopulate(val, "ReservationID", &c.ReservationID) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &c.TimeCreated) + delete(rawMsg, key) + case "virtualMachinesAssociated": + err = unpopulate(val, "VirtualMachinesAssociated", &c.VirtualMachinesAssociated) + 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 CapacityReservationUpdate. +func (c CapacityReservationUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "sku", c.SKU) + populate(objectMap, "tags", c.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationUpdate. +func (c *CapacityReservationUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &c.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + 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 CapacityReservationUtilization. +func (c CapacityReservationUtilization) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentCapacity", c.CurrentCapacity) + populate(objectMap, "virtualMachinesAllocated", c.VirtualMachinesAllocated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationUtilization. +func (c *CapacityReservationUtilization) UnmarshalJSON(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 "currentCapacity": + err = unpopulate(val, "CurrentCapacity", &c.CurrentCapacity) + delete(rawMsg, key) + case "virtualMachinesAllocated": + err = unpopulate(val, "VirtualMachinesAllocated", &c.VirtualMachinesAllocated) + 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 CloudService. +func (c CloudService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + populate(objectMap, "zones", c.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudService. +func (c *CloudService) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &c.Zones) + 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 CloudServiceExtensionProfile. +func (c CloudServiceExtensionProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extensions", c.Extensions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceExtensionProfile. +func (c *CloudServiceExtensionProfile) UnmarshalJSON(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 "extensions": + err = unpopulate(val, "Extensions", &c.Extensions) + 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 CloudServiceExtensionProperties. +func (c CloudServiceExtensionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoUpgradeMinorVersion", c.AutoUpgradeMinorVersion) + populate(objectMap, "forceUpdateTag", c.ForceUpdateTag) + populateAny(objectMap, "protectedSettings", c.ProtectedSettings) + populate(objectMap, "protectedSettingsFromKeyVault", c.ProtectedSettingsFromKeyVault) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "publisher", c.Publisher) + populate(objectMap, "rolesAppliedTo", c.RolesAppliedTo) + populateAny(objectMap, "settings", c.Settings) + populate(objectMap, "type", c.Type) + populate(objectMap, "typeHandlerVersion", c.TypeHandlerVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceExtensionProperties. +func (c *CloudServiceExtensionProperties) UnmarshalJSON(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 "autoUpgradeMinorVersion": + err = unpopulate(val, "AutoUpgradeMinorVersion", &c.AutoUpgradeMinorVersion) + delete(rawMsg, key) + case "forceUpdateTag": + err = unpopulate(val, "ForceUpdateTag", &c.ForceUpdateTag) + delete(rawMsg, key) + case "protectedSettings": + err = unpopulate(val, "ProtectedSettings", &c.ProtectedSettings) + delete(rawMsg, key) + case "protectedSettingsFromKeyVault": + err = unpopulate(val, "ProtectedSettingsFromKeyVault", &c.ProtectedSettingsFromKeyVault) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &c.Publisher) + delete(rawMsg, key) + case "rolesAppliedTo": + err = unpopulate(val, "RolesAppliedTo", &c.RolesAppliedTo) + delete(rawMsg, key) + case "settings": + err = unpopulate(val, "Settings", &c.Settings) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "typeHandlerVersion": + err = unpopulate(val, "TypeHandlerVersion", &c.TypeHandlerVersion) + 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 CloudServiceInstanceView. +func (c CloudServiceInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateIds", c.PrivateIDs) + populate(objectMap, "roleInstance", c.RoleInstance) + populate(objectMap, "sdkVersion", c.SdkVersion) + populate(objectMap, "statuses", c.Statuses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceInstanceView. +func (c *CloudServiceInstanceView) UnmarshalJSON(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 "privateIds": + err = unpopulate(val, "PrivateIDs", &c.PrivateIDs) + delete(rawMsg, key) + case "roleInstance": + err = unpopulate(val, "RoleInstance", &c.RoleInstance) + delete(rawMsg, key) + case "sdkVersion": + err = unpopulate(val, "SdkVersion", &c.SdkVersion) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &c.Statuses) + 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 CloudServiceListResult. +func (c CloudServiceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceListResult. +func (c *CloudServiceListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CloudServiceNetworkProfile. +func (c CloudServiceNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "loadBalancerConfigurations", c.LoadBalancerConfigurations) + populate(objectMap, "slotType", c.SlotType) + populate(objectMap, "swappableCloudService", c.SwappableCloudService) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceNetworkProfile. +func (c *CloudServiceNetworkProfile) UnmarshalJSON(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 "loadBalancerConfigurations": + err = unpopulate(val, "LoadBalancerConfigurations", &c.LoadBalancerConfigurations) + delete(rawMsg, key) + case "slotType": + err = unpopulate(val, "SlotType", &c.SlotType) + delete(rawMsg, key) + case "swappableCloudService": + err = unpopulate(val, "SwappableCloudService", &c.SwappableCloudService) + 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 CloudServiceOsProfile. +func (c CloudServiceOsProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secrets", c.Secrets) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceOsProfile. +func (c *CloudServiceOsProfile) UnmarshalJSON(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 "secrets": + err = unpopulate(val, "Secrets", &c.Secrets) + 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 CloudServiceProperties. +func (c CloudServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowModelOverride", c.AllowModelOverride) + populate(objectMap, "configuration", c.Configuration) + populate(objectMap, "configurationUrl", c.ConfigurationURL) + populate(objectMap, "extensionProfile", c.ExtensionProfile) + populate(objectMap, "networkProfile", c.NetworkProfile) + populate(objectMap, "osProfile", c.OSProfile) + populate(objectMap, "packageUrl", c.PackageURL) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "roleProfile", c.RoleProfile) + populate(objectMap, "startCloudService", c.StartCloudService) + populate(objectMap, "uniqueId", c.UniqueID) + populate(objectMap, "upgradeMode", c.UpgradeMode) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceProperties. +func (c *CloudServiceProperties) UnmarshalJSON(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 "allowModelOverride": + err = unpopulate(val, "AllowModelOverride", &c.AllowModelOverride) + delete(rawMsg, key) + case "configuration": + err = unpopulate(val, "Configuration", &c.Configuration) + delete(rawMsg, key) + case "configurationUrl": + err = unpopulate(val, "ConfigurationURL", &c.ConfigurationURL) + delete(rawMsg, key) + case "extensionProfile": + err = unpopulate(val, "ExtensionProfile", &c.ExtensionProfile) + delete(rawMsg, key) + case "networkProfile": + err = unpopulate(val, "NetworkProfile", &c.NetworkProfile) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &c.OSProfile) + delete(rawMsg, key) + case "packageUrl": + err = unpopulate(val, "PackageURL", &c.PackageURL) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "roleProfile": + err = unpopulate(val, "RoleProfile", &c.RoleProfile) + delete(rawMsg, key) + case "startCloudService": + err = unpopulate(val, "StartCloudService", &c.StartCloudService) + delete(rawMsg, key) + case "uniqueId": + err = unpopulate(val, "UniqueID", &c.UniqueID) + delete(rawMsg, key) + case "upgradeMode": + err = unpopulate(val, "UpgradeMode", &c.UpgradeMode) + 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 CloudServiceRole. +func (c CloudServiceRole) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "sku", c.SKU) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceRole. +func (c *CloudServiceRole) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &c.SKU) + delete(rawMsg, 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 CloudServiceRoleListResult. +func (c CloudServiceRoleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceRoleListResult. +func (c *CloudServiceRoleListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CloudServiceRoleProfile. +func (c CloudServiceRoleProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "roles", c.Roles) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceRoleProfile. +func (c *CloudServiceRoleProfile) UnmarshalJSON(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 "roles": + err = unpopulate(val, "Roles", &c.Roles) + 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 CloudServiceRoleProfileProperties. +func (c CloudServiceRoleProfileProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + populate(objectMap, "sku", c.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceRoleProfileProperties. +func (c *CloudServiceRoleProfileProperties) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &c.SKU) + 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 CloudServiceRoleProperties. +func (c CloudServiceRoleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "uniqueId", c.UniqueID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceRoleProperties. +func (c *CloudServiceRoleProperties) UnmarshalJSON(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 "uniqueId": + err = unpopulate(val, "UniqueID", &c.UniqueID) + 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 CloudServiceRoleSKU. +func (c CloudServiceRoleSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacity", c.Capacity) + populate(objectMap, "name", c.Name) + populate(objectMap, "tier", c.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceRoleSKU. +func (c *CloudServiceRoleSKU) UnmarshalJSON(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 "capacity": + err = unpopulate(val, "Capacity", &c.Capacity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &c.Tier) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CloudServiceUpdate. +func (c CloudServiceUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", c.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceUpdate. +func (c *CloudServiceUpdate) UnmarshalJSON(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 "tags": + err = unpopulate(val, "Tags", &c.Tags) + 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 CloudServiceVaultAndSecretReference. +func (c CloudServiceVaultAndSecretReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secretUrl", c.SecretURL) + populate(objectMap, "sourceVault", c.SourceVault) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceVaultAndSecretReference. +func (c *CloudServiceVaultAndSecretReference) UnmarshalJSON(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 "secretUrl": + err = unpopulate(val, "SecretURL", &c.SecretURL) + delete(rawMsg, key) + case "sourceVault": + err = unpopulate(val, "SourceVault", &c.SourceVault) + 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 CloudServiceVaultCertificate. +func (c CloudServiceVaultCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "certificateUrl", c.CertificateURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceVaultCertificate. +func (c *CloudServiceVaultCertificate) UnmarshalJSON(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 "certificateUrl": + err = unpopulate(val, "CertificateURL", &c.CertificateURL) + 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 CloudServiceVaultSecretGroup. +func (c CloudServiceVaultSecretGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sourceVault", c.SourceVault) + populate(objectMap, "vaultCertificates", c.VaultCertificates) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudServiceVaultSecretGroup. +func (c *CloudServiceVaultSecretGroup) UnmarshalJSON(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 "sourceVault": + err = unpopulate(val, "SourceVault", &c.SourceVault) + delete(rawMsg, key) + case "vaultCertificates": + err = unpopulate(val, "VaultCertificates", &c.VaultCertificates) + 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 CommunityGallery. +func (c CommunityGallery) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", c.Identifier) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGallery. +func (c *CommunityGallery) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &c.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, 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 CommunityGalleryIdentifier. +func (c CommunityGalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "uniqueId", c.UniqueID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryIdentifier. +func (c *CommunityGalleryIdentifier) UnmarshalJSON(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 "uniqueId": + err = unpopulate(val, "UniqueID", &c.UniqueID) + 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 CommunityGalleryImage. +func (c CommunityGalleryImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", c.Identifier) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImage. +func (c *CommunityGalleryImage) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &c.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, 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 CommunityGalleryImageIdentifier. +func (c CommunityGalleryImageIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "offer", c.Offer) + populate(objectMap, "publisher", c.Publisher) + populate(objectMap, "sku", c.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageIdentifier. +func (c *CommunityGalleryImageIdentifier) UnmarshalJSON(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 "offer": + err = unpopulate(val, "Offer", &c.Offer) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &c.Publisher) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &c.SKU) + 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 CommunityGalleryImageList. +func (c CommunityGalleryImageList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageList. +func (c *CommunityGalleryImageList) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CommunityGalleryImageProperties. +func (c CommunityGalleryImageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "architecture", c.Architecture) + populate(objectMap, "artifactTags", c.ArtifactTags) + populate(objectMap, "disallowed", c.Disallowed) + populate(objectMap, "disclaimer", c.Disclaimer) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", c.EndOfLifeDate) + populate(objectMap, "eula", c.Eula) + populate(objectMap, "features", c.Features) + populate(objectMap, "hyperVGeneration", c.HyperVGeneration) + populate(objectMap, "identifier", c.Identifier) + populate(objectMap, "osState", c.OSState) + populate(objectMap, "osType", c.OSType) + populate(objectMap, "privacyStatementUri", c.PrivacyStatementURI) + populate(objectMap, "purchasePlan", c.PurchasePlan) + populate(objectMap, "recommended", c.Recommended) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageProperties. +func (c *CommunityGalleryImageProperties) UnmarshalJSON(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 "architecture": + err = unpopulate(val, "Architecture", &c.Architecture) + delete(rawMsg, key) + case "artifactTags": + err = unpopulate(val, "ArtifactTags", &c.ArtifactTags) + delete(rawMsg, key) + case "disallowed": + err = unpopulate(val, "Disallowed", &c.Disallowed) + delete(rawMsg, key) + case "disclaimer": + err = unpopulate(val, "Disclaimer", &c.Disclaimer) + delete(rawMsg, key) + case "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &c.EndOfLifeDate) + delete(rawMsg, key) + case "eula": + err = unpopulate(val, "Eula", &c.Eula) + delete(rawMsg, key) + case "features": + err = unpopulate(val, "Features", &c.Features) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &c.HyperVGeneration) + delete(rawMsg, key) + case "identifier": + err = unpopulate(val, "Identifier", &c.Identifier) + delete(rawMsg, key) + case "osState": + err = unpopulate(val, "OSState", &c.OSState) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &c.OSType) + delete(rawMsg, key) + case "privacyStatementUri": + err = unpopulate(val, "PrivacyStatementURI", &c.PrivacyStatementURI) + delete(rawMsg, key) + case "purchasePlan": + err = unpopulate(val, "PurchasePlan", &c.PurchasePlan) + delete(rawMsg, key) + case "recommended": + err = unpopulate(val, "Recommended", &c.Recommended) + 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 CommunityGalleryImageVersion. +func (c CommunityGalleryImageVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", c.Identifier) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageVersion. +func (c *CommunityGalleryImageVersion) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &c.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, 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 CommunityGalleryImageVersionList. +func (c CommunityGalleryImageVersionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageVersionList. +func (c *CommunityGalleryImageVersionList) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CommunityGalleryImageVersionProperties. +func (c CommunityGalleryImageVersionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "artifactTags", c.ArtifactTags) + populate(objectMap, "disclaimer", c.Disclaimer) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", c.EndOfLifeDate) + populate(objectMap, "excludeFromLatest", c.ExcludeFromLatest) + populateDateTimeRFC3339(objectMap, "publishedDate", c.PublishedDate) + populate(objectMap, "storageProfile", c.StorageProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageVersionProperties. +func (c *CommunityGalleryImageVersionProperties) UnmarshalJSON(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 "artifactTags": + err = unpopulate(val, "ArtifactTags", &c.ArtifactTags) + delete(rawMsg, key) + case "disclaimer": + err = unpopulate(val, "Disclaimer", &c.Disclaimer) + delete(rawMsg, key) + case "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &c.EndOfLifeDate) + delete(rawMsg, key) + case "excludeFromLatest": + err = unpopulate(val, "ExcludeFromLatest", &c.ExcludeFromLatest) + delete(rawMsg, key) + case "publishedDate": + err = unpopulateDateTimeRFC3339(val, "PublishedDate", &c.PublishedDate) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &c.StorageProfile) + 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 CommunityGalleryInfo. +func (c CommunityGalleryInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "communityGalleryEnabled", c.CommunityGalleryEnabled) + populate(objectMap, "eula", c.Eula) + populate(objectMap, "publicNamePrefix", c.PublicNamePrefix) + populate(objectMap, "publicNames", c.PublicNames) + populate(objectMap, "publisherContact", c.PublisherContact) + populate(objectMap, "publisherUri", c.PublisherURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryInfo. +func (c *CommunityGalleryInfo) UnmarshalJSON(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 "communityGalleryEnabled": + err = unpopulate(val, "CommunityGalleryEnabled", &c.CommunityGalleryEnabled) + delete(rawMsg, key) + case "eula": + err = unpopulate(val, "Eula", &c.Eula) + delete(rawMsg, key) + case "publicNamePrefix": + err = unpopulate(val, "PublicNamePrefix", &c.PublicNamePrefix) + delete(rawMsg, key) + case "publicNames": + err = unpopulate(val, "PublicNames", &c.PublicNames) + delete(rawMsg, key) + case "publisherContact": + err = unpopulate(val, "PublisherContact", &c.PublisherContact) + delete(rawMsg, key) + case "publisherUri": + err = unpopulate(val, "PublisherURI", &c.PublisherURI) + 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 CommunityGalleryMetadata. +func (c CommunityGalleryMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "eula", c.Eula) + populate(objectMap, "privacyStatementUri", c.PrivacyStatementURI) + populate(objectMap, "publicNames", c.PublicNames) + populate(objectMap, "publisherContact", c.PublisherContact) + populate(objectMap, "publisherUri", c.PublisherURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryMetadata. +func (c *CommunityGalleryMetadata) UnmarshalJSON(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 "eula": + err = unpopulate(val, "Eula", &c.Eula) + delete(rawMsg, key) + case "privacyStatementUri": + err = unpopulate(val, "PrivacyStatementURI", &c.PrivacyStatementURI) + delete(rawMsg, key) + case "publicNames": + err = unpopulate(val, "PublicNames", &c.PublicNames) + delete(rawMsg, key) + case "publisherContact": + err = unpopulate(val, "PublisherContact", &c.PublisherContact) + delete(rawMsg, key) + case "publisherUri": + err = unpopulate(val, "PublisherURI", &c.PublisherURI) + 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 CommunityGalleryProperties. +func (c CommunityGalleryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "artifactTags", c.ArtifactTags) + populate(objectMap, "communityMetadata", c.CommunityMetadata) + populate(objectMap, "disclaimer", c.Disclaimer) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryProperties. +func (c *CommunityGalleryProperties) UnmarshalJSON(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 "artifactTags": + err = unpopulate(val, "ArtifactTags", &c.ArtifactTags) + delete(rawMsg, key) + case "communityMetadata": + err = unpopulate(val, "CommunityMetadata", &c.CommunityMetadata) + delete(rawMsg, key) + case "disclaimer": + err = unpopulate(val, "Disclaimer", &c.Disclaimer) + 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 CopyCompletionError. +func (c CopyCompletionError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "errorCode", c.ErrorCode) + populate(objectMap, "errorMessage", c.ErrorMessage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CopyCompletionError. +func (c *CopyCompletionError) UnmarshalJSON(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 "errorCode": + err = unpopulate(val, "ErrorCode", &c.ErrorCode) + delete(rawMsg, key) + case "errorMessage": + err = unpopulate(val, "ErrorMessage", &c.ErrorMessage) + 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 CreationData. +func (c CreationData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "createOption", c.CreateOption) + populate(objectMap, "elasticSanResourceId", c.ElasticSanResourceID) + populate(objectMap, "galleryImageReference", c.GalleryImageReference) + populate(objectMap, "imageReference", c.ImageReference) + populate(objectMap, "logicalSectorSize", c.LogicalSectorSize) + populate(objectMap, "performancePlus", c.PerformancePlus) + populate(objectMap, "provisionedBandwidthCopySpeed", c.ProvisionedBandwidthCopySpeed) + populate(objectMap, "securityDataUri", c.SecurityDataURI) + populate(objectMap, "sourceResourceId", c.SourceResourceID) + populate(objectMap, "sourceUri", c.SourceURI) + populate(objectMap, "sourceUniqueId", c.SourceUniqueID) + populate(objectMap, "storageAccountId", c.StorageAccountID) + populate(objectMap, "uploadSizeBytes", c.UploadSizeBytes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreationData. +func (c *CreationData) UnmarshalJSON(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 "createOption": + err = unpopulate(val, "CreateOption", &c.CreateOption) + delete(rawMsg, key) + case "elasticSanResourceId": + err = unpopulate(val, "ElasticSanResourceID", &c.ElasticSanResourceID) + delete(rawMsg, key) + case "galleryImageReference": + err = unpopulate(val, "GalleryImageReference", &c.GalleryImageReference) + delete(rawMsg, key) + case "imageReference": + err = unpopulate(val, "ImageReference", &c.ImageReference) + delete(rawMsg, key) + case "logicalSectorSize": + err = unpopulate(val, "LogicalSectorSize", &c.LogicalSectorSize) + delete(rawMsg, key) + case "performancePlus": + err = unpopulate(val, "PerformancePlus", &c.PerformancePlus) + delete(rawMsg, key) + case "provisionedBandwidthCopySpeed": + err = unpopulate(val, "ProvisionedBandwidthCopySpeed", &c.ProvisionedBandwidthCopySpeed) + delete(rawMsg, key) + case "securityDataUri": + err = unpopulate(val, "SecurityDataURI", &c.SecurityDataURI) + delete(rawMsg, key) + case "sourceResourceId": + err = unpopulate(val, "SourceResourceID", &c.SourceResourceID) + delete(rawMsg, key) + case "sourceUri": + err = unpopulate(val, "SourceURI", &c.SourceURI) + delete(rawMsg, key) + case "sourceUniqueId": + err = unpopulate(val, "SourceUniqueID", &c.SourceUniqueID) + delete(rawMsg, key) + case "storageAccountId": + err = unpopulate(val, "StorageAccountID", &c.StorageAccountID) + delete(rawMsg, key) + case "uploadSizeBytes": + err = unpopulate(val, "UploadSizeBytes", &c.UploadSizeBytes) + 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 DataDisk. +func (d DataDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", d.Caching) + populate(objectMap, "createOption", d.CreateOption) + populate(objectMap, "deleteOption", d.DeleteOption) + populate(objectMap, "detachOption", d.DetachOption) + populate(objectMap, "diskIOPSReadWrite", d.DiskIOPSReadWrite) + populate(objectMap, "diskMBpsReadWrite", d.DiskMBpsReadWrite) + populate(objectMap, "diskSizeGB", d.DiskSizeGB) + populate(objectMap, "image", d.Image) + populate(objectMap, "lun", d.Lun) + populate(objectMap, "managedDisk", d.ManagedDisk) + populate(objectMap, "name", d.Name) + populate(objectMap, "sourceResource", d.SourceResource) + populate(objectMap, "toBeDetached", d.ToBeDetached) + populate(objectMap, "vhd", d.Vhd) + populate(objectMap, "writeAcceleratorEnabled", d.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataDisk. +func (d *DataDisk) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &d.Caching) + delete(rawMsg, key) + case "createOption": + err = unpopulate(val, "CreateOption", &d.CreateOption) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &d.DeleteOption) + delete(rawMsg, key) + case "detachOption": + err = unpopulate(val, "DetachOption", &d.DetachOption) + delete(rawMsg, key) + case "diskIOPSReadWrite": + err = unpopulate(val, "DiskIOPSReadWrite", &d.DiskIOPSReadWrite) + delete(rawMsg, key) + case "diskMBpsReadWrite": + err = unpopulate(val, "DiskMBpsReadWrite", &d.DiskMBpsReadWrite) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &d.DiskSizeGB) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &d.Image) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &d.Lun) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &d.ManagedDisk) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "sourceResource": + err = unpopulate(val, "SourceResource", &d.SourceResource) + delete(rawMsg, key) + case "toBeDetached": + err = unpopulate(val, "ToBeDetached", &d.ToBeDetached) + delete(rawMsg, key) + case "vhd": + err = unpopulate(val, "Vhd", &d.Vhd) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &d.WriteAcceleratorEnabled) + 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 DataDiskImage. +func (d DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "lun", d.Lun) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataDiskImage. +func (d *DataDiskImage) UnmarshalJSON(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 "lun": + err = unpopulate(val, "Lun", &d.Lun) + 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 DataDiskImageEncryption. +func (d DataDiskImageEncryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSetId", d.DiskEncryptionSetID) + populate(objectMap, "lun", d.Lun) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataDiskImageEncryption. +func (d *DataDiskImageEncryption) UnmarshalJSON(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 "diskEncryptionSetId": + err = unpopulate(val, "DiskEncryptionSetID", &d.DiskEncryptionSetID) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &d.Lun) + 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 DataDisksToAttach. +func (d DataDisksToAttach) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", d.Caching) + populate(objectMap, "deleteOption", d.DeleteOption) + populate(objectMap, "diskEncryptionSet", d.DiskEncryptionSet) + populate(objectMap, "diskId", d.DiskID) + populate(objectMap, "lun", d.Lun) + populate(objectMap, "writeAcceleratorEnabled", d.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataDisksToAttach. +func (d *DataDisksToAttach) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &d.Caching) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &d.DeleteOption) + delete(rawMsg, key) + case "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &d.DiskEncryptionSet) + delete(rawMsg, key) + case "diskId": + err = unpopulate(val, "DiskID", &d.DiskID) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &d.Lun) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &d.WriteAcceleratorEnabled) + 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 DataDisksToDetach. +func (d DataDisksToDetach) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "detachOption", d.DetachOption) + populate(objectMap, "diskId", d.DiskID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataDisksToDetach. +func (d *DataDisksToDetach) UnmarshalJSON(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 "detachOption": + err = unpopulate(val, "DetachOption", &d.DetachOption) + delete(rawMsg, key) + case "diskId": + err = unpopulate(val, "DiskID", &d.DiskID) + 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 DedicatedHost. +func (d DedicatedHost) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "sku", d.SKU) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHost. +func (d *DedicatedHost) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &d.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + 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 DedicatedHostAllocatableVM. +func (d DedicatedHostAllocatableVM) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "count", d.Count) + populate(objectMap, "vmSize", d.VMSize) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostAllocatableVM. +func (d *DedicatedHostAllocatableVM) UnmarshalJSON(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 "count": + err = unpopulate(val, "Count", &d.Count) + delete(rawMsg, key) + case "vmSize": + err = unpopulate(val, "VMSize", &d.VMSize) + 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 DedicatedHostAvailableCapacity. +func (d DedicatedHostAvailableCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allocatableVMs", d.AllocatableVMs) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostAvailableCapacity. +func (d *DedicatedHostAvailableCapacity) UnmarshalJSON(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 "allocatableVMs": + err = unpopulate(val, "AllocatableVMs", &d.AllocatableVMs) + 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 DedicatedHostGroup. +func (d DedicatedHostGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + populate(objectMap, "zones", d.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostGroup. +func (d *DedicatedHostGroup) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &d.Zones) + 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 DedicatedHostGroupInstanceView. +func (d DedicatedHostGroupInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hosts", d.Hosts) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostGroupInstanceView. +func (d *DedicatedHostGroupInstanceView) UnmarshalJSON(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 "hosts": + err = unpopulate(val, "Hosts", &d.Hosts) + 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 DedicatedHostGroupListResult. +func (d DedicatedHostGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostGroupListResult. +func (d *DedicatedHostGroupListResult) UnmarshalJSON(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 DedicatedHostGroupProperties. +func (d DedicatedHostGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalCapabilities", d.AdditionalCapabilities) + populate(objectMap, "hosts", d.Hosts) + populate(objectMap, "instanceView", d.InstanceView) + populate(objectMap, "platformFaultDomainCount", d.PlatformFaultDomainCount) + populate(objectMap, "supportAutomaticPlacement", d.SupportAutomaticPlacement) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostGroupProperties. +func (d *DedicatedHostGroupProperties) UnmarshalJSON(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 "additionalCapabilities": + err = unpopulate(val, "AdditionalCapabilities", &d.AdditionalCapabilities) + delete(rawMsg, key) + case "hosts": + err = unpopulate(val, "Hosts", &d.Hosts) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &d.InstanceView) + delete(rawMsg, key) + case "platformFaultDomainCount": + err = unpopulate(val, "PlatformFaultDomainCount", &d.PlatformFaultDomainCount) + delete(rawMsg, key) + case "supportAutomaticPlacement": + err = unpopulate(val, "SupportAutomaticPlacement", &d.SupportAutomaticPlacement) + 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 DedicatedHostGroupPropertiesAdditionalCapabilities. +func (d DedicatedHostGroupPropertiesAdditionalCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ultraSSDEnabled", d.UltraSSDEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostGroupPropertiesAdditionalCapabilities. +func (d *DedicatedHostGroupPropertiesAdditionalCapabilities) UnmarshalJSON(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 "ultraSSDEnabled": + err = unpopulate(val, "UltraSSDEnabled", &d.UltraSSDEnabled) + 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 DedicatedHostGroupUpdate. +func (d DedicatedHostGroupUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "zones", d.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostGroupUpdate. +func (d *DedicatedHostGroupUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &d.Zones) + 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 DedicatedHostInstanceView. +func (d DedicatedHostInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assetId", d.AssetID) + populate(objectMap, "availableCapacity", d.AvailableCapacity) + populate(objectMap, "statuses", d.Statuses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostInstanceView. +func (d *DedicatedHostInstanceView) UnmarshalJSON(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 "assetId": + err = unpopulate(val, "AssetID", &d.AssetID) + delete(rawMsg, key) + case "availableCapacity": + err = unpopulate(val, "AvailableCapacity", &d.AvailableCapacity) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &d.Statuses) + 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 DedicatedHostInstanceViewWithName. +func (d DedicatedHostInstanceViewWithName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assetId", d.AssetID) + populate(objectMap, "availableCapacity", d.AvailableCapacity) + populate(objectMap, "name", d.Name) + populate(objectMap, "statuses", d.Statuses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostInstanceViewWithName. +func (d *DedicatedHostInstanceViewWithName) UnmarshalJSON(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 "assetId": + err = unpopulate(val, "AssetID", &d.AssetID) + delete(rawMsg, key) + case "availableCapacity": + err = unpopulate(val, "AvailableCapacity", &d.AvailableCapacity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &d.Statuses) + 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 DedicatedHostListResult. +func (d DedicatedHostListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostListResult. +func (d *DedicatedHostListResult) UnmarshalJSON(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 DedicatedHostProperties. +func (d DedicatedHostProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoReplaceOnFailure", d.AutoReplaceOnFailure) + populate(objectMap, "hostId", d.HostID) + populate(objectMap, "instanceView", d.InstanceView) + populate(objectMap, "licenseType", d.LicenseType) + populate(objectMap, "platformFaultDomain", d.PlatformFaultDomain) + populate(objectMap, "provisioningState", d.ProvisioningState) + populateDateTimeRFC3339(objectMap, "provisioningTime", d.ProvisioningTime) + populateDateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated) + populate(objectMap, "virtualMachines", d.VirtualMachines) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostProperties. +func (d *DedicatedHostProperties) UnmarshalJSON(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 "autoReplaceOnFailure": + err = unpopulate(val, "AutoReplaceOnFailure", &d.AutoReplaceOnFailure) + delete(rawMsg, key) + case "hostId": + err = unpopulate(val, "HostID", &d.HostID) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &d.InstanceView) + delete(rawMsg, key) + case "licenseType": + err = unpopulate(val, "LicenseType", &d.LicenseType) + delete(rawMsg, key) + case "platformFaultDomain": + err = unpopulate(val, "PlatformFaultDomain", &d.PlatformFaultDomain) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) + delete(rawMsg, key) + case "provisioningTime": + err = unpopulateDateTimeRFC3339(val, "ProvisioningTime", &d.ProvisioningTime) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) + delete(rawMsg, key) + case "virtualMachines": + err = unpopulate(val, "VirtualMachines", &d.VirtualMachines) + 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 DedicatedHostSizeListResult. +func (d DedicatedHostSizeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostSizeListResult. +func (d *DedicatedHostSizeListResult) UnmarshalJSON(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 "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 DedicatedHostUpdate. +func (d DedicatedHostUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "sku", d.SKU) + populate(objectMap, "tags", d.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostUpdate. +func (d *DedicatedHostUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &d.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + 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 DiagnosticsProfile. +func (d DiagnosticsProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "bootDiagnostics", d.BootDiagnostics) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticsProfile. +func (d *DiagnosticsProfile) UnmarshalJSON(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 "bootDiagnostics": + err = unpopulate(val, "BootDiagnostics", &d.BootDiagnostics) + 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 DiffDiskSettings. +func (d DiffDiskSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "option", d.Option) + populate(objectMap, "placement", d.Placement) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiffDiskSettings. +func (d *DiffDiskSettings) UnmarshalJSON(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 "option": + err = unpopulate(val, "Option", &d.Option) + delete(rawMsg, key) + case "placement": + err = unpopulate(val, "Placement", &d.Placement) + 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 Disallowed. +func (d Disallowed) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskTypes", d.DiskTypes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Disallowed. +func (d *Disallowed) UnmarshalJSON(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 "diskTypes": + err = unpopulate(val, "DiskTypes", &d.DiskTypes) + 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 DisallowedConfiguration. +func (d DisallowedConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "vmDiskType", d.VMDiskType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DisallowedConfiguration. +func (d *DisallowedConfiguration) UnmarshalJSON(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 "vmDiskType": + err = unpopulate(val, "VMDiskType", &d.VMDiskType) + 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 Disk. +func (d Disk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", d.ExtendedLocation) + populate(objectMap, "id", d.ID) + populate(objectMap, "location", d.Location) + populate(objectMap, "managedBy", d.ManagedBy) + populate(objectMap, "managedByExtended", d.ManagedByExtended) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "sku", d.SKU) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + populate(objectMap, "zones", d.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Disk. +func (d *Disk) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &d.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "managedBy": + err = unpopulate(val, "ManagedBy", &d.ManagedBy) + delete(rawMsg, key) + case "managedByExtended": + err = unpopulate(val, "ManagedByExtended", &d.ManagedByExtended) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &d.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &d.Zones) + 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 DiskAccess. +func (d DiskAccess) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", d.ExtendedLocation) + populate(objectMap, "id", d.ID) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskAccess. +func (d *DiskAccess) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &d.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + 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 DiskAccessList. +func (d DiskAccessList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskAccessList. +func (d *DiskAccessList) UnmarshalJSON(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 DiskAccessProperties. +func (d DiskAccessProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateEndpointConnections", d.PrivateEndpointConnections) + populate(objectMap, "provisioningState", d.ProvisioningState) + populateDateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskAccessProperties. +func (d *DiskAccessProperties) UnmarshalJSON(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 "privateEndpointConnections": + err = unpopulate(val, "PrivateEndpointConnections", &d.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) + 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 DiskAccessUpdate. +func (d DiskAccessUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", d.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskAccessUpdate. +func (d *DiskAccessUpdate) UnmarshalJSON(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 "tags": + err = unpopulate(val, "Tags", &d.Tags) + 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 DiskEncryptionSet. +func (d DiskEncryptionSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "identity", d.Identity) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionSet. +func (d *DiskEncryptionSet) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &d.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + 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 DiskEncryptionSetList. +func (d DiskEncryptionSetList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionSetList. +func (d *DiskEncryptionSetList) UnmarshalJSON(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 DiskEncryptionSetParameters. +func (d DiskEncryptionSetParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionSetParameters. +func (d *DiskEncryptionSetParameters) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + 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 DiskEncryptionSetUpdate. +func (d DiskEncryptionSetUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", d.Identity) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "tags", d.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionSetUpdate. +func (d *DiskEncryptionSetUpdate) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &d.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + 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 DiskEncryptionSetUpdateProperties. +func (d DiskEncryptionSetUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activeKey", d.ActiveKey) + populate(objectMap, "encryptionType", d.EncryptionType) + populate(objectMap, "federatedClientId", d.FederatedClientID) + populate(objectMap, "rotationToLatestKeyVersionEnabled", d.RotationToLatestKeyVersionEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionSetUpdateProperties. +func (d *DiskEncryptionSetUpdateProperties) UnmarshalJSON(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 "activeKey": + err = unpopulate(val, "ActiveKey", &d.ActiveKey) + delete(rawMsg, key) + case "encryptionType": + err = unpopulate(val, "EncryptionType", &d.EncryptionType) + delete(rawMsg, key) + case "federatedClientId": + err = unpopulate(val, "FederatedClientID", &d.FederatedClientID) + delete(rawMsg, key) + case "rotationToLatestKeyVersionEnabled": + err = unpopulate(val, "RotationToLatestKeyVersionEnabled", &d.RotationToLatestKeyVersionEnabled) + 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 DiskEncryptionSettings. +func (d DiskEncryptionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionKey", d.DiskEncryptionKey) + populate(objectMap, "enabled", d.Enabled) + populate(objectMap, "keyEncryptionKey", d.KeyEncryptionKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionSettings. +func (d *DiskEncryptionSettings) UnmarshalJSON(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 "diskEncryptionKey": + err = unpopulate(val, "DiskEncryptionKey", &d.DiskEncryptionKey) + delete(rawMsg, key) + case "enabled": + err = unpopulate(val, "Enabled", &d.Enabled) + delete(rawMsg, key) + case "keyEncryptionKey": + err = unpopulate(val, "KeyEncryptionKey", &d.KeyEncryptionKey) + 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 DiskImageEncryption. +func (d DiskImageEncryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSetId", d.DiskEncryptionSetID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskImageEncryption. +func (d *DiskImageEncryption) UnmarshalJSON(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 "diskEncryptionSetId": + err = unpopulate(val, "DiskEncryptionSetID", &d.DiskEncryptionSetID) + 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 DiskInstanceView. +func (d DiskInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryptionSettings", d.EncryptionSettings) + populate(objectMap, "name", d.Name) + populate(objectMap, "statuses", d.Statuses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskInstanceView. +func (d *DiskInstanceView) UnmarshalJSON(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 "encryptionSettings": + err = unpopulate(val, "EncryptionSettings", &d.EncryptionSettings) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &d.Statuses) + 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 DiskList. +func (d DiskList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskList. +func (d *DiskList) UnmarshalJSON(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 DiskProperties. +func (d DiskProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "burstingEnabled", d.BurstingEnabled) + populateDateTimeRFC3339(objectMap, "burstingEnabledTime", d.BurstingEnabledTime) + populate(objectMap, "completionPercent", d.CompletionPercent) + populate(objectMap, "creationData", d.CreationData) + populate(objectMap, "dataAccessAuthMode", d.DataAccessAuthMode) + populate(objectMap, "diskAccessId", d.DiskAccessID) + populate(objectMap, "diskIOPSReadOnly", d.DiskIOPSReadOnly) + populate(objectMap, "diskIOPSReadWrite", d.DiskIOPSReadWrite) + populate(objectMap, "diskMBpsReadOnly", d.DiskMBpsReadOnly) + populate(objectMap, "diskMBpsReadWrite", d.DiskMBpsReadWrite) + populate(objectMap, "diskSizeBytes", d.DiskSizeBytes) + populate(objectMap, "diskSizeGB", d.DiskSizeGB) + populate(objectMap, "diskState", d.DiskState) + populate(objectMap, "encryption", d.Encryption) + populate(objectMap, "encryptionSettingsCollection", d.EncryptionSettingsCollection) + populate(objectMap, "hyperVGeneration", d.HyperVGeneration) + populateDateTimeRFC3339(objectMap, "LastOwnershipUpdateTime", d.LastOwnershipUpdateTime) + populate(objectMap, "maxShares", d.MaxShares) + populate(objectMap, "networkAccessPolicy", d.NetworkAccessPolicy) + populate(objectMap, "osType", d.OSType) + populate(objectMap, "optimizedForFrequentAttach", d.OptimizedForFrequentAttach) + populate(objectMap, "propertyUpdatesInProgress", d.PropertyUpdatesInProgress) + populate(objectMap, "provisioningState", d.ProvisioningState) + populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) + populate(objectMap, "purchasePlan", d.PurchasePlan) + populate(objectMap, "securityProfile", d.SecurityProfile) + populate(objectMap, "shareInfo", d.ShareInfo) + populate(objectMap, "supportedCapabilities", d.SupportedCapabilities) + populate(objectMap, "supportsHibernation", d.SupportsHibernation) + populate(objectMap, "tier", d.Tier) + populateDateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated) + populate(objectMap, "uniqueId", d.UniqueID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskProperties. +func (d *DiskProperties) UnmarshalJSON(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 "burstingEnabled": + err = unpopulate(val, "BurstingEnabled", &d.BurstingEnabled) + delete(rawMsg, key) + case "burstingEnabledTime": + err = unpopulateDateTimeRFC3339(val, "BurstingEnabledTime", &d.BurstingEnabledTime) + delete(rawMsg, key) + case "completionPercent": + err = unpopulate(val, "CompletionPercent", &d.CompletionPercent) + delete(rawMsg, key) + case "creationData": + err = unpopulate(val, "CreationData", &d.CreationData) + delete(rawMsg, key) + case "dataAccessAuthMode": + err = unpopulate(val, "DataAccessAuthMode", &d.DataAccessAuthMode) + delete(rawMsg, key) + case "diskAccessId": + err = unpopulate(val, "DiskAccessID", &d.DiskAccessID) + delete(rawMsg, key) + case "diskIOPSReadOnly": + err = unpopulate(val, "DiskIOPSReadOnly", &d.DiskIOPSReadOnly) + delete(rawMsg, key) + case "diskIOPSReadWrite": + err = unpopulate(val, "DiskIOPSReadWrite", &d.DiskIOPSReadWrite) + delete(rawMsg, key) + case "diskMBpsReadOnly": + err = unpopulate(val, "DiskMBpsReadOnly", &d.DiskMBpsReadOnly) + delete(rawMsg, key) + case "diskMBpsReadWrite": + err = unpopulate(val, "DiskMBpsReadWrite", &d.DiskMBpsReadWrite) + delete(rawMsg, key) + case "diskSizeBytes": + err = unpopulate(val, "DiskSizeBytes", &d.DiskSizeBytes) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &d.DiskSizeGB) + delete(rawMsg, key) + case "diskState": + err = unpopulate(val, "DiskState", &d.DiskState) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &d.Encryption) + delete(rawMsg, key) + case "encryptionSettingsCollection": + err = unpopulate(val, "EncryptionSettingsCollection", &d.EncryptionSettingsCollection) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &d.HyperVGeneration) + delete(rawMsg, key) + case "LastOwnershipUpdateTime": + err = unpopulateDateTimeRFC3339(val, "LastOwnershipUpdateTime", &d.LastOwnershipUpdateTime) + delete(rawMsg, key) + case "maxShares": + err = unpopulate(val, "MaxShares", &d.MaxShares) + delete(rawMsg, key) + case "networkAccessPolicy": + err = unpopulate(val, "NetworkAccessPolicy", &d.NetworkAccessPolicy) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &d.OSType) + delete(rawMsg, key) + case "optimizedForFrequentAttach": + err = unpopulate(val, "OptimizedForFrequentAttach", &d.OptimizedForFrequentAttach) + delete(rawMsg, key) + case "propertyUpdatesInProgress": + err = unpopulate(val, "PropertyUpdatesInProgress", &d.PropertyUpdatesInProgress) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) + delete(rawMsg, key) + case "purchasePlan": + err = unpopulate(val, "PurchasePlan", &d.PurchasePlan) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &d.SecurityProfile) + delete(rawMsg, key) + case "shareInfo": + err = unpopulate(val, "ShareInfo", &d.ShareInfo) + delete(rawMsg, key) + case "supportedCapabilities": + err = unpopulate(val, "SupportedCapabilities", &d.SupportedCapabilities) + delete(rawMsg, key) + case "supportsHibernation": + err = unpopulate(val, "SupportsHibernation", &d.SupportsHibernation) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &d.Tier) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) + delete(rawMsg, key) + case "uniqueId": + err = unpopulate(val, "UniqueID", &d.UniqueID) + 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 DiskPurchasePlan. +func (d DiskPurchasePlan) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "product", d.Product) + populate(objectMap, "promotionCode", d.PromotionCode) + populate(objectMap, "publisher", d.Publisher) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskPurchasePlan. +func (d *DiskPurchasePlan) UnmarshalJSON(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 "product": + err = unpopulate(val, "Product", &d.Product) + delete(rawMsg, key) + case "promotionCode": + err = unpopulate(val, "PromotionCode", &d.PromotionCode) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &d.Publisher) + 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 DiskRestorePoint. +func (d DiskRestorePoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePoint. +func (d *DiskRestorePoint) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + 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 DiskRestorePointAttributes. +func (d DiskRestorePointAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryption", d.Encryption) + populate(objectMap, "id", d.ID) + populate(objectMap, "sourceDiskRestorePoint", d.SourceDiskRestorePoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePointAttributes. +func (d *DiskRestorePointAttributes) UnmarshalJSON(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 "encryption": + err = unpopulate(val, "Encryption", &d.Encryption) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "sourceDiskRestorePoint": + err = unpopulate(val, "SourceDiskRestorePoint", &d.SourceDiskRestorePoint) + 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 DiskRestorePointInstanceView. +func (d DiskRestorePointInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "replicationStatus", d.ReplicationStatus) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePointInstanceView. +func (d *DiskRestorePointInstanceView) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "replicationStatus": + err = unpopulate(val, "ReplicationStatus", &d.ReplicationStatus) + 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 DiskRestorePointList. +func (d DiskRestorePointList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePointList. +func (d *DiskRestorePointList) UnmarshalJSON(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 DiskRestorePointProperties. +func (d DiskRestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "completionPercent", d.CompletionPercent) + populate(objectMap, "diskAccessId", d.DiskAccessID) + populate(objectMap, "encryption", d.Encryption) + populate(objectMap, "familyId", d.FamilyID) + populate(objectMap, "hyperVGeneration", d.HyperVGeneration) + populate(objectMap, "networkAccessPolicy", d.NetworkAccessPolicy) + populate(objectMap, "osType", d.OSType) + populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) + populate(objectMap, "purchasePlan", d.PurchasePlan) + populate(objectMap, "replicationState", d.ReplicationState) + populate(objectMap, "securityProfile", d.SecurityProfile) + populate(objectMap, "sourceResourceId", d.SourceResourceID) + populate(objectMap, "sourceResourceLocation", d.SourceResourceLocation) + populate(objectMap, "sourceUniqueId", d.SourceUniqueID) + populate(objectMap, "supportedCapabilities", d.SupportedCapabilities) + populate(objectMap, "supportsHibernation", d.SupportsHibernation) + populateDateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePointProperties. +func (d *DiskRestorePointProperties) UnmarshalJSON(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 "completionPercent": + err = unpopulate(val, "CompletionPercent", &d.CompletionPercent) + delete(rawMsg, key) + case "diskAccessId": + err = unpopulate(val, "DiskAccessID", &d.DiskAccessID) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &d.Encryption) + delete(rawMsg, key) + case "familyId": + err = unpopulate(val, "FamilyID", &d.FamilyID) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &d.HyperVGeneration) + delete(rawMsg, key) + case "networkAccessPolicy": + err = unpopulate(val, "NetworkAccessPolicy", &d.NetworkAccessPolicy) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &d.OSType) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) + delete(rawMsg, key) + case "purchasePlan": + err = unpopulate(val, "PurchasePlan", &d.PurchasePlan) + delete(rawMsg, key) + case "replicationState": + err = unpopulate(val, "ReplicationState", &d.ReplicationState) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &d.SecurityProfile) + delete(rawMsg, key) + case "sourceResourceId": + err = unpopulate(val, "SourceResourceID", &d.SourceResourceID) + delete(rawMsg, key) + case "sourceResourceLocation": + err = unpopulate(val, "SourceResourceLocation", &d.SourceResourceLocation) + delete(rawMsg, key) + case "sourceUniqueId": + err = unpopulate(val, "SourceUniqueID", &d.SourceUniqueID) + delete(rawMsg, key) + case "supportedCapabilities": + err = unpopulate(val, "SupportedCapabilities", &d.SupportedCapabilities) + delete(rawMsg, key) + case "supportsHibernation": + err = unpopulate(val, "SupportsHibernation", &d.SupportsHibernation) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) + 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 DiskRestorePointReplicationStatus. +func (d DiskRestorePointReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "completionPercent", d.CompletionPercent) + populate(objectMap, "status", d.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePointReplicationStatus. +func (d *DiskRestorePointReplicationStatus) UnmarshalJSON(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 "completionPercent": + err = unpopulate(val, "CompletionPercent", &d.CompletionPercent) + 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 DiskSKU. +func (d DiskSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "tier", d.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskSKU. +func (d *DiskSKU) UnmarshalJSON(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 "tier": + err = unpopulate(val, "Tier", &d.Tier) + 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 DiskSecurityProfile. +func (d DiskSecurityProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secureVMDiskEncryptionSetId", d.SecureVMDiskEncryptionSetID) + populate(objectMap, "securityType", d.SecurityType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskSecurityProfile. +func (d *DiskSecurityProfile) UnmarshalJSON(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 "secureVMDiskEncryptionSetId": + err = unpopulate(val, "SecureVMDiskEncryptionSetID", &d.SecureVMDiskEncryptionSetID) + delete(rawMsg, key) + case "securityType": + err = unpopulate(val, "SecurityType", &d.SecurityType) + 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 DiskUpdate. +func (d DiskUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "sku", d.SKU) + populate(objectMap, "tags", d.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskUpdate. +func (d *DiskUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &d.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + 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 DiskUpdateProperties. +func (d DiskUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "burstingEnabled", d.BurstingEnabled) + populate(objectMap, "dataAccessAuthMode", d.DataAccessAuthMode) + populate(objectMap, "diskAccessId", d.DiskAccessID) + populate(objectMap, "diskIOPSReadOnly", d.DiskIOPSReadOnly) + populate(objectMap, "diskIOPSReadWrite", d.DiskIOPSReadWrite) + populate(objectMap, "diskMBpsReadOnly", d.DiskMBpsReadOnly) + populate(objectMap, "diskMBpsReadWrite", d.DiskMBpsReadWrite) + populate(objectMap, "diskSizeGB", d.DiskSizeGB) + populate(objectMap, "encryption", d.Encryption) + populate(objectMap, "encryptionSettingsCollection", d.EncryptionSettingsCollection) + populate(objectMap, "maxShares", d.MaxShares) + populate(objectMap, "networkAccessPolicy", d.NetworkAccessPolicy) + populate(objectMap, "osType", d.OSType) + populate(objectMap, "optimizedForFrequentAttach", d.OptimizedForFrequentAttach) + populate(objectMap, "propertyUpdatesInProgress", d.PropertyUpdatesInProgress) + populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) + populate(objectMap, "purchasePlan", d.PurchasePlan) + populate(objectMap, "supportedCapabilities", d.SupportedCapabilities) + populate(objectMap, "supportsHibernation", d.SupportsHibernation) + populate(objectMap, "tier", d.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskUpdateProperties. +func (d *DiskUpdateProperties) UnmarshalJSON(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 "burstingEnabled": + err = unpopulate(val, "BurstingEnabled", &d.BurstingEnabled) + delete(rawMsg, key) + case "dataAccessAuthMode": + err = unpopulate(val, "DataAccessAuthMode", &d.DataAccessAuthMode) + delete(rawMsg, key) + case "diskAccessId": + err = unpopulate(val, "DiskAccessID", &d.DiskAccessID) + delete(rawMsg, key) + case "diskIOPSReadOnly": + err = unpopulate(val, "DiskIOPSReadOnly", &d.DiskIOPSReadOnly) + delete(rawMsg, key) + case "diskIOPSReadWrite": + err = unpopulate(val, "DiskIOPSReadWrite", &d.DiskIOPSReadWrite) + delete(rawMsg, key) + case "diskMBpsReadOnly": + err = unpopulate(val, "DiskMBpsReadOnly", &d.DiskMBpsReadOnly) + delete(rawMsg, key) + case "diskMBpsReadWrite": + err = unpopulate(val, "DiskMBpsReadWrite", &d.DiskMBpsReadWrite) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &d.DiskSizeGB) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &d.Encryption) + delete(rawMsg, key) + case "encryptionSettingsCollection": + err = unpopulate(val, "EncryptionSettingsCollection", &d.EncryptionSettingsCollection) + delete(rawMsg, key) + case "maxShares": + err = unpopulate(val, "MaxShares", &d.MaxShares) + delete(rawMsg, key) + case "networkAccessPolicy": + err = unpopulate(val, "NetworkAccessPolicy", &d.NetworkAccessPolicy) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &d.OSType) + delete(rawMsg, key) + case "optimizedForFrequentAttach": + err = unpopulate(val, "OptimizedForFrequentAttach", &d.OptimizedForFrequentAttach) + delete(rawMsg, key) + case "propertyUpdatesInProgress": + err = unpopulate(val, "PropertyUpdatesInProgress", &d.PropertyUpdatesInProgress) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) + delete(rawMsg, key) + case "purchasePlan": + err = unpopulate(val, "PurchasePlan", &d.PurchasePlan) + delete(rawMsg, key) + case "supportedCapabilities": + err = unpopulate(val, "SupportedCapabilities", &d.SupportedCapabilities) + delete(rawMsg, key) + case "supportsHibernation": + err = unpopulate(val, "SupportsHibernation", &d.SupportsHibernation) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &d.Tier) + 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 Encryption. +func (e Encryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSetId", e.DiskEncryptionSetID) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Encryption. +func (e *Encryption) UnmarshalJSON(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 "diskEncryptionSetId": + err = unpopulate(val, "DiskEncryptionSetID", &e.DiskEncryptionSetID) + 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 EncryptionIdentity. +func (e EncryptionIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "userAssignedIdentityResourceId", e.UserAssignedIdentityResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionIdentity. +func (e *EncryptionIdentity) UnmarshalJSON(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 "userAssignedIdentityResourceId": + err = unpopulate(val, "UserAssignedIdentityResourceID", &e.UserAssignedIdentityResourceID) + 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 EncryptionImages. +func (e EncryptionImages) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDiskImages", e.DataDiskImages) + populate(objectMap, "osDiskImage", e.OSDiskImage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionImages. +func (e *EncryptionImages) UnmarshalJSON(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 "dataDiskImages": + err = unpopulate(val, "DataDiskImages", &e.DataDiskImages) + delete(rawMsg, key) + case "osDiskImage": + err = unpopulate(val, "OSDiskImage", &e.OSDiskImage) + 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 EncryptionSetIdentity. +func (e EncryptionSetIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", e.PrincipalID) + populate(objectMap, "tenantId", e.TenantID) + populate(objectMap, "type", e.Type) + populate(objectMap, "userAssignedIdentities", e.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSetIdentity. +func (e *EncryptionSetIdentity) UnmarshalJSON(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 "principalId": + err = unpopulate(val, "PrincipalID", &e.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &e.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &e.UserAssignedIdentities) + 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 EncryptionSetProperties. +func (e EncryptionSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activeKey", e.ActiveKey) + populate(objectMap, "autoKeyRotationError", e.AutoKeyRotationError) + populate(objectMap, "encryptionType", e.EncryptionType) + populate(objectMap, "federatedClientId", e.FederatedClientID) + populateDateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", e.LastKeyRotationTimestamp) + populate(objectMap, "previousKeys", e.PreviousKeys) + populate(objectMap, "provisioningState", e.ProvisioningState) + populate(objectMap, "rotationToLatestKeyVersionEnabled", e.RotationToLatestKeyVersionEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSetProperties. +func (e *EncryptionSetProperties) UnmarshalJSON(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 "activeKey": + err = unpopulate(val, "ActiveKey", &e.ActiveKey) + delete(rawMsg, key) + case "autoKeyRotationError": + err = unpopulate(val, "AutoKeyRotationError", &e.AutoKeyRotationError) + delete(rawMsg, key) + case "encryptionType": + err = unpopulate(val, "EncryptionType", &e.EncryptionType) + delete(rawMsg, key) + case "federatedClientId": + err = unpopulate(val, "FederatedClientID", &e.FederatedClientID) + delete(rawMsg, key) + case "lastKeyRotationTimestamp": + err = unpopulateDateTimeRFC3339(val, "LastKeyRotationTimestamp", &e.LastKeyRotationTimestamp) + delete(rawMsg, key) + case "previousKeys": + err = unpopulate(val, "PreviousKeys", &e.PreviousKeys) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &e.ProvisioningState) + delete(rawMsg, key) + case "rotationToLatestKeyVersionEnabled": + err = unpopulate(val, "RotationToLatestKeyVersionEnabled", &e.RotationToLatestKeyVersionEnabled) + 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 EncryptionSettingsCollection. +func (e EncryptionSettingsCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", e.Enabled) + populate(objectMap, "encryptionSettings", e.EncryptionSettings) + populate(objectMap, "encryptionSettingsVersion", e.EncryptionSettingsVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSettingsCollection. +func (e *EncryptionSettingsCollection) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &e.Enabled) + delete(rawMsg, key) + case "encryptionSettings": + err = unpopulate(val, "EncryptionSettings", &e.EncryptionSettings) + delete(rawMsg, key) + case "encryptionSettingsVersion": + err = unpopulate(val, "EncryptionSettingsVersion", &e.EncryptionSettingsVersion) + 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 EncryptionSettingsElement. +func (e EncryptionSettingsElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionKey", e.DiskEncryptionKey) + populate(objectMap, "keyEncryptionKey", e.KeyEncryptionKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSettingsElement. +func (e *EncryptionSettingsElement) UnmarshalJSON(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 "diskEncryptionKey": + err = unpopulate(val, "DiskEncryptionKey", &e.DiskEncryptionKey) + delete(rawMsg, key) + case "keyEncryptionKey": + err = unpopulate(val, "KeyEncryptionKey", &e.KeyEncryptionKey) + 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 EventGridAndResourceGraph. +func (e EventGridAndResourceGraph) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enable", e.Enable) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventGridAndResourceGraph. +func (e *EventGridAndResourceGraph) UnmarshalJSON(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 "enable": + err = unpopulate(val, "Enable", &e.Enable) + 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 ExtendedLocation. +func (e ExtendedLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", e.Name) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedLocation. +func (e *ExtendedLocation) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &e.Name) + 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 Extension. +func (e Extension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Extension. +func (e *Extension) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + 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 Gallery. +func (g Gallery) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Gallery. +func (g *Gallery) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + 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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryApplication. +func (g GalleryApplication) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplication. +func (g *GalleryApplication) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + 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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryApplicationCustomAction. +func (g GalleryApplicationCustomAction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", g.Description) + populate(objectMap, "name", g.Name) + populate(objectMap, "parameters", g.Parameters) + populate(objectMap, "script", g.Script) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationCustomAction. +func (g *GalleryApplicationCustomAction) UnmarshalJSON(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 "description": + err = unpopulate(val, "Description", &g.Description) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &g.Parameters) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &g.Script) + 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 GalleryApplicationCustomActionParameter. +func (g GalleryApplicationCustomActionParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "defaultValue", g.DefaultValue) + populate(objectMap, "description", g.Description) + populate(objectMap, "name", g.Name) + populate(objectMap, "required", g.Required) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationCustomActionParameter. +func (g *GalleryApplicationCustomActionParameter) UnmarshalJSON(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 "defaultValue": + err = unpopulate(val, "DefaultValue", &g.DefaultValue) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &g.Description) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "required": + err = unpopulate(val, "Required", &g.Required) + 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 GalleryApplicationList. +func (g GalleryApplicationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", g.NextLink) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationList. +func (g *GalleryApplicationList) UnmarshalJSON(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 GalleryApplicationProperties. +func (g GalleryApplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customActions", g.CustomActions) + populate(objectMap, "description", g.Description) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) + populate(objectMap, "eula", g.Eula) + populate(objectMap, "privacyStatementUri", g.PrivacyStatementURI) + populate(objectMap, "releaseNoteUri", g.ReleaseNoteURI) + populate(objectMap, "supportedOSType", g.SupportedOSType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationProperties. +func (g *GalleryApplicationProperties) UnmarshalJSON(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 "customActions": + err = unpopulate(val, "CustomActions", &g.CustomActions) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &g.Description) + delete(rawMsg, key) + case "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) + delete(rawMsg, key) + case "eula": + err = unpopulate(val, "Eula", &g.Eula) + delete(rawMsg, key) + case "privacyStatementUri": + err = unpopulate(val, "PrivacyStatementURI", &g.PrivacyStatementURI) + delete(rawMsg, key) + case "releaseNoteUri": + err = unpopulate(val, "ReleaseNoteURI", &g.ReleaseNoteURI) + delete(rawMsg, key) + case "supportedOSType": + err = unpopulate(val, "SupportedOSType", &g.SupportedOSType) + 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 GalleryApplicationUpdate. +func (g GalleryApplicationUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationUpdate. +func (g *GalleryApplicationUpdate) UnmarshalJSON(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 "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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryApplicationVersion. +func (g GalleryApplicationVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersion. +func (g *GalleryApplicationVersion) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + 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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryApplicationVersionList. +func (g GalleryApplicationVersionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", g.NextLink) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersionList. +func (g *GalleryApplicationVersionList) UnmarshalJSON(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 GalleryApplicationVersionProperties. +func (g GalleryApplicationVersionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "provisioningState", g.ProvisioningState) + populate(objectMap, "publishingProfile", g.PublishingProfile) + populate(objectMap, "replicationStatus", g.ReplicationStatus) + populate(objectMap, "safetyProfile", g.SafetyProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersionProperties. +func (g *GalleryApplicationVersionProperties) UnmarshalJSON(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 "provisioningState": + err = unpopulate(val, "ProvisioningState", &g.ProvisioningState) + delete(rawMsg, key) + case "publishingProfile": + err = unpopulate(val, "PublishingProfile", &g.PublishingProfile) + delete(rawMsg, key) + case "replicationStatus": + err = unpopulate(val, "ReplicationStatus", &g.ReplicationStatus) + delete(rawMsg, key) + case "safetyProfile": + err = unpopulate(val, "SafetyProfile", &g.SafetyProfile) + 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 GalleryApplicationVersionPublishingProfile. +func (g GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "advancedSettings", g.AdvancedSettings) + populate(objectMap, "customActions", g.CustomActions) + populate(objectMap, "enableHealthCheck", g.EnableHealthCheck) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) + populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest) + populate(objectMap, "manageActions", g.ManageActions) + populateDateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate) + populate(objectMap, "replicaCount", g.ReplicaCount) + populate(objectMap, "replicationMode", g.ReplicationMode) + populate(objectMap, "settings", g.Settings) + populate(objectMap, "source", g.Source) + populate(objectMap, "storageAccountType", g.StorageAccountType) + populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations) + populate(objectMap, "targetRegions", g.TargetRegions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersionPublishingProfile. +func (g *GalleryApplicationVersionPublishingProfile) UnmarshalJSON(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 "advancedSettings": + err = unpopulate(val, "AdvancedSettings", &g.AdvancedSettings) + delete(rawMsg, key) + case "customActions": + err = unpopulate(val, "CustomActions", &g.CustomActions) + delete(rawMsg, key) + case "enableHealthCheck": + err = unpopulate(val, "EnableHealthCheck", &g.EnableHealthCheck) + delete(rawMsg, key) + case "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) + delete(rawMsg, key) + case "excludeFromLatest": + err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest) + delete(rawMsg, key) + case "manageActions": + err = unpopulate(val, "ManageActions", &g.ManageActions) + delete(rawMsg, key) + case "publishedDate": + err = unpopulateDateTimeRFC3339(val, "PublishedDate", &g.PublishedDate) + delete(rawMsg, key) + case "replicaCount": + err = unpopulate(val, "ReplicaCount", &g.ReplicaCount) + delete(rawMsg, key) + case "replicationMode": + err = unpopulate(val, "ReplicationMode", &g.ReplicationMode) + delete(rawMsg, key) + case "settings": + err = unpopulate(val, "Settings", &g.Settings) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &g.Source) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &g.StorageAccountType) + delete(rawMsg, key) + case "targetExtendedLocations": + err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations) + delete(rawMsg, key) + case "targetRegions": + err = unpopulate(val, "TargetRegions", &g.TargetRegions) + 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 GalleryApplicationVersionSafetyProfile. +func (g GalleryApplicationVersionSafetyProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowDeletionOfReplicatedLocations", g.AllowDeletionOfReplicatedLocations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersionSafetyProfile. +func (g *GalleryApplicationVersionSafetyProfile) UnmarshalJSON(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 "allowDeletionOfReplicatedLocations": + err = unpopulate(val, "AllowDeletionOfReplicatedLocations", &g.AllowDeletionOfReplicatedLocations) + 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 GalleryApplicationVersionUpdate. +func (g GalleryApplicationVersionUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersionUpdate. +func (g *GalleryApplicationVersionUpdate) UnmarshalJSON(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 "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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryArtifactPublishingProfileBase. +func (g GalleryArtifactPublishingProfileBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) + populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest) + populateDateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate) + populate(objectMap, "replicaCount", g.ReplicaCount) + populate(objectMap, "replicationMode", g.ReplicationMode) + populate(objectMap, "storageAccountType", g.StorageAccountType) + populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations) + populate(objectMap, "targetRegions", g.TargetRegions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryArtifactPublishingProfileBase. +func (g *GalleryArtifactPublishingProfileBase) UnmarshalJSON(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 "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) + delete(rawMsg, key) + case "excludeFromLatest": + err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest) + delete(rawMsg, key) + case "publishedDate": + err = unpopulateDateTimeRFC3339(val, "PublishedDate", &g.PublishedDate) + delete(rawMsg, key) + case "replicaCount": + err = unpopulate(val, "ReplicaCount", &g.ReplicaCount) + delete(rawMsg, key) + case "replicationMode": + err = unpopulate(val, "ReplicationMode", &g.ReplicationMode) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &g.StorageAccountType) + delete(rawMsg, key) + case "targetExtendedLocations": + err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations) + delete(rawMsg, key) + case "targetRegions": + err = unpopulate(val, "TargetRegions", &g.TargetRegions) + 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 GalleryArtifactSafetyProfileBase. +func (g GalleryArtifactSafetyProfileBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowDeletionOfReplicatedLocations", g.AllowDeletionOfReplicatedLocations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryArtifactSafetyProfileBase. +func (g *GalleryArtifactSafetyProfileBase) UnmarshalJSON(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 "allowDeletionOfReplicatedLocations": + err = unpopulate(val, "AllowDeletionOfReplicatedLocations", &g.AllowDeletionOfReplicatedLocations) + 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 GalleryArtifactSource. +func (g GalleryArtifactSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "managedImage", g.ManagedImage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryArtifactSource. +func (g *GalleryArtifactSource) UnmarshalJSON(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 "managedImage": + err = unpopulate(val, "ManagedImage", &g.ManagedImage) + 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 GalleryArtifactVersionFullSource. +func (g GalleryArtifactVersionFullSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "communityGalleryImageId", g.CommunityGalleryImageID) + populate(objectMap, "id", g.ID) + populate(objectMap, "virtualMachineId", g.VirtualMachineID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryArtifactVersionFullSource. +func (g *GalleryArtifactVersionFullSource) UnmarshalJSON(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 "communityGalleryImageId": + err = unpopulate(val, "CommunityGalleryImageID", &g.CommunityGalleryImageID) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "virtualMachineId": + err = unpopulate(val, "VirtualMachineID", &g.VirtualMachineID) + 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 GalleryArtifactVersionSource. +func (g GalleryArtifactVersionSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryArtifactVersionSource. +func (g *GalleryArtifactVersionSource) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &g.ID) + 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 GalleryDataDiskImage. +func (g GalleryDataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hostCaching", g.HostCaching) + populate(objectMap, "lun", g.Lun) + populate(objectMap, "sizeInGB", g.SizeInGB) + populate(objectMap, "source", g.Source) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryDataDiskImage. +func (g *GalleryDataDiskImage) UnmarshalJSON(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 "hostCaching": + err = unpopulate(val, "HostCaching", &g.HostCaching) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &g.Lun) + delete(rawMsg, key) + case "sizeInGB": + err = unpopulate(val, "SizeInGB", &g.SizeInGB) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &g.Source) + 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 GalleryDiskImage. +func (g GalleryDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hostCaching", g.HostCaching) + populate(objectMap, "sizeInGB", g.SizeInGB) + populate(objectMap, "source", g.Source) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryDiskImage. +func (g *GalleryDiskImage) UnmarshalJSON(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 "hostCaching": + err = unpopulate(val, "HostCaching", &g.HostCaching) + delete(rawMsg, key) + case "sizeInGB": + err = unpopulate(val, "SizeInGB", &g.SizeInGB) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &g.Source) + 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 GalleryDiskImageSource. +func (g GalleryDiskImageSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "storageAccountId", g.StorageAccountID) + populate(objectMap, "uri", g.URI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryDiskImageSource. +func (g *GalleryDiskImageSource) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "storageAccountId": + err = unpopulate(val, "StorageAccountID", &g.StorageAccountID) + delete(rawMsg, key) + case "uri": + err = unpopulate(val, "URI", &g.URI) + 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 GalleryExtendedLocation. +func (g GalleryExtendedLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", g.Name) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryExtendedLocation. +func (g *GalleryExtendedLocation) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &g.Name) + 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 GalleryIdentifier. +func (g GalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "uniqueName", g.UniqueName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryIdentifier. +func (g *GalleryIdentifier) UnmarshalJSON(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 "uniqueName": + err = unpopulate(val, "UniqueName", &g.UniqueName) + 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 GalleryImage. +func (g GalleryImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImage. +func (g *GalleryImage) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + 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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryImageFeature. +func (g GalleryImageFeature) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", g.Name) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageFeature. +func (g *GalleryImageFeature) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &g.Name) + 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 GalleryImageIdentifier. +func (g GalleryImageIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "offer", g.Offer) + populate(objectMap, "publisher", g.Publisher) + populate(objectMap, "sku", g.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageIdentifier. +func (g *GalleryImageIdentifier) UnmarshalJSON(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 "offer": + err = unpopulate(val, "Offer", &g.Offer) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &g.Publisher) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &g.SKU) + 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 GalleryImageList. +func (g GalleryImageList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", g.NextLink) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageList. +func (g *GalleryImageList) UnmarshalJSON(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 GalleryImageProperties. +func (g GalleryImageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "architecture", g.Architecture) + populate(objectMap, "description", g.Description) + populate(objectMap, "disallowed", g.Disallowed) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) + populate(objectMap, "eula", g.Eula) + populate(objectMap, "features", g.Features) + populate(objectMap, "hyperVGeneration", g.HyperVGeneration) + populate(objectMap, "identifier", g.Identifier) + populate(objectMap, "osState", g.OSState) + populate(objectMap, "osType", g.OSType) + populate(objectMap, "privacyStatementUri", g.PrivacyStatementURI) + populate(objectMap, "provisioningState", g.ProvisioningState) + populate(objectMap, "purchasePlan", g.PurchasePlan) + populate(objectMap, "recommended", g.Recommended) + populate(objectMap, "releaseNoteUri", g.ReleaseNoteURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageProperties. +func (g *GalleryImageProperties) UnmarshalJSON(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 "architecture": + err = unpopulate(val, "Architecture", &g.Architecture) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &g.Description) + delete(rawMsg, key) + case "disallowed": + err = unpopulate(val, "Disallowed", &g.Disallowed) + delete(rawMsg, key) + case "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) + delete(rawMsg, key) + case "eula": + err = unpopulate(val, "Eula", &g.Eula) + delete(rawMsg, key) + case "features": + err = unpopulate(val, "Features", &g.Features) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &g.HyperVGeneration) + delete(rawMsg, key) + case "identifier": + err = unpopulate(val, "Identifier", &g.Identifier) + delete(rawMsg, key) + case "osState": + err = unpopulate(val, "OSState", &g.OSState) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &g.OSType) + delete(rawMsg, key) + case "privacyStatementUri": + err = unpopulate(val, "PrivacyStatementURI", &g.PrivacyStatementURI) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &g.ProvisioningState) + delete(rawMsg, key) + case "purchasePlan": + err = unpopulate(val, "PurchasePlan", &g.PurchasePlan) + delete(rawMsg, key) + case "recommended": + err = unpopulate(val, "Recommended", &g.Recommended) + delete(rawMsg, key) + case "releaseNoteUri": + err = unpopulate(val, "ReleaseNoteURI", &g.ReleaseNoteURI) + 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 GalleryImageUpdate. +func (g GalleryImageUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageUpdate. +func (g *GalleryImageUpdate) UnmarshalJSON(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 "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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryImageVersion. +func (g GalleryImageVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersion. +func (g *GalleryImageVersion) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + 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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryImageVersionList. +func (g GalleryImageVersionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", g.NextLink) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionList. +func (g *GalleryImageVersionList) UnmarshalJSON(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 GalleryImageVersionProperties. +func (g GalleryImageVersionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "provisioningState", g.ProvisioningState) + populate(objectMap, "publishingProfile", g.PublishingProfile) + populate(objectMap, "replicationStatus", g.ReplicationStatus) + populate(objectMap, "safetyProfile", g.SafetyProfile) + populate(objectMap, "securityProfile", g.SecurityProfile) + populate(objectMap, "storageProfile", g.StorageProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionProperties. +func (g *GalleryImageVersionProperties) UnmarshalJSON(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 "provisioningState": + err = unpopulate(val, "ProvisioningState", &g.ProvisioningState) + delete(rawMsg, key) + case "publishingProfile": + err = unpopulate(val, "PublishingProfile", &g.PublishingProfile) + delete(rawMsg, key) + case "replicationStatus": + err = unpopulate(val, "ReplicationStatus", &g.ReplicationStatus) + delete(rawMsg, key) + case "safetyProfile": + err = unpopulate(val, "SafetyProfile", &g.SafetyProfile) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &g.SecurityProfile) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &g.StorageProfile) + 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 GalleryImageVersionPublishingProfile. +func (g GalleryImageVersionPublishingProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) + populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest) + populateDateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate) + populate(objectMap, "replicaCount", g.ReplicaCount) + populate(objectMap, "replicationMode", g.ReplicationMode) + populate(objectMap, "storageAccountType", g.StorageAccountType) + populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations) + populate(objectMap, "targetRegions", g.TargetRegions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionPublishingProfile. +func (g *GalleryImageVersionPublishingProfile) UnmarshalJSON(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 "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) + delete(rawMsg, key) + case "excludeFromLatest": + err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest) + delete(rawMsg, key) + case "publishedDate": + err = unpopulateDateTimeRFC3339(val, "PublishedDate", &g.PublishedDate) + delete(rawMsg, key) + case "replicaCount": + err = unpopulate(val, "ReplicaCount", &g.ReplicaCount) + delete(rawMsg, key) + case "replicationMode": + err = unpopulate(val, "ReplicationMode", &g.ReplicationMode) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &g.StorageAccountType) + delete(rawMsg, key) + case "targetExtendedLocations": + err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations) + delete(rawMsg, key) + case "targetRegions": + err = unpopulate(val, "TargetRegions", &g.TargetRegions) + 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 GalleryImageVersionSafetyProfile. +func (g GalleryImageVersionSafetyProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowDeletionOfReplicatedLocations", g.AllowDeletionOfReplicatedLocations) + populate(objectMap, "policyViolations", g.PolicyViolations) + populate(objectMap, "reportedForPolicyViolation", g.ReportedForPolicyViolation) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionSafetyProfile. +func (g *GalleryImageVersionSafetyProfile) UnmarshalJSON(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 "allowDeletionOfReplicatedLocations": + err = unpopulate(val, "AllowDeletionOfReplicatedLocations", &g.AllowDeletionOfReplicatedLocations) + delete(rawMsg, key) + case "policyViolations": + err = unpopulate(val, "PolicyViolations", &g.PolicyViolations) + delete(rawMsg, key) + case "reportedForPolicyViolation": + err = unpopulate(val, "ReportedForPolicyViolation", &g.ReportedForPolicyViolation) + 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 GalleryImageVersionStorageProfile. +func (g GalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDiskImages", g.DataDiskImages) + populate(objectMap, "osDiskImage", g.OSDiskImage) + populate(objectMap, "source", g.Source) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionStorageProfile. +func (g *GalleryImageVersionStorageProfile) UnmarshalJSON(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 "dataDiskImages": + err = unpopulate(val, "DataDiskImages", &g.DataDiskImages) + delete(rawMsg, key) + case "osDiskImage": + err = unpopulate(val, "OSDiskImage", &g.OSDiskImage) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &g.Source) + 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 GalleryImageVersionUefiSettings. +func (g GalleryImageVersionUefiSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalSignatures", g.AdditionalSignatures) + populate(objectMap, "signatureTemplateNames", g.SignatureTemplateNames) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionUefiSettings. +func (g *GalleryImageVersionUefiSettings) UnmarshalJSON(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 "additionalSignatures": + err = unpopulate(val, "AdditionalSignatures", &g.AdditionalSignatures) + delete(rawMsg, key) + case "signatureTemplateNames": + err = unpopulate(val, "SignatureTemplateNames", &g.SignatureTemplateNames) + 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 GalleryImageVersionUpdate. +func (g GalleryImageVersionUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionUpdate. +func (g *GalleryImageVersionUpdate) UnmarshalJSON(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 "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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GalleryList. +func (g GalleryList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", g.NextLink) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryList. +func (g *GalleryList) UnmarshalJSON(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 GalleryOSDiskImage. +func (g GalleryOSDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hostCaching", g.HostCaching) + populate(objectMap, "sizeInGB", g.SizeInGB) + populate(objectMap, "source", g.Source) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryOSDiskImage. +func (g *GalleryOSDiskImage) UnmarshalJSON(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 "hostCaching": + err = unpopulate(val, "HostCaching", &g.HostCaching) + delete(rawMsg, key) + case "sizeInGB": + err = unpopulate(val, "SizeInGB", &g.SizeInGB) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &g.Source) + 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 GalleryProperties. +func (g GalleryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", g.Description) + populate(objectMap, "identifier", g.Identifier) + populate(objectMap, "provisioningState", g.ProvisioningState) + populate(objectMap, "sharingProfile", g.SharingProfile) + populate(objectMap, "sharingStatus", g.SharingStatus) + populate(objectMap, "softDeletePolicy", g.SoftDeletePolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryProperties. +func (g *GalleryProperties) UnmarshalJSON(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 "description": + err = unpopulate(val, "Description", &g.Description) + delete(rawMsg, key) + case "identifier": + err = unpopulate(val, "Identifier", &g.Identifier) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &g.ProvisioningState) + delete(rawMsg, key) + case "sharingProfile": + err = unpopulate(val, "SharingProfile", &g.SharingProfile) + delete(rawMsg, key) + case "sharingStatus": + err = unpopulate(val, "SharingStatus", &g.SharingStatus) + delete(rawMsg, key) + case "softDeletePolicy": + err = unpopulate(val, "SoftDeletePolicy", &g.SoftDeletePolicy) + 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 GalleryTargetExtendedLocation. +func (g GalleryTargetExtendedLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryption", g.Encryption) + populate(objectMap, "extendedLocation", g.ExtendedLocation) + populate(objectMap, "extendedLocationReplicaCount", g.ExtendedLocationReplicaCount) + populate(objectMap, "name", g.Name) + populate(objectMap, "storageAccountType", g.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryTargetExtendedLocation. +func (g *GalleryTargetExtendedLocation) UnmarshalJSON(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 "encryption": + err = unpopulate(val, "Encryption", &g.Encryption) + delete(rawMsg, key) + case "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &g.ExtendedLocation) + delete(rawMsg, key) + case "extendedLocationReplicaCount": + err = unpopulate(val, "ExtendedLocationReplicaCount", &g.ExtendedLocationReplicaCount) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &g.StorageAccountType) + 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 GalleryUpdate. +func (g GalleryUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryUpdate. +func (g *GalleryUpdate) UnmarshalJSON(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 "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 "tags": + err = unpopulate(val, "Tags", &g.Tags) + 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 GrantAccessData. +func (g GrantAccessData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "access", g.Access) + populate(objectMap, "durationInSeconds", g.DurationInSeconds) + populate(objectMap, "fileFormat", g.FileFormat) + populate(objectMap, "getSecureVMGuestStateSAS", g.GetSecureVMGuestStateSAS) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GrantAccessData. +func (g *GrantAccessData) UnmarshalJSON(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 "access": + err = unpopulate(val, "Access", &g.Access) + delete(rawMsg, key) + case "durationInSeconds": + err = unpopulate(val, "DurationInSeconds", &g.DurationInSeconds) + delete(rawMsg, key) + case "fileFormat": + err = unpopulate(val, "FileFormat", &g.FileFormat) + delete(rawMsg, key) + case "getSecureVMGuestStateSAS": + err = unpopulate(val, "GetSecureVMGuestStateSAS", &g.GetSecureVMGuestStateSAS) + 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 HardwareProfile. +func (h HardwareProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "vmSize", h.VMSize) + populate(objectMap, "vmSizeProperties", h.VMSizeProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HardwareProfile. +func (h *HardwareProfile) UnmarshalJSON(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 "vmSize": + err = unpopulate(val, "VMSize", &h.VMSize) + delete(rawMsg, key) + case "vmSizeProperties": + err = unpopulate(val, "VMSizeProperties", &h.VMSizeProperties) + 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 Image. +func (i Image) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", i.ExtendedLocation) + populate(objectMap, "id", i.ID) + populate(objectMap, "location", i.Location) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", i.Properties) + populate(objectMap, "tags", i.Tags) + populate(objectMap, "type", i.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Image. +func (i *Image) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &i.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &i.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &i.Tags) + 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 ImageDataDisk. +func (i ImageDataDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobUri", i.BlobURI) + populate(objectMap, "caching", i.Caching) + populate(objectMap, "diskEncryptionSet", i.DiskEncryptionSet) + populate(objectMap, "diskSizeGB", i.DiskSizeGB) + populate(objectMap, "lun", i.Lun) + populate(objectMap, "managedDisk", i.ManagedDisk) + populate(objectMap, "snapshot", i.Snapshot) + populate(objectMap, "storageAccountType", i.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageDataDisk. +func (i *ImageDataDisk) UnmarshalJSON(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 "blobUri": + err = unpopulate(val, "BlobURI", &i.BlobURI) + delete(rawMsg, key) + case "caching": + err = unpopulate(val, "Caching", &i.Caching) + delete(rawMsg, key) + case "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &i.DiskEncryptionSet) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &i.DiskSizeGB) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &i.Lun) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &i.ManagedDisk) + delete(rawMsg, key) + case "snapshot": + err = unpopulate(val, "Snapshot", &i.Snapshot) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &i.StorageAccountType) + 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 ImageDeprecationStatus. +func (i ImageDeprecationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "alternativeOption", i.AlternativeOption) + populate(objectMap, "imageState", i.ImageState) + populateDateTimeRFC3339(objectMap, "scheduledDeprecationTime", i.ScheduledDeprecationTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageDeprecationStatus. +func (i *ImageDeprecationStatus) UnmarshalJSON(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 "alternativeOption": + err = unpopulate(val, "AlternativeOption", &i.AlternativeOption) + delete(rawMsg, key) + case "imageState": + err = unpopulate(val, "ImageState", &i.ImageState) + delete(rawMsg, key) + case "scheduledDeprecationTime": + err = unpopulateDateTimeRFC3339(val, "ScheduledDeprecationTime", &i.ScheduledDeprecationTime) + 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 ImageDisk. +func (i ImageDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobUri", i.BlobURI) + populate(objectMap, "caching", i.Caching) + populate(objectMap, "diskEncryptionSet", i.DiskEncryptionSet) + populate(objectMap, "diskSizeGB", i.DiskSizeGB) + populate(objectMap, "managedDisk", i.ManagedDisk) + populate(objectMap, "snapshot", i.Snapshot) + populate(objectMap, "storageAccountType", i.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageDisk. +func (i *ImageDisk) UnmarshalJSON(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 "blobUri": + err = unpopulate(val, "BlobURI", &i.BlobURI) + delete(rawMsg, key) + case "caching": + err = unpopulate(val, "Caching", &i.Caching) + delete(rawMsg, key) + case "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &i.DiskEncryptionSet) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &i.DiskSizeGB) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &i.ManagedDisk) + delete(rawMsg, key) + case "snapshot": + err = unpopulate(val, "Snapshot", &i.Snapshot) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &i.StorageAccountType) + 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 ImageDiskReference. +func (i ImageDiskReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "communityGalleryImageId", i.CommunityGalleryImageID) + populate(objectMap, "id", i.ID) + populate(objectMap, "lun", i.Lun) + populate(objectMap, "sharedGalleryImageId", i.SharedGalleryImageID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageDiskReference. +func (i *ImageDiskReference) UnmarshalJSON(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 "communityGalleryImageId": + err = unpopulate(val, "CommunityGalleryImageID", &i.CommunityGalleryImageID) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &i.Lun) + delete(rawMsg, key) + case "sharedGalleryImageId": + err = unpopulate(val, "SharedGalleryImageID", &i.SharedGalleryImageID) + 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 ImageListResult. +func (i ImageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", i.NextLink) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageListResult. +func (i *ImageListResult) UnmarshalJSON(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 ImageOSDisk. +func (i ImageOSDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobUri", i.BlobURI) + populate(objectMap, "caching", i.Caching) + populate(objectMap, "diskEncryptionSet", i.DiskEncryptionSet) + populate(objectMap, "diskSizeGB", i.DiskSizeGB) + populate(objectMap, "managedDisk", i.ManagedDisk) + populate(objectMap, "osState", i.OSState) + populate(objectMap, "osType", i.OSType) + populate(objectMap, "snapshot", i.Snapshot) + populate(objectMap, "storageAccountType", i.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageOSDisk. +func (i *ImageOSDisk) UnmarshalJSON(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 "blobUri": + err = unpopulate(val, "BlobURI", &i.BlobURI) + delete(rawMsg, key) + case "caching": + err = unpopulate(val, "Caching", &i.Caching) + delete(rawMsg, key) + case "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &i.DiskEncryptionSet) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &i.DiskSizeGB) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &i.ManagedDisk) + delete(rawMsg, key) + case "osState": + err = unpopulate(val, "OSState", &i.OSState) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &i.OSType) + delete(rawMsg, key) + case "snapshot": + err = unpopulate(val, "Snapshot", &i.Snapshot) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &i.StorageAccountType) + 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 ImageProperties. +func (i ImageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hyperVGeneration", i.HyperVGeneration) + populate(objectMap, "provisioningState", i.ProvisioningState) + populate(objectMap, "sourceVirtualMachine", i.SourceVirtualMachine) + populate(objectMap, "storageProfile", i.StorageProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageProperties. +func (i *ImageProperties) UnmarshalJSON(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 "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &i.HyperVGeneration) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &i.ProvisioningState) + delete(rawMsg, key) + case "sourceVirtualMachine": + err = unpopulate(val, "SourceVirtualMachine", &i.SourceVirtualMachine) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &i.StorageProfile) + 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 ImagePurchasePlan. +func (i ImagePurchasePlan) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", i.Name) + populate(objectMap, "product", i.Product) + populate(objectMap, "publisher", i.Publisher) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImagePurchasePlan. +func (i *ImagePurchasePlan) UnmarshalJSON(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 "product": + err = unpopulate(val, "Product", &i.Product) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &i.Publisher) + 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 ImageReference. +func (i ImageReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "communityGalleryImageId", i.CommunityGalleryImageID) + populate(objectMap, "exactVersion", i.ExactVersion) + populate(objectMap, "id", i.ID) + populate(objectMap, "offer", i.Offer) + populate(objectMap, "publisher", i.Publisher) + populate(objectMap, "sku", i.SKU) + populate(objectMap, "sharedGalleryImageId", i.SharedGalleryImageID) + populate(objectMap, "version", i.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageReference. +func (i *ImageReference) UnmarshalJSON(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 "communityGalleryImageId": + err = unpopulate(val, "CommunityGalleryImageID", &i.CommunityGalleryImageID) + delete(rawMsg, key) + case "exactVersion": + err = unpopulate(val, "ExactVersion", &i.ExactVersion) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "offer": + err = unpopulate(val, "Offer", &i.Offer) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &i.Publisher) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &i.SKU) + delete(rawMsg, key) + case "sharedGalleryImageId": + err = unpopulate(val, "SharedGalleryImageID", &i.SharedGalleryImageID) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &i.Version) + 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 ImageStorageProfile. +func (i ImageStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDisks", i.DataDisks) + populate(objectMap, "osDisk", i.OSDisk) + populate(objectMap, "zoneResilient", i.ZoneResilient) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageStorageProfile. +func (i *ImageStorageProfile) UnmarshalJSON(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 "dataDisks": + err = unpopulate(val, "DataDisks", &i.DataDisks) + delete(rawMsg, key) + case "osDisk": + err = unpopulate(val, "OSDisk", &i.OSDisk) + delete(rawMsg, key) + case "zoneResilient": + err = unpopulate(val, "ZoneResilient", &i.ZoneResilient) + 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 ImageUpdate. +func (i ImageUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", i.Properties) + populate(objectMap, "tags", i.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageUpdate. +func (i *ImageUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &i.Tags) + 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 ImageVersionSecurityProfile. +func (i ImageVersionSecurityProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "uefiSettings", i.UefiSettings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageVersionSecurityProfile. +func (i *ImageVersionSecurityProfile) UnmarshalJSON(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 "uefiSettings": + err = unpopulate(val, "UefiSettings", &i.UefiSettings) + 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 InnerError. +func (i InnerError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "errordetail", i.Errordetail) + populate(objectMap, "exceptiontype", i.Exceptiontype) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InnerError. +func (i *InnerError) UnmarshalJSON(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 "errordetail": + err = unpopulate(val, "Errordetail", &i.Errordetail) + delete(rawMsg, key) + case "exceptiontype": + err = unpopulate(val, "Exceptiontype", &i.Exceptiontype) + 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 InstanceSKU. +func (i InstanceSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", i.Name) + populate(objectMap, "tier", i.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InstanceSKU. +func (i *InstanceSKU) UnmarshalJSON(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 "tier": + err = unpopulate(val, "Tier", &i.Tier) + 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 InstanceViewStatus. +func (i InstanceViewStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", i.Code) + populate(objectMap, "displayStatus", i.DisplayStatus) + populate(objectMap, "level", i.Level) + populate(objectMap, "message", i.Message) + populateDateTimeRFC3339(objectMap, "time", i.Time) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InstanceViewStatus. +func (i *InstanceViewStatus) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &i.Code) + delete(rawMsg, key) + case "displayStatus": + err = unpopulate(val, "DisplayStatus", &i.DisplayStatus) + delete(rawMsg, key) + case "level": + err = unpopulate(val, "Level", &i.Level) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &i.Message) + delete(rawMsg, key) + case "time": + err = unpopulateDateTimeRFC3339(val, "Time", &i.Time) + 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 InstanceViewStatusesSummary. +func (i InstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "statusesSummary", i.StatusesSummary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InstanceViewStatusesSummary. +func (i *InstanceViewStatusesSummary) UnmarshalJSON(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 "statusesSummary": + err = unpopulate(val, "StatusesSummary", &i.StatusesSummary) + 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 KeyForDiskEncryptionSet. +func (k KeyForDiskEncryptionSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyUrl", k.KeyURL) + populate(objectMap, "sourceVault", k.SourceVault) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyForDiskEncryptionSet. +func (k *KeyForDiskEncryptionSet) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyUrl": + err = unpopulate(val, "KeyURL", &k.KeyURL) + delete(rawMsg, key) + case "sourceVault": + err = unpopulate(val, "SourceVault", &k.SourceVault) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyVaultAndKeyReference. +func (k KeyVaultAndKeyReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyUrl", k.KeyURL) + populate(objectMap, "sourceVault", k.SourceVault) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultAndKeyReference. +func (k *KeyVaultAndKeyReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyUrl": + err = unpopulate(val, "KeyURL", &k.KeyURL) + delete(rawMsg, key) + case "sourceVault": + err = unpopulate(val, "SourceVault", &k.SourceVault) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyVaultAndSecretReference. +func (k KeyVaultAndSecretReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secretUrl", k.SecretURL) + populate(objectMap, "sourceVault", k.SourceVault) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultAndSecretReference. +func (k *KeyVaultAndSecretReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "secretUrl": + err = unpopulate(val, "SecretURL", &k.SecretURL) + delete(rawMsg, key) + case "sourceVault": + err = unpopulate(val, "SourceVault", &k.SourceVault) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyVaultKeyReference. +func (k KeyVaultKeyReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyUrl", k.KeyURL) + populate(objectMap, "sourceVault", k.SourceVault) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultKeyReference. +func (k *KeyVaultKeyReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyUrl": + err = unpopulate(val, "KeyURL", &k.KeyURL) + delete(rawMsg, key) + case "sourceVault": + err = unpopulate(val, "SourceVault", &k.SourceVault) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyVaultSecretReference. +func (k KeyVaultSecretReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secretUrl", k.SecretURL) + populate(objectMap, "sourceVault", k.SourceVault) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultSecretReference. +func (k *KeyVaultSecretReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "secretUrl": + err = unpopulate(val, "SecretURL", &k.SecretURL) + delete(rawMsg, key) + case "sourceVault": + err = unpopulate(val, "SourceVault", &k.SourceVault) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LastPatchInstallationSummary. +func (l LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", l.Error) + populate(objectMap, "excludedPatchCount", l.ExcludedPatchCount) + populate(objectMap, "failedPatchCount", l.FailedPatchCount) + populate(objectMap, "installationActivityId", l.InstallationActivityID) + populate(objectMap, "installedPatchCount", l.InstalledPatchCount) + populateDateTimeRFC3339(objectMap, "lastModifiedTime", l.LastModifiedTime) + populate(objectMap, "maintenanceWindowExceeded", l.MaintenanceWindowExceeded) + populate(objectMap, "notSelectedPatchCount", l.NotSelectedPatchCount) + populate(objectMap, "pendingPatchCount", l.PendingPatchCount) + populateDateTimeRFC3339(objectMap, "startTime", l.StartTime) + populate(objectMap, "status", l.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LastPatchInstallationSummary. +func (l *LastPatchInstallationSummary) UnmarshalJSON(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 "error": + err = unpopulate(val, "Error", &l.Error) + delete(rawMsg, key) + case "excludedPatchCount": + err = unpopulate(val, "ExcludedPatchCount", &l.ExcludedPatchCount) + delete(rawMsg, key) + case "failedPatchCount": + err = unpopulate(val, "FailedPatchCount", &l.FailedPatchCount) + delete(rawMsg, key) + case "installationActivityId": + err = unpopulate(val, "InstallationActivityID", &l.InstallationActivityID) + delete(rawMsg, key) + case "installedPatchCount": + err = unpopulate(val, "InstalledPatchCount", &l.InstalledPatchCount) + delete(rawMsg, key) + case "lastModifiedTime": + err = unpopulateDateTimeRFC3339(val, "LastModifiedTime", &l.LastModifiedTime) + delete(rawMsg, key) + case "maintenanceWindowExceeded": + err = unpopulate(val, "MaintenanceWindowExceeded", &l.MaintenanceWindowExceeded) + delete(rawMsg, key) + case "notSelectedPatchCount": + err = unpopulate(val, "NotSelectedPatchCount", &l.NotSelectedPatchCount) + delete(rawMsg, key) + case "pendingPatchCount": + err = unpopulate(val, "PendingPatchCount", &l.PendingPatchCount) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &l.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &l.Status) + 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 LatestGalleryImageVersion. +func (l LatestGalleryImageVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "latestVersionName", l.LatestVersionName) + populate(objectMap, "location", l.Location) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LatestGalleryImageVersion. +func (l *LatestGalleryImageVersion) UnmarshalJSON(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 "latestVersionName": + err = unpopulate(val, "LatestVersionName", &l.LatestVersionName) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &l.Location) + 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 LinuxConfiguration. +func (l LinuxConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "disablePasswordAuthentication", l.DisablePasswordAuthentication) + populate(objectMap, "enableVMAgentPlatformUpdates", l.EnableVMAgentPlatformUpdates) + populate(objectMap, "patchSettings", l.PatchSettings) + populate(objectMap, "provisionVMAgent", l.ProvisionVMAgent) + populate(objectMap, "ssh", l.SSH) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinuxConfiguration. +func (l *LinuxConfiguration) UnmarshalJSON(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 "disablePasswordAuthentication": + err = unpopulate(val, "DisablePasswordAuthentication", &l.DisablePasswordAuthentication) + delete(rawMsg, key) + case "enableVMAgentPlatformUpdates": + err = unpopulate(val, "EnableVMAgentPlatformUpdates", &l.EnableVMAgentPlatformUpdates) + delete(rawMsg, key) + case "patchSettings": + err = unpopulate(val, "PatchSettings", &l.PatchSettings) + delete(rawMsg, key) + case "provisionVMAgent": + err = unpopulate(val, "ProvisionVMAgent", &l.ProvisionVMAgent) + delete(rawMsg, key) + case "ssh": + err = unpopulate(val, "SSH", &l.SSH) + 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 LinuxParameters. +func (l LinuxParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "classificationsToInclude", l.ClassificationsToInclude) + populate(objectMap, "maintenanceRunId", l.MaintenanceRunID) + populate(objectMap, "packageNameMasksToExclude", l.PackageNameMasksToExclude) + populate(objectMap, "packageNameMasksToInclude", l.PackageNameMasksToInclude) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinuxParameters. +func (l *LinuxParameters) UnmarshalJSON(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 "classificationsToInclude": + err = unpopulate(val, "ClassificationsToInclude", &l.ClassificationsToInclude) + delete(rawMsg, key) + case "maintenanceRunId": + err = unpopulate(val, "MaintenanceRunID", &l.MaintenanceRunID) + delete(rawMsg, key) + case "packageNameMasksToExclude": + err = unpopulate(val, "PackageNameMasksToExclude", &l.PackageNameMasksToExclude) + delete(rawMsg, key) + case "packageNameMasksToInclude": + err = unpopulate(val, "PackageNameMasksToInclude", &l.PackageNameMasksToInclude) + 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 LinuxPatchSettings. +func (l LinuxPatchSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assessmentMode", l.AssessmentMode) + populate(objectMap, "automaticByPlatformSettings", l.AutomaticByPlatformSettings) + populate(objectMap, "patchMode", l.PatchMode) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinuxPatchSettings. +func (l *LinuxPatchSettings) UnmarshalJSON(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 "assessmentMode": + err = unpopulate(val, "AssessmentMode", &l.AssessmentMode) + delete(rawMsg, key) + case "automaticByPlatformSettings": + err = unpopulate(val, "AutomaticByPlatformSettings", &l.AutomaticByPlatformSettings) + delete(rawMsg, key) + case "patchMode": + err = unpopulate(val, "PatchMode", &l.PatchMode) + 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 LinuxVMGuestPatchAutomaticByPlatformSettings. +func (l LinuxVMGuestPatchAutomaticByPlatformSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "bypassPlatformSafetyChecksOnUserSchedule", l.BypassPlatformSafetyChecksOnUserSchedule) + populate(objectMap, "rebootSetting", l.RebootSetting) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinuxVMGuestPatchAutomaticByPlatformSettings. +func (l *LinuxVMGuestPatchAutomaticByPlatformSettings) UnmarshalJSON(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 "bypassPlatformSafetyChecksOnUserSchedule": + err = unpopulate(val, "BypassPlatformSafetyChecksOnUserSchedule", &l.BypassPlatformSafetyChecksOnUserSchedule) + delete(rawMsg, key) + case "rebootSetting": + err = unpopulate(val, "RebootSetting", &l.RebootSetting) + 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 ListUsagesResult. +func (l ListUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ListUsagesResult. +func (l *ListUsagesResult) UnmarshalJSON(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 LoadBalancerConfiguration. +func (l LoadBalancerConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", l.ID) + populate(objectMap, "name", l.Name) + populate(objectMap, "properties", l.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerConfiguration. +func (l *LoadBalancerConfiguration) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &l.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &l.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &l.Properties) + 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 LoadBalancerConfigurationProperties. +func (l LoadBalancerConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "frontendIpConfigurations", l.FrontendIPConfigurations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerConfigurationProperties. +func (l *LoadBalancerConfigurationProperties) UnmarshalJSON(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 "frontendIpConfigurations": + err = unpopulate(val, "FrontendIPConfigurations", &l.FrontendIPConfigurations) + 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 LoadBalancerFrontendIPConfiguration. +func (l LoadBalancerFrontendIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", l.Name) + populate(objectMap, "properties", l.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerFrontendIPConfiguration. +func (l *LoadBalancerFrontendIPConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &l.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &l.Properties) + 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 LoadBalancerFrontendIPConfigurationProperties. +func (l LoadBalancerFrontendIPConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateIPAddress", l.PrivateIPAddress) + populate(objectMap, "publicIPAddress", l.PublicIPAddress) + populate(objectMap, "subnet", l.Subnet) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerFrontendIPConfigurationProperties. +func (l *LoadBalancerFrontendIPConfigurationProperties) UnmarshalJSON(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 "privateIPAddress": + err = unpopulate(val, "PrivateIPAddress", &l.PrivateIPAddress) + delete(rawMsg, key) + case "publicIPAddress": + err = unpopulate(val, "PublicIPAddress", &l.PublicIPAddress) + delete(rawMsg, key) + case "subnet": + err = unpopulate(val, "Subnet", &l.Subnet) + 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 LogAnalyticsInputBase. +func (l LogAnalyticsInputBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobContainerSasUri", l.BlobContainerSasURI) + populateDateTimeRFC3339(objectMap, "fromTime", l.FromTime) + populate(objectMap, "groupByClientApplicationId", l.GroupByClientApplicationID) + populate(objectMap, "groupByOperationName", l.GroupByOperationName) + populate(objectMap, "groupByResourceName", l.GroupByResourceName) + populate(objectMap, "groupByThrottlePolicy", l.GroupByThrottlePolicy) + populate(objectMap, "groupByUserAgent", l.GroupByUserAgent) + populateDateTimeRFC3339(objectMap, "toTime", l.ToTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsInputBase. +func (l *LogAnalyticsInputBase) UnmarshalJSON(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 "blobContainerSasUri": + err = unpopulate(val, "BlobContainerSasURI", &l.BlobContainerSasURI) + delete(rawMsg, key) + case "fromTime": + err = unpopulateDateTimeRFC3339(val, "FromTime", &l.FromTime) + delete(rawMsg, key) + case "groupByClientApplicationId": + err = unpopulate(val, "GroupByClientApplicationID", &l.GroupByClientApplicationID) + delete(rawMsg, key) + case "groupByOperationName": + err = unpopulate(val, "GroupByOperationName", &l.GroupByOperationName) + delete(rawMsg, key) + case "groupByResourceName": + err = unpopulate(val, "GroupByResourceName", &l.GroupByResourceName) + delete(rawMsg, key) + case "groupByThrottlePolicy": + err = unpopulate(val, "GroupByThrottlePolicy", &l.GroupByThrottlePolicy) + delete(rawMsg, key) + case "groupByUserAgent": + err = unpopulate(val, "GroupByUserAgent", &l.GroupByUserAgent) + delete(rawMsg, key) + case "toTime": + err = unpopulateDateTimeRFC3339(val, "ToTime", &l.ToTime) + 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 LogAnalyticsOperationResult. +func (l LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", l.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsOperationResult. +func (l *LogAnalyticsOperationResult) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &l.Properties) + 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 LogAnalyticsOutput. +func (l LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "output", l.Output) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsOutput. +func (l *LogAnalyticsOutput) UnmarshalJSON(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 "output": + err = unpopulate(val, "Output", &l.Output) + 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 MaintenanceRedeployStatus. +func (m MaintenanceRedeployStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isCustomerInitiatedMaintenanceAllowed", m.IsCustomerInitiatedMaintenanceAllowed) + populate(objectMap, "lastOperationMessage", m.LastOperationMessage) + populate(objectMap, "lastOperationResultCode", m.LastOperationResultCode) + populateDateTimeRFC3339(objectMap, "maintenanceWindowEndTime", m.MaintenanceWindowEndTime) + populateDateTimeRFC3339(objectMap, "maintenanceWindowStartTime", m.MaintenanceWindowStartTime) + populateDateTimeRFC3339(objectMap, "preMaintenanceWindowEndTime", m.PreMaintenanceWindowEndTime) + populateDateTimeRFC3339(objectMap, "preMaintenanceWindowStartTime", m.PreMaintenanceWindowStartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceRedeployStatus. +func (m *MaintenanceRedeployStatus) UnmarshalJSON(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 "isCustomerInitiatedMaintenanceAllowed": + err = unpopulate(val, "IsCustomerInitiatedMaintenanceAllowed", &m.IsCustomerInitiatedMaintenanceAllowed) + delete(rawMsg, key) + case "lastOperationMessage": + err = unpopulate(val, "LastOperationMessage", &m.LastOperationMessage) + delete(rawMsg, key) + case "lastOperationResultCode": + err = unpopulate(val, "LastOperationResultCode", &m.LastOperationResultCode) + delete(rawMsg, key) + case "maintenanceWindowEndTime": + err = unpopulateDateTimeRFC3339(val, "MaintenanceWindowEndTime", &m.MaintenanceWindowEndTime) + delete(rawMsg, key) + case "maintenanceWindowStartTime": + err = unpopulateDateTimeRFC3339(val, "MaintenanceWindowStartTime", &m.MaintenanceWindowStartTime) + delete(rawMsg, key) + case "preMaintenanceWindowEndTime": + err = unpopulateDateTimeRFC3339(val, "PreMaintenanceWindowEndTime", &m.PreMaintenanceWindowEndTime) + delete(rawMsg, key) + case "preMaintenanceWindowStartTime": + err = unpopulateDateTimeRFC3339(val, "PreMaintenanceWindowStartTime", &m.PreMaintenanceWindowStartTime) + 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 ManagedArtifact. +func (m ManagedArtifact) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedArtifact. +func (m *ManagedArtifact) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &m.ID) + 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 ManagedDiskParameters. +func (m ManagedDiskParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSet", m.DiskEncryptionSet) + populate(objectMap, "id", m.ID) + populate(objectMap, "securityProfile", m.SecurityProfile) + populate(objectMap, "storageAccountType", m.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedDiskParameters. +func (m *ManagedDiskParameters) UnmarshalJSON(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 "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &m.DiskEncryptionSet) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &m.SecurityProfile) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &m.StorageAccountType) + 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 NetworkInterfaceReference. +func (n NetworkInterfaceReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", n.ID) + populate(objectMap, "properties", n.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkInterfaceReference. +func (n *NetworkInterfaceReference) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &n.ID) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &n.Properties) + 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 NetworkInterfaceReferenceProperties. +func (n NetworkInterfaceReferenceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "deleteOption", n.DeleteOption) + populate(objectMap, "primary", n.Primary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkInterfaceReferenceProperties. +func (n *NetworkInterfaceReferenceProperties) UnmarshalJSON(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 "deleteOption": + err = unpopulate(val, "DeleteOption", &n.DeleteOption) + delete(rawMsg, key) + case "primary": + err = unpopulate(val, "Primary", &n.Primary) + 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 NetworkProfile. +func (n NetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "networkApiVersion", n.NetworkAPIVersion) + populate(objectMap, "networkInterfaceConfigurations", n.NetworkInterfaceConfigurations) + populate(objectMap, "networkInterfaces", n.NetworkInterfaces) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProfile. +func (n *NetworkProfile) UnmarshalJSON(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 "networkApiVersion": + err = unpopulate(val, "NetworkAPIVersion", &n.NetworkAPIVersion) + delete(rawMsg, key) + case "networkInterfaceConfigurations": + err = unpopulate(val, "NetworkInterfaceConfigurations", &n.NetworkInterfaceConfigurations) + delete(rawMsg, key) + case "networkInterfaces": + err = unpopulate(val, "NetworkInterfaces", &n.NetworkInterfaces) + 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 OSDisk. +func (o OSDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", o.Caching) + populate(objectMap, "createOption", o.CreateOption) + populate(objectMap, "deleteOption", o.DeleteOption) + populate(objectMap, "diffDiskSettings", o.DiffDiskSettings) + populate(objectMap, "diskSizeGB", o.DiskSizeGB) + populate(objectMap, "encryptionSettings", o.EncryptionSettings) + populate(objectMap, "image", o.Image) + populate(objectMap, "managedDisk", o.ManagedDisk) + populate(objectMap, "name", o.Name) + populate(objectMap, "osType", o.OSType) + populate(objectMap, "vhd", o.Vhd) + populate(objectMap, "writeAcceleratorEnabled", o.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSDisk. +func (o *OSDisk) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &o.Caching) + delete(rawMsg, key) + case "createOption": + err = unpopulate(val, "CreateOption", &o.CreateOption) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &o.DeleteOption) + delete(rawMsg, key) + case "diffDiskSettings": + err = unpopulate(val, "DiffDiskSettings", &o.DiffDiskSettings) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &o.DiskSizeGB) + delete(rawMsg, key) + case "encryptionSettings": + err = unpopulate(val, "EncryptionSettings", &o.EncryptionSettings) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &o.Image) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &o.ManagedDisk) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &o.OSType) + delete(rawMsg, key) + case "vhd": + err = unpopulate(val, "Vhd", &o.Vhd) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &o.WriteAcceleratorEnabled) + 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 OSDiskImage. +func (o OSDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "operatingSystem", o.OperatingSystem) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSDiskImage. +func (o *OSDiskImage) UnmarshalJSON(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 "operatingSystem": + err = unpopulate(val, "OperatingSystem", &o.OperatingSystem) + 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 OSDiskImageEncryption. +func (o OSDiskImageEncryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSetId", o.DiskEncryptionSetID) + populate(objectMap, "securityProfile", o.SecurityProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSDiskImageEncryption. +func (o *OSDiskImageEncryption) UnmarshalJSON(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 "diskEncryptionSetId": + err = unpopulate(val, "DiskEncryptionSetID", &o.DiskEncryptionSetID) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &o.SecurityProfile) + 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 OSDiskImageSecurityProfile. +func (o OSDiskImageSecurityProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "confidentialVMEncryptionType", o.ConfidentialVMEncryptionType) + populate(objectMap, "secureVMDiskEncryptionSetId", o.SecureVMDiskEncryptionSetID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSDiskImageSecurityProfile. +func (o *OSDiskImageSecurityProfile) UnmarshalJSON(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 "confidentialVMEncryptionType": + err = unpopulate(val, "ConfidentialVMEncryptionType", &o.ConfidentialVMEncryptionType) + delete(rawMsg, key) + case "secureVMDiskEncryptionSetId": + err = unpopulate(val, "SecureVMDiskEncryptionSetID", &o.SecureVMDiskEncryptionSetID) + 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 OSFamily. +func (o OSFamily) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", o.ID) + populate(objectMap, "location", o.Location) + populate(objectMap, "name", o.Name) + populate(objectMap, "properties", o.Properties) + populate(objectMap, "type", o.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSFamily. +func (o *OSFamily) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &o.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &o.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &o.Type) + 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 OSFamilyListResult. +func (o OSFamilyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSFamilyListResult. +func (o *OSFamilyListResult) UnmarshalJSON(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 OSFamilyProperties. +func (o OSFamilyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "label", o.Label) + populate(objectMap, "name", o.Name) + populate(objectMap, "versions", o.Versions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSFamilyProperties. +func (o *OSFamilyProperties) UnmarshalJSON(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 "label": + err = unpopulate(val, "Label", &o.Label) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "versions": + err = unpopulate(val, "Versions", &o.Versions) + 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 OSImageNotificationProfile. +func (o OSImageNotificationProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enable", o.Enable) + populate(objectMap, "notBeforeTimeout", o.NotBeforeTimeout) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSImageNotificationProfile. +func (o *OSImageNotificationProfile) UnmarshalJSON(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 "enable": + err = unpopulate(val, "Enable", &o.Enable) + delete(rawMsg, key) + case "notBeforeTimeout": + err = unpopulate(val, "NotBeforeTimeout", &o.NotBeforeTimeout) + 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 OSProfile. +func (o OSProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "adminPassword", o.AdminPassword) + populate(objectMap, "adminUsername", o.AdminUsername) + populate(objectMap, "allowExtensionOperations", o.AllowExtensionOperations) + populate(objectMap, "computerName", o.ComputerName) + populate(objectMap, "customData", o.CustomData) + populate(objectMap, "linuxConfiguration", o.LinuxConfiguration) + populate(objectMap, "requireGuestProvisionSignal", o.RequireGuestProvisionSignal) + populate(objectMap, "secrets", o.Secrets) + populate(objectMap, "windowsConfiguration", o.WindowsConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSProfile. +func (o *OSProfile) UnmarshalJSON(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 "adminPassword": + err = unpopulate(val, "AdminPassword", &o.AdminPassword) + delete(rawMsg, key) + case "adminUsername": + err = unpopulate(val, "AdminUsername", &o.AdminUsername) + delete(rawMsg, key) + case "allowExtensionOperations": + err = unpopulate(val, "AllowExtensionOperations", &o.AllowExtensionOperations) + delete(rawMsg, key) + case "computerName": + err = unpopulate(val, "ComputerName", &o.ComputerName) + delete(rawMsg, key) + case "customData": + err = unpopulate(val, "CustomData", &o.CustomData) + delete(rawMsg, key) + case "linuxConfiguration": + err = unpopulate(val, "LinuxConfiguration", &o.LinuxConfiguration) + delete(rawMsg, key) + case "requireGuestProvisionSignal": + err = unpopulate(val, "RequireGuestProvisionSignal", &o.RequireGuestProvisionSignal) + delete(rawMsg, key) + case "secrets": + err = unpopulate(val, "Secrets", &o.Secrets) + delete(rawMsg, key) + case "windowsConfiguration": + err = unpopulate(val, "WindowsConfiguration", &o.WindowsConfiguration) + 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 OSProfileProvisioningData. +func (o OSProfileProvisioningData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "adminPassword", o.AdminPassword) + populate(objectMap, "customData", o.CustomData) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSProfileProvisioningData. +func (o *OSProfileProvisioningData) UnmarshalJSON(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 "adminPassword": + err = unpopulate(val, "AdminPassword", &o.AdminPassword) + delete(rawMsg, key) + case "customData": + err = unpopulate(val, "CustomData", &o.CustomData) + 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 OSVersion. +func (o OSVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", o.ID) + populate(objectMap, "location", o.Location) + populate(objectMap, "name", o.Name) + populate(objectMap, "properties", o.Properties) + populate(objectMap, "type", o.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSVersion. +func (o *OSVersion) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &o.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &o.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &o.Type) + 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 OSVersionListResult. +func (o OSVersionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSVersionListResult. +func (o *OSVersionListResult) UnmarshalJSON(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 OSVersionProperties. +func (o OSVersionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "family", o.Family) + populate(objectMap, "familyLabel", o.FamilyLabel) + populate(objectMap, "isActive", o.IsActive) + populate(objectMap, "isDefault", o.IsDefault) + populate(objectMap, "label", o.Label) + populate(objectMap, "version", o.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSVersionProperties. +func (o *OSVersionProperties) UnmarshalJSON(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 "family": + err = unpopulate(val, "Family", &o.Family) + delete(rawMsg, key) + case "familyLabel": + err = unpopulate(val, "FamilyLabel", &o.FamilyLabel) + delete(rawMsg, key) + case "isActive": + err = unpopulate(val, "IsActive", &o.IsActive) + delete(rawMsg, key) + case "isDefault": + err = unpopulate(val, "IsDefault", &o.IsDefault) + delete(rawMsg, key) + case "label": + err = unpopulate(val, "Label", &o.Label) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + 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 OSVersionPropertiesBase. +func (o OSVersionPropertiesBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isActive", o.IsActive) + populate(objectMap, "isDefault", o.IsDefault) + populate(objectMap, "label", o.Label) + populate(objectMap, "version", o.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OSVersionPropertiesBase. +func (o *OSVersionPropertiesBase) UnmarshalJSON(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 "isActive": + err = unpopulate(val, "IsActive", &o.IsActive) + delete(rawMsg, key) + case "isDefault": + err = unpopulate(val, "IsDefault", &o.IsDefault) + delete(rawMsg, key) + case "label": + err = unpopulate(val, "Label", &o.Label) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + 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 OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(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 "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 OperationValue. +func (o OperationValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "display", o.Display) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationValue. +func (o *OperationValue) UnmarshalJSON(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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationValueDisplay. +func (o OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationValueDisplay. +func (o *OperationValueDisplay) UnmarshalJSON(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 OrchestrationServiceStateInput. +func (o OrchestrationServiceStateInput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "action", o.Action) + populate(objectMap, "serviceName", o.ServiceName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OrchestrationServiceStateInput. +func (o *OrchestrationServiceStateInput) UnmarshalJSON(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 "action": + err = unpopulate(val, "Action", &o.Action) + delete(rawMsg, key) + case "serviceName": + err = unpopulate(val, "ServiceName", &o.ServiceName) + 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 OrchestrationServiceSummary. +func (o OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "serviceName", o.ServiceName) + populate(objectMap, "serviceState", o.ServiceState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OrchestrationServiceSummary. +func (o *OrchestrationServiceSummary) UnmarshalJSON(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 "serviceName": + err = unpopulate(val, "ServiceName", &o.ServiceName) + delete(rawMsg, key) + case "serviceState": + err = unpopulate(val, "ServiceState", &o.ServiceState) + 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 PatchInstallationDetail. +func (p PatchInstallationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "classifications", p.Classifications) + populate(objectMap, "installationState", p.InstallationState) + populate(objectMap, "kbId", p.KbID) + populate(objectMap, "name", p.Name) + populate(objectMap, "patchId", p.PatchID) + populate(objectMap, "version", p.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PatchInstallationDetail. +func (p *PatchInstallationDetail) UnmarshalJSON(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 "classifications": + err = unpopulate(val, "Classifications", &p.Classifications) + delete(rawMsg, key) + case "installationState": + err = unpopulate(val, "InstallationState", &p.InstallationState) + delete(rawMsg, key) + case "kbId": + err = unpopulate(val, "KbID", &p.KbID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "patchId": + err = unpopulate(val, "PatchID", &p.PatchID) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &p.Version) + 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 PatchSettings. +func (p PatchSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assessmentMode", p.AssessmentMode) + populate(objectMap, "automaticByPlatformSettings", p.AutomaticByPlatformSettings) + populate(objectMap, "enableHotpatching", p.EnableHotpatching) + populate(objectMap, "patchMode", p.PatchMode) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PatchSettings. +func (p *PatchSettings) UnmarshalJSON(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 "assessmentMode": + err = unpopulate(val, "AssessmentMode", &p.AssessmentMode) + delete(rawMsg, key) + case "automaticByPlatformSettings": + err = unpopulate(val, "AutomaticByPlatformSettings", &p.AutomaticByPlatformSettings) + delete(rawMsg, key) + case "enableHotpatching": + err = unpopulate(val, "EnableHotpatching", &p.EnableHotpatching) + delete(rawMsg, key) + case "patchMode": + err = unpopulate(val, "PatchMode", &p.PatchMode) + 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 PirCommunityGalleryResource. +func (p PirCommunityGalleryResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", p.Identifier) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PirCommunityGalleryResource. +func (p *PirCommunityGalleryResource) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &p.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &p.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + 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 PirResource. +func (p PirResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PirResource. +func (p *PirResource) UnmarshalJSON(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 "location": + err = unpopulate(val, "Location", &p.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + 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 PirSharedGalleryResource. +func (p PirSharedGalleryResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", p.Identifier) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PirSharedGalleryResource. +func (p *PirSharedGalleryResource) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &p.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &p.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + 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 Plan. +func (p Plan) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", p.Name) + populate(objectMap, "product", p.Product) + populate(objectMap, "promotionCode", p.PromotionCode) + populate(objectMap, "publisher", p.Publisher) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Plan. +func (p *Plan) UnmarshalJSON(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 "product": + err = unpopulate(val, "Product", &p.Product) + delete(rawMsg, key) + case "promotionCode": + err = unpopulate(val, "PromotionCode", &p.PromotionCode) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &p.Publisher) + 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 PolicyViolation. +func (p PolicyViolation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "category", p.Category) + populate(objectMap, "details", p.Details) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PolicyViolation. +func (p *PolicyViolation) UnmarshalJSON(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 "category": + err = unpopulate(val, "Category", &p.Category) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &p.Details) + 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 PriorityMixPolicy. +func (p PriorityMixPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseRegularPriorityCount", p.BaseRegularPriorityCount) + populate(objectMap, "regularPriorityPercentageAboveBase", p.RegularPriorityPercentageAboveBase) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PriorityMixPolicy. +func (p *PriorityMixPolicy) UnmarshalJSON(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 "baseRegularPriorityCount": + err = unpopulate(val, "BaseRegularPriorityCount", &p.BaseRegularPriorityCount) + delete(rawMsg, key) + case "regularPriorityPercentageAboveBase": + err = unpopulate(val, "RegularPriorityPercentageAboveBase", &p.RegularPriorityPercentageAboveBase) + 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]any) + 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 PrivateEndpointConnection. +func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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 PrivateEndpointConnection. +func (p *PrivateEndpointConnection) UnmarshalJSON(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 "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 PrivateEndpointConnectionListResult. +func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult. +func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(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 PrivateEndpointConnectionProperties. +func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateEndpoint", p.PrivateEndpoint) + populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) + populate(objectMap, "provisioningState", p.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties. +func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(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) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + 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 PrivateLinkResource. +func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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 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) + } + for key, val := range rawMsg { + var err error + switch 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 PrivateLinkResourceListResult. +func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult. +func (p *PrivateLinkResourceListResult) UnmarshalJSON(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 "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 PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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 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) + } + for key, val := range rawMsg { + var err error + switch key { + case "groupId": + err = unpopulate(val, "GroupID", &p.GroupID) + delete(rawMsg, key) + case "requiredMembers": + err = unpopulate(val, "RequiredMembers", &p.RequiredMembers) + delete(rawMsg, key) + case "requiredZoneNames": + err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames) + 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 PrivateLinkServiceConnectionState. +func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actionsRequired", p.ActionsRequired) + populate(objectMap, "description", p.Description) + populate(objectMap, "status", p.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState. +func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(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 PropertyUpdatesInProgress. +func (p PropertyUpdatesInProgress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "targetTier", p.TargetTier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PropertyUpdatesInProgress. +func (p *PropertyUpdatesInProgress) UnmarshalJSON(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 "targetTier": + err = unpopulate(val, "TargetTier", &p.TargetTier) + 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 ProximityPlacementGroup. +func (p ProximityPlacementGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "tags", p.Tags) + populate(objectMap, "type", p.Type) + populate(objectMap, "zones", p.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProximityPlacementGroup. +func (p *ProximityPlacementGroup) UnmarshalJSON(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 "location": + err = unpopulate(val, "Location", &p.Location) + 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 "tags": + err = unpopulate(val, "Tags", &p.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &p.Zones) + 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 ProximityPlacementGroupListResult. +func (p ProximityPlacementGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProximityPlacementGroupListResult. +func (p *ProximityPlacementGroupListResult) UnmarshalJSON(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 ProximityPlacementGroupProperties. +func (p ProximityPlacementGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availabilitySets", p.AvailabilitySets) + populate(objectMap, "colocationStatus", p.ColocationStatus) + populate(objectMap, "intent", p.Intent) + populate(objectMap, "proximityPlacementGroupType", p.ProximityPlacementGroupType) + populate(objectMap, "virtualMachineScaleSets", p.VirtualMachineScaleSets) + populate(objectMap, "virtualMachines", p.VirtualMachines) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProximityPlacementGroupProperties. +func (p *ProximityPlacementGroupProperties) UnmarshalJSON(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 "availabilitySets": + err = unpopulate(val, "AvailabilitySets", &p.AvailabilitySets) + delete(rawMsg, key) + case "colocationStatus": + err = unpopulate(val, "ColocationStatus", &p.ColocationStatus) + delete(rawMsg, key) + case "intent": + err = unpopulate(val, "Intent", &p.Intent) + delete(rawMsg, key) + case "proximityPlacementGroupType": + err = unpopulate(val, "ProximityPlacementGroupType", &p.ProximityPlacementGroupType) + delete(rawMsg, key) + case "virtualMachineScaleSets": + err = unpopulate(val, "VirtualMachineScaleSets", &p.VirtualMachineScaleSets) + delete(rawMsg, key) + case "virtualMachines": + err = unpopulate(val, "VirtualMachines", &p.VirtualMachines) + 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 ProximityPlacementGroupPropertiesIntent. +func (p ProximityPlacementGroupPropertiesIntent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "vmSizes", p.VMSizes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProximityPlacementGroupPropertiesIntent. +func (p *ProximityPlacementGroupPropertiesIntent) UnmarshalJSON(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 "vmSizes": + err = unpopulate(val, "VMSizes", &p.VMSizes) + 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 ProximityPlacementGroupUpdate. +func (p ProximityPlacementGroupUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", p.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProximityPlacementGroupUpdate. +func (p *ProximityPlacementGroupUpdate) UnmarshalJSON(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 "tags": + err = unpopulate(val, "Tags", &p.Tags) + 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 ProxyAgentSettings. +func (p ProxyAgentSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", p.Enabled) + populate(objectMap, "keyIncarnationId", p.KeyIncarnationID) + populate(objectMap, "mode", p.Mode) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyAgentSettings. +func (p *ProxyAgentSettings) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &p.Enabled) + delete(rawMsg, key) + case "keyIncarnationId": + err = unpopulate(val, "KeyIncarnationID", &p.KeyIncarnationID) + delete(rawMsg, key) + case "mode": + err = unpopulate(val, "Mode", &p.Mode) + 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 ProxyOnlyResource. +func (p ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyOnlyResource. +func (p *ProxyOnlyResource) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &p.Name) + 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 ProxyResource. +func (p ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. +func (p *ProxyResource) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &p.Name) + 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 PublicIPAddressSKU. +func (p PublicIPAddressSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", p.Name) + populate(objectMap, "tier", p.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PublicIPAddressSKU. +func (p *PublicIPAddressSKU) UnmarshalJSON(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 "tier": + err = unpopulate(val, "Tier", &p.Tier) + 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 PurchasePlan. +func (p PurchasePlan) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", p.Name) + populate(objectMap, "product", p.Product) + populate(objectMap, "publisher", p.Publisher) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PurchasePlan. +func (p *PurchasePlan) UnmarshalJSON(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 "product": + err = unpopulate(val, "Product", &p.Product) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &p.Publisher) + 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 RecommendedMachineConfiguration. +func (r RecommendedMachineConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "memory", r.Memory) + populate(objectMap, "vCPUs", r.VCPUs) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecommendedMachineConfiguration. +func (r *RecommendedMachineConfiguration) UnmarshalJSON(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 "memory": + err = unpopulate(val, "Memory", &r.Memory) + delete(rawMsg, key) + case "vCPUs": + err = unpopulate(val, "VCPUs", &r.VCPUs) + 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 RecoveryWalkResponse. +func (r RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextPlatformUpdateDomain", r.NextPlatformUpdateDomain) + populate(objectMap, "walkPerformed", r.WalkPerformed) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryWalkResponse. +func (r *RecoveryWalkResponse) UnmarshalJSON(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 "nextPlatformUpdateDomain": + err = unpopulate(val, "NextPlatformUpdateDomain", &r.NextPlatformUpdateDomain) + delete(rawMsg, key) + case "walkPerformed": + err = unpopulate(val, "WalkPerformed", &r.WalkPerformed) + 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 RegionalReplicationStatus. +func (r RegionalReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "details", r.Details) + populate(objectMap, "progress", r.Progress) + populate(objectMap, "region", r.Region) + populate(objectMap, "state", r.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegionalReplicationStatus. +func (r *RegionalReplicationStatus) UnmarshalJSON(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 "details": + err = unpopulate(val, "Details", &r.Details) + delete(rawMsg, key) + case "progress": + err = unpopulate(val, "Progress", &r.Progress) + delete(rawMsg, key) + case "region": + err = unpopulate(val, "Region", &r.Region) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &r.State) + 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 RegionalSharingStatus. +func (r RegionalSharingStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "details", r.Details) + populate(objectMap, "region", r.Region) + populate(objectMap, "state", r.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegionalSharingStatus. +func (r *RegionalSharingStatus) UnmarshalJSON(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 "details": + err = unpopulate(val, "Details", &r.Details) + delete(rawMsg, key) + case "region": + err = unpopulate(val, "Region", &r.Region) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &r.State) + 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 ReplicationStatus. +func (r ReplicationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aggregatedState", r.AggregatedState) + populate(objectMap, "summary", r.Summary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationStatus. +func (r *ReplicationStatus) UnmarshalJSON(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 "aggregatedState": + err = unpopulate(val, "AggregatedState", &r.AggregatedState) + delete(rawMsg, key) + case "summary": + err = unpopulate(val, "Summary", &r.Summary) + 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 RequestRateByIntervalInput. +func (r RequestRateByIntervalInput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobContainerSasUri", r.BlobContainerSasURI) + populateDateTimeRFC3339(objectMap, "fromTime", r.FromTime) + populate(objectMap, "groupByClientApplicationId", r.GroupByClientApplicationID) + populate(objectMap, "groupByOperationName", r.GroupByOperationName) + populate(objectMap, "groupByResourceName", r.GroupByResourceName) + populate(objectMap, "groupByThrottlePolicy", r.GroupByThrottlePolicy) + populate(objectMap, "groupByUserAgent", r.GroupByUserAgent) + populate(objectMap, "intervalLength", r.IntervalLength) + populateDateTimeRFC3339(objectMap, "toTime", r.ToTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RequestRateByIntervalInput. +func (r *RequestRateByIntervalInput) UnmarshalJSON(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 "blobContainerSasUri": + err = unpopulate(val, "BlobContainerSasURI", &r.BlobContainerSasURI) + delete(rawMsg, key) + case "fromTime": + err = unpopulateDateTimeRFC3339(val, "FromTime", &r.FromTime) + delete(rawMsg, key) + case "groupByClientApplicationId": + err = unpopulate(val, "GroupByClientApplicationID", &r.GroupByClientApplicationID) + delete(rawMsg, key) + case "groupByOperationName": + err = unpopulate(val, "GroupByOperationName", &r.GroupByOperationName) + delete(rawMsg, key) + case "groupByResourceName": + err = unpopulate(val, "GroupByResourceName", &r.GroupByResourceName) + delete(rawMsg, key) + case "groupByThrottlePolicy": + err = unpopulate(val, "GroupByThrottlePolicy", &r.GroupByThrottlePolicy) + delete(rawMsg, key) + case "groupByUserAgent": + err = unpopulate(val, "GroupByUserAgent", &r.GroupByUserAgent) + delete(rawMsg, key) + case "intervalLength": + err = unpopulate(val, "IntervalLength", &r.IntervalLength) + delete(rawMsg, key) + case "toTime": + err = unpopulateDateTimeRFC3339(val, "ToTime", &r.ToTime) + 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 ResiliencyPolicy. +func (r ResiliencyPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "resilientVMCreationPolicy", r.ResilientVMCreationPolicy) + populate(objectMap, "resilientVMDeletionPolicy", r.ResilientVMDeletionPolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResiliencyPolicy. +func (r *ResiliencyPolicy) UnmarshalJSON(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 "resilientVMCreationPolicy": + err = unpopulate(val, "ResilientVMCreationPolicy", &r.ResilientVMCreationPolicy) + delete(rawMsg, key) + case "resilientVMDeletionPolicy": + err = unpopulate(val, "ResilientVMDeletionPolicy", &r.ResilientVMDeletionPolicy) + 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 ResilientVMCreationPolicy. +func (r ResilientVMCreationPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", r.Enabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResilientVMCreationPolicy. +func (r *ResilientVMCreationPolicy) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &r.Enabled) + 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 ResilientVMDeletionPolicy. +func (r ResilientVMDeletionPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", r.Enabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResilientVMDeletionPolicy. +func (r *ResilientVMDeletionPolicy) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &r.Enabled) + 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 Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + 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 "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 ResourceInstanceViewStatus. +func (r ResourceInstanceViewStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", r.Code) + populate(objectMap, "displayStatus", r.DisplayStatus) + populate(objectMap, "level", r.Level) + populate(objectMap, "message", r.Message) + populateDateTimeRFC3339(objectMap, "time", r.Time) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceInstanceViewStatus. +func (r *ResourceInstanceViewStatus) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &r.Code) + delete(rawMsg, key) + case "displayStatus": + err = unpopulate(val, "DisplayStatus", &r.DisplayStatus) + delete(rawMsg, key) + case "level": + err = unpopulate(val, "Level", &r.Level) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &r.Message) + delete(rawMsg, key) + case "time": + err = unpopulateDateTimeRFC3339(val, "Time", &r.Time) + 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 ResourceRange. +func (r ResourceRange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "max", r.Max) + populate(objectMap, "min", r.Min) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceRange. +func (r *ResourceRange) UnmarshalJSON(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 "max": + err = unpopulate(val, "Max", &r.Max) + delete(rawMsg, key) + case "min": + err = unpopulate(val, "Min", &r.Min) + 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 ResourceSKU. +func (r ResourceSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "apiVersions", r.APIVersions) + populate(objectMap, "capabilities", r.Capabilities) + populate(objectMap, "capacity", r.Capacity) + populate(objectMap, "costs", r.Costs) + populate(objectMap, "family", r.Family) + populate(objectMap, "kind", r.Kind) + populate(objectMap, "locationInfo", r.LocationInfo) + populate(objectMap, "locations", r.Locations) + populate(objectMap, "name", r.Name) + populate(objectMap, "resourceType", r.ResourceType) + populate(objectMap, "restrictions", r.Restrictions) + populate(objectMap, "size", r.Size) + populate(objectMap, "tier", r.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKU. +func (r *ResourceSKU) UnmarshalJSON(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 "apiVersions": + err = unpopulate(val, "APIVersions", &r.APIVersions) + delete(rawMsg, key) + case "capabilities": + err = unpopulate(val, "Capabilities", &r.Capabilities) + delete(rawMsg, key) + case "capacity": + err = unpopulate(val, "Capacity", &r.Capacity) + delete(rawMsg, key) + case "costs": + err = unpopulate(val, "Costs", &r.Costs) + delete(rawMsg, key) + case "family": + err = unpopulate(val, "Family", &r.Family) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &r.Kind) + delete(rawMsg, key) + case "locationInfo": + err = unpopulate(val, "LocationInfo", &r.LocationInfo) + delete(rawMsg, key) + case "locations": + err = unpopulate(val, "Locations", &r.Locations) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "resourceType": + err = unpopulate(val, "ResourceType", &r.ResourceType) + delete(rawMsg, key) + case "restrictions": + err = unpopulate(val, "Restrictions", &r.Restrictions) + delete(rawMsg, key) + case "size": + err = unpopulate(val, "Size", &r.Size) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &r.Tier) + 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 ResourceSKUCapabilities. +func (r ResourceSKUCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", r.Name) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCapabilities. +func (r *ResourceSKUCapabilities) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapacity. +func (r ResourceSKUCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "default", r.Default) + populate(objectMap, "maximum", r.Maximum) + populate(objectMap, "minimum", r.Minimum) + populate(objectMap, "scaleType", r.ScaleType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCapacity. +func (r *ResourceSKUCapacity) UnmarshalJSON(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 "default": + err = unpopulate(val, "Default", &r.Default) + delete(rawMsg, key) + case "maximum": + err = unpopulate(val, "Maximum", &r.Maximum) + delete(rawMsg, key) + case "minimum": + err = unpopulate(val, "Minimum", &r.Minimum) + delete(rawMsg, key) + case "scaleType": + err = unpopulate(val, "ScaleType", &r.ScaleType) + 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 ResourceSKUCosts. +func (r ResourceSKUCosts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedUnit", r.ExtendedUnit) + populate(objectMap, "meterID", r.MeterID) + populate(objectMap, "quantity", r.Quantity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCosts. +func (r *ResourceSKUCosts) UnmarshalJSON(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 "extendedUnit": + err = unpopulate(val, "ExtendedUnit", &r.ExtendedUnit) + delete(rawMsg, key) + case "meterID": + err = unpopulate(val, "MeterID", &r.MeterID) + delete(rawMsg, key) + case "quantity": + err = unpopulate(val, "Quantity", &r.Quantity) + 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 ResourceSKULocationInfo. +func (r ResourceSKULocationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocations", r.ExtendedLocations) + populate(objectMap, "location", r.Location) + populate(objectMap, "type", r.Type) + populate(objectMap, "zoneDetails", r.ZoneDetails) + populate(objectMap, "zones", r.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKULocationInfo. +func (r *ResourceSKULocationInfo) UnmarshalJSON(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 "extendedLocations": + err = unpopulate(val, "ExtendedLocations", &r.ExtendedLocations) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &r.Location) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + case "zoneDetails": + err = unpopulate(val, "ZoneDetails", &r.ZoneDetails) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &r.Zones) + 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 ResourceSKURestrictionInfo. +func (r ResourceSKURestrictionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "locations", r.Locations) + populate(objectMap, "zones", r.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKURestrictionInfo. +func (r *ResourceSKURestrictionInfo) UnmarshalJSON(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 "locations": + err = unpopulate(val, "Locations", &r.Locations) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &r.Zones) + 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 ResourceSKURestrictions. +func (r ResourceSKURestrictions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "reasonCode", r.ReasonCode) + populate(objectMap, "restrictionInfo", r.RestrictionInfo) + populate(objectMap, "type", r.Type) + populate(objectMap, "values", r.Values) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKURestrictions. +func (r *ResourceSKURestrictions) UnmarshalJSON(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 "reasonCode": + err = unpopulate(val, "ReasonCode", &r.ReasonCode) + delete(rawMsg, key) + case "restrictionInfo": + err = unpopulate(val, "RestrictionInfo", &r.RestrictionInfo) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + 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 ResourceSKUZoneDetails. +func (r ResourceSKUZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capabilities", r.Capabilities) + populate(objectMap, "name", r.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUZoneDetails. +func (r *ResourceSKUZoneDetails) UnmarshalJSON(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 "capabilities": + err = unpopulate(val, "Capabilities", &r.Capabilities) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + 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 ResourceSKUsResult. +func (r ResourceSKUsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUsResult. +func (r *ResourceSKUsResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceSharingProfile. +func (r ResourceSharingProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "subscriptionIds", r.SubscriptionIDs) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSharingProfile. +func (r *ResourceSharingProfile) UnmarshalJSON(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 "subscriptionIds": + err = unpopulate(val, "SubscriptionIDs", &r.SubscriptionIDs) + 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 ResourceURIList. +func (r ResourceURIList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceURIList. +func (r *ResourceURIList) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceWithOptionalLocation. +func (r ResourceWithOptionalLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceWithOptionalLocation. +func (r *ResourceWithOptionalLocation) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "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 RestorePoint. +func (r RestorePoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePoint. +func (r *RestorePoint) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "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 RestorePointCollection. +func (r RestorePointCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointCollection. +func (r *RestorePointCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &r.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "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 RestorePointCollectionListResult. +func (r RestorePointCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointCollectionListResult. +func (r *RestorePointCollectionListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RestorePointCollectionProperties. +func (r RestorePointCollectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "restorePointCollectionId", r.RestorePointCollectionID) + populate(objectMap, "restorePoints", r.RestorePoints) + populate(objectMap, "source", r.Source) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointCollectionProperties. +func (r *RestorePointCollectionProperties) UnmarshalJSON(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 "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "restorePointCollectionId": + err = unpopulate(val, "RestorePointCollectionID", &r.RestorePointCollectionID) + delete(rawMsg, key) + case "restorePoints": + err = unpopulate(val, "RestorePoints", &r.RestorePoints) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &r.Source) + 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 RestorePointCollectionSourceProperties. +func (r RestorePointCollectionSourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointCollectionSourceProperties. +func (r *RestorePointCollectionSourceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &r.Location) + 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 RestorePointCollectionUpdate. +func (r RestorePointCollectionUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "tags", r.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointCollectionUpdate. +func (r *RestorePointCollectionUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &r.Tags) + 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 RestorePointEncryption. +func (r RestorePointEncryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSet", r.DiskEncryptionSet) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointEncryption. +func (r *RestorePointEncryption) UnmarshalJSON(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 "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &r.DiskEncryptionSet) + 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 RestorePointInstanceView. +func (r RestorePointInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskRestorePoints", r.DiskRestorePoints) + populate(objectMap, "statuses", r.Statuses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointInstanceView. +func (r *RestorePointInstanceView) UnmarshalJSON(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 "diskRestorePoints": + err = unpopulate(val, "DiskRestorePoints", &r.DiskRestorePoints) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &r.Statuses) + 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 RestorePointProperties. +func (r RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "consistencyMode", r.ConsistencyMode) + populate(objectMap, "excludeDisks", r.ExcludeDisks) + populate(objectMap, "instanceView", r.InstanceView) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "sourceMetadata", r.SourceMetadata) + populate(objectMap, "sourceRestorePoint", r.SourceRestorePoint) + populateDateTimeRFC3339(objectMap, "timeCreated", r.TimeCreated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointProperties. +func (r *RestorePointProperties) UnmarshalJSON(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 "consistencyMode": + err = unpopulate(val, "ConsistencyMode", &r.ConsistencyMode) + delete(rawMsg, key) + case "excludeDisks": + err = unpopulate(val, "ExcludeDisks", &r.ExcludeDisks) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &r.InstanceView) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "sourceMetadata": + err = unpopulate(val, "SourceMetadata", &r.SourceMetadata) + delete(rawMsg, key) + case "sourceRestorePoint": + err = unpopulate(val, "SourceRestorePoint", &r.SourceRestorePoint) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &r.TimeCreated) + 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 RestorePointSourceMetadata. +func (r RestorePointSourceMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diagnosticsProfile", r.DiagnosticsProfile) + populate(objectMap, "hardwareProfile", r.HardwareProfile) + populate(objectMap, "hyperVGeneration", r.HyperVGeneration) + populate(objectMap, "licenseType", r.LicenseType) + populate(objectMap, "location", r.Location) + populate(objectMap, "osProfile", r.OSProfile) + populate(objectMap, "securityProfile", r.SecurityProfile) + populate(objectMap, "storageProfile", r.StorageProfile) + populate(objectMap, "userData", r.UserData) + populate(objectMap, "vmId", r.VMID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointSourceMetadata. +func (r *RestorePointSourceMetadata) UnmarshalJSON(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 "diagnosticsProfile": + err = unpopulate(val, "DiagnosticsProfile", &r.DiagnosticsProfile) + delete(rawMsg, key) + case "hardwareProfile": + err = unpopulate(val, "HardwareProfile", &r.HardwareProfile) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &r.HyperVGeneration) + delete(rawMsg, key) + case "licenseType": + err = unpopulate(val, "LicenseType", &r.LicenseType) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &r.Location) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &r.OSProfile) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &r.SecurityProfile) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &r.StorageProfile) + delete(rawMsg, key) + case "userData": + err = unpopulate(val, "UserData", &r.UserData) + delete(rawMsg, key) + case "vmId": + err = unpopulate(val, "VMID", &r.VMID) + 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 RestorePointSourceVMDataDisk. +func (r RestorePointSourceVMDataDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", r.Caching) + populate(objectMap, "diskRestorePoint", r.DiskRestorePoint) + populate(objectMap, "diskSizeGB", r.DiskSizeGB) + populate(objectMap, "lun", r.Lun) + populate(objectMap, "managedDisk", r.ManagedDisk) + populate(objectMap, "name", r.Name) + populate(objectMap, "writeAcceleratorEnabled", r.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointSourceVMDataDisk. +func (r *RestorePointSourceVMDataDisk) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &r.Caching) + delete(rawMsg, key) + case "diskRestorePoint": + err = unpopulate(val, "DiskRestorePoint", &r.DiskRestorePoint) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &r.DiskSizeGB) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &r.Lun) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &r.ManagedDisk) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &r.WriteAcceleratorEnabled) + 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 RestorePointSourceVMOSDisk. +func (r RestorePointSourceVMOSDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", r.Caching) + populate(objectMap, "diskRestorePoint", r.DiskRestorePoint) + populate(objectMap, "diskSizeGB", r.DiskSizeGB) + populate(objectMap, "encryptionSettings", r.EncryptionSettings) + populate(objectMap, "managedDisk", r.ManagedDisk) + populate(objectMap, "name", r.Name) + populate(objectMap, "osType", r.OSType) + populate(objectMap, "writeAcceleratorEnabled", r.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointSourceVMOSDisk. +func (r *RestorePointSourceVMOSDisk) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &r.Caching) + delete(rawMsg, key) + case "diskRestorePoint": + err = unpopulate(val, "DiskRestorePoint", &r.DiskRestorePoint) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &r.DiskSizeGB) + delete(rawMsg, key) + case "encryptionSettings": + err = unpopulate(val, "EncryptionSettings", &r.EncryptionSettings) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &r.ManagedDisk) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &r.OSType) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &r.WriteAcceleratorEnabled) + 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 RestorePointSourceVMStorageProfile. +func (r RestorePointSourceVMStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDisks", r.DataDisks) + populate(objectMap, "diskControllerType", r.DiskControllerType) + populate(objectMap, "osDisk", r.OSDisk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointSourceVMStorageProfile. +func (r *RestorePointSourceVMStorageProfile) UnmarshalJSON(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 "dataDisks": + err = unpopulate(val, "DataDisks", &r.DataDisks) + delete(rawMsg, key) + case "diskControllerType": + err = unpopulate(val, "DiskControllerType", &r.DiskControllerType) + delete(rawMsg, key) + case "osDisk": + err = unpopulate(val, "OSDisk", &r.OSDisk) + 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 RetrieveBootDiagnosticsDataResult. +func (r RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "consoleScreenshotBlobUri", r.ConsoleScreenshotBlobURI) + populate(objectMap, "serialConsoleLogBlobUri", r.SerialConsoleLogBlobURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RetrieveBootDiagnosticsDataResult. +func (r *RetrieveBootDiagnosticsDataResult) UnmarshalJSON(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 "consoleScreenshotBlobUri": + err = unpopulate(val, "ConsoleScreenshotBlobURI", &r.ConsoleScreenshotBlobURI) + delete(rawMsg, key) + case "serialConsoleLogBlobUri": + err = unpopulate(val, "SerialConsoleLogBlobURI", &r.SerialConsoleLogBlobURI) + 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 RoleInstance. +func (r RoleInstance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "sku", r.SKU) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleInstance. +func (r *RoleInstance) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &r.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &r.SKU) + 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 RoleInstanceListResult. +func (r RoleInstanceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleInstanceListResult. +func (r *RoleInstanceListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RoleInstanceNetworkProfile. +func (r RoleInstanceNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "networkInterfaces", r.NetworkInterfaces) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleInstanceNetworkProfile. +func (r *RoleInstanceNetworkProfile) UnmarshalJSON(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 "networkInterfaces": + err = unpopulate(val, "NetworkInterfaces", &r.NetworkInterfaces) + 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 RoleInstanceProperties. +func (r RoleInstanceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "instanceView", r.InstanceView) + populate(objectMap, "networkProfile", r.NetworkProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleInstanceProperties. +func (r *RoleInstanceProperties) UnmarshalJSON(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 "instanceView": + err = unpopulate(val, "InstanceView", &r.InstanceView) + delete(rawMsg, key) + case "networkProfile": + err = unpopulate(val, "NetworkProfile", &r.NetworkProfile) + 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 RoleInstanceView. +func (r RoleInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "platformFaultDomain", r.PlatformFaultDomain) + populate(objectMap, "platformUpdateDomain", r.PlatformUpdateDomain) + populate(objectMap, "privateId", r.PrivateID) + populate(objectMap, "statuses", r.Statuses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleInstanceView. +func (r *RoleInstanceView) UnmarshalJSON(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 "platformFaultDomain": + err = unpopulate(val, "PlatformFaultDomain", &r.PlatformFaultDomain) + delete(rawMsg, key) + case "platformUpdateDomain": + err = unpopulate(val, "PlatformUpdateDomain", &r.PlatformUpdateDomain) + delete(rawMsg, key) + case "privateId": + err = unpopulate(val, "PrivateID", &r.PrivateID) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &r.Statuses) + 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 RoleInstances. +func (r RoleInstances) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "roleInstances", r.RoleInstances) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleInstances. +func (r *RoleInstances) UnmarshalJSON(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 "roleInstances": + err = unpopulate(val, "RoleInstances", &r.RoleInstances) + 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 RollbackStatusInfo. +func (r RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "failedRolledbackInstanceCount", r.FailedRolledbackInstanceCount) + populate(objectMap, "rollbackError", r.RollbackError) + populate(objectMap, "successfullyRolledbackInstanceCount", r.SuccessfullyRolledbackInstanceCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RollbackStatusInfo. +func (r *RollbackStatusInfo) UnmarshalJSON(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 "failedRolledbackInstanceCount": + err = unpopulate(val, "FailedRolledbackInstanceCount", &r.FailedRolledbackInstanceCount) + delete(rawMsg, key) + case "rollbackError": + err = unpopulate(val, "RollbackError", &r.RollbackError) + delete(rawMsg, key) + case "successfullyRolledbackInstanceCount": + err = unpopulate(val, "SuccessfullyRolledbackInstanceCount", &r.SuccessfullyRolledbackInstanceCount) + 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 RollingUpgradePolicy. +func (r RollingUpgradePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enableCrossZoneUpgrade", r.EnableCrossZoneUpgrade) + populate(objectMap, "maxBatchInstancePercent", r.MaxBatchInstancePercent) + populate(objectMap, "maxSurge", r.MaxSurge) + populate(objectMap, "maxUnhealthyInstancePercent", r.MaxUnhealthyInstancePercent) + populate(objectMap, "maxUnhealthyUpgradedInstancePercent", r.MaxUnhealthyUpgradedInstancePercent) + populate(objectMap, "pauseTimeBetweenBatches", r.PauseTimeBetweenBatches) + populate(objectMap, "prioritizeUnhealthyInstances", r.PrioritizeUnhealthyInstances) + populate(objectMap, "rollbackFailedInstancesOnPolicyBreach", r.RollbackFailedInstancesOnPolicyBreach) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RollingUpgradePolicy. +func (r *RollingUpgradePolicy) UnmarshalJSON(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 "enableCrossZoneUpgrade": + err = unpopulate(val, "EnableCrossZoneUpgrade", &r.EnableCrossZoneUpgrade) + delete(rawMsg, key) + case "maxBatchInstancePercent": + err = unpopulate(val, "MaxBatchInstancePercent", &r.MaxBatchInstancePercent) + delete(rawMsg, key) + case "maxSurge": + err = unpopulate(val, "MaxSurge", &r.MaxSurge) + delete(rawMsg, key) + case "maxUnhealthyInstancePercent": + err = unpopulate(val, "MaxUnhealthyInstancePercent", &r.MaxUnhealthyInstancePercent) + delete(rawMsg, key) + case "maxUnhealthyUpgradedInstancePercent": + err = unpopulate(val, "MaxUnhealthyUpgradedInstancePercent", &r.MaxUnhealthyUpgradedInstancePercent) + delete(rawMsg, key) + case "pauseTimeBetweenBatches": + err = unpopulate(val, "PauseTimeBetweenBatches", &r.PauseTimeBetweenBatches) + delete(rawMsg, key) + case "prioritizeUnhealthyInstances": + err = unpopulate(val, "PrioritizeUnhealthyInstances", &r.PrioritizeUnhealthyInstances) + delete(rawMsg, key) + case "rollbackFailedInstancesOnPolicyBreach": + err = unpopulate(val, "RollbackFailedInstancesOnPolicyBreach", &r.RollbackFailedInstancesOnPolicyBreach) + 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 RollingUpgradeProgressInfo. +func (r RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "failedInstanceCount", r.FailedInstanceCount) + populate(objectMap, "inProgressInstanceCount", r.InProgressInstanceCount) + populate(objectMap, "pendingInstanceCount", r.PendingInstanceCount) + populate(objectMap, "successfulInstanceCount", r.SuccessfulInstanceCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RollingUpgradeProgressInfo. +func (r *RollingUpgradeProgressInfo) UnmarshalJSON(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 "failedInstanceCount": + err = unpopulate(val, "FailedInstanceCount", &r.FailedInstanceCount) + delete(rawMsg, key) + case "inProgressInstanceCount": + err = unpopulate(val, "InProgressInstanceCount", &r.InProgressInstanceCount) + delete(rawMsg, key) + case "pendingInstanceCount": + err = unpopulate(val, "PendingInstanceCount", &r.PendingInstanceCount) + delete(rawMsg, key) + case "successfulInstanceCount": + err = unpopulate(val, "SuccessfulInstanceCount", &r.SuccessfulInstanceCount) + 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 RollingUpgradeRunningStatus. +func (r RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", r.Code) + populate(objectMap, "lastAction", r.LastAction) + populateDateTimeRFC3339(objectMap, "lastActionTime", r.LastActionTime) + populateDateTimeRFC3339(objectMap, "startTime", r.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RollingUpgradeRunningStatus. +func (r *RollingUpgradeRunningStatus) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &r.Code) + delete(rawMsg, key) + case "lastAction": + err = unpopulate(val, "LastAction", &r.LastAction) + delete(rawMsg, key) + case "lastActionTime": + err = unpopulateDateTimeRFC3339(val, "LastActionTime", &r.LastActionTime) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &r.StartTime) + 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 RollingUpgradeStatusInfo. +func (r RollingUpgradeStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RollingUpgradeStatusInfo. +func (r *RollingUpgradeStatusInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &r.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "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 RollingUpgradeStatusInfoProperties. +func (r RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", r.Error) + populate(objectMap, "policy", r.Policy) + populate(objectMap, "progress", r.Progress) + populate(objectMap, "runningStatus", r.RunningStatus) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RollingUpgradeStatusInfoProperties. +func (r *RollingUpgradeStatusInfoProperties) UnmarshalJSON(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 "error": + err = unpopulate(val, "Error", &r.Error) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, "Policy", &r.Policy) + delete(rawMsg, key) + case "progress": + err = unpopulate(val, "Progress", &r.Progress) + delete(rawMsg, key) + case "runningStatus": + err = unpopulate(val, "RunningStatus", &r.RunningStatus) + 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 RunCommandDocument. +func (r RunCommandDocument) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", r.Description) + populate(objectMap, "id", r.ID) + populate(objectMap, "label", r.Label) + populate(objectMap, "osType", r.OSType) + populate(objectMap, "parameters", r.Parameters) + populate(objectMap, "$schema", r.Schema) + populate(objectMap, "script", r.Script) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandDocument. +func (r *RunCommandDocument) UnmarshalJSON(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 "description": + err = unpopulate(val, "Description", &r.Description) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "label": + err = unpopulate(val, "Label", &r.Label) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &r.OSType) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &r.Parameters) + delete(rawMsg, key) + case "$schema": + err = unpopulate(val, "Schema", &r.Schema) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &r.Script) + 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 RunCommandDocumentBase. +func (r RunCommandDocumentBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", r.Description) + populate(objectMap, "id", r.ID) + populate(objectMap, "label", r.Label) + populate(objectMap, "osType", r.OSType) + populate(objectMap, "$schema", r.Schema) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandDocumentBase. +func (r *RunCommandDocumentBase) UnmarshalJSON(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 "description": + err = unpopulate(val, "Description", &r.Description) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "label": + err = unpopulate(val, "Label", &r.Label) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &r.OSType) + delete(rawMsg, key) + case "$schema": + err = unpopulate(val, "Schema", &r.Schema) + 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 RunCommandInput. +func (r RunCommandInput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "commandId", r.CommandID) + populate(objectMap, "parameters", r.Parameters) + populate(objectMap, "script", r.Script) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandInput. +func (r *RunCommandInput) UnmarshalJSON(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 "commandId": + err = unpopulate(val, "CommandID", &r.CommandID) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &r.Parameters) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &r.Script) + 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 RunCommandInputParameter. +func (r RunCommandInputParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", r.Name) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandInputParameter. +func (r *RunCommandInputParameter) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RunCommandListResult. +func (r RunCommandListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandListResult. +func (r *RunCommandListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RunCommandManagedIdentity. +func (r RunCommandManagedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", r.ClientID) + populate(objectMap, "objectId", r.ObjectID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandManagedIdentity. +func (r *RunCommandManagedIdentity) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &r.ClientID) + delete(rawMsg, key) + case "objectId": + err = unpopulate(val, "ObjectID", &r.ObjectID) + 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 RunCommandParameterDefinition. +func (r RunCommandParameterDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "defaultValue", r.DefaultValue) + populate(objectMap, "name", r.Name) + populate(objectMap, "required", r.Required) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandParameterDefinition. +func (r *RunCommandParameterDefinition) UnmarshalJSON(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 "defaultValue": + err = unpopulate(val, "DefaultValue", &r.DefaultValue) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "required": + err = unpopulate(val, "Required", &r.Required) + 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 RunCommandResult. +func (r RunCommandResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandResult. +func (r *RunCommandResult) UnmarshalJSON(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 "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SKU. +func (s SKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacity", s.Capacity) + populate(objectMap, "name", s.Name) + populate(objectMap, "tier", s.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SKU. +func (s *SKU) UnmarshalJSON(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 "capacity": + err = unpopulate(val, "Capacity", &s.Capacity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &s.Tier) + 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 SSHConfiguration. +func (s SSHConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "publicKeys", s.PublicKeys) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHConfiguration. +func (s *SSHConfiguration) UnmarshalJSON(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 "publicKeys": + err = unpopulate(val, "PublicKeys", &s.PublicKeys) + 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 SSHGenerateKeyPairInputParameters. +func (s SSHGenerateKeyPairInputParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryptionType", s.EncryptionType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHGenerateKeyPairInputParameters. +func (s *SSHGenerateKeyPairInputParameters) UnmarshalJSON(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 "encryptionType": + err = unpopulate(val, "EncryptionType", &s.EncryptionType) + 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 SSHPublicKey. +func (s SSHPublicKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyData", s.KeyData) + populate(objectMap, "path", s.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKey. +func (s *SSHPublicKey) UnmarshalJSON(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 "keyData": + err = unpopulate(val, "KeyData", &s.KeyData) + delete(rawMsg, 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 SSHPublicKeyGenerateKeyPairResult. +func (s SSHPublicKeyGenerateKeyPairResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "privateKey", s.PrivateKey) + populate(objectMap, "publicKey", s.PublicKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKeyGenerateKeyPairResult. +func (s *SSHPublicKeyGenerateKeyPairResult) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "privateKey": + err = unpopulate(val, "PrivateKey", &s.PrivateKey) + delete(rawMsg, key) + case "publicKey": + err = unpopulate(val, "PublicKey", &s.PublicKey) + 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 SSHPublicKeyResource. +func (s SSHPublicKeyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKeyResource. +func (s *SSHPublicKeyResource) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + 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 "tags": + err = unpopulate(val, "Tags", &s.Tags) + 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 SSHPublicKeyResourceProperties. +func (s SSHPublicKeyResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "publicKey", s.PublicKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKeyResourceProperties. +func (s *SSHPublicKeyResourceProperties) UnmarshalJSON(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 "publicKey": + err = unpopulate(val, "PublicKey", &s.PublicKey) + 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 SSHPublicKeyUpdateResource. +func (s SSHPublicKeyUpdateResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "tags", s.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKeyUpdateResource. +func (s *SSHPublicKeyUpdateResource) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + 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 SSHPublicKeysGroupListResult. +func (s SSHPublicKeysGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKeysGroupListResult. +func (s *SSHPublicKeysGroupListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + 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 ScaleInPolicy. +func (s ScaleInPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "forceDeletion", s.ForceDeletion) + populate(objectMap, "rules", s.Rules) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScaleInPolicy. +func (s *ScaleInPolicy) UnmarshalJSON(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 "forceDeletion": + err = unpopulate(val, "ForceDeletion", &s.ForceDeletion) + delete(rawMsg, key) + case "rules": + err = unpopulate(val, "Rules", &s.Rules) + 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 ScheduledEventsAdditionalPublishingTargets. +func (s ScheduledEventsAdditionalPublishingTargets) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "eventGridAndResourceGraph", s.EventGridAndResourceGraph) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledEventsAdditionalPublishingTargets. +func (s *ScheduledEventsAdditionalPublishingTargets) UnmarshalJSON(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 "eventGridAndResourceGraph": + err = unpopulate(val, "EventGridAndResourceGraph", &s.EventGridAndResourceGraph) + 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 ScheduledEventsPolicy. +func (s ScheduledEventsPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "scheduledEventsAdditionalPublishingTargets", s.ScheduledEventsAdditionalPublishingTargets) + populate(objectMap, "userInitiatedReboot", s.UserInitiatedReboot) + populate(objectMap, "userInitiatedRedeploy", s.UserInitiatedRedeploy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledEventsPolicy. +func (s *ScheduledEventsPolicy) UnmarshalJSON(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 "scheduledEventsAdditionalPublishingTargets": + err = unpopulate(val, "ScheduledEventsAdditionalPublishingTargets", &s.ScheduledEventsAdditionalPublishingTargets) + delete(rawMsg, key) + case "userInitiatedReboot": + err = unpopulate(val, "UserInitiatedReboot", &s.UserInitiatedReboot) + delete(rawMsg, key) + case "userInitiatedRedeploy": + err = unpopulate(val, "UserInitiatedRedeploy", &s.UserInitiatedRedeploy) + 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 ScheduledEventsProfile. +func (s ScheduledEventsProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "osImageNotificationProfile", s.OSImageNotificationProfile) + populate(objectMap, "terminateNotificationProfile", s.TerminateNotificationProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledEventsProfile. +func (s *ScheduledEventsProfile) UnmarshalJSON(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 "osImageNotificationProfile": + err = unpopulate(val, "OSImageNotificationProfile", &s.OSImageNotificationProfile) + delete(rawMsg, key) + case "terminateNotificationProfile": + err = unpopulate(val, "TerminateNotificationProfile", &s.TerminateNotificationProfile) + 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 SecurityPostureReference. +func (s SecurityPostureReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "excludeExtensions", s.ExcludeExtensions) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPostureReference. +func (s *SecurityPostureReference) UnmarshalJSON(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 "excludeExtensions": + err = unpopulate(val, "ExcludeExtensions", &s.ExcludeExtensions) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + 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 SecurityProfile. +func (s SecurityProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryptionAtHost", s.EncryptionAtHost) + populate(objectMap, "encryptionIdentity", s.EncryptionIdentity) + populate(objectMap, "proxyAgentSettings", s.ProxyAgentSettings) + populate(objectMap, "securityType", s.SecurityType) + populate(objectMap, "uefiSettings", s.UefiSettings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecurityProfile. +func (s *SecurityProfile) UnmarshalJSON(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 "encryptionAtHost": + err = unpopulate(val, "EncryptionAtHost", &s.EncryptionAtHost) + delete(rawMsg, key) + case "encryptionIdentity": + err = unpopulate(val, "EncryptionIdentity", &s.EncryptionIdentity) + delete(rawMsg, key) + case "proxyAgentSettings": + err = unpopulate(val, "ProxyAgentSettings", &s.ProxyAgentSettings) + delete(rawMsg, key) + case "securityType": + err = unpopulate(val, "SecurityType", &s.SecurityType) + delete(rawMsg, key) + case "uefiSettings": + err = unpopulate(val, "UefiSettings", &s.UefiSettings) + 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 ServiceArtifactReference. +func (s ServiceArtifactReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceArtifactReference. +func (s *ServiceArtifactReference) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &s.ID) + 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 ShareInfoElement. +func (s ShareInfoElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "vmUri", s.VMURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ShareInfoElement. +func (s *ShareInfoElement) UnmarshalJSON(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 "vmUri": + err = unpopulate(val, "VMURI", &s.VMURI) + 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 SharedGallery. +func (s SharedGallery) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", s.Identifier) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGallery. +func (s *SharedGallery) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &s.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + 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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SharedGalleryDataDiskImage. +func (s SharedGalleryDataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskSizeGB", s.DiskSizeGB) + populate(objectMap, "hostCaching", s.HostCaching) + populate(objectMap, "lun", s.Lun) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryDataDiskImage. +func (s *SharedGalleryDataDiskImage) UnmarshalJSON(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 "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB) + delete(rawMsg, key) + case "hostCaching": + err = unpopulate(val, "HostCaching", &s.HostCaching) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &s.Lun) + 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 SharedGalleryDiskImage. +func (s SharedGalleryDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskSizeGB", s.DiskSizeGB) + populate(objectMap, "hostCaching", s.HostCaching) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryDiskImage. +func (s *SharedGalleryDiskImage) UnmarshalJSON(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 "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB) + delete(rawMsg, key) + case "hostCaching": + err = unpopulate(val, "HostCaching", &s.HostCaching) + 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 SharedGalleryIdentifier. +func (s SharedGalleryIdentifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "uniqueId", s.UniqueID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryIdentifier. +func (s *SharedGalleryIdentifier) UnmarshalJSON(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 "uniqueId": + err = unpopulate(val, "UniqueID", &s.UniqueID) + 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 SharedGalleryImage. +func (s SharedGalleryImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", s.Identifier) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImage. +func (s *SharedGalleryImage) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &s.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + 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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SharedGalleryImageList. +func (s SharedGalleryImageList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageList. +func (s *SharedGalleryImageList) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + 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 SharedGalleryImageProperties. +func (s SharedGalleryImageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "architecture", s.Architecture) + populate(objectMap, "artifactTags", s.ArtifactTags) + populate(objectMap, "disallowed", s.Disallowed) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", s.EndOfLifeDate) + populate(objectMap, "eula", s.Eula) + populate(objectMap, "features", s.Features) + populate(objectMap, "hyperVGeneration", s.HyperVGeneration) + populate(objectMap, "identifier", s.Identifier) + populate(objectMap, "osState", s.OSState) + populate(objectMap, "osType", s.OSType) + populate(objectMap, "privacyStatementUri", s.PrivacyStatementURI) + populate(objectMap, "purchasePlan", s.PurchasePlan) + populate(objectMap, "recommended", s.Recommended) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageProperties. +func (s *SharedGalleryImageProperties) UnmarshalJSON(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 "architecture": + err = unpopulate(val, "Architecture", &s.Architecture) + delete(rawMsg, key) + case "artifactTags": + err = unpopulate(val, "ArtifactTags", &s.ArtifactTags) + delete(rawMsg, key) + case "disallowed": + err = unpopulate(val, "Disallowed", &s.Disallowed) + delete(rawMsg, key) + case "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &s.EndOfLifeDate) + delete(rawMsg, key) + case "eula": + err = unpopulate(val, "Eula", &s.Eula) + delete(rawMsg, key) + case "features": + err = unpopulate(val, "Features", &s.Features) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &s.HyperVGeneration) + delete(rawMsg, key) + case "identifier": + err = unpopulate(val, "Identifier", &s.Identifier) + delete(rawMsg, key) + case "osState": + err = unpopulate(val, "OSState", &s.OSState) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &s.OSType) + delete(rawMsg, key) + case "privacyStatementUri": + err = unpopulate(val, "PrivacyStatementURI", &s.PrivacyStatementURI) + delete(rawMsg, key) + case "purchasePlan": + err = unpopulate(val, "PurchasePlan", &s.PurchasePlan) + delete(rawMsg, key) + case "recommended": + err = unpopulate(val, "Recommended", &s.Recommended) + 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 SharedGalleryImageVersion. +func (s SharedGalleryImageVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identifier", s.Identifier) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageVersion. +func (s *SharedGalleryImageVersion) UnmarshalJSON(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 "identifier": + err = unpopulate(val, "Identifier", &s.Identifier) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + 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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SharedGalleryImageVersionList. +func (s SharedGalleryImageVersionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageVersionList. +func (s *SharedGalleryImageVersionList) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + 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 SharedGalleryImageVersionProperties. +func (s SharedGalleryImageVersionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "artifactTags", s.ArtifactTags) + populateDateTimeRFC3339(objectMap, "endOfLifeDate", s.EndOfLifeDate) + populate(objectMap, "excludeFromLatest", s.ExcludeFromLatest) + populateDateTimeRFC3339(objectMap, "publishedDate", s.PublishedDate) + populate(objectMap, "storageProfile", s.StorageProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageVersionProperties. +func (s *SharedGalleryImageVersionProperties) UnmarshalJSON(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 "artifactTags": + err = unpopulate(val, "ArtifactTags", &s.ArtifactTags) + delete(rawMsg, key) + case "endOfLifeDate": + err = unpopulateDateTimeRFC3339(val, "EndOfLifeDate", &s.EndOfLifeDate) + delete(rawMsg, key) + case "excludeFromLatest": + err = unpopulate(val, "ExcludeFromLatest", &s.ExcludeFromLatest) + delete(rawMsg, key) + case "publishedDate": + err = unpopulateDateTimeRFC3339(val, "PublishedDate", &s.PublishedDate) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &s.StorageProfile) + 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 SharedGalleryImageVersionStorageProfile. +func (s SharedGalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDiskImages", s.DataDiskImages) + populate(objectMap, "osDiskImage", s.OSDiskImage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageVersionStorageProfile. +func (s *SharedGalleryImageVersionStorageProfile) UnmarshalJSON(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 "dataDiskImages": + err = unpopulate(val, "DataDiskImages", &s.DataDiskImages) + delete(rawMsg, key) + case "osDiskImage": + err = unpopulate(val, "OSDiskImage", &s.OSDiskImage) + 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 SharedGalleryList. +func (s SharedGalleryList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryList. +func (s *SharedGalleryList) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + 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 SharedGalleryOSDiskImage. +func (s SharedGalleryOSDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskSizeGB", s.DiskSizeGB) + populate(objectMap, "hostCaching", s.HostCaching) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryOSDiskImage. +func (s *SharedGalleryOSDiskImage) UnmarshalJSON(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 "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB) + delete(rawMsg, key) + case "hostCaching": + err = unpopulate(val, "HostCaching", &s.HostCaching) + 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 SharedGalleryProperties. +func (s SharedGalleryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "artifactTags", s.ArtifactTags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryProperties. +func (s *SharedGalleryProperties) UnmarshalJSON(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 "artifactTags": + err = unpopulate(val, "ArtifactTags", &s.ArtifactTags) + 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 SharingProfile. +func (s SharingProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "communityGalleryInfo", s.CommunityGalleryInfo) + populate(objectMap, "groups", s.Groups) + populate(objectMap, "permissions", s.Permissions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharingProfile. +func (s *SharingProfile) UnmarshalJSON(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 "communityGalleryInfo": + err = unpopulate(val, "CommunityGalleryInfo", &s.CommunityGalleryInfo) + delete(rawMsg, key) + case "groups": + err = unpopulate(val, "Groups", &s.Groups) + delete(rawMsg, key) + case "permissions": + err = unpopulate(val, "Permissions", &s.Permissions) + 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 SharingProfileGroup. +func (s SharingProfileGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ids", s.IDs) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharingProfileGroup. +func (s *SharingProfileGroup) UnmarshalJSON(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 "ids": + err = unpopulate(val, "IDs", &s.IDs) + 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 SharingStatus. +func (s SharingStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aggregatedState", s.AggregatedState) + populate(objectMap, "summary", s.Summary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharingStatus. +func (s *SharingStatus) UnmarshalJSON(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 "aggregatedState": + err = unpopulate(val, "AggregatedState", &s.AggregatedState) + delete(rawMsg, key) + case "summary": + err = unpopulate(val, "Summary", &s.Summary) + 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 SharingUpdate. +func (s SharingUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "groups", s.Groups) + populate(objectMap, "operationType", s.OperationType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharingUpdate. +func (s *SharingUpdate) UnmarshalJSON(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 "groups": + err = unpopulate(val, "Groups", &s.Groups) + delete(rawMsg, key) + case "operationType": + err = unpopulate(val, "OperationType", &s.OperationType) + 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 Snapshot. +func (s Snapshot) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", s.ExtendedLocation) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "managedBy", s.ManagedBy) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Snapshot. +func (s *Snapshot) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &s.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "managedBy": + err = unpopulate(val, "ManagedBy", &s.ManagedBy) + 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 "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + 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 SnapshotList. +func (s SnapshotList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotList. +func (s *SnapshotList) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + 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 SnapshotProperties. +func (s SnapshotProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "completionPercent", s.CompletionPercent) + populate(objectMap, "copyCompletionError", s.CopyCompletionError) + populate(objectMap, "creationData", s.CreationData) + populate(objectMap, "dataAccessAuthMode", s.DataAccessAuthMode) + populate(objectMap, "diskAccessId", s.DiskAccessID) + populate(objectMap, "diskSizeBytes", s.DiskSizeBytes) + populate(objectMap, "diskSizeGB", s.DiskSizeGB) + populate(objectMap, "diskState", s.DiskState) + populate(objectMap, "encryption", s.Encryption) + populate(objectMap, "encryptionSettingsCollection", s.EncryptionSettingsCollection) + populate(objectMap, "hyperVGeneration", s.HyperVGeneration) + populate(objectMap, "incremental", s.Incremental) + populate(objectMap, "incrementalSnapshotFamilyId", s.IncrementalSnapshotFamilyID) + populate(objectMap, "networkAccessPolicy", s.NetworkAccessPolicy) + populate(objectMap, "osType", s.OSType) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess) + populate(objectMap, "purchasePlan", s.PurchasePlan) + populate(objectMap, "securityProfile", s.SecurityProfile) + populate(objectMap, "supportedCapabilities", s.SupportedCapabilities) + populate(objectMap, "supportsHibernation", s.SupportsHibernation) + populateDateTimeRFC3339(objectMap, "timeCreated", s.TimeCreated) + populate(objectMap, "uniqueId", s.UniqueID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotProperties. +func (s *SnapshotProperties) UnmarshalJSON(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 "completionPercent": + err = unpopulate(val, "CompletionPercent", &s.CompletionPercent) + delete(rawMsg, key) + case "copyCompletionError": + err = unpopulate(val, "CopyCompletionError", &s.CopyCompletionError) + delete(rawMsg, key) + case "creationData": + err = unpopulate(val, "CreationData", &s.CreationData) + delete(rawMsg, key) + case "dataAccessAuthMode": + err = unpopulate(val, "DataAccessAuthMode", &s.DataAccessAuthMode) + delete(rawMsg, key) + case "diskAccessId": + err = unpopulate(val, "DiskAccessID", &s.DiskAccessID) + delete(rawMsg, key) + case "diskSizeBytes": + err = unpopulate(val, "DiskSizeBytes", &s.DiskSizeBytes) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB) + delete(rawMsg, key) + case "diskState": + err = unpopulate(val, "DiskState", &s.DiskState) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &s.Encryption) + delete(rawMsg, key) + case "encryptionSettingsCollection": + err = unpopulate(val, "EncryptionSettingsCollection", &s.EncryptionSettingsCollection) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &s.HyperVGeneration) + delete(rawMsg, key) + case "incremental": + err = unpopulate(val, "Incremental", &s.Incremental) + delete(rawMsg, key) + case "incrementalSnapshotFamilyId": + err = unpopulate(val, "IncrementalSnapshotFamilyID", &s.IncrementalSnapshotFamilyID) + delete(rawMsg, key) + case "networkAccessPolicy": + err = unpopulate(val, "NetworkAccessPolicy", &s.NetworkAccessPolicy) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &s.OSType) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &s.PublicNetworkAccess) + delete(rawMsg, key) + case "purchasePlan": + err = unpopulate(val, "PurchasePlan", &s.PurchasePlan) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &s.SecurityProfile) + delete(rawMsg, key) + case "supportedCapabilities": + err = unpopulate(val, "SupportedCapabilities", &s.SupportedCapabilities) + delete(rawMsg, key) + case "supportsHibernation": + err = unpopulate(val, "SupportsHibernation", &s.SupportsHibernation) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &s.TimeCreated) + delete(rawMsg, key) + case "uniqueId": + err = unpopulate(val, "UniqueID", &s.UniqueID) + 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 SnapshotSKU. +func (s SnapshotSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", s.Name) + populate(objectMap, "tier", s.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotSKU. +func (s *SnapshotSKU) UnmarshalJSON(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 "tier": + err = unpopulate(val, "Tier", &s.Tier) + 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 SnapshotUpdate. +func (s SnapshotUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "tags", s.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotUpdate. +func (s *SnapshotUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + 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 SnapshotUpdateProperties. +func (s SnapshotUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataAccessAuthMode", s.DataAccessAuthMode) + populate(objectMap, "diskAccessId", s.DiskAccessID) + populate(objectMap, "diskSizeGB", s.DiskSizeGB) + populate(objectMap, "encryption", s.Encryption) + populate(objectMap, "encryptionSettingsCollection", s.EncryptionSettingsCollection) + populate(objectMap, "networkAccessPolicy", s.NetworkAccessPolicy) + populate(objectMap, "osType", s.OSType) + populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess) + populate(objectMap, "supportedCapabilities", s.SupportedCapabilities) + populate(objectMap, "supportsHibernation", s.SupportsHibernation) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotUpdateProperties. +func (s *SnapshotUpdateProperties) UnmarshalJSON(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 "dataAccessAuthMode": + err = unpopulate(val, "DataAccessAuthMode", &s.DataAccessAuthMode) + delete(rawMsg, key) + case "diskAccessId": + err = unpopulate(val, "DiskAccessID", &s.DiskAccessID) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &s.Encryption) + delete(rawMsg, key) + case "encryptionSettingsCollection": + err = unpopulate(val, "EncryptionSettingsCollection", &s.EncryptionSettingsCollection) + delete(rawMsg, key) + case "networkAccessPolicy": + err = unpopulate(val, "NetworkAccessPolicy", &s.NetworkAccessPolicy) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &s.OSType) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &s.PublicNetworkAccess) + delete(rawMsg, key) + case "supportedCapabilities": + err = unpopulate(val, "SupportedCapabilities", &s.SupportedCapabilities) + delete(rawMsg, key) + case "supportsHibernation": + err = unpopulate(val, "SupportsHibernation", &s.SupportsHibernation) + 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 SoftDeletePolicy. +func (s SoftDeletePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isSoftDeleteEnabled", s.IsSoftDeleteEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SoftDeletePolicy. +func (s *SoftDeletePolicy) UnmarshalJSON(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 "isSoftDeleteEnabled": + err = unpopulate(val, "IsSoftDeleteEnabled", &s.IsSoftDeleteEnabled) + 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 SourceVault. +func (s SourceVault) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceVault. +func (s *SourceVault) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &s.ID) + 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 SpotRestorePolicy. +func (s SpotRestorePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", s.Enabled) + populate(objectMap, "restoreTimeout", s.RestoreTimeout) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SpotRestorePolicy. +func (s *SpotRestorePolicy) UnmarshalJSON(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 "enabled": + err = unpopulate(val, "Enabled", &s.Enabled) + delete(rawMsg, key) + case "restoreTimeout": + err = unpopulate(val, "RestoreTimeout", &s.RestoreTimeout) + 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 StatusCodeCount. +func (s StatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", s.Code) + populate(objectMap, "count", s.Count) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StatusCodeCount. +func (s *StatusCodeCount) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &s.Code) + delete(rawMsg, key) + case "count": + err = unpopulate(val, "Count", &s.Count) + 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 StorageProfile. +func (s StorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDisks", s.DataDisks) + populate(objectMap, "diskControllerType", s.DiskControllerType) + populate(objectMap, "imageReference", s.ImageReference) + populate(objectMap, "osDisk", s.OSDisk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageProfile. +func (s *StorageProfile) UnmarshalJSON(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 "dataDisks": + err = unpopulate(val, "DataDisks", &s.DataDisks) + delete(rawMsg, key) + case "diskControllerType": + err = unpopulate(val, "DiskControllerType", &s.DiskControllerType) + delete(rawMsg, key) + case "imageReference": + err = unpopulate(val, "ImageReference", &s.ImageReference) + delete(rawMsg, key) + case "osDisk": + err = unpopulate(val, "OSDisk", &s.OSDisk) + 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]any) + populate(objectMap, "id", s.ID) + 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 "id": + err = unpopulate(val, "ID", &s.ID) + 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 SubResourceReadOnly. +func (s SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SubResourceReadOnly. +func (s *SubResourceReadOnly) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &s.ID) + 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 SubResourceWithColocationStatus. +func (s SubResourceWithColocationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "colocationStatus", s.ColocationStatus) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SubResourceWithColocationStatus. +func (s *SubResourceWithColocationStatus) UnmarshalJSON(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 "colocationStatus": + err = unpopulate(val, "ColocationStatus", &s.ColocationStatus) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + 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 SupportedCapabilities. +func (s SupportedCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "acceleratedNetwork", s.AcceleratedNetwork) + populate(objectMap, "architecture", s.Architecture) + populate(objectMap, "diskControllerTypes", s.DiskControllerTypes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SupportedCapabilities. +func (s *SupportedCapabilities) UnmarshalJSON(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 "acceleratedNetwork": + err = unpopulate(val, "AcceleratedNetwork", &s.AcceleratedNetwork) + delete(rawMsg, key) + case "architecture": + err = unpopulate(val, "Architecture", &s.Architecture) + delete(rawMsg, key) + case "diskControllerTypes": + err = unpopulate(val, "DiskControllerTypes", &s.DiskControllerTypes) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(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 "createdAt": + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + 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 TargetRegion. +func (t TargetRegion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryption", t.Encryption) + populate(objectMap, "excludeFromLatest", t.ExcludeFromLatest) + populate(objectMap, "name", t.Name) + populate(objectMap, "regionalReplicaCount", t.RegionalReplicaCount) + populate(objectMap, "storageAccountType", t.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TargetRegion. +func (t *TargetRegion) UnmarshalJSON(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 "encryption": + err = unpopulate(val, "Encryption", &t.Encryption) + delete(rawMsg, key) + case "excludeFromLatest": + err = unpopulate(val, "ExcludeFromLatest", &t.ExcludeFromLatest) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "regionalReplicaCount": + err = unpopulate(val, "RegionalReplicaCount", &t.RegionalReplicaCount) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &t.StorageAccountType) + 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 TerminateNotificationProfile. +func (t TerminateNotificationProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enable", t.Enable) + populate(objectMap, "notBeforeTimeout", t.NotBeforeTimeout) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TerminateNotificationProfile. +func (t *TerminateNotificationProfile) UnmarshalJSON(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 "enable": + err = unpopulate(val, "Enable", &t.Enable) + delete(rawMsg, key) + case "notBeforeTimeout": + err = unpopulate(val, "NotBeforeTimeout", &t.NotBeforeTimeout) + 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 ThrottledRequestsInput. +func (t ThrottledRequestsInput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobContainerSasUri", t.BlobContainerSasURI) + populateDateTimeRFC3339(objectMap, "fromTime", t.FromTime) + populate(objectMap, "groupByClientApplicationId", t.GroupByClientApplicationID) + populate(objectMap, "groupByOperationName", t.GroupByOperationName) + populate(objectMap, "groupByResourceName", t.GroupByResourceName) + populate(objectMap, "groupByThrottlePolicy", t.GroupByThrottlePolicy) + populate(objectMap, "groupByUserAgent", t.GroupByUserAgent) + populateDateTimeRFC3339(objectMap, "toTime", t.ToTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ThrottledRequestsInput. +func (t *ThrottledRequestsInput) UnmarshalJSON(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 "blobContainerSasUri": + err = unpopulate(val, "BlobContainerSasURI", &t.BlobContainerSasURI) + delete(rawMsg, key) + case "fromTime": + err = unpopulateDateTimeRFC3339(val, "FromTime", &t.FromTime) + delete(rawMsg, key) + case "groupByClientApplicationId": + err = unpopulate(val, "GroupByClientApplicationID", &t.GroupByClientApplicationID) + delete(rawMsg, key) + case "groupByOperationName": + err = unpopulate(val, "GroupByOperationName", &t.GroupByOperationName) + delete(rawMsg, key) + case "groupByResourceName": + err = unpopulate(val, "GroupByResourceName", &t.GroupByResourceName) + delete(rawMsg, key) + case "groupByThrottlePolicy": + err = unpopulate(val, "GroupByThrottlePolicy", &t.GroupByThrottlePolicy) + delete(rawMsg, key) + case "groupByUserAgent": + err = unpopulate(val, "GroupByUserAgent", &t.GroupByUserAgent) + delete(rawMsg, key) + case "toTime": + err = unpopulateDateTimeRFC3339(val, "ToTime", &t.ToTime) + 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 UefiKey. +func (u UefiKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "type", u.Type) + populate(objectMap, "value", u.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UefiKey. +func (u *UefiKey) UnmarshalJSON(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 "type": + err = unpopulate(val, "Type", &u.Type) + 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 UefiKeySignatures. +func (u UefiKeySignatures) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "db", u.Db) + populate(objectMap, "dbx", u.Dbx) + populate(objectMap, "kek", u.Kek) + populate(objectMap, "pk", u.Pk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UefiKeySignatures. +func (u *UefiKeySignatures) UnmarshalJSON(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 "db": + err = unpopulate(val, "Db", &u.Db) + delete(rawMsg, key) + case "dbx": + err = unpopulate(val, "Dbx", &u.Dbx) + delete(rawMsg, key) + case "kek": + err = unpopulate(val, "Kek", &u.Kek) + delete(rawMsg, key) + case "pk": + err = unpopulate(val, "Pk", &u.Pk) + 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 UefiSettings. +func (u UefiSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secureBootEnabled", u.SecureBootEnabled) + populate(objectMap, "vTpmEnabled", u.VTpmEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UefiSettings. +func (u *UefiSettings) UnmarshalJSON(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 "secureBootEnabled": + err = unpopulate(val, "SecureBootEnabled", &u.SecureBootEnabled) + delete(rawMsg, key) + case "vTpmEnabled": + err = unpopulate(val, "VTpmEnabled", &u.VTpmEnabled) + 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 UpdateDomain. +func (u UpdateDomain) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", u.ID) + populate(objectMap, "name", u.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateDomain. +func (u *UpdateDomain) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &u.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &u.Name) + 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 UpdateDomainListResult. +func (u UpdateDomainListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", u.NextLink) + populate(objectMap, "value", u.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateDomainListResult. +func (u *UpdateDomainListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &u.NextLink) + 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 UpdateResource. +func (u UpdateResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", u.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateResource. +func (u *UpdateResource) UnmarshalJSON(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 "tags": + err = unpopulate(val, "Tags", &u.Tags) + 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 UpdateResourceDefinition. +func (u UpdateResourceDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", u.ID) + populate(objectMap, "name", u.Name) + populate(objectMap, "tags", u.Tags) + populate(objectMap, "type", u.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateResourceDefinition. +func (u *UpdateResourceDefinition) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &u.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &u.Name) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &u.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &u.Type) + 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 UpgradeOperationHistoricalStatusInfo. +func (u UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", u.Location) + populate(objectMap, "properties", u.Properties) + populate(objectMap, "type", u.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpgradeOperationHistoricalStatusInfo. +func (u *UpgradeOperationHistoricalStatusInfo) UnmarshalJSON(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 "location": + err = unpopulate(val, "Location", &u.Location) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &u.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &u.Type) + 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 UpgradeOperationHistoricalStatusInfoProperties. +func (u UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", u.Error) + populate(objectMap, "progress", u.Progress) + populate(objectMap, "rollbackInfo", u.RollbackInfo) + populate(objectMap, "runningStatus", u.RunningStatus) + populate(objectMap, "startedBy", u.StartedBy) + populate(objectMap, "targetImageReference", u.TargetImageReference) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpgradeOperationHistoricalStatusInfoProperties. +func (u *UpgradeOperationHistoricalStatusInfoProperties) UnmarshalJSON(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 "error": + err = unpopulate(val, "Error", &u.Error) + delete(rawMsg, key) + case "progress": + err = unpopulate(val, "Progress", &u.Progress) + delete(rawMsg, key) + case "rollbackInfo": + err = unpopulate(val, "RollbackInfo", &u.RollbackInfo) + delete(rawMsg, key) + case "runningStatus": + err = unpopulate(val, "RunningStatus", &u.RunningStatus) + delete(rawMsg, key) + case "startedBy": + err = unpopulate(val, "StartedBy", &u.StartedBy) + delete(rawMsg, key) + case "targetImageReference": + err = unpopulate(val, "TargetImageReference", &u.TargetImageReference) + 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 UpgradeOperationHistoryStatus. +func (u UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", u.Code) + populateDateTimeRFC3339(objectMap, "endTime", u.EndTime) + populateDateTimeRFC3339(objectMap, "startTime", u.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpgradeOperationHistoryStatus. +func (u *UpgradeOperationHistoryStatus) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &u.Code) + delete(rawMsg, key) + case "endTime": + err = unpopulateDateTimeRFC3339(val, "EndTime", &u.EndTime) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(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 UpgradePolicy. +func (u UpgradePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "automaticOSUpgradePolicy", u.AutomaticOSUpgradePolicy) + populate(objectMap, "mode", u.Mode) + populate(objectMap, "rollingUpgradePolicy", u.RollingUpgradePolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpgradePolicy. +func (u *UpgradePolicy) UnmarshalJSON(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 "automaticOSUpgradePolicy": + err = unpopulate(val, "AutomaticOSUpgradePolicy", &u.AutomaticOSUpgradePolicy) + delete(rawMsg, key) + case "mode": + err = unpopulate(val, "Mode", &u.Mode) + delete(rawMsg, key) + case "rollingUpgradePolicy": + err = unpopulate(val, "RollingUpgradePolicy", &u.RollingUpgradePolicy) + 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 Usage. +func (u Usage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentValue", u.CurrentValue) + populate(objectMap, "limit", u.Limit) + populate(objectMap, "name", u.Name) + objectMap["unit"] = "Count" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Usage. +func (u *Usage) UnmarshalJSON(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 "currentValue": + err = unpopulate(val, "CurrentValue", &u.CurrentValue) + delete(rawMsg, key) + case "limit": + err = unpopulate(val, "Limit", &u.Limit) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &u.Name) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &u.Unit) + 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 UsageName. +func (u UsageName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "localizedValue", u.LocalizedValue) + populate(objectMap, "value", u.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UsageName. +func (u *UsageName) UnmarshalJSON(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 "localizedValue": + err = unpopulate(val, "LocalizedValue", &u.LocalizedValue) + 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 UserArtifactManage. +func (u UserArtifactManage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "install", u.Install) + populate(objectMap, "remove", u.Remove) + populate(objectMap, "update", u.Update) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserArtifactManage. +func (u *UserArtifactManage) UnmarshalJSON(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 "install": + err = unpopulate(val, "Install", &u.Install) + delete(rawMsg, key) + case "remove": + err = unpopulate(val, "Remove", &u.Remove) + delete(rawMsg, key) + case "update": + err = unpopulate(val, "Update", &u.Update) + 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 UserArtifactSettings. +func (u UserArtifactSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configFileName", u.ConfigFileName) + populate(objectMap, "packageFileName", u.PackageFileName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserArtifactSettings. +func (u *UserArtifactSettings) UnmarshalJSON(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 "configFileName": + err = unpopulate(val, "ConfigFileName", &u.ConfigFileName) + delete(rawMsg, key) + case "packageFileName": + err = unpopulate(val, "PackageFileName", &u.PackageFileName) + 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 UserArtifactSource. +func (u UserArtifactSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "defaultConfigurationLink", u.DefaultConfigurationLink) + populate(objectMap, "mediaLink", u.MediaLink) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserArtifactSource. +func (u *UserArtifactSource) UnmarshalJSON(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 "defaultConfigurationLink": + err = unpopulate(val, "DefaultConfigurationLink", &u.DefaultConfigurationLink) + delete(rawMsg, key) + case "mediaLink": + err = unpopulate(val, "MediaLink", &u.MediaLink) + 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 UserAssignedIdentitiesValue. +func (u UserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", u.ClientID) + populate(objectMap, "principalId", u.PrincipalID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentitiesValue. +func (u *UserAssignedIdentitiesValue) UnmarshalJSON(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 "clientId": + err = unpopulate(val, "ClientID", &u.ClientID) + delete(rawMsg, key) + case "principalId": + err = unpopulate(val, "PrincipalID", &u.PrincipalID) + 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 UserInitiatedReboot. +func (u UserInitiatedReboot) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "automaticallyApprove", u.AutomaticallyApprove) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserInitiatedReboot. +func (u *UserInitiatedReboot) UnmarshalJSON(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 "automaticallyApprove": + err = unpopulate(val, "AutomaticallyApprove", &u.AutomaticallyApprove) + 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 UserInitiatedRedeploy. +func (u UserInitiatedRedeploy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "automaticallyApprove", u.AutomaticallyApprove) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserInitiatedRedeploy. +func (u *UserInitiatedRedeploy) UnmarshalJSON(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 "automaticallyApprove": + err = unpopulate(val, "AutomaticallyApprove", &u.AutomaticallyApprove) + 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 VMDiskSecurityProfile. +func (v VMDiskSecurityProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSet", v.DiskEncryptionSet) + populate(objectMap, "securityEncryptionType", v.SecurityEncryptionType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VMDiskSecurityProfile. +func (v *VMDiskSecurityProfile) UnmarshalJSON(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 "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &v.DiskEncryptionSet) + delete(rawMsg, key) + case "securityEncryptionType": + err = unpopulate(val, "SecurityEncryptionType", &v.SecurityEncryptionType) + 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 VMGalleryApplication. +func (v VMGalleryApplication) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configurationReference", v.ConfigurationReference) + populate(objectMap, "enableAutomaticUpgrade", v.EnableAutomaticUpgrade) + populate(objectMap, "order", v.Order) + populate(objectMap, "packageReferenceId", v.PackageReferenceID) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "treatFailureAsDeploymentFailure", v.TreatFailureAsDeploymentFailure) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VMGalleryApplication. +func (v *VMGalleryApplication) UnmarshalJSON(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 "configurationReference": + err = unpopulate(val, "ConfigurationReference", &v.ConfigurationReference) + delete(rawMsg, key) + case "enableAutomaticUpgrade": + err = unpopulate(val, "EnableAutomaticUpgrade", &v.EnableAutomaticUpgrade) + delete(rawMsg, key) + case "order": + err = unpopulate(val, "Order", &v.Order) + delete(rawMsg, key) + case "packageReferenceId": + err = unpopulate(val, "PackageReferenceID", &v.PackageReferenceID) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + delete(rawMsg, key) + case "treatFailureAsDeploymentFailure": + err = unpopulate(val, "TreatFailureAsDeploymentFailure", &v.TreatFailureAsDeploymentFailure) + 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 VMImagesInEdgeZoneListResult. +func (v VMImagesInEdgeZoneListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VMImagesInEdgeZoneListResult. +func (v *VMImagesInEdgeZoneListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VMScaleSetConvertToSinglePlacementGroupInput. +func (v VMScaleSetConvertToSinglePlacementGroupInput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activePlacementGroupId", v.ActivePlacementGroupID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VMScaleSetConvertToSinglePlacementGroupInput. +func (v *VMScaleSetConvertToSinglePlacementGroupInput) UnmarshalJSON(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 "activePlacementGroupId": + err = unpopulate(val, "ActivePlacementGroupID", &v.ActivePlacementGroupID) + 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 VMSizeProperties. +func (v VMSizeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "vCPUsAvailable", v.VCPUsAvailable) + populate(objectMap, "vCPUsPerCore", v.VCPUsPerCore) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VMSizeProperties. +func (v *VMSizeProperties) UnmarshalJSON(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 "vCPUsAvailable": + err = unpopulate(val, "VCPUsAvailable", &v.VCPUsAvailable) + delete(rawMsg, key) + case "vCPUsPerCore": + err = unpopulate(val, "VCPUsPerCore", &v.VCPUsPerCore) + 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 VaultCertificate. +func (v VaultCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "certificateStore", v.CertificateStore) + populate(objectMap, "certificateUrl", v.CertificateURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VaultCertificate. +func (v *VaultCertificate) UnmarshalJSON(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 "certificateStore": + err = unpopulate(val, "CertificateStore", &v.CertificateStore) + delete(rawMsg, key) + case "certificateUrl": + err = unpopulate(val, "CertificateURL", &v.CertificateURL) + 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 VaultSecretGroup. +func (v VaultSecretGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sourceVault", v.SourceVault) + populate(objectMap, "vaultCertificates", v.VaultCertificates) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VaultSecretGroup. +func (v *VaultSecretGroup) UnmarshalJSON(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 "sourceVault": + err = unpopulate(val, "SourceVault", &v.SourceVault) + delete(rawMsg, key) + case "vaultCertificates": + err = unpopulate(val, "VaultCertificates", &v.VaultCertificates) + 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 VirtualHardDisk. +func (v VirtualHardDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "uri", v.URI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualHardDisk. +func (v *VirtualHardDisk) UnmarshalJSON(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 "uri": + err = unpopulate(val, "URI", &v.URI) + 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 VirtualMachine. +func (v VirtualMachine) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", v.Etag) + populate(objectMap, "extendedLocation", v.ExtendedLocation) + populate(objectMap, "id", v.ID) + populate(objectMap, "identity", v.Identity) + populate(objectMap, "location", v.Location) + populate(objectMap, "managedBy", v.ManagedBy) + populate(objectMap, "name", v.Name) + populate(objectMap, "plan", v.Plan) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "resources", v.Resources) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "type", v.Type) + populate(objectMap, "zones", v.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachine. +func (v *VirtualMachine) UnmarshalJSON(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 "etag": + err = unpopulate(val, "Etag", &v.Etag) + delete(rawMsg, key) + case "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &v.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &v.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "managedBy": + err = unpopulate(val, "ManagedBy", &v.ManagedBy) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "plan": + err = unpopulate(val, "Plan", &v.Plan) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "resources": + err = unpopulate(val, "Resources", &v.Resources) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &v.Zones) + 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 VirtualMachineAgentInstanceView. +func (v VirtualMachineAgentInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extensionHandlers", v.ExtensionHandlers) + populate(objectMap, "statuses", v.Statuses) + populate(objectMap, "vmAgentVersion", v.VMAgentVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineAgentInstanceView. +func (v *VirtualMachineAgentInstanceView) UnmarshalJSON(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 "extensionHandlers": + err = unpopulate(val, "ExtensionHandlers", &v.ExtensionHandlers) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &v.Statuses) + delete(rawMsg, key) + case "vmAgentVersion": + err = unpopulate(val, "VMAgentVersion", &v.VMAgentVersion) + 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 VirtualMachineAssessPatchesResult. +func (v VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assessmentActivityId", v.AssessmentActivityID) + populate(objectMap, "availablePatches", v.AvailablePatches) + populate(objectMap, "criticalAndSecurityPatchCount", v.CriticalAndSecurityPatchCount) + populate(objectMap, "error", v.Error) + populate(objectMap, "otherPatchCount", v.OtherPatchCount) + populate(objectMap, "rebootPending", v.RebootPending) + populateDateTimeRFC3339(objectMap, "startDateTime", v.StartDateTime) + populate(objectMap, "status", v.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineAssessPatchesResult. +func (v *VirtualMachineAssessPatchesResult) UnmarshalJSON(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 "assessmentActivityId": + err = unpopulate(val, "AssessmentActivityID", &v.AssessmentActivityID) + delete(rawMsg, key) + case "availablePatches": + err = unpopulate(val, "AvailablePatches", &v.AvailablePatches) + delete(rawMsg, key) + case "criticalAndSecurityPatchCount": + err = unpopulate(val, "CriticalAndSecurityPatchCount", &v.CriticalAndSecurityPatchCount) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &v.Error) + delete(rawMsg, key) + case "otherPatchCount": + err = unpopulate(val, "OtherPatchCount", &v.OtherPatchCount) + delete(rawMsg, key) + case "rebootPending": + err = unpopulate(val, "RebootPending", &v.RebootPending) + delete(rawMsg, key) + case "startDateTime": + err = unpopulateDateTimeRFC3339(val, "StartDateTime", &v.StartDateTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &v.Status) + 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 VirtualMachineCaptureParameters. +func (v VirtualMachineCaptureParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "destinationContainerName", v.DestinationContainerName) + populate(objectMap, "overwriteVhds", v.OverwriteVhds) + populate(objectMap, "vhdPrefix", v.VhdPrefix) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineCaptureParameters. +func (v *VirtualMachineCaptureParameters) UnmarshalJSON(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 "destinationContainerName": + err = unpopulate(val, "DestinationContainerName", &v.DestinationContainerName) + delete(rawMsg, key) + case "overwriteVhds": + err = unpopulate(val, "OverwriteVhds", &v.OverwriteVhds) + delete(rawMsg, key) + case "vhdPrefix": + err = unpopulate(val, "VhdPrefix", &v.VhdPrefix) + 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 VirtualMachineCaptureResult. +func (v VirtualMachineCaptureResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "contentVersion", v.ContentVersion) + populate(objectMap, "id", v.ID) + populateAny(objectMap, "parameters", v.Parameters) + populate(objectMap, "resources", v.Resources) + populate(objectMap, "$schema", v.Schema) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineCaptureResult. +func (v *VirtualMachineCaptureResult) UnmarshalJSON(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 "contentVersion": + err = unpopulate(val, "ContentVersion", &v.ContentVersion) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &v.Parameters) + delete(rawMsg, key) + case "resources": + err = unpopulate(val, "Resources", &v.Resources) + delete(rawMsg, key) + case "$schema": + err = unpopulate(val, "Schema", &v.Schema) + 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 VirtualMachineExtension. +func (v VirtualMachineExtension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtension. +func (v *VirtualMachineExtension) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineExtensionHandlerInstanceView. +func (v VirtualMachineExtensionHandlerInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", v.Status) + populate(objectMap, "type", v.Type) + populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionHandlerInstanceView. +func (v *VirtualMachineExtensionHandlerInstanceView) UnmarshalJSON(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 "status": + err = unpopulate(val, "Status", &v.Status) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "typeHandlerVersion": + err = unpopulate(val, "TypeHandlerVersion", &v.TypeHandlerVersion) + 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 VirtualMachineExtensionImage. +func (v VirtualMachineExtensionImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionImage. +func (v *VirtualMachineExtensionImage) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineExtensionImageProperties. +func (v VirtualMachineExtensionImageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "computeRole", v.ComputeRole) + populate(objectMap, "handlerSchema", v.HandlerSchema) + populate(objectMap, "operatingSystem", v.OperatingSystem) + populate(objectMap, "supportsMultipleExtensions", v.SupportsMultipleExtensions) + populate(objectMap, "vmScaleSetEnabled", v.VMScaleSetEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionImageProperties. +func (v *VirtualMachineExtensionImageProperties) UnmarshalJSON(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 "computeRole": + err = unpopulate(val, "ComputeRole", &v.ComputeRole) + delete(rawMsg, key) + case "handlerSchema": + err = unpopulate(val, "HandlerSchema", &v.HandlerSchema) + delete(rawMsg, key) + case "operatingSystem": + err = unpopulate(val, "OperatingSystem", &v.OperatingSystem) + delete(rawMsg, key) + case "supportsMultipleExtensions": + err = unpopulate(val, "SupportsMultipleExtensions", &v.SupportsMultipleExtensions) + delete(rawMsg, key) + case "vmScaleSetEnabled": + err = unpopulate(val, "VMScaleSetEnabled", &v.VMScaleSetEnabled) + 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 VirtualMachineExtensionInstanceView. +func (v VirtualMachineExtensionInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "statuses", v.Statuses) + populate(objectMap, "substatuses", v.Substatuses) + populate(objectMap, "type", v.Type) + populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionInstanceView. +func (v *VirtualMachineExtensionInstanceView) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &v.Statuses) + delete(rawMsg, key) + case "substatuses": + err = unpopulate(val, "Substatuses", &v.Substatuses) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "typeHandlerVersion": + err = unpopulate(val, "TypeHandlerVersion", &v.TypeHandlerVersion) + 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 VirtualMachineExtensionProperties. +func (v VirtualMachineExtensionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoUpgradeMinorVersion", v.AutoUpgradeMinorVersion) + populate(objectMap, "enableAutomaticUpgrade", v.EnableAutomaticUpgrade) + populate(objectMap, "forceUpdateTag", v.ForceUpdateTag) + populate(objectMap, "instanceView", v.InstanceView) + populateAny(objectMap, "protectedSettings", v.ProtectedSettings) + populate(objectMap, "protectedSettingsFromKeyVault", v.ProtectedSettingsFromKeyVault) + populate(objectMap, "provisionAfterExtensions", v.ProvisionAfterExtensions) + populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "publisher", v.Publisher) + populateAny(objectMap, "settings", v.Settings) + populate(objectMap, "suppressFailures", v.SuppressFailures) + populate(objectMap, "type", v.Type) + populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionProperties. +func (v *VirtualMachineExtensionProperties) UnmarshalJSON(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 "autoUpgradeMinorVersion": + err = unpopulate(val, "AutoUpgradeMinorVersion", &v.AutoUpgradeMinorVersion) + delete(rawMsg, key) + case "enableAutomaticUpgrade": + err = unpopulate(val, "EnableAutomaticUpgrade", &v.EnableAutomaticUpgrade) + delete(rawMsg, key) + case "forceUpdateTag": + err = unpopulate(val, "ForceUpdateTag", &v.ForceUpdateTag) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &v.InstanceView) + delete(rawMsg, key) + case "protectedSettings": + err = unpopulate(val, "ProtectedSettings", &v.ProtectedSettings) + delete(rawMsg, key) + case "protectedSettingsFromKeyVault": + err = unpopulate(val, "ProtectedSettingsFromKeyVault", &v.ProtectedSettingsFromKeyVault) + delete(rawMsg, key) + case "provisionAfterExtensions": + err = unpopulate(val, "ProvisionAfterExtensions", &v.ProvisionAfterExtensions) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &v.Publisher) + delete(rawMsg, key) + case "settings": + err = unpopulate(val, "Settings", &v.Settings) + delete(rawMsg, key) + case "suppressFailures": + err = unpopulate(val, "SuppressFailures", &v.SuppressFailures) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "typeHandlerVersion": + err = unpopulate(val, "TypeHandlerVersion", &v.TypeHandlerVersion) + 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 VirtualMachineExtensionUpdate. +func (v VirtualMachineExtensionUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionUpdate. +func (v *VirtualMachineExtensionUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineExtensionUpdateProperties. +func (v VirtualMachineExtensionUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoUpgradeMinorVersion", v.AutoUpgradeMinorVersion) + populate(objectMap, "enableAutomaticUpgrade", v.EnableAutomaticUpgrade) + populate(objectMap, "forceUpdateTag", v.ForceUpdateTag) + populateAny(objectMap, "protectedSettings", v.ProtectedSettings) + populate(objectMap, "protectedSettingsFromKeyVault", v.ProtectedSettingsFromKeyVault) + populate(objectMap, "publisher", v.Publisher) + populateAny(objectMap, "settings", v.Settings) + populate(objectMap, "suppressFailures", v.SuppressFailures) + populate(objectMap, "type", v.Type) + populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionUpdateProperties. +func (v *VirtualMachineExtensionUpdateProperties) UnmarshalJSON(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 "autoUpgradeMinorVersion": + err = unpopulate(val, "AutoUpgradeMinorVersion", &v.AutoUpgradeMinorVersion) + delete(rawMsg, key) + case "enableAutomaticUpgrade": + err = unpopulate(val, "EnableAutomaticUpgrade", &v.EnableAutomaticUpgrade) + delete(rawMsg, key) + case "forceUpdateTag": + err = unpopulate(val, "ForceUpdateTag", &v.ForceUpdateTag) + delete(rawMsg, key) + case "protectedSettings": + err = unpopulate(val, "ProtectedSettings", &v.ProtectedSettings) + delete(rawMsg, key) + case "protectedSettingsFromKeyVault": + err = unpopulate(val, "ProtectedSettingsFromKeyVault", &v.ProtectedSettingsFromKeyVault) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &v.Publisher) + delete(rawMsg, key) + case "settings": + err = unpopulate(val, "Settings", &v.Settings) + delete(rawMsg, key) + case "suppressFailures": + err = unpopulate(val, "SuppressFailures", &v.SuppressFailures) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "typeHandlerVersion": + err = unpopulate(val, "TypeHandlerVersion", &v.TypeHandlerVersion) + 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 VirtualMachineExtensionsListResult. +func (v VirtualMachineExtensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineExtensionsListResult. +func (v *VirtualMachineExtensionsListResult) UnmarshalJSON(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 "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineHealthStatus. +func (v VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", v.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineHealthStatus. +func (v *VirtualMachineHealthStatus) UnmarshalJSON(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 "status": + err = unpopulate(val, "Status", &v.Status) + 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 VirtualMachineIPTag. +func (v VirtualMachineIPTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ipTagType", v.IPTagType) + populate(objectMap, "tag", v.Tag) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineIPTag. +func (v *VirtualMachineIPTag) UnmarshalJSON(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 "ipTagType": + err = unpopulate(val, "IPTagType", &v.IPTagType) + delete(rawMsg, key) + case "tag": + err = unpopulate(val, "Tag", &v.Tag) + 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 VirtualMachineIdentity. +func (v VirtualMachineIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", v.PrincipalID) + populate(objectMap, "tenantId", v.TenantID) + populate(objectMap, "type", v.Type) + populate(objectMap, "userAssignedIdentities", v.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineIdentity. +func (v *VirtualMachineIdentity) UnmarshalJSON(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 "principalId": + err = unpopulate(val, "PrincipalID", &v.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &v.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &v.UserAssignedIdentities) + 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 VirtualMachineImage. +func (v VirtualMachineImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", v.ExtendedLocation) + populate(objectMap, "id", v.ID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineImage. +func (v *VirtualMachineImage) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &v.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineImageFeature. +func (v VirtualMachineImageFeature) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineImageFeature. +func (v *VirtualMachineImageFeature) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineImageProperties. +func (v VirtualMachineImageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "architecture", v.Architecture) + populate(objectMap, "automaticOSUpgradeProperties", v.AutomaticOSUpgradeProperties) + populate(objectMap, "dataDiskImages", v.DataDiskImages) + populate(objectMap, "disallowed", v.Disallowed) + populate(objectMap, "features", v.Features) + populate(objectMap, "hyperVGeneration", v.HyperVGeneration) + populate(objectMap, "imageDeprecationStatus", v.ImageDeprecationStatus) + populate(objectMap, "osDiskImage", v.OSDiskImage) + populate(objectMap, "plan", v.Plan) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineImageProperties. +func (v *VirtualMachineImageProperties) UnmarshalJSON(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 "architecture": + err = unpopulate(val, "Architecture", &v.Architecture) + delete(rawMsg, key) + case "automaticOSUpgradeProperties": + err = unpopulate(val, "AutomaticOSUpgradeProperties", &v.AutomaticOSUpgradeProperties) + delete(rawMsg, key) + case "dataDiskImages": + err = unpopulate(val, "DataDiskImages", &v.DataDiskImages) + delete(rawMsg, key) + case "disallowed": + err = unpopulate(val, "Disallowed", &v.Disallowed) + delete(rawMsg, key) + case "features": + err = unpopulate(val, "Features", &v.Features) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &v.HyperVGeneration) + delete(rawMsg, key) + case "imageDeprecationStatus": + err = unpopulate(val, "ImageDeprecationStatus", &v.ImageDeprecationStatus) + delete(rawMsg, key) + case "osDiskImage": + err = unpopulate(val, "OSDiskImage", &v.OSDiskImage) + delete(rawMsg, key) + case "plan": + err = unpopulate(val, "Plan", &v.Plan) + 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 VirtualMachineImageResource. +func (v VirtualMachineImageResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extendedLocation", v.ExtendedLocation) + populate(objectMap, "id", v.ID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "tags", v.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineImageResource. +func (v *VirtualMachineImageResource) UnmarshalJSON(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 "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &v.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineInstallPatchesParameters. +func (v VirtualMachineInstallPatchesParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "linuxParameters", v.LinuxParameters) + populate(objectMap, "maximumDuration", v.MaximumDuration) + populate(objectMap, "rebootSetting", v.RebootSetting) + populate(objectMap, "windowsParameters", v.WindowsParameters) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineInstallPatchesParameters. +func (v *VirtualMachineInstallPatchesParameters) UnmarshalJSON(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 "linuxParameters": + err = unpopulate(val, "LinuxParameters", &v.LinuxParameters) + delete(rawMsg, key) + case "maximumDuration": + err = unpopulate(val, "MaximumDuration", &v.MaximumDuration) + delete(rawMsg, key) + case "rebootSetting": + err = unpopulate(val, "RebootSetting", &v.RebootSetting) + delete(rawMsg, key) + case "windowsParameters": + err = unpopulate(val, "WindowsParameters", &v.WindowsParameters) + 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 VirtualMachineInstallPatchesResult. +func (v VirtualMachineInstallPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", v.Error) + populate(objectMap, "excludedPatchCount", v.ExcludedPatchCount) + populate(objectMap, "failedPatchCount", v.FailedPatchCount) + populate(objectMap, "installationActivityId", v.InstallationActivityID) + populate(objectMap, "installedPatchCount", v.InstalledPatchCount) + populate(objectMap, "maintenanceWindowExceeded", v.MaintenanceWindowExceeded) + populate(objectMap, "notSelectedPatchCount", v.NotSelectedPatchCount) + populate(objectMap, "patches", v.Patches) + populate(objectMap, "pendingPatchCount", v.PendingPatchCount) + populate(objectMap, "rebootStatus", v.RebootStatus) + populateDateTimeRFC3339(objectMap, "startDateTime", v.StartDateTime) + populate(objectMap, "status", v.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineInstallPatchesResult. +func (v *VirtualMachineInstallPatchesResult) UnmarshalJSON(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 "error": + err = unpopulate(val, "Error", &v.Error) + delete(rawMsg, key) + case "excludedPatchCount": + err = unpopulate(val, "ExcludedPatchCount", &v.ExcludedPatchCount) + delete(rawMsg, key) + case "failedPatchCount": + err = unpopulate(val, "FailedPatchCount", &v.FailedPatchCount) + delete(rawMsg, key) + case "installationActivityId": + err = unpopulate(val, "InstallationActivityID", &v.InstallationActivityID) + delete(rawMsg, key) + case "installedPatchCount": + err = unpopulate(val, "InstalledPatchCount", &v.InstalledPatchCount) + delete(rawMsg, key) + case "maintenanceWindowExceeded": + err = unpopulate(val, "MaintenanceWindowExceeded", &v.MaintenanceWindowExceeded) + delete(rawMsg, key) + case "notSelectedPatchCount": + err = unpopulate(val, "NotSelectedPatchCount", &v.NotSelectedPatchCount) + delete(rawMsg, key) + case "patches": + err = unpopulate(val, "Patches", &v.Patches) + delete(rawMsg, key) + case "pendingPatchCount": + err = unpopulate(val, "PendingPatchCount", &v.PendingPatchCount) + delete(rawMsg, key) + case "rebootStatus": + err = unpopulate(val, "RebootStatus", &v.RebootStatus) + delete(rawMsg, key) + case "startDateTime": + err = unpopulateDateTimeRFC3339(val, "StartDateTime", &v.StartDateTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &v.Status) + 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 VirtualMachineInstanceView. +func (v VirtualMachineInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assignedHost", v.AssignedHost) + populate(objectMap, "bootDiagnostics", v.BootDiagnostics) + populate(objectMap, "computerName", v.ComputerName) + populate(objectMap, "disks", v.Disks) + populate(objectMap, "extensions", v.Extensions) + populate(objectMap, "hyperVGeneration", v.HyperVGeneration) + populate(objectMap, "isVMInStandbyPool", v.IsVMInStandbyPool) + populate(objectMap, "maintenanceRedeployStatus", v.MaintenanceRedeployStatus) + populate(objectMap, "osName", v.OSName) + populate(objectMap, "osVersion", v.OSVersion) + populate(objectMap, "patchStatus", v.PatchStatus) + populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain) + populate(objectMap, "platformUpdateDomain", v.PlatformUpdateDomain) + populate(objectMap, "rdpThumbPrint", v.RdpThumbPrint) + populate(objectMap, "statuses", v.Statuses) + populate(objectMap, "vmAgent", v.VMAgent) + populate(objectMap, "vmHealth", v.VMHealth) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineInstanceView. +func (v *VirtualMachineInstanceView) UnmarshalJSON(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 "assignedHost": + err = unpopulate(val, "AssignedHost", &v.AssignedHost) + delete(rawMsg, key) + case "bootDiagnostics": + err = unpopulate(val, "BootDiagnostics", &v.BootDiagnostics) + delete(rawMsg, key) + case "computerName": + err = unpopulate(val, "ComputerName", &v.ComputerName) + delete(rawMsg, key) + case "disks": + err = unpopulate(val, "Disks", &v.Disks) + delete(rawMsg, key) + case "extensions": + err = unpopulate(val, "Extensions", &v.Extensions) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &v.HyperVGeneration) + delete(rawMsg, key) + case "isVMInStandbyPool": + err = unpopulate(val, "IsVMInStandbyPool", &v.IsVMInStandbyPool) + delete(rawMsg, key) + case "maintenanceRedeployStatus": + err = unpopulate(val, "MaintenanceRedeployStatus", &v.MaintenanceRedeployStatus) + delete(rawMsg, key) + case "osName": + err = unpopulate(val, "OSName", &v.OSName) + delete(rawMsg, key) + case "osVersion": + err = unpopulate(val, "OSVersion", &v.OSVersion) + delete(rawMsg, key) + case "patchStatus": + err = unpopulate(val, "PatchStatus", &v.PatchStatus) + delete(rawMsg, key) + case "platformFaultDomain": + err = unpopulate(val, "PlatformFaultDomain", &v.PlatformFaultDomain) + delete(rawMsg, key) + case "platformUpdateDomain": + err = unpopulate(val, "PlatformUpdateDomain", &v.PlatformUpdateDomain) + delete(rawMsg, key) + case "rdpThumbPrint": + err = unpopulate(val, "RdpThumbPrint", &v.RdpThumbPrint) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &v.Statuses) + delete(rawMsg, key) + case "vmAgent": + err = unpopulate(val, "VMAgent", &v.VMAgent) + delete(rawMsg, key) + case "vmHealth": + err = unpopulate(val, "VMHealth", &v.VMHealth) + 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 VirtualMachineListResult. +func (v VirtualMachineListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineListResult. +func (v *VirtualMachineListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineNetworkInterfaceConfiguration. +func (v VirtualMachineNetworkInterfaceConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineNetworkInterfaceConfiguration. +func (v *VirtualMachineNetworkInterfaceConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineNetworkInterfaceConfigurationProperties. +func (v VirtualMachineNetworkInterfaceConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auxiliaryMode", v.AuxiliaryMode) + populate(objectMap, "auxiliarySku", v.AuxiliarySKU) + populate(objectMap, "dnsSettings", v.DNSSettings) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "disableTcpStateTracking", v.DisableTCPStateTracking) + populate(objectMap, "dscpConfiguration", v.DscpConfiguration) + populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking) + populate(objectMap, "enableFpga", v.EnableFpga) + populate(objectMap, "enableIPForwarding", v.EnableIPForwarding) + populate(objectMap, "ipConfigurations", v.IPConfigurations) + populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup) + populate(objectMap, "primary", v.Primary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineNetworkInterfaceConfigurationProperties. +func (v *VirtualMachineNetworkInterfaceConfigurationProperties) UnmarshalJSON(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 "auxiliaryMode": + err = unpopulate(val, "AuxiliaryMode", &v.AuxiliaryMode) + delete(rawMsg, key) + case "auxiliarySku": + err = unpopulate(val, "AuxiliarySKU", &v.AuxiliarySKU) + delete(rawMsg, key) + case "dnsSettings": + err = unpopulate(val, "DNSSettings", &v.DNSSettings) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "disableTcpStateTracking": + err = unpopulate(val, "DisableTCPStateTracking", &v.DisableTCPStateTracking) + delete(rawMsg, key) + case "dscpConfiguration": + err = unpopulate(val, "DscpConfiguration", &v.DscpConfiguration) + delete(rawMsg, key) + case "enableAcceleratedNetworking": + err = unpopulate(val, "EnableAcceleratedNetworking", &v.EnableAcceleratedNetworking) + delete(rawMsg, key) + case "enableFpga": + err = unpopulate(val, "EnableFpga", &v.EnableFpga) + delete(rawMsg, key) + case "enableIPForwarding": + err = unpopulate(val, "EnableIPForwarding", &v.EnableIPForwarding) + delete(rawMsg, key) + case "ipConfigurations": + err = unpopulate(val, "IPConfigurations", &v.IPConfigurations) + delete(rawMsg, key) + case "networkSecurityGroup": + err = unpopulate(val, "NetworkSecurityGroup", &v.NetworkSecurityGroup) + delete(rawMsg, key) + case "primary": + err = unpopulate(val, "Primary", &v.Primary) + 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 VirtualMachineNetworkInterfaceDNSSettingsConfiguration. +func (v VirtualMachineNetworkInterfaceDNSSettingsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dnsServers", v.DNSServers) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineNetworkInterfaceDNSSettingsConfiguration. +func (v *VirtualMachineNetworkInterfaceDNSSettingsConfiguration) UnmarshalJSON(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 "dnsServers": + err = unpopulate(val, "DNSServers", &v.DNSServers) + 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 VirtualMachineNetworkInterfaceIPConfiguration. +func (v VirtualMachineNetworkInterfaceIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineNetworkInterfaceIPConfiguration. +func (v *VirtualMachineNetworkInterfaceIPConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineNetworkInterfaceIPConfigurationProperties. +func (v VirtualMachineNetworkInterfaceIPConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools) + populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups) + populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools) + populate(objectMap, "primary", v.Primary) + populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion) + populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration) + populate(objectMap, "subnet", v.Subnet) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineNetworkInterfaceIPConfigurationProperties. +func (v *VirtualMachineNetworkInterfaceIPConfigurationProperties) UnmarshalJSON(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 "applicationGatewayBackendAddressPools": + err = unpopulate(val, "ApplicationGatewayBackendAddressPools", &v.ApplicationGatewayBackendAddressPools) + delete(rawMsg, key) + case "applicationSecurityGroups": + err = unpopulate(val, "ApplicationSecurityGroups", &v.ApplicationSecurityGroups) + delete(rawMsg, key) + case "loadBalancerBackendAddressPools": + err = unpopulate(val, "LoadBalancerBackendAddressPools", &v.LoadBalancerBackendAddressPools) + delete(rawMsg, key) + case "primary": + err = unpopulate(val, "Primary", &v.Primary) + delete(rawMsg, key) + case "privateIPAddressVersion": + err = unpopulate(val, "PrivateIPAddressVersion", &v.PrivateIPAddressVersion) + delete(rawMsg, key) + case "publicIPAddressConfiguration": + err = unpopulate(val, "PublicIPAddressConfiguration", &v.PublicIPAddressConfiguration) + delete(rawMsg, key) + case "subnet": + err = unpopulate(val, "Subnet", &v.Subnet) + 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 VirtualMachinePatchStatus. +func (v VirtualMachinePatchStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availablePatchSummary", v.AvailablePatchSummary) + populate(objectMap, "configurationStatuses", v.ConfigurationStatuses) + populate(objectMap, "lastPatchInstallationSummary", v.LastPatchInstallationSummary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachinePatchStatus. +func (v *VirtualMachinePatchStatus) UnmarshalJSON(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 "availablePatchSummary": + err = unpopulate(val, "AvailablePatchSummary", &v.AvailablePatchSummary) + delete(rawMsg, key) + case "configurationStatuses": + err = unpopulate(val, "ConfigurationStatuses", &v.ConfigurationStatuses) + delete(rawMsg, key) + case "lastPatchInstallationSummary": + err = unpopulate(val, "LastPatchInstallationSummary", &v.LastPatchInstallationSummary) + 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 VirtualMachineProperties. +func (v VirtualMachineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities) + populate(objectMap, "applicationProfile", v.ApplicationProfile) + populate(objectMap, "availabilitySet", v.AvailabilitySet) + populate(objectMap, "billingProfile", v.BillingProfile) + populate(objectMap, "capacityReservation", v.CapacityReservation) + populate(objectMap, "diagnosticsProfile", v.DiagnosticsProfile) + populate(objectMap, "evictionPolicy", v.EvictionPolicy) + populate(objectMap, "extensionsTimeBudget", v.ExtensionsTimeBudget) + populate(objectMap, "hardwareProfile", v.HardwareProfile) + populate(objectMap, "host", v.Host) + populate(objectMap, "hostGroup", v.HostGroup) + populate(objectMap, "instanceView", v.InstanceView) + populate(objectMap, "licenseType", v.LicenseType) + populate(objectMap, "networkProfile", v.NetworkProfile) + populate(objectMap, "osProfile", v.OSProfile) + populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain) + populate(objectMap, "priority", v.Priority) + populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup) + populate(objectMap, "scheduledEventsPolicy", v.ScheduledEventsPolicy) + populate(objectMap, "scheduledEventsProfile", v.ScheduledEventsProfile) + populate(objectMap, "securityProfile", v.SecurityProfile) + populate(objectMap, "storageProfile", v.StorageProfile) + populateDateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated) + populate(objectMap, "userData", v.UserData) + populate(objectMap, "vmId", v.VMID) + populate(objectMap, "virtualMachineScaleSet", v.VirtualMachineScaleSet) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineProperties. +func (v *VirtualMachineProperties) UnmarshalJSON(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 "additionalCapabilities": + err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities) + delete(rawMsg, key) + case "applicationProfile": + err = unpopulate(val, "ApplicationProfile", &v.ApplicationProfile) + delete(rawMsg, key) + case "availabilitySet": + err = unpopulate(val, "AvailabilitySet", &v.AvailabilitySet) + delete(rawMsg, key) + case "billingProfile": + err = unpopulate(val, "BillingProfile", &v.BillingProfile) + delete(rawMsg, key) + case "capacityReservation": + err = unpopulate(val, "CapacityReservation", &v.CapacityReservation) + delete(rawMsg, key) + case "diagnosticsProfile": + err = unpopulate(val, "DiagnosticsProfile", &v.DiagnosticsProfile) + delete(rawMsg, key) + case "evictionPolicy": + err = unpopulate(val, "EvictionPolicy", &v.EvictionPolicy) + delete(rawMsg, key) + case "extensionsTimeBudget": + err = unpopulate(val, "ExtensionsTimeBudget", &v.ExtensionsTimeBudget) + delete(rawMsg, key) + case "hardwareProfile": + err = unpopulate(val, "HardwareProfile", &v.HardwareProfile) + delete(rawMsg, key) + case "host": + err = unpopulate(val, "Host", &v.Host) + delete(rawMsg, key) + case "hostGroup": + err = unpopulate(val, "HostGroup", &v.HostGroup) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &v.InstanceView) + delete(rawMsg, key) + case "licenseType": + err = unpopulate(val, "LicenseType", &v.LicenseType) + delete(rawMsg, key) + case "networkProfile": + err = unpopulate(val, "NetworkProfile", &v.NetworkProfile) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &v.OSProfile) + delete(rawMsg, key) + case "platformFaultDomain": + err = unpopulate(val, "PlatformFaultDomain", &v.PlatformFaultDomain) + delete(rawMsg, key) + case "priority": + err = unpopulate(val, "Priority", &v.Priority) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) + delete(rawMsg, key) + case "proximityPlacementGroup": + err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup) + delete(rawMsg, key) + case "scheduledEventsPolicy": + err = unpopulate(val, "ScheduledEventsPolicy", &v.ScheduledEventsPolicy) + delete(rawMsg, key) + case "scheduledEventsProfile": + err = unpopulate(val, "ScheduledEventsProfile", &v.ScheduledEventsProfile) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &v.SecurityProfile) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &v.StorageProfile) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &v.TimeCreated) + delete(rawMsg, key) + case "userData": + err = unpopulate(val, "UserData", &v.UserData) + delete(rawMsg, key) + case "vmId": + err = unpopulate(val, "VMID", &v.VMID) + delete(rawMsg, key) + case "virtualMachineScaleSet": + err = unpopulate(val, "VirtualMachineScaleSet", &v.VirtualMachineScaleSet) + 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 VirtualMachinePublicIPAddressConfiguration. +func (v VirtualMachinePublicIPAddressConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "sku", v.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachinePublicIPAddressConfiguration. +func (v *VirtualMachinePublicIPAddressConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &v.SKU) + 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 VirtualMachinePublicIPAddressConfigurationProperties. +func (v VirtualMachinePublicIPAddressConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dnsSettings", v.DNSSettings) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "ipTags", v.IPTags) + populate(objectMap, "idleTimeoutInMinutes", v.IdleTimeoutInMinutes) + populate(objectMap, "publicIPAddressVersion", v.PublicIPAddressVersion) + populate(objectMap, "publicIPAllocationMethod", v.PublicIPAllocationMethod) + populate(objectMap, "publicIPPrefix", v.PublicIPPrefix) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachinePublicIPAddressConfigurationProperties. +func (v *VirtualMachinePublicIPAddressConfigurationProperties) UnmarshalJSON(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 "dnsSettings": + err = unpopulate(val, "DNSSettings", &v.DNSSettings) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "ipTags": + err = unpopulate(val, "IPTags", &v.IPTags) + delete(rawMsg, key) + case "idleTimeoutInMinutes": + err = unpopulate(val, "IdleTimeoutInMinutes", &v.IdleTimeoutInMinutes) + delete(rawMsg, key) + case "publicIPAddressVersion": + err = unpopulate(val, "PublicIPAddressVersion", &v.PublicIPAddressVersion) + delete(rawMsg, key) + case "publicIPAllocationMethod": + err = unpopulate(val, "PublicIPAllocationMethod", &v.PublicIPAllocationMethod) + delete(rawMsg, key) + case "publicIPPrefix": + err = unpopulate(val, "PublicIPPrefix", &v.PublicIPPrefix) + 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 VirtualMachinePublicIPAddressDNSSettingsConfiguration. +func (v VirtualMachinePublicIPAddressDNSSettingsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "domainNameLabel", v.DomainNameLabel) + populate(objectMap, "domainNameLabelScope", v.DomainNameLabelScope) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachinePublicIPAddressDNSSettingsConfiguration. +func (v *VirtualMachinePublicIPAddressDNSSettingsConfiguration) UnmarshalJSON(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 "domainNameLabel": + err = unpopulate(val, "DomainNameLabel", &v.DomainNameLabel) + delete(rawMsg, key) + case "domainNameLabelScope": + err = unpopulate(val, "DomainNameLabelScope", &v.DomainNameLabelScope) + 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 VirtualMachineReimageParameters. +func (v VirtualMachineReimageParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "exactVersion", v.ExactVersion) + populate(objectMap, "osProfile", v.OSProfile) + populate(objectMap, "tempDisk", v.TempDisk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineReimageParameters. +func (v *VirtualMachineReimageParameters) UnmarshalJSON(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 "exactVersion": + err = unpopulate(val, "ExactVersion", &v.ExactVersion) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &v.OSProfile) + delete(rawMsg, key) + case "tempDisk": + err = unpopulate(val, "TempDisk", &v.TempDisk) + 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 VirtualMachineRunCommand. +func (v VirtualMachineRunCommand) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommand. +func (v *VirtualMachineRunCommand) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineRunCommandInstanceView. +func (v VirtualMachineRunCommandInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "endTime", v.EndTime) + populate(objectMap, "error", v.Error) + populate(objectMap, "executionMessage", v.ExecutionMessage) + populate(objectMap, "executionState", v.ExecutionState) + populate(objectMap, "exitCode", v.ExitCode) + populate(objectMap, "output", v.Output) + populateDateTimeRFC3339(objectMap, "startTime", v.StartTime) + populate(objectMap, "statuses", v.Statuses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommandInstanceView. +func (v *VirtualMachineRunCommandInstanceView) UnmarshalJSON(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 "endTime": + err = unpopulateDateTimeRFC3339(val, "EndTime", &v.EndTime) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &v.Error) + delete(rawMsg, key) + case "executionMessage": + err = unpopulate(val, "ExecutionMessage", &v.ExecutionMessage) + delete(rawMsg, key) + case "executionState": + err = unpopulate(val, "ExecutionState", &v.ExecutionState) + delete(rawMsg, key) + case "exitCode": + err = unpopulate(val, "ExitCode", &v.ExitCode) + delete(rawMsg, key) + case "output": + err = unpopulate(val, "Output", &v.Output) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &v.StartTime) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &v.Statuses) + 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 VirtualMachineRunCommandProperties. +func (v VirtualMachineRunCommandProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "asyncExecution", v.AsyncExecution) + populate(objectMap, "errorBlobManagedIdentity", v.ErrorBlobManagedIdentity) + populate(objectMap, "errorBlobUri", v.ErrorBlobURI) + populate(objectMap, "instanceView", v.InstanceView) + populate(objectMap, "outputBlobManagedIdentity", v.OutputBlobManagedIdentity) + populate(objectMap, "outputBlobUri", v.OutputBlobURI) + populate(objectMap, "parameters", v.Parameters) + populate(objectMap, "protectedParameters", v.ProtectedParameters) + populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "runAsPassword", v.RunAsPassword) + populate(objectMap, "runAsUser", v.RunAsUser) + populate(objectMap, "source", v.Source) + populate(objectMap, "timeoutInSeconds", v.TimeoutInSeconds) + populate(objectMap, "treatFailureAsDeploymentFailure", v.TreatFailureAsDeploymentFailure) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommandProperties. +func (v *VirtualMachineRunCommandProperties) UnmarshalJSON(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 "asyncExecution": + err = unpopulate(val, "AsyncExecution", &v.AsyncExecution) + delete(rawMsg, key) + case "errorBlobManagedIdentity": + err = unpopulate(val, "ErrorBlobManagedIdentity", &v.ErrorBlobManagedIdentity) + delete(rawMsg, key) + case "errorBlobUri": + err = unpopulate(val, "ErrorBlobURI", &v.ErrorBlobURI) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &v.InstanceView) + delete(rawMsg, key) + case "outputBlobManagedIdentity": + err = unpopulate(val, "OutputBlobManagedIdentity", &v.OutputBlobManagedIdentity) + delete(rawMsg, key) + case "outputBlobUri": + err = unpopulate(val, "OutputBlobURI", &v.OutputBlobURI) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &v.Parameters) + delete(rawMsg, key) + case "protectedParameters": + err = unpopulate(val, "ProtectedParameters", &v.ProtectedParameters) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) + delete(rawMsg, key) + case "runAsPassword": + err = unpopulate(val, "RunAsPassword", &v.RunAsPassword) + delete(rawMsg, key) + case "runAsUser": + err = unpopulate(val, "RunAsUser", &v.RunAsUser) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &v.Source) + delete(rawMsg, key) + case "timeoutInSeconds": + err = unpopulate(val, "TimeoutInSeconds", &v.TimeoutInSeconds) + delete(rawMsg, key) + case "treatFailureAsDeploymentFailure": + err = unpopulate(val, "TreatFailureAsDeploymentFailure", &v.TreatFailureAsDeploymentFailure) + 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 VirtualMachineRunCommandScriptSource. +func (v VirtualMachineRunCommandScriptSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "commandId", v.CommandID) + populate(objectMap, "script", v.Script) + populate(objectMap, "scriptUri", v.ScriptURI) + populate(objectMap, "scriptUriManagedIdentity", v.ScriptURIManagedIdentity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommandScriptSource. +func (v *VirtualMachineRunCommandScriptSource) UnmarshalJSON(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 "commandId": + err = unpopulate(val, "CommandID", &v.CommandID) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &v.Script) + delete(rawMsg, key) + case "scriptUri": + err = unpopulate(val, "ScriptURI", &v.ScriptURI) + delete(rawMsg, key) + case "scriptUriManagedIdentity": + err = unpopulate(val, "ScriptURIManagedIdentity", &v.ScriptURIManagedIdentity) + 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 VirtualMachineRunCommandUpdate. +func (v VirtualMachineRunCommandUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommandUpdate. +func (v *VirtualMachineRunCommandUpdate) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineRunCommandsListResult. +func (v VirtualMachineRunCommandsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommandsListResult. +func (v *VirtualMachineRunCommandsListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSet. +func (v VirtualMachineScaleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", v.Etag) + populate(objectMap, "extendedLocation", v.ExtendedLocation) + populate(objectMap, "id", v.ID) + populate(objectMap, "identity", v.Identity) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "plan", v.Plan) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "sku", v.SKU) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "type", v.Type) + populate(objectMap, "zones", v.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSet. +func (v *VirtualMachineScaleSet) UnmarshalJSON(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 "etag": + err = unpopulate(val, "Etag", &v.Etag) + delete(rawMsg, key) + case "extendedLocation": + err = unpopulate(val, "ExtendedLocation", &v.ExtendedLocation) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &v.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "plan": + err = unpopulate(val, "Plan", &v.Plan) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &v.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &v.Zones) + 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 VirtualMachineScaleSetDataDisk. +func (v VirtualMachineScaleSetDataDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", v.Caching) + populate(objectMap, "createOption", v.CreateOption) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "diskIOPSReadWrite", v.DiskIOPSReadWrite) + populate(objectMap, "diskMBpsReadWrite", v.DiskMBpsReadWrite) + populate(objectMap, "diskSizeGB", v.DiskSizeGB) + populate(objectMap, "lun", v.Lun) + populate(objectMap, "managedDisk", v.ManagedDisk) + populate(objectMap, "name", v.Name) + populate(objectMap, "writeAcceleratorEnabled", v.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetDataDisk. +func (v *VirtualMachineScaleSetDataDisk) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &v.Caching) + delete(rawMsg, key) + case "createOption": + err = unpopulate(val, "CreateOption", &v.CreateOption) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "diskIOPSReadWrite": + err = unpopulate(val, "DiskIOPSReadWrite", &v.DiskIOPSReadWrite) + delete(rawMsg, key) + case "diskMBpsReadWrite": + err = unpopulate(val, "DiskMBpsReadWrite", &v.DiskMBpsReadWrite) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &v.DiskSizeGB) + delete(rawMsg, key) + case "lun": + err = unpopulate(val, "Lun", &v.Lun) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &v.ManagedDisk) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &v.WriteAcceleratorEnabled) + 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 VirtualMachineScaleSetExtension. +func (v VirtualMachineScaleSetExtension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetExtension. +func (v *VirtualMachineScaleSetExtension) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetExtensionListResult. +func (v VirtualMachineScaleSetExtensionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetExtensionListResult. +func (v *VirtualMachineScaleSetExtensionListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSetExtensionProfile. +func (v VirtualMachineScaleSetExtensionProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extensions", v.Extensions) + populate(objectMap, "extensionsTimeBudget", v.ExtensionsTimeBudget) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetExtensionProfile. +func (v *VirtualMachineScaleSetExtensionProfile) UnmarshalJSON(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 "extensions": + err = unpopulate(val, "Extensions", &v.Extensions) + delete(rawMsg, key) + case "extensionsTimeBudget": + err = unpopulate(val, "ExtensionsTimeBudget", &v.ExtensionsTimeBudget) + 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 VirtualMachineScaleSetExtensionProperties. +func (v VirtualMachineScaleSetExtensionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoUpgradeMinorVersion", v.AutoUpgradeMinorVersion) + populate(objectMap, "enableAutomaticUpgrade", v.EnableAutomaticUpgrade) + populate(objectMap, "forceUpdateTag", v.ForceUpdateTag) + populateAny(objectMap, "protectedSettings", v.ProtectedSettings) + populate(objectMap, "protectedSettingsFromKeyVault", v.ProtectedSettingsFromKeyVault) + populate(objectMap, "provisionAfterExtensions", v.ProvisionAfterExtensions) + populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "publisher", v.Publisher) + populateAny(objectMap, "settings", v.Settings) + populate(objectMap, "suppressFailures", v.SuppressFailures) + populate(objectMap, "type", v.Type) + populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetExtensionProperties. +func (v *VirtualMachineScaleSetExtensionProperties) UnmarshalJSON(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 "autoUpgradeMinorVersion": + err = unpopulate(val, "AutoUpgradeMinorVersion", &v.AutoUpgradeMinorVersion) + delete(rawMsg, key) + case "enableAutomaticUpgrade": + err = unpopulate(val, "EnableAutomaticUpgrade", &v.EnableAutomaticUpgrade) + delete(rawMsg, key) + case "forceUpdateTag": + err = unpopulate(val, "ForceUpdateTag", &v.ForceUpdateTag) + delete(rawMsg, key) + case "protectedSettings": + err = unpopulate(val, "ProtectedSettings", &v.ProtectedSettings) + delete(rawMsg, key) + case "protectedSettingsFromKeyVault": + err = unpopulate(val, "ProtectedSettingsFromKeyVault", &v.ProtectedSettingsFromKeyVault) + delete(rawMsg, key) + case "provisionAfterExtensions": + err = unpopulate(val, "ProvisionAfterExtensions", &v.ProvisionAfterExtensions) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) + delete(rawMsg, key) + case "publisher": + err = unpopulate(val, "Publisher", &v.Publisher) + delete(rawMsg, key) + case "settings": + err = unpopulate(val, "Settings", &v.Settings) + delete(rawMsg, key) + case "suppressFailures": + err = unpopulate(val, "SuppressFailures", &v.SuppressFailures) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "typeHandlerVersion": + err = unpopulate(val, "TypeHandlerVersion", &v.TypeHandlerVersion) + 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 VirtualMachineScaleSetExtensionUpdate. +func (v VirtualMachineScaleSetExtensionUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetExtensionUpdate. +func (v *VirtualMachineScaleSetExtensionUpdate) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetHardwareProfile. +func (v VirtualMachineScaleSetHardwareProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "vmSizeProperties", v.VMSizeProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetHardwareProfile. +func (v *VirtualMachineScaleSetHardwareProfile) UnmarshalJSON(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 "vmSizeProperties": + err = unpopulate(val, "VMSizeProperties", &v.VMSizeProperties) + 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 VirtualMachineScaleSetIPConfiguration. +func (v VirtualMachineScaleSetIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetIPConfiguration. +func (v *VirtualMachineScaleSetIPConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetIPConfigurationProperties. +func (v VirtualMachineScaleSetIPConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools) + populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups) + populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools) + populate(objectMap, "loadBalancerInboundNatPools", v.LoadBalancerInboundNatPools) + populate(objectMap, "primary", v.Primary) + populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion) + populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration) + populate(objectMap, "subnet", v.Subnet) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetIPConfigurationProperties. +func (v *VirtualMachineScaleSetIPConfigurationProperties) UnmarshalJSON(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 "applicationGatewayBackendAddressPools": + err = unpopulate(val, "ApplicationGatewayBackendAddressPools", &v.ApplicationGatewayBackendAddressPools) + delete(rawMsg, key) + case "applicationSecurityGroups": + err = unpopulate(val, "ApplicationSecurityGroups", &v.ApplicationSecurityGroups) + delete(rawMsg, key) + case "loadBalancerBackendAddressPools": + err = unpopulate(val, "LoadBalancerBackendAddressPools", &v.LoadBalancerBackendAddressPools) + delete(rawMsg, key) + case "loadBalancerInboundNatPools": + err = unpopulate(val, "LoadBalancerInboundNatPools", &v.LoadBalancerInboundNatPools) + delete(rawMsg, key) + case "primary": + err = unpopulate(val, "Primary", &v.Primary) + delete(rawMsg, key) + case "privateIPAddressVersion": + err = unpopulate(val, "PrivateIPAddressVersion", &v.PrivateIPAddressVersion) + delete(rawMsg, key) + case "publicIPAddressConfiguration": + err = unpopulate(val, "PublicIPAddressConfiguration", &v.PublicIPAddressConfiguration) + delete(rawMsg, key) + case "subnet": + err = unpopulate(val, "Subnet", &v.Subnet) + 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 VirtualMachineScaleSetIPTag. +func (v VirtualMachineScaleSetIPTag) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ipTagType", v.IPTagType) + populate(objectMap, "tag", v.Tag) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetIPTag. +func (v *VirtualMachineScaleSetIPTag) UnmarshalJSON(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 "ipTagType": + err = unpopulate(val, "IPTagType", &v.IPTagType) + delete(rawMsg, key) + case "tag": + err = unpopulate(val, "Tag", &v.Tag) + 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 VirtualMachineScaleSetIdentity. +func (v VirtualMachineScaleSetIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", v.PrincipalID) + populate(objectMap, "tenantId", v.TenantID) + populate(objectMap, "type", v.Type) + populate(objectMap, "userAssignedIdentities", v.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetIdentity. +func (v *VirtualMachineScaleSetIdentity) UnmarshalJSON(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 "principalId": + err = unpopulate(val, "PrincipalID", &v.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &v.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &v.UserAssignedIdentities) + 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 VirtualMachineScaleSetInstanceView. +func (v VirtualMachineScaleSetInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "extensions", v.Extensions) + populate(objectMap, "orchestrationServices", v.OrchestrationServices) + populate(objectMap, "statuses", v.Statuses) + populate(objectMap, "virtualMachine", v.VirtualMachine) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetInstanceView. +func (v *VirtualMachineScaleSetInstanceView) UnmarshalJSON(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 "extensions": + err = unpopulate(val, "Extensions", &v.Extensions) + delete(rawMsg, key) + case "orchestrationServices": + err = unpopulate(val, "OrchestrationServices", &v.OrchestrationServices) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &v.Statuses) + delete(rawMsg, key) + case "virtualMachine": + err = unpopulate(val, "VirtualMachine", &v.VirtualMachine) + 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 VirtualMachineScaleSetInstanceViewStatusesSummary. +func (v VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "statusesSummary", v.StatusesSummary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetInstanceViewStatusesSummary. +func (v *VirtualMachineScaleSetInstanceViewStatusesSummary) UnmarshalJSON(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 "statusesSummary": + err = unpopulate(val, "StatusesSummary", &v.StatusesSummary) + 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 VirtualMachineScaleSetListOSUpgradeHistory. +func (v VirtualMachineScaleSetListOSUpgradeHistory) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetListOSUpgradeHistory. +func (v *VirtualMachineScaleSetListOSUpgradeHistory) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSetListResult. +func (v VirtualMachineScaleSetListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetListResult. +func (v *VirtualMachineScaleSetListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSetListSKUsResult. +func (v VirtualMachineScaleSetListSKUsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetListSKUsResult. +func (v *VirtualMachineScaleSetListSKUsResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSetListWithLinkResult. +func (v VirtualMachineScaleSetListWithLinkResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetListWithLinkResult. +func (v *VirtualMachineScaleSetListWithLinkResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSetManagedDiskParameters. +func (v VirtualMachineScaleSetManagedDiskParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskEncryptionSet", v.DiskEncryptionSet) + populate(objectMap, "securityProfile", v.SecurityProfile) + populate(objectMap, "storageAccountType", v.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetManagedDiskParameters. +func (v *VirtualMachineScaleSetManagedDiskParameters) UnmarshalJSON(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 "diskEncryptionSet": + err = unpopulate(val, "DiskEncryptionSet", &v.DiskEncryptionSet) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &v.SecurityProfile) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &v.StorageAccountType) + 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 VirtualMachineScaleSetNetworkConfiguration. +func (v VirtualMachineScaleSetNetworkConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetNetworkConfiguration. +func (v *VirtualMachineScaleSetNetworkConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetNetworkConfigurationDNSSettings. +func (v VirtualMachineScaleSetNetworkConfigurationDNSSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dnsServers", v.DNSServers) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetNetworkConfigurationDNSSettings. +func (v *VirtualMachineScaleSetNetworkConfigurationDNSSettings) UnmarshalJSON(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 "dnsServers": + err = unpopulate(val, "DNSServers", &v.DNSServers) + 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 VirtualMachineScaleSetNetworkConfigurationProperties. +func (v VirtualMachineScaleSetNetworkConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auxiliaryMode", v.AuxiliaryMode) + populate(objectMap, "auxiliarySku", v.AuxiliarySKU) + populate(objectMap, "dnsSettings", v.DNSSettings) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "disableTcpStateTracking", v.DisableTCPStateTracking) + populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking) + populate(objectMap, "enableFpga", v.EnableFpga) + populate(objectMap, "enableIPForwarding", v.EnableIPForwarding) + populate(objectMap, "ipConfigurations", v.IPConfigurations) + populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup) + populate(objectMap, "primary", v.Primary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetNetworkConfigurationProperties. +func (v *VirtualMachineScaleSetNetworkConfigurationProperties) UnmarshalJSON(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 "auxiliaryMode": + err = unpopulate(val, "AuxiliaryMode", &v.AuxiliaryMode) + delete(rawMsg, key) + case "auxiliarySku": + err = unpopulate(val, "AuxiliarySKU", &v.AuxiliarySKU) + delete(rawMsg, key) + case "dnsSettings": + err = unpopulate(val, "DNSSettings", &v.DNSSettings) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "disableTcpStateTracking": + err = unpopulate(val, "DisableTCPStateTracking", &v.DisableTCPStateTracking) + delete(rawMsg, key) + case "enableAcceleratedNetworking": + err = unpopulate(val, "EnableAcceleratedNetworking", &v.EnableAcceleratedNetworking) + delete(rawMsg, key) + case "enableFpga": + err = unpopulate(val, "EnableFpga", &v.EnableFpga) + delete(rawMsg, key) + case "enableIPForwarding": + err = unpopulate(val, "EnableIPForwarding", &v.EnableIPForwarding) + delete(rawMsg, key) + case "ipConfigurations": + err = unpopulate(val, "IPConfigurations", &v.IPConfigurations) + delete(rawMsg, key) + case "networkSecurityGroup": + err = unpopulate(val, "NetworkSecurityGroup", &v.NetworkSecurityGroup) + delete(rawMsg, key) + case "primary": + err = unpopulate(val, "Primary", &v.Primary) + 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 VirtualMachineScaleSetNetworkProfile. +func (v VirtualMachineScaleSetNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "healthProbe", v.HealthProbe) + populate(objectMap, "networkApiVersion", v.NetworkAPIVersion) + populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetNetworkProfile. +func (v *VirtualMachineScaleSetNetworkProfile) UnmarshalJSON(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 "healthProbe": + err = unpopulate(val, "HealthProbe", &v.HealthProbe) + delete(rawMsg, key) + case "networkApiVersion": + err = unpopulate(val, "NetworkAPIVersion", &v.NetworkAPIVersion) + delete(rawMsg, key) + case "networkInterfaceConfigurations": + err = unpopulate(val, "NetworkInterfaceConfigurations", &v.NetworkInterfaceConfigurations) + 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 VirtualMachineScaleSetOSDisk. +func (v VirtualMachineScaleSetOSDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", v.Caching) + populate(objectMap, "createOption", v.CreateOption) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "diffDiskSettings", v.DiffDiskSettings) + populate(objectMap, "diskSizeGB", v.DiskSizeGB) + populate(objectMap, "image", v.Image) + populate(objectMap, "managedDisk", v.ManagedDisk) + populate(objectMap, "name", v.Name) + populate(objectMap, "osType", v.OSType) + populate(objectMap, "vhdContainers", v.VhdContainers) + populate(objectMap, "writeAcceleratorEnabled", v.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetOSDisk. +func (v *VirtualMachineScaleSetOSDisk) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &v.Caching) + delete(rawMsg, key) + case "createOption": + err = unpopulate(val, "CreateOption", &v.CreateOption) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "diffDiskSettings": + err = unpopulate(val, "DiffDiskSettings", &v.DiffDiskSettings) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &v.DiskSizeGB) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &v.Image) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &v.ManagedDisk) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "osType": + err = unpopulate(val, "OSType", &v.OSType) + delete(rawMsg, key) + case "vhdContainers": + err = unpopulate(val, "VhdContainers", &v.VhdContainers) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &v.WriteAcceleratorEnabled) + 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 VirtualMachineScaleSetOSProfile. +func (v VirtualMachineScaleSetOSProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "adminPassword", v.AdminPassword) + populate(objectMap, "adminUsername", v.AdminUsername) + populate(objectMap, "allowExtensionOperations", v.AllowExtensionOperations) + populate(objectMap, "computerNamePrefix", v.ComputerNamePrefix) + populate(objectMap, "customData", v.CustomData) + populate(objectMap, "linuxConfiguration", v.LinuxConfiguration) + populate(objectMap, "requireGuestProvisionSignal", v.RequireGuestProvisionSignal) + populate(objectMap, "secrets", v.Secrets) + populate(objectMap, "windowsConfiguration", v.WindowsConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetOSProfile. +func (v *VirtualMachineScaleSetOSProfile) UnmarshalJSON(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 "adminPassword": + err = unpopulate(val, "AdminPassword", &v.AdminPassword) + delete(rawMsg, key) + case "adminUsername": + err = unpopulate(val, "AdminUsername", &v.AdminUsername) + delete(rawMsg, key) + case "allowExtensionOperations": + err = unpopulate(val, "AllowExtensionOperations", &v.AllowExtensionOperations) + delete(rawMsg, key) + case "computerNamePrefix": + err = unpopulate(val, "ComputerNamePrefix", &v.ComputerNamePrefix) + delete(rawMsg, key) + case "customData": + err = unpopulate(val, "CustomData", &v.CustomData) + delete(rawMsg, key) + case "linuxConfiguration": + err = unpopulate(val, "LinuxConfiguration", &v.LinuxConfiguration) + delete(rawMsg, key) + case "requireGuestProvisionSignal": + err = unpopulate(val, "RequireGuestProvisionSignal", &v.RequireGuestProvisionSignal) + delete(rawMsg, key) + case "secrets": + err = unpopulate(val, "Secrets", &v.Secrets) + delete(rawMsg, key) + case "windowsConfiguration": + err = unpopulate(val, "WindowsConfiguration", &v.WindowsConfiguration) + 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 VirtualMachineScaleSetProperties. +func (v VirtualMachineScaleSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities) + populate(objectMap, "automaticRepairsPolicy", v.AutomaticRepairsPolicy) + populate(objectMap, "constrainedMaximumCapacity", v.ConstrainedMaximumCapacity) + populate(objectMap, "doNotRunExtensionsOnOverprovisionedVMs", v.DoNotRunExtensionsOnOverprovisionedVMs) + populate(objectMap, "hostGroup", v.HostGroup) + populate(objectMap, "orchestrationMode", v.OrchestrationMode) + populate(objectMap, "overprovision", v.Overprovision) + populate(objectMap, "platformFaultDomainCount", v.PlatformFaultDomainCount) + populate(objectMap, "priorityMixPolicy", v.PriorityMixPolicy) + populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup) + populate(objectMap, "resiliencyPolicy", v.ResiliencyPolicy) + populate(objectMap, "scaleInPolicy", v.ScaleInPolicy) + populate(objectMap, "scheduledEventsPolicy", v.ScheduledEventsPolicy) + populate(objectMap, "singlePlacementGroup", v.SinglePlacementGroup) + populate(objectMap, "spotRestorePolicy", v.SpotRestorePolicy) + populateDateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated) + populate(objectMap, "uniqueId", v.UniqueID) + populate(objectMap, "upgradePolicy", v.UpgradePolicy) + populate(objectMap, "virtualMachineProfile", v.VirtualMachineProfile) + populate(objectMap, "zoneBalance", v.ZoneBalance) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetProperties. +func (v *VirtualMachineScaleSetProperties) UnmarshalJSON(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 "additionalCapabilities": + err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities) + delete(rawMsg, key) + case "automaticRepairsPolicy": + err = unpopulate(val, "AutomaticRepairsPolicy", &v.AutomaticRepairsPolicy) + delete(rawMsg, key) + case "constrainedMaximumCapacity": + err = unpopulate(val, "ConstrainedMaximumCapacity", &v.ConstrainedMaximumCapacity) + delete(rawMsg, key) + case "doNotRunExtensionsOnOverprovisionedVMs": + err = unpopulate(val, "DoNotRunExtensionsOnOverprovisionedVMs", &v.DoNotRunExtensionsOnOverprovisionedVMs) + delete(rawMsg, key) + case "hostGroup": + err = unpopulate(val, "HostGroup", &v.HostGroup) + delete(rawMsg, key) + case "orchestrationMode": + err = unpopulate(val, "OrchestrationMode", &v.OrchestrationMode) + delete(rawMsg, key) + case "overprovision": + err = unpopulate(val, "Overprovision", &v.Overprovision) + delete(rawMsg, key) + case "platformFaultDomainCount": + err = unpopulate(val, "PlatformFaultDomainCount", &v.PlatformFaultDomainCount) + delete(rawMsg, key) + case "priorityMixPolicy": + err = unpopulate(val, "PriorityMixPolicy", &v.PriorityMixPolicy) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) + delete(rawMsg, key) + case "proximityPlacementGroup": + err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup) + delete(rawMsg, key) + case "resiliencyPolicy": + err = unpopulate(val, "ResiliencyPolicy", &v.ResiliencyPolicy) + delete(rawMsg, key) + case "scaleInPolicy": + err = unpopulate(val, "ScaleInPolicy", &v.ScaleInPolicy) + delete(rawMsg, key) + case "scheduledEventsPolicy": + err = unpopulate(val, "ScheduledEventsPolicy", &v.ScheduledEventsPolicy) + delete(rawMsg, key) + case "singlePlacementGroup": + err = unpopulate(val, "SinglePlacementGroup", &v.SinglePlacementGroup) + delete(rawMsg, key) + case "spotRestorePolicy": + err = unpopulate(val, "SpotRestorePolicy", &v.SpotRestorePolicy) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &v.TimeCreated) + delete(rawMsg, key) + case "uniqueId": + err = unpopulate(val, "UniqueID", &v.UniqueID) + delete(rawMsg, key) + case "upgradePolicy": + err = unpopulate(val, "UpgradePolicy", &v.UpgradePolicy) + delete(rawMsg, key) + case "virtualMachineProfile": + err = unpopulate(val, "VirtualMachineProfile", &v.VirtualMachineProfile) + delete(rawMsg, key) + case "zoneBalance": + err = unpopulate(val, "ZoneBalance", &v.ZoneBalance) + 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 VirtualMachineScaleSetPublicIPAddressConfiguration. +func (v VirtualMachineScaleSetPublicIPAddressConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "sku", v.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetPublicIPAddressConfiguration. +func (v *VirtualMachineScaleSetPublicIPAddressConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &v.SKU) + 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 VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings. +func (v VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "domainNameLabel", v.DomainNameLabel) + populate(objectMap, "domainNameLabelScope", v.DomainNameLabelScope) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings. +func (v *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings) UnmarshalJSON(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 "domainNameLabel": + err = unpopulate(val, "DomainNameLabel", &v.DomainNameLabel) + delete(rawMsg, key) + case "domainNameLabelScope": + err = unpopulate(val, "DomainNameLabelScope", &v.DomainNameLabelScope) + 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 VirtualMachineScaleSetPublicIPAddressConfigurationProperties. +func (v VirtualMachineScaleSetPublicIPAddressConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dnsSettings", v.DNSSettings) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "ipTags", v.IPTags) + populate(objectMap, "idleTimeoutInMinutes", v.IdleTimeoutInMinutes) + populate(objectMap, "publicIPAddressVersion", v.PublicIPAddressVersion) + populate(objectMap, "publicIPPrefix", v.PublicIPPrefix) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetPublicIPAddressConfigurationProperties. +func (v *VirtualMachineScaleSetPublicIPAddressConfigurationProperties) UnmarshalJSON(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 "dnsSettings": + err = unpopulate(val, "DNSSettings", &v.DNSSettings) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "ipTags": + err = unpopulate(val, "IPTags", &v.IPTags) + delete(rawMsg, key) + case "idleTimeoutInMinutes": + err = unpopulate(val, "IdleTimeoutInMinutes", &v.IdleTimeoutInMinutes) + delete(rawMsg, key) + case "publicIPAddressVersion": + err = unpopulate(val, "PublicIPAddressVersion", &v.PublicIPAddressVersion) + delete(rawMsg, key) + case "publicIPPrefix": + err = unpopulate(val, "PublicIPPrefix", &v.PublicIPPrefix) + 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 VirtualMachineScaleSetReimageParameters. +func (v VirtualMachineScaleSetReimageParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "exactVersion", v.ExactVersion) + populate(objectMap, "forceUpdateOSDiskForEphemeral", v.ForceUpdateOSDiskForEphemeral) + populate(objectMap, "instanceIds", v.InstanceIDs) + populate(objectMap, "osProfile", v.OSProfile) + populate(objectMap, "tempDisk", v.TempDisk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetReimageParameters. +func (v *VirtualMachineScaleSetReimageParameters) UnmarshalJSON(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 "exactVersion": + err = unpopulate(val, "ExactVersion", &v.ExactVersion) + delete(rawMsg, key) + case "forceUpdateOSDiskForEphemeral": + err = unpopulate(val, "ForceUpdateOSDiskForEphemeral", &v.ForceUpdateOSDiskForEphemeral) + delete(rawMsg, key) + case "instanceIds": + err = unpopulate(val, "InstanceIDs", &v.InstanceIDs) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &v.OSProfile) + delete(rawMsg, key) + case "tempDisk": + err = unpopulate(val, "TempDisk", &v.TempDisk) + 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 VirtualMachineScaleSetSKU. +func (v VirtualMachineScaleSetSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacity", v.Capacity) + populate(objectMap, "resourceType", v.ResourceType) + populate(objectMap, "sku", v.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetSKU. +func (v *VirtualMachineScaleSetSKU) UnmarshalJSON(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 "capacity": + err = unpopulate(val, "Capacity", &v.Capacity) + delete(rawMsg, key) + case "resourceType": + err = unpopulate(val, "ResourceType", &v.ResourceType) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &v.SKU) + 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 VirtualMachineScaleSetSKUCapacity. +func (v VirtualMachineScaleSetSKUCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "defaultCapacity", v.DefaultCapacity) + populate(objectMap, "maximum", v.Maximum) + populate(objectMap, "minimum", v.Minimum) + populate(objectMap, "scaleType", v.ScaleType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetSKUCapacity. +func (v *VirtualMachineScaleSetSKUCapacity) UnmarshalJSON(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 "defaultCapacity": + err = unpopulate(val, "DefaultCapacity", &v.DefaultCapacity) + delete(rawMsg, key) + case "maximum": + err = unpopulate(val, "Maximum", &v.Maximum) + delete(rawMsg, key) + case "minimum": + err = unpopulate(val, "Minimum", &v.Minimum) + delete(rawMsg, key) + case "scaleType": + err = unpopulate(val, "ScaleType", &v.ScaleType) + 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 VirtualMachineScaleSetStorageProfile. +func (v VirtualMachineScaleSetStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDisks", v.DataDisks) + populate(objectMap, "diskControllerType", v.DiskControllerType) + populate(objectMap, "imageReference", v.ImageReference) + populate(objectMap, "osDisk", v.OSDisk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetStorageProfile. +func (v *VirtualMachineScaleSetStorageProfile) UnmarshalJSON(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 "dataDisks": + err = unpopulate(val, "DataDisks", &v.DataDisks) + delete(rawMsg, key) + case "diskControllerType": + err = unpopulate(val, "DiskControllerType", &v.DiskControllerType) + delete(rawMsg, key) + case "imageReference": + err = unpopulate(val, "ImageReference", &v.ImageReference) + delete(rawMsg, key) + case "osDisk": + err = unpopulate(val, "OSDisk", &v.OSDisk) + 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 VirtualMachineScaleSetUpdate. +func (v VirtualMachineScaleSetUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", v.Identity) + populate(objectMap, "plan", v.Plan) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "sku", v.SKU) + populate(objectMap, "tags", v.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdate. +func (v *VirtualMachineScaleSetUpdate) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &v.Identity) + delete(rawMsg, key) + case "plan": + err = unpopulate(val, "Plan", &v.Plan) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &v.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + 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 VirtualMachineScaleSetUpdateIPConfiguration. +func (v VirtualMachineScaleSetUpdateIPConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateIPConfiguration. +func (v *VirtualMachineScaleSetUpdateIPConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetUpdateIPConfigurationProperties. +func (v VirtualMachineScaleSetUpdateIPConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools) + populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups) + populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools) + populate(objectMap, "loadBalancerInboundNatPools", v.LoadBalancerInboundNatPools) + populate(objectMap, "primary", v.Primary) + populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion) + populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration) + populate(objectMap, "subnet", v.Subnet) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateIPConfigurationProperties. +func (v *VirtualMachineScaleSetUpdateIPConfigurationProperties) UnmarshalJSON(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 "applicationGatewayBackendAddressPools": + err = unpopulate(val, "ApplicationGatewayBackendAddressPools", &v.ApplicationGatewayBackendAddressPools) + delete(rawMsg, key) + case "applicationSecurityGroups": + err = unpopulate(val, "ApplicationSecurityGroups", &v.ApplicationSecurityGroups) + delete(rawMsg, key) + case "loadBalancerBackendAddressPools": + err = unpopulate(val, "LoadBalancerBackendAddressPools", &v.LoadBalancerBackendAddressPools) + delete(rawMsg, key) + case "loadBalancerInboundNatPools": + err = unpopulate(val, "LoadBalancerInboundNatPools", &v.LoadBalancerInboundNatPools) + delete(rawMsg, key) + case "primary": + err = unpopulate(val, "Primary", &v.Primary) + delete(rawMsg, key) + case "privateIPAddressVersion": + err = unpopulate(val, "PrivateIPAddressVersion", &v.PrivateIPAddressVersion) + delete(rawMsg, key) + case "publicIPAddressConfiguration": + err = unpopulate(val, "PublicIPAddressConfiguration", &v.PublicIPAddressConfiguration) + delete(rawMsg, key) + case "subnet": + err = unpopulate(val, "Subnet", &v.Subnet) + 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 VirtualMachineScaleSetUpdateNetworkConfiguration. +func (v VirtualMachineScaleSetUpdateNetworkConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateNetworkConfiguration. +func (v *VirtualMachineScaleSetUpdateNetworkConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetUpdateNetworkConfigurationProperties. +func (v VirtualMachineScaleSetUpdateNetworkConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auxiliaryMode", v.AuxiliaryMode) + populate(objectMap, "auxiliarySku", v.AuxiliarySKU) + populate(objectMap, "dnsSettings", v.DNSSettings) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "disableTcpStateTracking", v.DisableTCPStateTracking) + populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking) + populate(objectMap, "enableFpga", v.EnableFpga) + populate(objectMap, "enableIPForwarding", v.EnableIPForwarding) + populate(objectMap, "ipConfigurations", v.IPConfigurations) + populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup) + populate(objectMap, "primary", v.Primary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateNetworkConfigurationProperties. +func (v *VirtualMachineScaleSetUpdateNetworkConfigurationProperties) UnmarshalJSON(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 "auxiliaryMode": + err = unpopulate(val, "AuxiliaryMode", &v.AuxiliaryMode) + delete(rawMsg, key) + case "auxiliarySku": + err = unpopulate(val, "AuxiliarySKU", &v.AuxiliarySKU) + delete(rawMsg, key) + case "dnsSettings": + err = unpopulate(val, "DNSSettings", &v.DNSSettings) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "disableTcpStateTracking": + err = unpopulate(val, "DisableTCPStateTracking", &v.DisableTCPStateTracking) + delete(rawMsg, key) + case "enableAcceleratedNetworking": + err = unpopulate(val, "EnableAcceleratedNetworking", &v.EnableAcceleratedNetworking) + delete(rawMsg, key) + case "enableFpga": + err = unpopulate(val, "EnableFpga", &v.EnableFpga) + delete(rawMsg, key) + case "enableIPForwarding": + err = unpopulate(val, "EnableIPForwarding", &v.EnableIPForwarding) + delete(rawMsg, key) + case "ipConfigurations": + err = unpopulate(val, "IPConfigurations", &v.IPConfigurations) + delete(rawMsg, key) + case "networkSecurityGroup": + err = unpopulate(val, "NetworkSecurityGroup", &v.NetworkSecurityGroup) + delete(rawMsg, key) + case "primary": + err = unpopulate(val, "Primary", &v.Primary) + 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 VirtualMachineScaleSetUpdateNetworkProfile. +func (v VirtualMachineScaleSetUpdateNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "healthProbe", v.HealthProbe) + populate(objectMap, "networkApiVersion", v.NetworkAPIVersion) + populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateNetworkProfile. +func (v *VirtualMachineScaleSetUpdateNetworkProfile) UnmarshalJSON(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 "healthProbe": + err = unpopulate(val, "HealthProbe", &v.HealthProbe) + delete(rawMsg, key) + case "networkApiVersion": + err = unpopulate(val, "NetworkAPIVersion", &v.NetworkAPIVersion) + delete(rawMsg, key) + case "networkInterfaceConfigurations": + err = unpopulate(val, "NetworkInterfaceConfigurations", &v.NetworkInterfaceConfigurations) + 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 VirtualMachineScaleSetUpdateOSDisk. +func (v VirtualMachineScaleSetUpdateOSDisk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "caching", v.Caching) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "diffDiskSettings", v.DiffDiskSettings) + populate(objectMap, "diskSizeGB", v.DiskSizeGB) + populate(objectMap, "image", v.Image) + populate(objectMap, "managedDisk", v.ManagedDisk) + populate(objectMap, "vhdContainers", v.VhdContainers) + populate(objectMap, "writeAcceleratorEnabled", v.WriteAcceleratorEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateOSDisk. +func (v *VirtualMachineScaleSetUpdateOSDisk) UnmarshalJSON(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 "caching": + err = unpopulate(val, "Caching", &v.Caching) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "diffDiskSettings": + err = unpopulate(val, "DiffDiskSettings", &v.DiffDiskSettings) + delete(rawMsg, key) + case "diskSizeGB": + err = unpopulate(val, "DiskSizeGB", &v.DiskSizeGB) + delete(rawMsg, key) + case "image": + err = unpopulate(val, "Image", &v.Image) + delete(rawMsg, key) + case "managedDisk": + err = unpopulate(val, "ManagedDisk", &v.ManagedDisk) + delete(rawMsg, key) + case "vhdContainers": + err = unpopulate(val, "VhdContainers", &v.VhdContainers) + delete(rawMsg, key) + case "writeAcceleratorEnabled": + err = unpopulate(val, "WriteAcceleratorEnabled", &v.WriteAcceleratorEnabled) + 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 VirtualMachineScaleSetUpdateOSProfile. +func (v VirtualMachineScaleSetUpdateOSProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customData", v.CustomData) + populate(objectMap, "linuxConfiguration", v.LinuxConfiguration) + populate(objectMap, "secrets", v.Secrets) + populate(objectMap, "windowsConfiguration", v.WindowsConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateOSProfile. +func (v *VirtualMachineScaleSetUpdateOSProfile) UnmarshalJSON(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 "customData": + err = unpopulate(val, "CustomData", &v.CustomData) + delete(rawMsg, key) + case "linuxConfiguration": + err = unpopulate(val, "LinuxConfiguration", &v.LinuxConfiguration) + delete(rawMsg, key) + case "secrets": + err = unpopulate(val, "Secrets", &v.Secrets) + delete(rawMsg, key) + case "windowsConfiguration": + err = unpopulate(val, "WindowsConfiguration", &v.WindowsConfiguration) + 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 VirtualMachineScaleSetUpdateProperties. +func (v VirtualMachineScaleSetUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities) + populate(objectMap, "automaticRepairsPolicy", v.AutomaticRepairsPolicy) + populate(objectMap, "doNotRunExtensionsOnOverprovisionedVMs", v.DoNotRunExtensionsOnOverprovisionedVMs) + populate(objectMap, "overprovision", v.Overprovision) + populate(objectMap, "priorityMixPolicy", v.PriorityMixPolicy) + populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup) + populate(objectMap, "resiliencyPolicy", v.ResiliencyPolicy) + populate(objectMap, "scaleInPolicy", v.ScaleInPolicy) + populate(objectMap, "singlePlacementGroup", v.SinglePlacementGroup) + populate(objectMap, "spotRestorePolicy", v.SpotRestorePolicy) + populate(objectMap, "upgradePolicy", v.UpgradePolicy) + populate(objectMap, "virtualMachineProfile", v.VirtualMachineProfile) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateProperties. +func (v *VirtualMachineScaleSetUpdateProperties) UnmarshalJSON(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 "additionalCapabilities": + err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities) + delete(rawMsg, key) + case "automaticRepairsPolicy": + err = unpopulate(val, "AutomaticRepairsPolicy", &v.AutomaticRepairsPolicy) + delete(rawMsg, key) + case "doNotRunExtensionsOnOverprovisionedVMs": + err = unpopulate(val, "DoNotRunExtensionsOnOverprovisionedVMs", &v.DoNotRunExtensionsOnOverprovisionedVMs) + delete(rawMsg, key) + case "overprovision": + err = unpopulate(val, "Overprovision", &v.Overprovision) + delete(rawMsg, key) + case "priorityMixPolicy": + err = unpopulate(val, "PriorityMixPolicy", &v.PriorityMixPolicy) + delete(rawMsg, key) + case "proximityPlacementGroup": + err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup) + delete(rawMsg, key) + case "resiliencyPolicy": + err = unpopulate(val, "ResiliencyPolicy", &v.ResiliencyPolicy) + delete(rawMsg, key) + case "scaleInPolicy": + err = unpopulate(val, "ScaleInPolicy", &v.ScaleInPolicy) + delete(rawMsg, key) + case "singlePlacementGroup": + err = unpopulate(val, "SinglePlacementGroup", &v.SinglePlacementGroup) + delete(rawMsg, key) + case "spotRestorePolicy": + err = unpopulate(val, "SpotRestorePolicy", &v.SpotRestorePolicy) + delete(rawMsg, key) + case "upgradePolicy": + err = unpopulate(val, "UpgradePolicy", &v.UpgradePolicy) + delete(rawMsg, key) + case "virtualMachineProfile": + err = unpopulate(val, "VirtualMachineProfile", &v.VirtualMachineProfile) + 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 VirtualMachineScaleSetUpdatePublicIPAddressConfiguration. +func (v VirtualMachineScaleSetUpdatePublicIPAddressConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdatePublicIPAddressConfiguration. +func (v *VirtualMachineScaleSetUpdatePublicIPAddressConfiguration) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties. +func (v VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dnsSettings", v.DNSSettings) + populate(objectMap, "deleteOption", v.DeleteOption) + populate(objectMap, "idleTimeoutInMinutes", v.IdleTimeoutInMinutes) + populate(objectMap, "publicIPPrefix", v.PublicIPPrefix) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties. +func (v *VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties) UnmarshalJSON(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 "dnsSettings": + err = unpopulate(val, "DNSSettings", &v.DNSSettings) + delete(rawMsg, key) + case "deleteOption": + err = unpopulate(val, "DeleteOption", &v.DeleteOption) + delete(rawMsg, key) + case "idleTimeoutInMinutes": + err = unpopulate(val, "IdleTimeoutInMinutes", &v.IdleTimeoutInMinutes) + delete(rawMsg, key) + case "publicIPPrefix": + err = unpopulate(val, "PublicIPPrefix", &v.PublicIPPrefix) + 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 VirtualMachineScaleSetUpdateStorageProfile. +func (v VirtualMachineScaleSetUpdateStorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDisks", v.DataDisks) + populate(objectMap, "diskControllerType", v.DiskControllerType) + populate(objectMap, "imageReference", v.ImageReference) + populate(objectMap, "osDisk", v.OSDisk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateStorageProfile. +func (v *VirtualMachineScaleSetUpdateStorageProfile) UnmarshalJSON(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 "dataDisks": + err = unpopulate(val, "DataDisks", &v.DataDisks) + delete(rawMsg, key) + case "diskControllerType": + err = unpopulate(val, "DiskControllerType", &v.DiskControllerType) + delete(rawMsg, key) + case "imageReference": + err = unpopulate(val, "ImageReference", &v.ImageReference) + delete(rawMsg, key) + case "osDisk": + err = unpopulate(val, "OSDisk", &v.OSDisk) + 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 VirtualMachineScaleSetUpdateVMProfile. +func (v VirtualMachineScaleSetUpdateVMProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "billingProfile", v.BillingProfile) + populate(objectMap, "diagnosticsProfile", v.DiagnosticsProfile) + populate(objectMap, "extensionProfile", v.ExtensionProfile) + populate(objectMap, "hardwareProfile", v.HardwareProfile) + populate(objectMap, "licenseType", v.LicenseType) + populate(objectMap, "networkProfile", v.NetworkProfile) + populate(objectMap, "osProfile", v.OSProfile) + populate(objectMap, "scheduledEventsProfile", v.ScheduledEventsProfile) + populate(objectMap, "securityProfile", v.SecurityProfile) + populate(objectMap, "storageProfile", v.StorageProfile) + populate(objectMap, "userData", v.UserData) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetUpdateVMProfile. +func (v *VirtualMachineScaleSetUpdateVMProfile) UnmarshalJSON(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 "billingProfile": + err = unpopulate(val, "BillingProfile", &v.BillingProfile) + delete(rawMsg, key) + case "diagnosticsProfile": + err = unpopulate(val, "DiagnosticsProfile", &v.DiagnosticsProfile) + delete(rawMsg, key) + case "extensionProfile": + err = unpopulate(val, "ExtensionProfile", &v.ExtensionProfile) + delete(rawMsg, key) + case "hardwareProfile": + err = unpopulate(val, "HardwareProfile", &v.HardwareProfile) + delete(rawMsg, key) + case "licenseType": + err = unpopulate(val, "LicenseType", &v.LicenseType) + delete(rawMsg, key) + case "networkProfile": + err = unpopulate(val, "NetworkProfile", &v.NetworkProfile) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &v.OSProfile) + delete(rawMsg, key) + case "scheduledEventsProfile": + err = unpopulate(val, "ScheduledEventsProfile", &v.ScheduledEventsProfile) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &v.SecurityProfile) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &v.StorageProfile) + delete(rawMsg, key) + case "userData": + err = unpopulate(val, "UserData", &v.UserData) + 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 VirtualMachineScaleSetVM. +func (v VirtualMachineScaleSetVM) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", v.Etag) + populate(objectMap, "id", v.ID) + populate(objectMap, "identity", v.Identity) + populate(objectMap, "instanceId", v.InstanceID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "plan", v.Plan) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "resources", v.Resources) + populate(objectMap, "sku", v.SKU) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "type", v.Type) + populate(objectMap, "zones", v.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVM. +func (v *VirtualMachineScaleSetVM) UnmarshalJSON(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 "etag": + err = unpopulate(val, "Etag", &v.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &v.Identity) + delete(rawMsg, key) + case "instanceId": + err = unpopulate(val, "InstanceID", &v.InstanceID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "plan": + err = unpopulate(val, "Plan", &v.Plan) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "resources": + err = unpopulate(val, "Resources", &v.Resources) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &v.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &v.Zones) + 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 VirtualMachineScaleSetVMExtension. +func (v VirtualMachineScaleSetVMExtension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMExtension. +func (v *VirtualMachineScaleSetVMExtension) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &v.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetVMExtensionUpdate. +func (v VirtualMachineScaleSetVMExtensionUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMExtensionUpdate. +func (v *VirtualMachineScaleSetVMExtensionUpdate) UnmarshalJSON(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 "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + 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 VirtualMachineScaleSetVMExtensionsListResult. +func (v VirtualMachineScaleSetVMExtensionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMExtensionsListResult. +func (v *VirtualMachineScaleSetVMExtensionsListResult) UnmarshalJSON(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 "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSetVMExtensionsSummary. +func (v VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", v.Name) + populate(objectMap, "statusesSummary", v.StatusesSummary) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMExtensionsSummary. +func (v *VirtualMachineScaleSetVMExtensionsSummary) UnmarshalJSON(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 "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "statusesSummary": + err = unpopulate(val, "StatusesSummary", &v.StatusesSummary) + 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 VirtualMachineScaleSetVMInstanceIDs. +func (v VirtualMachineScaleSetVMInstanceIDs) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "instanceIds", v.InstanceIDs) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMInstanceIDs. +func (v *VirtualMachineScaleSetVMInstanceIDs) UnmarshalJSON(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 "instanceIds": + err = unpopulate(val, "InstanceIDs", &v.InstanceIDs) + 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 VirtualMachineScaleSetVMInstanceRequiredIDs. +func (v VirtualMachineScaleSetVMInstanceRequiredIDs) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "instanceIds", v.InstanceIDs) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMInstanceRequiredIDs. +func (v *VirtualMachineScaleSetVMInstanceRequiredIDs) UnmarshalJSON(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 "instanceIds": + err = unpopulate(val, "InstanceIDs", &v.InstanceIDs) + 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 VirtualMachineScaleSetVMInstanceView. +func (v VirtualMachineScaleSetVMInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assignedHost", v.AssignedHost) + populate(objectMap, "bootDiagnostics", v.BootDiagnostics) + populate(objectMap, "computerName", v.ComputerName) + populate(objectMap, "disks", v.Disks) + populate(objectMap, "extensions", v.Extensions) + populate(objectMap, "hyperVGeneration", v.HyperVGeneration) + populate(objectMap, "maintenanceRedeployStatus", v.MaintenanceRedeployStatus) + populate(objectMap, "osName", v.OSName) + populate(objectMap, "osVersion", v.OSVersion) + populate(objectMap, "placementGroupId", v.PlacementGroupID) + populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain) + populate(objectMap, "platformUpdateDomain", v.PlatformUpdateDomain) + populate(objectMap, "rdpThumbPrint", v.RdpThumbPrint) + populate(objectMap, "statuses", v.Statuses) + populate(objectMap, "vmAgent", v.VMAgent) + populate(objectMap, "vmHealth", v.VMHealth) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMInstanceView. +func (v *VirtualMachineScaleSetVMInstanceView) UnmarshalJSON(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 "assignedHost": + err = unpopulate(val, "AssignedHost", &v.AssignedHost) + delete(rawMsg, key) + case "bootDiagnostics": + err = unpopulate(val, "BootDiagnostics", &v.BootDiagnostics) + delete(rawMsg, key) + case "computerName": + err = unpopulate(val, "ComputerName", &v.ComputerName) + delete(rawMsg, key) + case "disks": + err = unpopulate(val, "Disks", &v.Disks) + delete(rawMsg, key) + case "extensions": + err = unpopulate(val, "Extensions", &v.Extensions) + delete(rawMsg, key) + case "hyperVGeneration": + err = unpopulate(val, "HyperVGeneration", &v.HyperVGeneration) + delete(rawMsg, key) + case "maintenanceRedeployStatus": + err = unpopulate(val, "MaintenanceRedeployStatus", &v.MaintenanceRedeployStatus) + delete(rawMsg, key) + case "osName": + err = unpopulate(val, "OSName", &v.OSName) + delete(rawMsg, key) + case "osVersion": + err = unpopulate(val, "OSVersion", &v.OSVersion) + delete(rawMsg, key) + case "placementGroupId": + err = unpopulate(val, "PlacementGroupID", &v.PlacementGroupID) + delete(rawMsg, key) + case "platformFaultDomain": + err = unpopulate(val, "PlatformFaultDomain", &v.PlatformFaultDomain) + delete(rawMsg, key) + case "platformUpdateDomain": + err = unpopulate(val, "PlatformUpdateDomain", &v.PlatformUpdateDomain) + delete(rawMsg, key) + case "rdpThumbPrint": + err = unpopulate(val, "RdpThumbPrint", &v.RdpThumbPrint) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &v.Statuses) + delete(rawMsg, key) + case "vmAgent": + err = unpopulate(val, "VMAgent", &v.VMAgent) + delete(rawMsg, key) + case "vmHealth": + err = unpopulate(val, "VMHealth", &v.VMHealth) + 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 VirtualMachineScaleSetVMListResult. +func (v VirtualMachineScaleSetVMListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMListResult. +func (v *VirtualMachineScaleSetVMListResult) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineScaleSetVMNetworkProfileConfiguration. +func (v VirtualMachineScaleSetVMNetworkProfileConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMNetworkProfileConfiguration. +func (v *VirtualMachineScaleSetVMNetworkProfileConfiguration) UnmarshalJSON(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 "networkInterfaceConfigurations": + err = unpopulate(val, "NetworkInterfaceConfigurations", &v.NetworkInterfaceConfigurations) + 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 VirtualMachineScaleSetVMProfile. +func (v VirtualMachineScaleSetVMProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicationProfile", v.ApplicationProfile) + populate(objectMap, "billingProfile", v.BillingProfile) + populate(objectMap, "capacityReservation", v.CapacityReservation) + populate(objectMap, "diagnosticsProfile", v.DiagnosticsProfile) + populate(objectMap, "evictionPolicy", v.EvictionPolicy) + populate(objectMap, "extensionProfile", v.ExtensionProfile) + populate(objectMap, "hardwareProfile", v.HardwareProfile) + populate(objectMap, "licenseType", v.LicenseType) + populate(objectMap, "networkProfile", v.NetworkProfile) + populate(objectMap, "osProfile", v.OSProfile) + populate(objectMap, "priority", v.Priority) + populate(objectMap, "scheduledEventsProfile", v.ScheduledEventsProfile) + populate(objectMap, "securityPostureReference", v.SecurityPostureReference) + populate(objectMap, "securityProfile", v.SecurityProfile) + populate(objectMap, "serviceArtifactReference", v.ServiceArtifactReference) + populate(objectMap, "storageProfile", v.StorageProfile) + populateDateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated) + populate(objectMap, "userData", v.UserData) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMProfile. +func (v *VirtualMachineScaleSetVMProfile) UnmarshalJSON(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 "applicationProfile": + err = unpopulate(val, "ApplicationProfile", &v.ApplicationProfile) + delete(rawMsg, key) + case "billingProfile": + err = unpopulate(val, "BillingProfile", &v.BillingProfile) + delete(rawMsg, key) + case "capacityReservation": + err = unpopulate(val, "CapacityReservation", &v.CapacityReservation) + delete(rawMsg, key) + case "diagnosticsProfile": + err = unpopulate(val, "DiagnosticsProfile", &v.DiagnosticsProfile) + delete(rawMsg, key) + case "evictionPolicy": + err = unpopulate(val, "EvictionPolicy", &v.EvictionPolicy) + delete(rawMsg, key) + case "extensionProfile": + err = unpopulate(val, "ExtensionProfile", &v.ExtensionProfile) + delete(rawMsg, key) + case "hardwareProfile": + err = unpopulate(val, "HardwareProfile", &v.HardwareProfile) + delete(rawMsg, key) + case "licenseType": + err = unpopulate(val, "LicenseType", &v.LicenseType) + delete(rawMsg, key) + case "networkProfile": + err = unpopulate(val, "NetworkProfile", &v.NetworkProfile) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &v.OSProfile) + delete(rawMsg, key) + case "priority": + err = unpopulate(val, "Priority", &v.Priority) + delete(rawMsg, key) + case "scheduledEventsProfile": + err = unpopulate(val, "ScheduledEventsProfile", &v.ScheduledEventsProfile) + delete(rawMsg, key) + case "securityPostureReference": + err = unpopulate(val, "SecurityPostureReference", &v.SecurityPostureReference) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &v.SecurityProfile) + delete(rawMsg, key) + case "serviceArtifactReference": + err = unpopulate(val, "ServiceArtifactReference", &v.ServiceArtifactReference) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &v.StorageProfile) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &v.TimeCreated) + delete(rawMsg, key) + case "userData": + err = unpopulate(val, "UserData", &v.UserData) + 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 VirtualMachineScaleSetVMProperties. +func (v VirtualMachineScaleSetVMProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities) + populate(objectMap, "availabilitySet", v.AvailabilitySet) + populate(objectMap, "diagnosticsProfile", v.DiagnosticsProfile) + populate(objectMap, "hardwareProfile", v.HardwareProfile) + populate(objectMap, "instanceView", v.InstanceView) + populate(objectMap, "latestModelApplied", v.LatestModelApplied) + populate(objectMap, "licenseType", v.LicenseType) + populate(objectMap, "modelDefinitionApplied", v.ModelDefinitionApplied) + populate(objectMap, "networkProfile", v.NetworkProfile) + populate(objectMap, "networkProfileConfiguration", v.NetworkProfileConfiguration) + populate(objectMap, "osProfile", v.OSProfile) + populate(objectMap, "protectionPolicy", v.ProtectionPolicy) + populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "securityProfile", v.SecurityProfile) + populate(objectMap, "storageProfile", v.StorageProfile) + populateDateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated) + populate(objectMap, "userData", v.UserData) + populate(objectMap, "vmId", v.VMID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMProperties. +func (v *VirtualMachineScaleSetVMProperties) UnmarshalJSON(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 "additionalCapabilities": + err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities) + delete(rawMsg, key) + case "availabilitySet": + err = unpopulate(val, "AvailabilitySet", &v.AvailabilitySet) + delete(rawMsg, key) + case "diagnosticsProfile": + err = unpopulate(val, "DiagnosticsProfile", &v.DiagnosticsProfile) + delete(rawMsg, key) + case "hardwareProfile": + err = unpopulate(val, "HardwareProfile", &v.HardwareProfile) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &v.InstanceView) + delete(rawMsg, key) + case "latestModelApplied": + err = unpopulate(val, "LatestModelApplied", &v.LatestModelApplied) + delete(rawMsg, key) + case "licenseType": + err = unpopulate(val, "LicenseType", &v.LicenseType) + delete(rawMsg, key) + case "modelDefinitionApplied": + err = unpopulate(val, "ModelDefinitionApplied", &v.ModelDefinitionApplied) + delete(rawMsg, key) + case "networkProfile": + err = unpopulate(val, "NetworkProfile", &v.NetworkProfile) + delete(rawMsg, key) + case "networkProfileConfiguration": + err = unpopulate(val, "NetworkProfileConfiguration", &v.NetworkProfileConfiguration) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &v.OSProfile) + delete(rawMsg, key) + case "protectionPolicy": + err = unpopulate(val, "ProtectionPolicy", &v.ProtectionPolicy) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) + delete(rawMsg, key) + case "securityProfile": + err = unpopulate(val, "SecurityProfile", &v.SecurityProfile) + delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &v.StorageProfile) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateDateTimeRFC3339(val, "TimeCreated", &v.TimeCreated) + delete(rawMsg, key) + case "userData": + err = unpopulate(val, "UserData", &v.UserData) + delete(rawMsg, key) + case "vmId": + err = unpopulate(val, "VMID", &v.VMID) + 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 VirtualMachineScaleSetVMProtectionPolicy. +func (v VirtualMachineScaleSetVMProtectionPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "protectFromScaleIn", v.ProtectFromScaleIn) + populate(objectMap, "protectFromScaleSetActions", v.ProtectFromScaleSetActions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMProtectionPolicy. +func (v *VirtualMachineScaleSetVMProtectionPolicy) UnmarshalJSON(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 "protectFromScaleIn": + err = unpopulate(val, "ProtectFromScaleIn", &v.ProtectFromScaleIn) + delete(rawMsg, key) + case "protectFromScaleSetActions": + err = unpopulate(val, "ProtectFromScaleSetActions", &v.ProtectFromScaleSetActions) + 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 VirtualMachineScaleSetVMReimageParameters. +func (v VirtualMachineScaleSetVMReimageParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "exactVersion", v.ExactVersion) + populate(objectMap, "forceUpdateOSDiskForEphemeral", v.ForceUpdateOSDiskForEphemeral) + populate(objectMap, "osProfile", v.OSProfile) + populate(objectMap, "tempDisk", v.TempDisk) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetVMReimageParameters. +func (v *VirtualMachineScaleSetVMReimageParameters) UnmarshalJSON(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 "exactVersion": + err = unpopulate(val, "ExactVersion", &v.ExactVersion) + delete(rawMsg, key) + case "forceUpdateOSDiskForEphemeral": + err = unpopulate(val, "ForceUpdateOSDiskForEphemeral", &v.ForceUpdateOSDiskForEphemeral) + delete(rawMsg, key) + case "osProfile": + err = unpopulate(val, "OSProfile", &v.OSProfile) + delete(rawMsg, key) + case "tempDisk": + err = unpopulate(val, "TempDisk", &v.TempDisk) + 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 VirtualMachineSize. +func (v VirtualMachineSize) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxDataDiskCount", v.MaxDataDiskCount) + populate(objectMap, "memoryInMB", v.MemoryInMB) + populate(objectMap, "name", v.Name) + populate(objectMap, "numberOfCores", v.NumberOfCores) + populate(objectMap, "osDiskSizeInMB", v.OSDiskSizeInMB) + populate(objectMap, "resourceDiskSizeInMB", v.ResourceDiskSizeInMB) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineSize. +func (v *VirtualMachineSize) UnmarshalJSON(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 "maxDataDiskCount": + err = unpopulate(val, "MaxDataDiskCount", &v.MaxDataDiskCount) + delete(rawMsg, key) + case "memoryInMB": + err = unpopulate(val, "MemoryInMB", &v.MemoryInMB) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "numberOfCores": + err = unpopulate(val, "NumberOfCores", &v.NumberOfCores) + delete(rawMsg, key) + case "osDiskSizeInMB": + err = unpopulate(val, "OSDiskSizeInMB", &v.OSDiskSizeInMB) + delete(rawMsg, key) + case "resourceDiskSizeInMB": + err = unpopulate(val, "ResourceDiskSizeInMB", &v.ResourceDiskSizeInMB) + 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 VirtualMachineSizeListResult. +func (v VirtualMachineSizeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineSizeListResult. +func (v *VirtualMachineSizeListResult) UnmarshalJSON(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 "value": + err = unpopulate(val, "Value", &v.Value) + 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 VirtualMachineSoftwarePatchProperties. +func (v VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activityId", v.ActivityID) + populate(objectMap, "assessmentState", v.AssessmentState) + populate(objectMap, "classifications", v.Classifications) + populate(objectMap, "kbId", v.KbID) + populateDateTimeRFC3339(objectMap, "lastModifiedDateTime", v.LastModifiedDateTime) + populate(objectMap, "name", v.Name) + populate(objectMap, "patchId", v.PatchID) + populateDateTimeRFC3339(objectMap, "publishedDate", v.PublishedDate) + populate(objectMap, "rebootBehavior", v.RebootBehavior) + populate(objectMap, "version", v.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineSoftwarePatchProperties. +func (v *VirtualMachineSoftwarePatchProperties) UnmarshalJSON(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 "activityId": + err = unpopulate(val, "ActivityID", &v.ActivityID) + delete(rawMsg, key) + case "assessmentState": + err = unpopulate(val, "AssessmentState", &v.AssessmentState) + delete(rawMsg, key) + case "classifications": + err = unpopulate(val, "Classifications", &v.Classifications) + delete(rawMsg, key) + case "kbId": + err = unpopulate(val, "KbID", &v.KbID) + delete(rawMsg, key) + case "lastModifiedDateTime": + err = unpopulateDateTimeRFC3339(val, "LastModifiedDateTime", &v.LastModifiedDateTime) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "patchId": + err = unpopulate(val, "PatchID", &v.PatchID) + delete(rawMsg, key) + case "publishedDate": + err = unpopulateDateTimeRFC3339(val, "PublishedDate", &v.PublishedDate) + delete(rawMsg, key) + case "rebootBehavior": + err = unpopulate(val, "RebootBehavior", &v.RebootBehavior) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &v.Version) + 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 VirtualMachineStatusCodeCount. +func (v VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", v.Code) + populate(objectMap, "count", v.Count) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineStatusCodeCount. +func (v *VirtualMachineStatusCodeCount) UnmarshalJSON(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 "code": + err = unpopulate(val, "Code", &v.Code) + delete(rawMsg, key) + case "count": + err = unpopulate(val, "Count", &v.Count) + 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 VirtualMachineUpdate. +func (v VirtualMachineUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", v.Identity) + populate(objectMap, "plan", v.Plan) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "zones", v.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineUpdate. +func (v *VirtualMachineUpdate) UnmarshalJSON(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 "identity": + err = unpopulate(val, "Identity", &v.Identity) + delete(rawMsg, key) + case "plan": + err = unpopulate(val, "Plan", &v.Plan) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &v.Tags) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &v.Zones) + 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 WinRMConfiguration. +func (w WinRMConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "listeners", w.Listeners) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WinRMConfiguration. +func (w *WinRMConfiguration) UnmarshalJSON(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 "listeners": + err = unpopulate(val, "Listeners", &w.Listeners) + 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 WinRMListener. +func (w WinRMListener) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "certificateUrl", w.CertificateURL) + populate(objectMap, "protocol", w.Protocol) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WinRMListener. +func (w *WinRMListener) UnmarshalJSON(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 "certificateUrl": + err = unpopulate(val, "CertificateURL", &w.CertificateURL) + delete(rawMsg, key) + case "protocol": + err = unpopulate(val, "Protocol", &w.Protocol) + 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 WindowsConfiguration. +func (w WindowsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalUnattendContent", w.AdditionalUnattendContent) + populate(objectMap, "enableAutomaticUpdates", w.EnableAutomaticUpdates) + populate(objectMap, "enableVMAgentPlatformUpdates", w.EnableVMAgentPlatformUpdates) + populate(objectMap, "patchSettings", w.PatchSettings) + populate(objectMap, "provisionVMAgent", w.ProvisionVMAgent) + populate(objectMap, "timeZone", w.TimeZone) + populate(objectMap, "winRM", w.WinRM) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WindowsConfiguration. +func (w *WindowsConfiguration) UnmarshalJSON(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 "additionalUnattendContent": + err = unpopulate(val, "AdditionalUnattendContent", &w.AdditionalUnattendContent) + delete(rawMsg, key) + case "enableAutomaticUpdates": + err = unpopulate(val, "EnableAutomaticUpdates", &w.EnableAutomaticUpdates) + delete(rawMsg, key) + case "enableVMAgentPlatformUpdates": + err = unpopulate(val, "EnableVMAgentPlatformUpdates", &w.EnableVMAgentPlatformUpdates) + delete(rawMsg, key) + case "patchSettings": + err = unpopulate(val, "PatchSettings", &w.PatchSettings) + delete(rawMsg, key) + case "provisionVMAgent": + err = unpopulate(val, "ProvisionVMAgent", &w.ProvisionVMAgent) + delete(rawMsg, key) + case "timeZone": + err = unpopulate(val, "TimeZone", &w.TimeZone) + delete(rawMsg, key) + case "winRM": + err = unpopulate(val, "WinRM", &w.WinRM) + 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 WindowsParameters. +func (w WindowsParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "classificationsToInclude", w.ClassificationsToInclude) + populate(objectMap, "excludeKbsRequiringReboot", w.ExcludeKbsRequiringReboot) + populate(objectMap, "kbNumbersToExclude", w.KbNumbersToExclude) + populate(objectMap, "kbNumbersToInclude", w.KbNumbersToInclude) + populateDateTimeRFC3339(objectMap, "maxPatchPublishDate", w.MaxPatchPublishDate) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WindowsParameters. +func (w *WindowsParameters) UnmarshalJSON(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 "classificationsToInclude": + err = unpopulate(val, "ClassificationsToInclude", &w.ClassificationsToInclude) + delete(rawMsg, key) + case "excludeKbsRequiringReboot": + err = unpopulate(val, "ExcludeKbsRequiringReboot", &w.ExcludeKbsRequiringReboot) + delete(rawMsg, key) + case "kbNumbersToExclude": + err = unpopulate(val, "KbNumbersToExclude", &w.KbNumbersToExclude) + delete(rawMsg, key) + case "kbNumbersToInclude": + err = unpopulate(val, "KbNumbersToInclude", &w.KbNumbersToInclude) + delete(rawMsg, key) + case "maxPatchPublishDate": + err = unpopulateDateTimeRFC3339(val, "MaxPatchPublishDate", &w.MaxPatchPublishDate) + 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 WindowsVMGuestPatchAutomaticByPlatformSettings. +func (w WindowsVMGuestPatchAutomaticByPlatformSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "bypassPlatformSafetyChecksOnUserSchedule", w.BypassPlatformSafetyChecksOnUserSchedule) + populate(objectMap, "rebootSetting", w.RebootSetting) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WindowsVMGuestPatchAutomaticByPlatformSettings. +func (w *WindowsVMGuestPatchAutomaticByPlatformSettings) UnmarshalJSON(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 "bypassPlatformSafetyChecksOnUserSchedule": + err = unpopulate(val, "BypassPlatformSafetyChecksOnUserSchedule", &w.BypassPlatformSafetyChecksOnUserSchedule) + delete(rawMsg, key) + case "rebootSetting": + err = unpopulate(val, "RebootSetting", &w.RebootSetting) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil || string(data) == "null" { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_operations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/operations_client.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_operations_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/operations_client.go index 4bc14640..7c438a56 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_operations_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/operations_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -12,8 +12,6 @@ import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -22,47 +20,39 @@ import ( // OperationsClient contains the methods for the Operations group. // Don't use this type directly, use NewOperationsClient() instead. type OperationsClient struct { - host string - pl runtime.Pipeline + internal *arm.Client } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &OperationsClient{ - host: ep, - pl: pl, + internal: cl, } return client, nil } // NewListPager - Gets a list of compute operations. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2024-03-01 +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return false }, Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "OperationsClient.NewListPager") req, err := client.listCreateRequest(ctx, options) if err != nil { return OperationsClientListResponse{}, err } - resp, err := client.pl.Do(req) + resp, err := client.internal.Pipeline().Do(req) if err != nil { return OperationsClientListResponse{}, err } @@ -71,18 +61,19 @@ func (client *OperationsClient) NewListPager(options *OperationsClientListOption } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } // listCreateRequest creates the List request. func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Compute/operations" - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go new file mode 100644 index 00000000..5ea3446d --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go @@ -0,0 +1,1986 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcompute + +// AvailabilitySetsClientCreateOrUpdateOptions contains the optional parameters for the AvailabilitySetsClient.CreateOrUpdate +// method. +type AvailabilitySetsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method. +type AvailabilitySetsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method. +type AvailabilitySetsClientGetOptions struct { + // placeholder for future optional parameters +} + +// AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.NewListAvailableSizesPager +// method. +type AvailabilitySetsClientListAvailableSizesOptions struct { + // placeholder for future optional parameters +} + +// AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.NewListBySubscriptionPager +// method. +type AvailabilitySetsClientListBySubscriptionOptions struct { + // The expand expression to apply to the operation. Allowed values are 'instanceView'. + Expand *string +} + +// AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.NewListPager method. +type AvailabilitySetsClientListOptions struct { + // placeholder for future optional parameters +} + +// AvailabilitySetsClientUpdateOptions contains the optional parameters for the AvailabilitySetsClient.Update method. +type AvailabilitySetsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// CapacityReservationGroupsClientCreateOrUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.CreateOrUpdate +// method. +type CapacityReservationGroupsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete +// method. +type CapacityReservationGroupsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get +// method. +type CapacityReservationGroupsClientGetOptions struct { + // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity + // reservations under the capacity reservation group which is a snapshot of the + // runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations. + Expand *CapacityReservationGroupInstanceViewTypes +} + +// CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListByResourceGroupPager +// method. +type CapacityReservationGroupsClientListByResourceGroupOptions struct { + // The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet + // VM Instance or both resource Ids which are associated to capacity + // reservation group in the response. + Expand *ExpandTypesForGetCapacityReservationGroups +} + +// CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListBySubscriptionPager +// method. +type CapacityReservationGroupsClientListBySubscriptionOptions struct { + // The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet + // VM Instance or both resource Ids which are associated to capacity + // reservation group in the response. + Expand *ExpandTypesForGetCapacityReservationGroups + + // The query option to fetch Capacity Reservation Group Resource Ids. + // 'CreatedInSubscription' enables fetching Resource Ids for all capacity reservation group resources created in the subscription. + // 'SharedWithSubscription' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription. + // 'All' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription and created + // in the subscription. + ResourceIDsOnly *ResourceIDOptionsForGetCapacityReservationGroups +} + +// CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update +// method. +type CapacityReservationGroupsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// CapacityReservationsClientBeginCreateOrUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginCreateOrUpdate +// method. +type CapacityReservationsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CapacityReservationsClientBeginDeleteOptions contains the optional parameters for the CapacityReservationsClient.BeginDelete +// method. +type CapacityReservationsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CapacityReservationsClientBeginUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginUpdate +// method. +type CapacityReservationsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CapacityReservationsClientGetOptions contains the optional parameters for the CapacityReservationsClient.Get method. +type CapacityReservationsClientGetOptions struct { + // The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity + // reservation that is managed by the platform and can change outside of + // control plane operations. + Expand *CapacityReservationInstanceViewTypes +} + +// CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.NewListByCapacityReservationGroupPager +// method. +type CapacityReservationsClientListByCapacityReservationGroupOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceOperatingSystemsClientGetOSFamilyOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSFamily +// method. +type CloudServiceOperatingSystemsClientGetOSFamilyOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceOperatingSystemsClientGetOSVersionOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSVersion +// method. +type CloudServiceOperatingSystemsClientGetOSVersionOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceOperatingSystemsClientListOSFamiliesOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.NewListOSFamiliesPager +// method. +type CloudServiceOperatingSystemsClientListOSFamiliesOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceOperatingSystemsClientListOSVersionsOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.NewListOSVersionsPager +// method. +type CloudServiceOperatingSystemsClientListOSVersionsOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceRoleInstancesClientBeginDeleteOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginDelete +// method. +type CloudServiceRoleInstancesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServiceRoleInstancesClientBeginRebuildOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRebuild +// method. +type CloudServiceRoleInstancesClientBeginRebuildOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServiceRoleInstancesClientBeginReimageOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginReimage +// method. +type CloudServiceRoleInstancesClientBeginReimageOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServiceRoleInstancesClientBeginRestartOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRestart +// method. +type CloudServiceRoleInstancesClientBeginRestartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServiceRoleInstancesClientGetInstanceViewOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetInstanceView +// method. +type CloudServiceRoleInstancesClientGetInstanceViewOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceRoleInstancesClientGetOptions contains the optional parameters for the CloudServiceRoleInstancesClient.Get +// method. +type CloudServiceRoleInstancesClientGetOptions struct { + // The expand expression to apply to the operation. 'UserData' is not supported for cloud services. + Expand *InstanceViewTypes +} + +// CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetRemoteDesktopFile +// method. +type CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceRoleInstancesClientListOptions contains the optional parameters for the CloudServiceRoleInstancesClient.NewListPager +// method. +type CloudServiceRoleInstancesClientListOptions struct { + // The expand expression to apply to the operation. 'UserData' is not supported for cloud services. + Expand *InstanceViewTypes +} + +// CloudServiceRolesClientGetOptions contains the optional parameters for the CloudServiceRolesClient.Get method. +type CloudServiceRolesClientGetOptions struct { + // placeholder for future optional parameters +} + +// CloudServiceRolesClientListOptions contains the optional parameters for the CloudServiceRolesClient.NewListPager method. +type CloudServiceRolesClientListOptions struct { + // placeholder for future optional parameters +} + +// CloudServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudServicesClient.BeginCreateOrUpdate +// method. +type CloudServicesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginDeleteInstancesOptions contains the optional parameters for the CloudServicesClient.BeginDeleteInstances +// method. +type CloudServicesClientBeginDeleteInstancesOptions struct { + // List of cloud service role instance names. + Parameters *RoleInstances + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginDeleteOptions contains the optional parameters for the CloudServicesClient.BeginDelete method. +type CloudServicesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginPowerOffOptions contains the optional parameters for the CloudServicesClient.BeginPowerOff method. +type CloudServicesClientBeginPowerOffOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginRebuildOptions contains the optional parameters for the CloudServicesClient.BeginRebuild method. +type CloudServicesClientBeginRebuildOptions struct { + // List of cloud service role instance names. + Parameters *RoleInstances + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginReimageOptions contains the optional parameters for the CloudServicesClient.BeginReimage method. +type CloudServicesClientBeginReimageOptions struct { + // List of cloud service role instance names. + Parameters *RoleInstances + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginRestartOptions contains the optional parameters for the CloudServicesClient.BeginRestart method. +type CloudServicesClientBeginRestartOptions struct { + // List of cloud service role instance names. + Parameters *RoleInstances + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginStartOptions contains the optional parameters for the CloudServicesClient.BeginStart method. +type CloudServicesClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientBeginUpdateOptions contains the optional parameters for the CloudServicesClient.BeginUpdate method. +type CloudServicesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesClientGetInstanceViewOptions contains the optional parameters for the CloudServicesClient.GetInstanceView +// method. +type CloudServicesClientGetInstanceViewOptions struct { + // placeholder for future optional parameters +} + +// CloudServicesClientGetOptions contains the optional parameters for the CloudServicesClient.Get method. +type CloudServicesClientGetOptions struct { + // placeholder for future optional parameters +} + +// CloudServicesClientListAllOptions contains the optional parameters for the CloudServicesClient.NewListAllPager method. +type CloudServicesClientListAllOptions struct { + // placeholder for future optional parameters +} + +// CloudServicesClientListOptions contains the optional parameters for the CloudServicesClient.NewListPager method. +type CloudServicesClientListOptions struct { + // placeholder for future optional parameters +} + +// CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.BeginWalkUpdateDomain +// method. +type CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CloudServicesUpdateDomainClientGetUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.GetUpdateDomain +// method. +type CloudServicesUpdateDomainClientGetUpdateDomainOptions struct { + // placeholder for future optional parameters +} + +// CloudServicesUpdateDomainClientListUpdateDomainsOptions contains the optional parameters for the CloudServicesUpdateDomainClient.NewListUpdateDomainsPager +// method. +type CloudServicesUpdateDomainClientListUpdateDomainsOptions struct { + // placeholder for future optional parameters +} + +// CommunityGalleriesClientGetOptions contains the optional parameters for the CommunityGalleriesClient.Get method. +type CommunityGalleriesClientGetOptions struct { + // placeholder for future optional parameters +} + +// CommunityGalleryImageVersionsClientGetOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.Get +// method. +type CommunityGalleryImageVersionsClientGetOptions struct { + // placeholder for future optional parameters +} + +// CommunityGalleryImageVersionsClientListOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.NewListPager +// method. +type CommunityGalleryImageVersionsClientListOptions struct { + // placeholder for future optional parameters +} + +// CommunityGalleryImagesClientGetOptions contains the optional parameters for the CommunityGalleryImagesClient.Get method. +type CommunityGalleryImagesClientGetOptions struct { + // placeholder for future optional parameters +} + +// CommunityGalleryImagesClientListOptions contains the optional parameters for the CommunityGalleryImagesClient.NewListPager +// method. +type CommunityGalleryImagesClientListOptions struct { + // placeholder for future optional parameters +} + +// DedicatedHostGroupsClientCreateOrUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.CreateOrUpdate +// method. +type DedicatedHostGroupsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete method. +type DedicatedHostGroupsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method. +type DedicatedHostGroupsClientGetOptions struct { + // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated + // hosts under the dedicated host group. 'UserData' is not supported for + // dedicated host group. + Expand *InstanceViewTypes +} + +// DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListByResourceGroupPager +// method. +type DedicatedHostGroupsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListBySubscriptionPager +// method. +type DedicatedHostGroupsClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// DedicatedHostGroupsClientUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.Update method. +type DedicatedHostGroupsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// DedicatedHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginCreateOrUpdate +// method. +type DedicatedHostsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DedicatedHostsClientBeginDeleteOptions contains the optional parameters for the DedicatedHostsClient.BeginDelete method. +type DedicatedHostsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DedicatedHostsClientBeginRedeployOptions contains the optional parameters for the DedicatedHostsClient.BeginRedeploy method. +type DedicatedHostsClientBeginRedeployOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DedicatedHostsClientBeginRestartOptions contains the optional parameters for the DedicatedHostsClient.BeginRestart method. +type DedicatedHostsClientBeginRestartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DedicatedHostsClientBeginUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginUpdate method. +type DedicatedHostsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DedicatedHostsClientGetOptions contains the optional parameters for the DedicatedHostsClient.Get method. +type DedicatedHostsClientGetOptions struct { + // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated + // host. 'UserData' is not supported for dedicated host. + Expand *InstanceViewTypes +} + +// DedicatedHostsClientListAvailableSizesOptions contains the optional parameters for the DedicatedHostsClient.NewListAvailableSizesPager +// method. +type DedicatedHostsClientListAvailableSizesOptions struct { + // placeholder for future optional parameters +} + +// DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.NewListByHostGroupPager +// method. +type DedicatedHostsClientListByHostGroupOptions struct { + // placeholder for future optional parameters +} + +// DiskAccessesClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginCreateOrUpdate +// method. +type DiskAccessesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginDeleteAPrivateEndpointConnection +// method. +type DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskAccessesClientBeginDeleteOptions contains the optional parameters for the DiskAccessesClient.BeginDelete method. +type DiskAccessesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginUpdateAPrivateEndpointConnection +// method. +type DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskAccessesClientBeginUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginUpdate method. +type DiskAccessesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskAccessesClientGetAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.GetAPrivateEndpointConnection +// method. +type DiskAccessesClientGetAPrivateEndpointConnectionOptions struct { + // placeholder for future optional parameters +} + +// DiskAccessesClientGetOptions contains the optional parameters for the DiskAccessesClient.Get method. +type DiskAccessesClientGetOptions struct { + // placeholder for future optional parameters +} + +// DiskAccessesClientGetPrivateLinkResourcesOptions contains the optional parameters for the DiskAccessesClient.GetPrivateLinkResources +// method. +type DiskAccessesClientGetPrivateLinkResourcesOptions struct { + // placeholder for future optional parameters +} + +// DiskAccessesClientListByResourceGroupOptions contains the optional parameters for the DiskAccessesClient.NewListByResourceGroupPager +// method. +type DiskAccessesClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// DiskAccessesClientListOptions contains the optional parameters for the DiskAccessesClient.NewListPager method. +type DiskAccessesClientListOptions struct { + // placeholder for future optional parameters +} + +// DiskAccessesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the DiskAccessesClient.NewListPrivateEndpointConnectionsPager +// method. +type DiskAccessesClientListPrivateEndpointConnectionsOptions struct { + // placeholder for future optional parameters +} + +// DiskEncryptionSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginCreateOrUpdate +// method. +type DiskEncryptionSetsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskEncryptionSetsClientBeginDeleteOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginDelete +// method. +type DiskEncryptionSetsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskEncryptionSetsClientBeginUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginUpdate +// method. +type DiskEncryptionSetsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskEncryptionSetsClientGetOptions contains the optional parameters for the DiskEncryptionSetsClient.Get method. +type DiskEncryptionSetsClientGetOptions struct { + // placeholder for future optional parameters +} + +// DiskEncryptionSetsClientListAssociatedResourcesOptions contains the optional parameters for the DiskEncryptionSetsClient.NewListAssociatedResourcesPager +// method. +type DiskEncryptionSetsClientListAssociatedResourcesOptions struct { + // placeholder for future optional parameters +} + +// DiskEncryptionSetsClientListByResourceGroupOptions contains the optional parameters for the DiskEncryptionSetsClient.NewListByResourceGroupPager +// method. +type DiskEncryptionSetsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// DiskEncryptionSetsClientListOptions contains the optional parameters for the DiskEncryptionSetsClient.NewListPager method. +type DiskEncryptionSetsClientListOptions struct { + // placeholder for future optional parameters +} + +// DiskRestorePointClientBeginGrantAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginGrantAccess +// method. +type DiskRestorePointClientBeginGrantAccessOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskRestorePointClientBeginRevokeAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginRevokeAccess +// method. +type DiskRestorePointClientBeginRevokeAccessOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DiskRestorePointClientGetOptions contains the optional parameters for the DiskRestorePointClient.Get method. +type DiskRestorePointClientGetOptions struct { + // placeholder for future optional parameters +} + +// DiskRestorePointClientListByRestorePointOptions contains the optional parameters for the DiskRestorePointClient.NewListByRestorePointPager +// method. +type DiskRestorePointClientListByRestorePointOptions struct { + // placeholder for future optional parameters +} + +// DisksClientBeginCreateOrUpdateOptions contains the optional parameters for the DisksClient.BeginCreateOrUpdate method. +type DisksClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DisksClientBeginDeleteOptions contains the optional parameters for the DisksClient.BeginDelete method. +type DisksClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DisksClientBeginGrantAccessOptions contains the optional parameters for the DisksClient.BeginGrantAccess method. +type DisksClientBeginGrantAccessOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DisksClientBeginRevokeAccessOptions contains the optional parameters for the DisksClient.BeginRevokeAccess method. +type DisksClientBeginRevokeAccessOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DisksClientBeginUpdateOptions contains the optional parameters for the DisksClient.BeginUpdate method. +type DisksClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DisksClientGetOptions contains the optional parameters for the DisksClient.Get method. +type DisksClientGetOptions struct { + // placeholder for future optional parameters +} + +// DisksClientListByResourceGroupOptions contains the optional parameters for the DisksClient.NewListByResourceGroupPager +// method. +type DisksClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// DisksClientListOptions contains the optional parameters for the DisksClient.NewListPager method. +type DisksClientListOptions struct { + // placeholder for future optional parameters +} + +// GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate +// method. +type GalleriesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method. +type GalleriesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleriesClientBeginUpdateOptions contains the optional parameters for the GalleriesClient.BeginUpdate method. +type GalleriesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method. +type GalleriesClientGetOptions struct { + // The expand query option to apply on the operation. + Expand *GalleryExpandParams + + // The select expression to apply on the operation. + Select *SelectPermissions +} + +// GalleriesClientListByResourceGroupOptions contains the optional parameters for the GalleriesClient.NewListByResourceGroupPager +// method. +type GalleriesClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// GalleriesClientListOptions contains the optional parameters for the GalleriesClient.NewListPager method. +type GalleriesClientListOptions struct { + // placeholder for future optional parameters +} + +// GalleryApplicationVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginCreateOrUpdate +// method. +type GalleryApplicationVersionsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryApplicationVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginDelete +// method. +type GalleryApplicationVersionsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryApplicationVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginUpdate +// method. +type GalleryApplicationVersionsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryApplicationVersionsClientGetOptions contains the optional parameters for the GalleryApplicationVersionsClient.Get +// method. +type GalleryApplicationVersionsClientGetOptions struct { + // The expand expression to apply on the operation. + Expand *ReplicationStatusTypes +} + +// GalleryApplicationVersionsClientListByGalleryApplicationOptions contains the optional parameters for the GalleryApplicationVersionsClient.NewListByGalleryApplicationPager +// method. +type GalleryApplicationVersionsClientListByGalleryApplicationOptions struct { + // placeholder for future optional parameters +} + +// GalleryApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginCreateOrUpdate +// method. +type GalleryApplicationsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryApplicationsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationsClient.BeginDelete +// method. +type GalleryApplicationsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryApplicationsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginUpdate +// method. +type GalleryApplicationsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryApplicationsClientGetOptions contains the optional parameters for the GalleryApplicationsClient.Get method. +type GalleryApplicationsClientGetOptions struct { + // placeholder for future optional parameters +} + +// GalleryApplicationsClientListByGalleryOptions contains the optional parameters for the GalleryApplicationsClient.NewListByGalleryPager +// method. +type GalleryApplicationsClientListByGalleryOptions struct { + // placeholder for future optional parameters +} + +// GalleryImageVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginCreateOrUpdate +// method. +type GalleryImageVersionsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryImageVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryImageVersionsClient.BeginDelete +// method. +type GalleryImageVersionsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryImageVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginUpdate +// method. +type GalleryImageVersionsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryImageVersionsClientGetOptions contains the optional parameters for the GalleryImageVersionsClient.Get method. +type GalleryImageVersionsClientGetOptions struct { + // The expand expression to apply on the operation. + Expand *ReplicationStatusTypes +} + +// GalleryImageVersionsClientListByGalleryImageOptions contains the optional parameters for the GalleryImageVersionsClient.NewListByGalleryImagePager +// method. +type GalleryImageVersionsClientListByGalleryImageOptions struct { + // placeholder for future optional parameters +} + +// GalleryImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginCreateOrUpdate +// method. +type GalleryImagesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryImagesClientBeginDeleteOptions contains the optional parameters for the GalleryImagesClient.BeginDelete method. +type GalleryImagesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryImagesClientBeginUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginUpdate method. +type GalleryImagesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GalleryImagesClientGetOptions contains the optional parameters for the GalleryImagesClient.Get method. +type GalleryImagesClientGetOptions struct { + // placeholder for future optional parameters +} + +// GalleryImagesClientListByGalleryOptions contains the optional parameters for the GalleryImagesClient.NewListByGalleryPager +// method. +type GalleryImagesClientListByGalleryOptions struct { + // placeholder for future optional parameters +} + +// GallerySharingProfileClientBeginUpdateOptions contains the optional parameters for the GallerySharingProfileClient.BeginUpdate +// method. +type GallerySharingProfileClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the ImagesClient.BeginCreateOrUpdate method. +type ImagesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method. +type ImagesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ImagesClientBeginUpdateOptions contains the optional parameters for the ImagesClient.BeginUpdate method. +type ImagesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method. +type ImagesClientGetOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.NewListByResourceGroupPager +// method. +type ImagesClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// ImagesClientListOptions contains the optional parameters for the ImagesClient.NewListPager method. +type ImagesClientListOptions struct { + // placeholder for future optional parameters +} + +// LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval +// method. +type LogAnalyticsClientBeginExportRequestRateByIntervalOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests +// method. +type LogAnalyticsClientBeginExportThrottledRequestsOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. +type OperationsClientListOptions struct { + // placeholder for future optional parameters +} + +// ProximityPlacementGroupsClientCreateOrUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.CreateOrUpdate +// method. +type ProximityPlacementGroupsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete +// method. +type ProximityPlacementGroupsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get method. +type ProximityPlacementGroupsClientGetOptions struct { + // includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group. + IncludeColocationStatus *string +} + +// ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListByResourceGroupPager +// method. +type ProximityPlacementGroupsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListBySubscriptionPager +// method. +type ProximityPlacementGroupsClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// ProximityPlacementGroupsClientUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.Update +// method. +type ProximityPlacementGroupsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.NewListPager method. +type ResourceSKUsClientListOptions struct { + // The filter to apply on the operation. Only location filter is supported currently. + Filter *string + + // To Include Extended Locations information or not in the response. + IncludeExtendedLocations *string +} + +// RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete +// method. +type RestorePointCollectionsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// RestorePointCollectionsClientCreateOrUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.CreateOrUpdate +// method. +type RestorePointCollectionsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get method. +type RestorePointCollectionsClientGetOptions struct { + // The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points + // in the restorePointCollection. + Expand *RestorePointCollectionExpandOptions +} + +// RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.NewListAllPager +// method. +type RestorePointCollectionsClientListAllOptions struct { + // placeholder for future optional parameters +} + +// RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.NewListPager +// method. +type RestorePointCollectionsClientListOptions struct { + // placeholder for future optional parameters +} + +// RestorePointCollectionsClientUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.Update +// method. +type RestorePointCollectionsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// RestorePointsClientBeginCreateOptions contains the optional parameters for the RestorePointsClient.BeginCreate method. +type RestorePointsClientBeginCreateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// RestorePointsClientBeginDeleteOptions contains the optional parameters for the RestorePointsClient.BeginDelete method. +type RestorePointsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// RestorePointsClientGetOptions contains the optional parameters for the RestorePointsClient.Get method. +type RestorePointsClientGetOptions struct { + // The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore + // point. + Expand *RestorePointExpandOptions +} + +// SSHPublicKeysClientCreateOptions contains the optional parameters for the SSHPublicKeysClient.Create method. +type SSHPublicKeysClientCreateOptions struct { + // placeholder for future optional parameters +} + +// SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method. +type SSHPublicKeysClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair +// method. +type SSHPublicKeysClientGenerateKeyPairOptions struct { + // Parameters supplied to generate the SSH public key. + Parameters *SSHGenerateKeyPairInputParameters +} + +// SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method. +type SSHPublicKeysClientGetOptions struct { + // placeholder for future optional parameters +} + +// SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.NewListByResourceGroupPager +// method. +type SSHPublicKeysClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.NewListBySubscriptionPager +// method. +type SSHPublicKeysClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// SSHPublicKeysClientUpdateOptions contains the optional parameters for the SSHPublicKeysClient.Update method. +type SSHPublicKeysClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// SharedGalleriesClientGetOptions contains the optional parameters for the SharedGalleriesClient.Get method. +type SharedGalleriesClientGetOptions struct { + // placeholder for future optional parameters +} + +// SharedGalleriesClientListOptions contains the optional parameters for the SharedGalleriesClient.NewListPager method. +type SharedGalleriesClientListOptions struct { + // The query parameter to decide what shared galleries to fetch when doing listing operations. + SharedTo *SharedToValues +} + +// SharedGalleryImageVersionsClientGetOptions contains the optional parameters for the SharedGalleryImageVersionsClient.Get +// method. +type SharedGalleryImageVersionsClientGetOptions struct { + // placeholder for future optional parameters +} + +// SharedGalleryImageVersionsClientListOptions contains the optional parameters for the SharedGalleryImageVersionsClient.NewListPager +// method. +type SharedGalleryImageVersionsClientListOptions struct { + // The query parameter to decide what shared galleries to fetch when doing listing operations. + SharedTo *SharedToValues +} + +// SharedGalleryImagesClientGetOptions contains the optional parameters for the SharedGalleryImagesClient.Get method. +type SharedGalleryImagesClientGetOptions struct { + // placeholder for future optional parameters +} + +// SharedGalleryImagesClientListOptions contains the optional parameters for the SharedGalleryImagesClient.NewListPager method. +type SharedGalleryImagesClientListOptions struct { + // The query parameter to decide what shared galleries to fetch when doing listing operations. + SharedTo *SharedToValues +} + +// SnapshotsClientBeginCreateOrUpdateOptions contains the optional parameters for the SnapshotsClient.BeginCreateOrUpdate +// method. +type SnapshotsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method. +type SnapshotsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SnapshotsClientBeginGrantAccessOptions contains the optional parameters for the SnapshotsClient.BeginGrantAccess method. +type SnapshotsClientBeginGrantAccessOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SnapshotsClientBeginRevokeAccessOptions contains the optional parameters for the SnapshotsClient.BeginRevokeAccess method. +type SnapshotsClientBeginRevokeAccessOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method. +type SnapshotsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method. +type SnapshotsClientGetOptions struct { + // placeholder for future optional parameters +} + +// SnapshotsClientListByResourceGroupOptions contains the optional parameters for the SnapshotsClient.NewListByResourceGroupPager +// method. +type SnapshotsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.NewListPager method. +type SnapshotsClientListOptions struct { + // placeholder for future optional parameters +} + +// UsageClientListOptions contains the optional parameters for the UsageClient.NewListPager method. +type UsageClientListOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get +// method. +type VirtualMachineExtensionImagesClientGetOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes +// method. +type VirtualMachineExtensionImagesClientListTypesOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions +// method. +type VirtualMachineExtensionImagesClientListVersionsOptions struct { + // The filter to apply on the operation. + Filter *string + Orderby *string + Top *int32 +} + +// VirtualMachineExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginCreateOrUpdate +// method. +type VirtualMachineExtensionsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginDelete +// method. +type VirtualMachineExtensionsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginUpdate +// method. +type VirtualMachineExtensionsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineExtensionsClientGetOptions contains the optional parameters for the VirtualMachineExtensionsClient.Get method. +type VirtualMachineExtensionsClientGetOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List +// method. +type VirtualMachineExtensionsClientListOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineImagesClientGetOptions contains the optional parameters for the VirtualMachineImagesClient.Get method. +type VirtualMachineImagesClientGetOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesClientListByEdgeZoneOptions contains the optional parameters for the VirtualMachineImagesClient.ListByEdgeZone +// method. +type VirtualMachineImagesClientListByEdgeZoneOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers +// method. +type VirtualMachineImagesClientListOffersOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesClientListOptions contains the optional parameters for the VirtualMachineImagesClient.List method. +type VirtualMachineImagesClientListOptions struct { + // The expand expression to apply on the operation. + Expand *string + Orderby *string + Top *int32 +} + +// VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers +// method. +type VirtualMachineImagesClientListPublishersOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesClient.ListSKUs +// method. +type VirtualMachineImagesClientListSKUsOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesEdgeZoneClientGetOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.Get +// method. +type VirtualMachineImagesEdgeZoneClientGetOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesEdgeZoneClientListOffersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListOffers +// method. +type VirtualMachineImagesEdgeZoneClientListOffersOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesEdgeZoneClientListOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.List +// method. +type VirtualMachineImagesEdgeZoneClientListOptions struct { + // The expand expression to apply on the operation. + Expand *string + + // Specifies the order of the results returned. Formatted as an OData query. + Orderby *string + + // An integer value specifying the number of images to return that matches supplied values. + Top *int32 +} + +// VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers +// method. +type VirtualMachineImagesEdgeZoneClientListPublishersOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineImagesEdgeZoneClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListSKUs +// method. +type VirtualMachineImagesEdgeZoneClientListSKUsOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginCreateOrUpdate +// method. +type VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginDelete +// method. +type VirtualMachineRunCommandsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginUpdate +// method. +type VirtualMachineRunCommandsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineRunCommandsClientGetByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.GetByVirtualMachine +// method. +type VirtualMachineRunCommandsClientGetByVirtualMachineOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get +// method. +type VirtualMachineRunCommandsClientGetOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListByVirtualMachinePager +// method. +type VirtualMachineRunCommandsClientListByVirtualMachineOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListPager +// method. +type VirtualMachineRunCommandsClientListOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate +// method. +type VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginDelete +// method. +type VirtualMachineScaleSetExtensionsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginUpdate +// method. +type VirtualMachineScaleSetExtensionsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.Get +// method. +type VirtualMachineScaleSetExtensionsClientGetOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.NewListPager +// method. +type VirtualMachineScaleSetExtensionsClientListOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel +// method. +type VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade +// method. +type VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade +// method. +type VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest +// method. +type VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate +// method. +type VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginDelete +// method. +type VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginUpdate +// method. +type VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.Get +// method. +type VirtualMachineScaleSetVMExtensionsClientGetOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineScaleSetVMExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.List +// method. +type VirtualMachineScaleSetVMExtensionsClientListOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate +// method. +type VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginDelete +// method. +type VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate +// method. +type VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.Get +// method. +type VirtualMachineScaleSetVMRunCommandsClientGetOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineScaleSetVMRunCommandsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.NewListPager +// method. +type VirtualMachineScaleSetVMRunCommandsClientListOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + +// VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginApproveRollingUpgrade +// method. +type VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginAttachDetachDataDisks +// method. +type VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDeallocate +// method. +type VirtualMachineScaleSetVMsClientBeginDeallocateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDelete +// method. +type VirtualMachineScaleSetVMsClientBeginDeleteOptions struct { + // Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + ForceDeletion *bool + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPerformMaintenance +// method. +type VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPowerOff +// method. +type VirtualMachineScaleSetVMsClientBeginPowerOffOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false + // indicates otherwise. Default value for this flag is false if not specified + SkipShutdown *bool +} + +// VirtualMachineScaleSetVMsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRedeploy +// method. +type VirtualMachineScaleSetVMsClientBeginRedeployOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimageAll +// method. +type VirtualMachineScaleSetVMsClientBeginReimageAllOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimage +// method. +type VirtualMachineScaleSetVMsClientBeginReimageOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // Parameters for the Reimaging Virtual machine in ScaleSet. + VMScaleSetVMReimageInput *VirtualMachineScaleSetVMReimageParameters +} + +// VirtualMachineScaleSetVMsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRestart +// method. +type VirtualMachineScaleSetVMsClientBeginRestartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginRunCommandOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRunCommand +// method. +type VirtualMachineScaleSetVMsClientBeginRunCommandOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginStart +// method. +type VirtualMachineScaleSetVMsClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginUpdate +// method. +type VirtualMachineScaleSetVMsClientBeginUpdateOptions struct { + // The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value + // to prevent accidentally overwriting concurrent changes. + IfMatch *string + + // Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result + // in error from server as they are not supported. + IfNoneMatch *string + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetVMsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.GetInstanceView +// method. +type VirtualMachineScaleSetVMsClientGetInstanceViewOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetVMsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.Get +// method. +type VirtualMachineScaleSetVMsClientGetOptions struct { + // The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. + // 'UserData' will retrieve the UserData of the virtual machine. + Expand *InstanceViewTypes +} + +// VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.NewListPager +// method. +type VirtualMachineScaleSetVMsClientListOptions struct { + // The expand expression to apply to the operation. Allowed values are 'instanceView'. + Expand *string + + // The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', + // 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq + // false'. + Filter *string + + // The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. + Select *string +} + +// VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData +// method. +type VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions struct { + // Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. Note: If not specified, SAS URIs + // will be generated with a default expiration duration of 120 minutes. + SasURIExpirationTimeInMinutes *int32 +} + +// VirtualMachineScaleSetVMsClientSimulateEvictionOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.SimulateEviction +// method. +type VirtualMachineScaleSetVMsClientSimulateEvictionOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade +// method. +type VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginCreateOrUpdate +// method. +type VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions struct { + // The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value + // to prevent accidentally overwriting concurrent changes. + IfMatch *string + + // Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result + // in error from server as they are not supported. + IfNoneMatch *string + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate +// method. +type VirtualMachineScaleSetsClientBeginDeallocateOptions struct { + // Optional parameter to hibernate a virtual machine from the VM scale set. (This feature is available for VMSS with Flexible + // OrchestrationMode only) + Hibernate *bool + + // Resumes the LRO from the provided token. + ResumeToken string + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginDeleteInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeleteInstances +// method. +type VirtualMachineScaleSetsClientBeginDeleteInstancesOptions struct { + // Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview) + ForceDeletion *bool + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete +// method. +type VirtualMachineScaleSetsClientBeginDeleteOptions struct { + // Optional parameter to force delete a VM scale set. (Feature in Preview) + ForceDeletion *bool + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance +// method. +type VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff +// method. +type VirtualMachineScaleSetsClientBeginPowerOffOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false + // indicates otherwise. Default value for this flag is false if not specified + SkipShutdown *bool + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginReapplyOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReapply +// method. +type VirtualMachineScaleSetsClientBeginReapplyOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy +// method. +type VirtualMachineScaleSetsClientBeginRedeployOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll +// method. +type VirtualMachineScaleSetsClientBeginReimageAllOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage +// method. +type VirtualMachineScaleSetsClientBeginReimageOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // Parameters for Reimaging VM ScaleSet. + VMScaleSetReimageInput *VirtualMachineScaleSetReimageParameters +} + +// VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart +// method. +type VirtualMachineScaleSetsClientBeginRestartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState +// method. +type VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart +// method. +type VirtualMachineScaleSetsClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // A list of virtual machine instance IDs from the VM scale set. + VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs +} + +// VirtualMachineScaleSetsClientBeginUpdateInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdateInstances +// method. +type VirtualMachineScaleSetsClientBeginUpdateInstancesOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdate +// method. +type VirtualMachineScaleSetsClientBeginUpdateOptions struct { + // The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value + // to prevent accidentally overwriting concurrent changes. + IfMatch *string + + // Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result + // in error from server as they are not supported. + IfNoneMatch *string + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup +// method. +type VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions contains the optional parameters +// for the VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk method. +type VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions struct { + // The placement group id for which the manual recovery walk is requested. + PlacementGroupID *string + + // The zone in which the manual recovery walk is requested for cross zone virtual machine scale set + Zone *string +} + +// VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView +// method. +type VirtualMachineScaleSetsClientGetInstanceViewOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager +// method. +type VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get method. +type VirtualMachineScaleSetsClientGetOptions struct { + // The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was + // provided by the user during the VM scale set Create/Update operation + Expand *ExpandTypesForGetVMScaleSets +} + +// VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListAllPager +// method. +type VirtualMachineScaleSetsClientListAllOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListByLocationPager +// method. +type VirtualMachineScaleSetsClientListByLocationOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListPager +// method. +type VirtualMachineScaleSetsClientListOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListSKUsPager +// method. +type VirtualMachineScaleSetsClientListSKUsOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.NewListPager method. +type VirtualMachineSizesClientListOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches +// method. +type VirtualMachinesClientBeginAssessPatchesOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginAttachDetachDataDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginAttachDetachDataDisks +// method. +type VirtualMachinesClientBeginAttachDetachDataDisksOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginCaptureOptions contains the optional parameters for the VirtualMachinesClient.BeginCapture method. +type VirtualMachinesClientBeginCaptureOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks +// method. +type VirtualMachinesClientBeginConvertToManagedDisksOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginCreateOrUpdate +// method. +type VirtualMachinesClientBeginCreateOrUpdateOptions struct { + // The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value + // to prevent accidentally overwriting concurrent changes. + IfMatch *string + + // Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result + // in error from server as they are not supported. + IfNoneMatch *string + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate +// method. +type VirtualMachinesClientBeginDeallocateOptions struct { + // Optional parameter to hibernate a virtual machine. (Feature in Preview) + Hibernate *bool + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete method. +type VirtualMachinesClientBeginDeleteOptions struct { + // Optional parameter to force delete virtual machines. + ForceDeletion *bool + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginInstallPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginInstallPatches +// method. +type VirtualMachinesClientBeginInstallPatchesOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance +// method. +type VirtualMachinesClientBeginPerformMaintenanceOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff +// method. +type VirtualMachinesClientBeginPowerOffOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string + + // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false + // indicates otherwise. Default value for this flag is false if not specified + SkipShutdown *bool +} + +// VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply method. +type VirtualMachinesClientBeginReapplyOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy +// method. +type VirtualMachinesClientBeginRedeployOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage method. +type VirtualMachinesClientBeginReimageOptions struct { + // Parameters supplied to the Reimage Virtual Machine operation. + Parameters *VirtualMachineReimageParameters + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart method. +type VirtualMachinesClientBeginRestartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginRunCommandOptions contains the optional parameters for the VirtualMachinesClient.BeginRunCommand +// method. +type VirtualMachinesClientBeginRunCommandOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart method. +type VirtualMachinesClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientBeginUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginUpdate method. +type VirtualMachinesClientBeginUpdateOptions struct { + // The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value + // to prevent accidentally overwriting concurrent changes. + IfMatch *string + + // Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result + // in error from server as they are not supported. + IfNoneMatch *string + + // Resumes the LRO from the provided token. + ResumeToken string +} + +// VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize method. +type VirtualMachinesClientGeneralizeOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method. +type VirtualMachinesClientGetOptions struct { + // The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual + // machine that is managed by the platform and can change outside of control + // plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user + // during the VM Create/Update operation. + Expand *InstanceViewTypes +} + +// VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView method. +type VirtualMachinesClientInstanceViewOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.NewListAllPager method. +type VirtualMachinesClientListAllOptions struct { + // The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this + // can only be specified if a valid $filter option is specified + Expand *ExpandTypesForListVMs + + // The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq + // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + Filter *string + + // statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. + StatusOnly *string +} + +// VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.NewListAvailableSizesPager +// method. +type VirtualMachinesClientListAvailableSizesOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.NewListByLocationPager +// method. +type VirtualMachinesClientListByLocationOptions struct { + // placeholder for future optional parameters +} + +// VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.NewListPager method. +type VirtualMachinesClientListOptions struct { + // The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this + // can only be specified if a valid $filter option is specified + Expand *ExpandTypeForListVMs + + // The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq + // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + Filter *string +} + +// VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData +// method. +type VirtualMachinesClientRetrieveBootDiagnosticsDataOptions struct { + // Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. Note: If not specified, SAS URIs + // will be generated with a default expiration duration of 120 minutes. + SasURIExpirationTimeInMinutes *int32 +} + +// VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction +// method. +type VirtualMachinesClientSimulateEvictionOptions struct { + // placeholder for future optional parameters +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_proximityplacementgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/proximityplacementgroups_client.go similarity index 71% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_proximityplacementgroups_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/proximityplacementgroups_client.go index 4c1fa00c..c1865920 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_proximityplacementgroups_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/proximityplacementgroups_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,57 +23,56 @@ import ( // ProximityPlacementGroupsClient contains the methods for the ProximityPlacementGroups group. // Don't use this type directly, use NewProximityPlacementGroupsClient() instead. type ProximityPlacementGroupsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewProximityPlacementGroupsClient creates a new instance of ProximityPlacementGroupsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewProximityPlacementGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProximityPlacementGroupsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &ProximityPlacementGroupsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Create or update a proximity placement group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// proximityPlacementGroupName - The name of the proximity placement group. -// parameters - Parameters supplied to the Create Proximity Placement Group operation. -// options - ProximityPlacementGroupsClientCreateOrUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.CreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - proximityPlacementGroupName - The name of the proximity placement group. +// - parameters - Parameters supplied to the Create Proximity Placement Group operation. +// - options - ProximityPlacementGroupsClientCreateOrUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.CreateOrUpdate +// method. func (client *ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroup, options *ProximityPlacementGroupsClientCreateOrUpdateOptions) (ProximityPlacementGroupsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ProximityPlacementGroupsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, parameters, options) if err != nil { return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -93,15 +90,18 @@ func (client *ProximityPlacementGroupsClient) createOrUpdateCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -115,22 +115,29 @@ func (client *ProximityPlacementGroupsClient) createOrUpdateHandleResponse(resp // Delete - Delete a proximity placement group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// proximityPlacementGroupName - The name of the proximity placement group. -// options - ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - proximityPlacementGroupName - The name of the proximity placement group. +// - options - ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete +// method. func (client *ProximityPlacementGroupsClient) Delete(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, options *ProximityPlacementGroupsClientDeleteOptions) (ProximityPlacementGroupsClientDeleteResponse, error) { + var err error + const operationName = "ProximityPlacementGroupsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, options) if err != nil { return ProximityPlacementGroupsClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ProximityPlacementGroupsClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ProximityPlacementGroupsClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ProximityPlacementGroupsClientDeleteResponse{}, err } return ProximityPlacementGroupsClientDeleteResponse{}, nil } @@ -150,12 +157,12 @@ func (client *ProximityPlacementGroupsClient) deleteCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -163,24 +170,32 @@ func (client *ProximityPlacementGroupsClient) deleteCreateRequest(ctx context.Co // Get - Retrieves information about a proximity placement group . // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// proximityPlacementGroupName - The name of the proximity placement group. -// options - ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - proximityPlacementGroupName - The name of the proximity placement group. +// - options - ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get +// method. func (client *ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, options *ProximityPlacementGroupsClientGetOptions) (ProximityPlacementGroupsClientGetResponse, error) { + var err error + const operationName = "ProximityPlacementGroupsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, options) if err != nil { return ProximityPlacementGroupsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ProximityPlacementGroupsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ProximityPlacementGroupsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ProximityPlacementGroupsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -198,15 +213,15 @@ func (client *ProximityPlacementGroupsClient) getCreateRequest(ctx context.Conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.IncludeColocationStatus != nil { reqQP.Set("includeColocationStatus", *options.IncludeColocationStatus) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -222,36 +237,31 @@ func (client *ProximityPlacementGroupsClient) getHandleResponse(resp *http.Respo } // NewListByResourceGroupPager - Lists all proximity placement groups in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListByResourceGroup -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListByResourceGroupPager +// method. func (client *ProximityPlacementGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *ProximityPlacementGroupsClientListByResourceGroupOptions) *runtime.Pager[ProximityPlacementGroupsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[ProximityPlacementGroupsClientListByResourceGroupResponse]{ More: func(page ProximityPlacementGroupsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *ProximityPlacementGroupsClientListByResourceGroupResponse) (ProximityPlacementGroupsClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return ProximityPlacementGroupsClientListByResourceGroupResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ProximityPlacementGroupsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return ProximityPlacementGroupsClientListByResourceGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ProximityPlacementGroupsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -266,12 +276,12 @@ func (client *ProximityPlacementGroupsClient) listByResourceGroupCreateRequest(c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -287,35 +297,30 @@ func (client *ProximityPlacementGroupsClient) listByResourceGroupHandleResponse( } // NewListBySubscriptionPager - Lists all proximity placement groups in a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListBySubscription -// method. +// +// Generated from API version 2024-03-01 +// - options - ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListBySubscriptionPager +// method. func (client *ProximityPlacementGroupsClient) NewListBySubscriptionPager(options *ProximityPlacementGroupsClientListBySubscriptionOptions) *runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[ProximityPlacementGroupsClientListBySubscriptionResponse]{ More: func(page ProximityPlacementGroupsClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *ProximityPlacementGroupsClientListBySubscriptionResponse) (ProximityPlacementGroupsClientListBySubscriptionResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listBySubscriptionCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return ProximityPlacementGroupsClientListBySubscriptionResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ProximityPlacementGroupsClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) if err != nil { return ProximityPlacementGroupsClientListBySubscriptionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ProximityPlacementGroupsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) - } return client.listBySubscriptionHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -326,12 +331,12 @@ func (client *ProximityPlacementGroupsClient) listBySubscriptionCreateRequest(ct return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -348,25 +353,33 @@ func (client *ProximityPlacementGroupsClient) listBySubscriptionHandleResponse(r // Update - Update a proximity placement group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// proximityPlacementGroupName - The name of the proximity placement group. -// parameters - Parameters supplied to the Update Proximity Placement Group operation. -// options - ProximityPlacementGroupsClientUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.Update -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - proximityPlacementGroupName - The name of the proximity placement group. +// - parameters - Parameters supplied to the Update Proximity Placement Group operation. +// - options - ProximityPlacementGroupsClientUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.Update +// method. func (client *ProximityPlacementGroupsClient) Update(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroupUpdate, options *ProximityPlacementGroupsClientUpdateOptions) (ProximityPlacementGroupsClientUpdateResponse, error) { + var err error + const operationName = "ProximityPlacementGroupsClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, parameters, options) if err != nil { return ProximityPlacementGroupsClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ProximityPlacementGroupsClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ProximityPlacementGroupsClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ProximityPlacementGroupsClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -384,15 +397,18 @@ func (client *ProximityPlacementGroupsClient) updateCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_resourceskus_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/resourceskus_client.go similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_resourceskus_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/resourceskus_client.go index b064dbdd..f716c1cc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_resourceskus_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/resourceskus_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,65 +23,51 @@ import ( // ResourceSKUsClient contains the methods for the ResourceSKUs group. // Don't use this type directly, use NewResourceSKUsClient() instead. type ResourceSKUsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewResourceSKUsClient creates a new instance of ResourceSKUsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewResourceSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceSKUsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &ResourceSKUsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // NewListPager - Gets the list of Microsoft.Compute SKUs available for your Subscription. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-07-01 -// options - ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.List method. +// - options - ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.NewListPager method. func (client *ResourceSKUsClient) NewListPager(options *ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceSKUsClientListResponse]{ More: func(page ResourceSKUsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *ResourceSKUsClientListResponse) (ResourceSKUsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return ResourceSKUsClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ResourceSKUsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return ResourceSKUsClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ResourceSKUsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -94,15 +78,15 @@ func (client *ResourceSKUsClient) listCreateRequest(ctx context.Context, options return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } + reqQP.Set("api-version", "2021-07-01") if options != nil && options.IncludeExtendedLocations != nil { reqQP.Set("includeExtendedLocations", *options.IncludeExtendedLocations) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_response_types.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/responses.go similarity index 65% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_response_types.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/responses.go index 4b95829d..db4fc2bd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_response_types.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/responses.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -12,6 +12,12 @@ import "io" // AvailabilitySetsClientCreateOrUpdateResponse contains the response from method AvailabilitySetsClient.CreateOrUpdate. type AvailabilitySetsClientCreateOrUpdateResponse struct { + // Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified + // in the same availability set are allocated to different nodes to maximize availability. For more information about availability + // sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For + // more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). + // Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability + // set. AvailabilitySet } @@ -22,31 +28,49 @@ type AvailabilitySetsClientDeleteResponse struct { // AvailabilitySetsClientGetResponse contains the response from method AvailabilitySetsClient.Get. type AvailabilitySetsClientGetResponse struct { + // Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified + // in the same availability set are allocated to different nodes to maximize availability. For more information about availability + // sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For + // more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). + // Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability + // set. AvailabilitySet } -// AvailabilitySetsClientListAvailableSizesResponse contains the response from method AvailabilitySetsClient.ListAvailableSizes. +// AvailabilitySetsClientListAvailableSizesResponse contains the response from method AvailabilitySetsClient.NewListAvailableSizesPager. type AvailabilitySetsClientListAvailableSizesResponse struct { + // The List Virtual Machine operation response. VirtualMachineSizeListResult } -// AvailabilitySetsClientListBySubscriptionResponse contains the response from method AvailabilitySetsClient.ListBySubscription. +// AvailabilitySetsClientListBySubscriptionResponse contains the response from method AvailabilitySetsClient.NewListBySubscriptionPager. type AvailabilitySetsClientListBySubscriptionResponse struct { + // The List Availability Set operation response. AvailabilitySetListResult } -// AvailabilitySetsClientListResponse contains the response from method AvailabilitySetsClient.List. +// AvailabilitySetsClientListResponse contains the response from method AvailabilitySetsClient.NewListPager. type AvailabilitySetsClientListResponse struct { + // The List Availability Set operation response. AvailabilitySetListResult } // AvailabilitySetsClientUpdateResponse contains the response from method AvailabilitySetsClient.Update. type AvailabilitySetsClientUpdateResponse struct { + // Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified + // in the same availability set are allocated to different nodes to maximize availability. For more information about availability + // sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For + // more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). + // Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability + // set. AvailabilitySet } // CapacityReservationGroupsClientCreateOrUpdateResponse contains the response from method CapacityReservationGroupsClient.CreateOrUpdate. type CapacityReservationGroupsClientCreateOrUpdateResponse struct { + // Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, + // a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation + // cannot be added or moved to another capacity reservation group. CapacityReservationGroup } @@ -57,76 +81,93 @@ type CapacityReservationGroupsClientDeleteResponse struct { // CapacityReservationGroupsClientGetResponse contains the response from method CapacityReservationGroupsClient.Get. type CapacityReservationGroupsClientGetResponse struct { + // Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, + // a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation + // cannot be added or moved to another capacity reservation group. CapacityReservationGroup } -// CapacityReservationGroupsClientListByResourceGroupResponse contains the response from method CapacityReservationGroupsClient.ListByResourceGroup. +// CapacityReservationGroupsClientListByResourceGroupResponse contains the response from method CapacityReservationGroupsClient.NewListByResourceGroupPager. type CapacityReservationGroupsClientListByResourceGroupResponse struct { + // The List capacity reservation group with resource group response. CapacityReservationGroupListResult } -// CapacityReservationGroupsClientListBySubscriptionResponse contains the response from method CapacityReservationGroupsClient.ListBySubscription. +// CapacityReservationGroupsClientListBySubscriptionResponse contains the response from method CapacityReservationGroupsClient.NewListBySubscriptionPager. type CapacityReservationGroupsClientListBySubscriptionResponse struct { + // The List capacity reservation group with resource group response. CapacityReservationGroupListResult } // CapacityReservationGroupsClientUpdateResponse contains the response from method CapacityReservationGroupsClient.Update. type CapacityReservationGroupsClientUpdateResponse struct { + // Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, + // a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation + // cannot be added or moved to another capacity reservation group. CapacityReservationGroup } -// CapacityReservationsClientCreateOrUpdateResponse contains the response from method CapacityReservationsClient.CreateOrUpdate. +// CapacityReservationsClientCreateOrUpdateResponse contains the response from method CapacityReservationsClient.BeginCreateOrUpdate. type CapacityReservationsClientCreateOrUpdateResponse struct { + // Specifies information about the capacity reservation. CapacityReservation } -// CapacityReservationsClientDeleteResponse contains the response from method CapacityReservationsClient.Delete. +// CapacityReservationsClientDeleteResponse contains the response from method CapacityReservationsClient.BeginDelete. type CapacityReservationsClientDeleteResponse struct { // placeholder for future response values } // CapacityReservationsClientGetResponse contains the response from method CapacityReservationsClient.Get. type CapacityReservationsClientGetResponse struct { + // Specifies information about the capacity reservation. CapacityReservation } -// CapacityReservationsClientListByCapacityReservationGroupResponse contains the response from method CapacityReservationsClient.ListByCapacityReservationGroup. +// CapacityReservationsClientListByCapacityReservationGroupResponse contains the response from method CapacityReservationsClient.NewListByCapacityReservationGroupPager. type CapacityReservationsClientListByCapacityReservationGroupResponse struct { + // The list capacity reservation operation response. CapacityReservationListResult } -// CapacityReservationsClientUpdateResponse contains the response from method CapacityReservationsClient.Update. +// CapacityReservationsClientUpdateResponse contains the response from method CapacityReservationsClient.BeginUpdate. type CapacityReservationsClientUpdateResponse struct { + // Specifies information about the capacity reservation. CapacityReservation } // CloudServiceOperatingSystemsClientGetOSFamilyResponse contains the response from method CloudServiceOperatingSystemsClient.GetOSFamily. type CloudServiceOperatingSystemsClientGetOSFamilyResponse struct { + // Describes a cloud service OS family. OSFamily } // CloudServiceOperatingSystemsClientGetOSVersionResponse contains the response from method CloudServiceOperatingSystemsClient.GetOSVersion. type CloudServiceOperatingSystemsClientGetOSVersionResponse struct { + // Describes a cloud service OS version. OSVersion } -// CloudServiceOperatingSystemsClientListOSFamiliesResponse contains the response from method CloudServiceOperatingSystemsClient.ListOSFamilies. +// CloudServiceOperatingSystemsClientListOSFamiliesResponse contains the response from method CloudServiceOperatingSystemsClient.NewListOSFamiliesPager. type CloudServiceOperatingSystemsClientListOSFamiliesResponse struct { + // The list operation result. OSFamilyListResult } -// CloudServiceOperatingSystemsClientListOSVersionsResponse contains the response from method CloudServiceOperatingSystemsClient.ListOSVersions. +// CloudServiceOperatingSystemsClientListOSVersionsResponse contains the response from method CloudServiceOperatingSystemsClient.NewListOSVersionsPager. type CloudServiceOperatingSystemsClientListOSVersionsResponse struct { + // The list operation result. OSVersionListResult } -// CloudServiceRoleInstancesClientDeleteResponse contains the response from method CloudServiceRoleInstancesClient.Delete. +// CloudServiceRoleInstancesClientDeleteResponse contains the response from method CloudServiceRoleInstancesClient.BeginDelete. type CloudServiceRoleInstancesClientDeleteResponse struct { // placeholder for future response values } // CloudServiceRoleInstancesClientGetInstanceViewResponse contains the response from method CloudServiceRoleInstancesClient.GetInstanceView. type CloudServiceRoleInstancesClientGetInstanceViewResponse struct { + // The instance view of the role instance. RoleInstanceView } @@ -138,136 +179,166 @@ type CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse struct { // CloudServiceRoleInstancesClientGetResponse contains the response from method CloudServiceRoleInstancesClient.Get. type CloudServiceRoleInstancesClientGetResponse struct { + // Describes the cloud service role instance. RoleInstance } -// CloudServiceRoleInstancesClientListResponse contains the response from method CloudServiceRoleInstancesClient.List. +// CloudServiceRoleInstancesClientListResponse contains the response from method CloudServiceRoleInstancesClient.NewListPager. type CloudServiceRoleInstancesClientListResponse struct { + // The list operation result. RoleInstanceListResult } -// CloudServiceRoleInstancesClientRebuildResponse contains the response from method CloudServiceRoleInstancesClient.Rebuild. +// CloudServiceRoleInstancesClientRebuildResponse contains the response from method CloudServiceRoleInstancesClient.BeginRebuild. type CloudServiceRoleInstancesClientRebuildResponse struct { // placeholder for future response values } -// CloudServiceRoleInstancesClientReimageResponse contains the response from method CloudServiceRoleInstancesClient.Reimage. +// CloudServiceRoleInstancesClientReimageResponse contains the response from method CloudServiceRoleInstancesClient.BeginReimage. type CloudServiceRoleInstancesClientReimageResponse struct { // placeholder for future response values } -// CloudServiceRoleInstancesClientRestartResponse contains the response from method CloudServiceRoleInstancesClient.Restart. +// CloudServiceRoleInstancesClientRestartResponse contains the response from method CloudServiceRoleInstancesClient.BeginRestart. type CloudServiceRoleInstancesClientRestartResponse struct { // placeholder for future response values } // CloudServiceRolesClientGetResponse contains the response from method CloudServiceRolesClient.Get. type CloudServiceRolesClientGetResponse struct { + // Describes a role of the cloud service. CloudServiceRole } -// CloudServiceRolesClientListResponse contains the response from method CloudServiceRolesClient.List. +// CloudServiceRolesClientListResponse contains the response from method CloudServiceRolesClient.NewListPager. type CloudServiceRolesClientListResponse struct { + // The list operation result. CloudServiceRoleListResult } -// CloudServicesClientCreateOrUpdateResponse contains the response from method CloudServicesClient.CreateOrUpdate. +// CloudServicesClientCreateOrUpdateResponse contains the response from method CloudServicesClient.BeginCreateOrUpdate. type CloudServicesClientCreateOrUpdateResponse struct { + // Describes the cloud service. CloudService } -// CloudServicesClientDeleteInstancesResponse contains the response from method CloudServicesClient.DeleteInstances. +// CloudServicesClientDeleteInstancesResponse contains the response from method CloudServicesClient.BeginDeleteInstances. type CloudServicesClientDeleteInstancesResponse struct { // placeholder for future response values } -// CloudServicesClientDeleteResponse contains the response from method CloudServicesClient.Delete. +// CloudServicesClientDeleteResponse contains the response from method CloudServicesClient.BeginDelete. type CloudServicesClientDeleteResponse struct { // placeholder for future response values } // CloudServicesClientGetInstanceViewResponse contains the response from method CloudServicesClient.GetInstanceView. type CloudServicesClientGetInstanceViewResponse struct { + // InstanceView of CloudService as a whole CloudServiceInstanceView } // CloudServicesClientGetResponse contains the response from method CloudServicesClient.Get. type CloudServicesClientGetResponse struct { + // Describes the cloud service. CloudService } -// CloudServicesClientListAllResponse contains the response from method CloudServicesClient.ListAll. +// CloudServicesClientListAllResponse contains the response from method CloudServicesClient.NewListAllPager. type CloudServicesClientListAllResponse struct { + // The list operation result. CloudServiceListResult } -// CloudServicesClientListResponse contains the response from method CloudServicesClient.List. +// CloudServicesClientListResponse contains the response from method CloudServicesClient.NewListPager. type CloudServicesClientListResponse struct { + // The list operation result. CloudServiceListResult } -// CloudServicesClientPowerOffResponse contains the response from method CloudServicesClient.PowerOff. +// CloudServicesClientPowerOffResponse contains the response from method CloudServicesClient.BeginPowerOff. type CloudServicesClientPowerOffResponse struct { // placeholder for future response values } -// CloudServicesClientRebuildResponse contains the response from method CloudServicesClient.Rebuild. +// CloudServicesClientRebuildResponse contains the response from method CloudServicesClient.BeginRebuild. type CloudServicesClientRebuildResponse struct { // placeholder for future response values } -// CloudServicesClientReimageResponse contains the response from method CloudServicesClient.Reimage. +// CloudServicesClientReimageResponse contains the response from method CloudServicesClient.BeginReimage. type CloudServicesClientReimageResponse struct { // placeholder for future response values } -// CloudServicesClientRestartResponse contains the response from method CloudServicesClient.Restart. +// CloudServicesClientRestartResponse contains the response from method CloudServicesClient.BeginRestart. type CloudServicesClientRestartResponse struct { // placeholder for future response values } -// CloudServicesClientStartResponse contains the response from method CloudServicesClient.Start. +// CloudServicesClientStartResponse contains the response from method CloudServicesClient.BeginStart. type CloudServicesClientStartResponse struct { // placeholder for future response values } -// CloudServicesClientUpdateResponse contains the response from method CloudServicesClient.Update. +// CloudServicesClientUpdateResponse contains the response from method CloudServicesClient.BeginUpdate. type CloudServicesClientUpdateResponse struct { + // Describes the cloud service. CloudService } // CloudServicesUpdateDomainClientGetUpdateDomainResponse contains the response from method CloudServicesUpdateDomainClient.GetUpdateDomain. type CloudServicesUpdateDomainClientGetUpdateDomainResponse struct { + // Defines an update domain for the cloud service. UpdateDomain } -// CloudServicesUpdateDomainClientListUpdateDomainsResponse contains the response from method CloudServicesUpdateDomainClient.ListUpdateDomains. +// CloudServicesUpdateDomainClientListUpdateDomainsResponse contains the response from method CloudServicesUpdateDomainClient.NewListUpdateDomainsPager. type CloudServicesUpdateDomainClientListUpdateDomainsResponse struct { + // The list operation result. UpdateDomainListResult } -// CloudServicesUpdateDomainClientWalkUpdateDomainResponse contains the response from method CloudServicesUpdateDomainClient.WalkUpdateDomain. +// CloudServicesUpdateDomainClientWalkUpdateDomainResponse contains the response from method CloudServicesUpdateDomainClient.BeginWalkUpdateDomain. type CloudServicesUpdateDomainClientWalkUpdateDomainResponse struct { // placeholder for future response values } // CommunityGalleriesClientGetResponse contains the response from method CommunityGalleriesClient.Get. type CommunityGalleriesClientGetResponse struct { + // Specifies information about the Community Gallery that you want to create or update. CommunityGallery } // CommunityGalleryImageVersionsClientGetResponse contains the response from method CommunityGalleryImageVersionsClient.Get. type CommunityGalleryImageVersionsClientGetResponse struct { + // Specifies information about the gallery image version that you want to create or update. CommunityGalleryImageVersion } +// CommunityGalleryImageVersionsClientListResponse contains the response from method CommunityGalleryImageVersionsClient.NewListPager. +type CommunityGalleryImageVersionsClientListResponse struct { + // The List Community Gallery Image versions operation response. + CommunityGalleryImageVersionList +} + // CommunityGalleryImagesClientGetResponse contains the response from method CommunityGalleryImagesClient.Get. type CommunityGalleryImagesClientGetResponse struct { + // Specifies information about the gallery image definition that you want to create or update. CommunityGalleryImage } +// CommunityGalleryImagesClientListResponse contains the response from method CommunityGalleryImagesClient.NewListPager. +type CommunityGalleryImagesClientListResponse struct { + // The List Community Gallery Images operation response. + CommunityGalleryImageList +} + // DedicatedHostGroupsClientCreateOrUpdateResponse contains the response from method DedicatedHostGroupsClient.CreateOrUpdate. type DedicatedHostGroupsClientCreateOrUpdateResponse struct { + // Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated + // host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another + // dedicated host group. DedicatedHostGroup } @@ -278,386 +349,467 @@ type DedicatedHostGroupsClientDeleteResponse struct { // DedicatedHostGroupsClientGetResponse contains the response from method DedicatedHostGroupsClient.Get. type DedicatedHostGroupsClientGetResponse struct { + // Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated + // host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another + // dedicated host group. DedicatedHostGroup } -// DedicatedHostGroupsClientListByResourceGroupResponse contains the response from method DedicatedHostGroupsClient.ListByResourceGroup. +// DedicatedHostGroupsClientListByResourceGroupResponse contains the response from method DedicatedHostGroupsClient.NewListByResourceGroupPager. type DedicatedHostGroupsClientListByResourceGroupResponse struct { + // The List Dedicated Host Group with resource group response. DedicatedHostGroupListResult } -// DedicatedHostGroupsClientListBySubscriptionResponse contains the response from method DedicatedHostGroupsClient.ListBySubscription. +// DedicatedHostGroupsClientListBySubscriptionResponse contains the response from method DedicatedHostGroupsClient.NewListBySubscriptionPager. type DedicatedHostGroupsClientListBySubscriptionResponse struct { + // The List Dedicated Host Group with resource group response. DedicatedHostGroupListResult } // DedicatedHostGroupsClientUpdateResponse contains the response from method DedicatedHostGroupsClient.Update. type DedicatedHostGroupsClientUpdateResponse struct { + // Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated + // host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another + // dedicated host group. DedicatedHostGroup } -// DedicatedHostsClientCreateOrUpdateResponse contains the response from method DedicatedHostsClient.CreateOrUpdate. +// DedicatedHostsClientCreateOrUpdateResponse contains the response from method DedicatedHostsClient.BeginCreateOrUpdate. type DedicatedHostsClientCreateOrUpdateResponse struct { + // Specifies information about the Dedicated host. DedicatedHost } -// DedicatedHostsClientDeleteResponse contains the response from method DedicatedHostsClient.Delete. +// DedicatedHostsClientDeleteResponse contains the response from method DedicatedHostsClient.BeginDelete. type DedicatedHostsClientDeleteResponse struct { // placeholder for future response values } // DedicatedHostsClientGetResponse contains the response from method DedicatedHostsClient.Get. type DedicatedHostsClientGetResponse struct { + // Specifies information about the Dedicated host. DedicatedHost } -// DedicatedHostsClientListByHostGroupResponse contains the response from method DedicatedHostsClient.ListByHostGroup. +// DedicatedHostsClientListAvailableSizesResponse contains the response from method DedicatedHostsClient.NewListAvailableSizesPager. +type DedicatedHostsClientListAvailableSizesResponse struct { + // The List Dedicated Host sizes operation response. + DedicatedHostSizeListResult +} + +// DedicatedHostsClientListByHostGroupResponse contains the response from method DedicatedHostsClient.NewListByHostGroupPager. type DedicatedHostsClientListByHostGroupResponse struct { + // The list dedicated host operation response. DedicatedHostListResult } -// DedicatedHostsClientRestartResponse contains the response from method DedicatedHostsClient.Restart. +// DedicatedHostsClientRedeployResponse contains the response from method DedicatedHostsClient.BeginRedeploy. +type DedicatedHostsClientRedeployResponse struct { + // placeholder for future response values +} + +// DedicatedHostsClientRestartResponse contains the response from method DedicatedHostsClient.BeginRestart. type DedicatedHostsClientRestartResponse struct { // placeholder for future response values } -// DedicatedHostsClientUpdateResponse contains the response from method DedicatedHostsClient.Update. +// DedicatedHostsClientUpdateResponse contains the response from method DedicatedHostsClient.BeginUpdate. type DedicatedHostsClientUpdateResponse struct { + // Specifies information about the Dedicated host. DedicatedHost } -// DiskAccessesClientCreateOrUpdateResponse contains the response from method DiskAccessesClient.CreateOrUpdate. +// DiskAccessesClientCreateOrUpdateResponse contains the response from method DiskAccessesClient.BeginCreateOrUpdate. type DiskAccessesClientCreateOrUpdateResponse struct { + // disk access resource. DiskAccess } -// DiskAccessesClientDeleteAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.DeleteAPrivateEndpointConnection. +// DiskAccessesClientDeleteAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.BeginDeleteAPrivateEndpointConnection. type DiskAccessesClientDeleteAPrivateEndpointConnectionResponse struct { // placeholder for future response values } -// DiskAccessesClientDeleteResponse contains the response from method DiskAccessesClient.Delete. +// DiskAccessesClientDeleteResponse contains the response from method DiskAccessesClient.BeginDelete. type DiskAccessesClientDeleteResponse struct { // placeholder for future response values } // DiskAccessesClientGetAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.GetAPrivateEndpointConnection. type DiskAccessesClientGetAPrivateEndpointConnectionResponse struct { + // The Private Endpoint Connection resource. PrivateEndpointConnection } // DiskAccessesClientGetPrivateLinkResourcesResponse contains the response from method DiskAccessesClient.GetPrivateLinkResources. type DiskAccessesClientGetPrivateLinkResourcesResponse struct { + // A list of private link resources PrivateLinkResourceListResult } // DiskAccessesClientGetResponse contains the response from method DiskAccessesClient.Get. type DiskAccessesClientGetResponse struct { + // disk access resource. DiskAccess } -// DiskAccessesClientListByResourceGroupResponse contains the response from method DiskAccessesClient.ListByResourceGroup. +// DiskAccessesClientListByResourceGroupResponse contains the response from method DiskAccessesClient.NewListByResourceGroupPager. type DiskAccessesClientListByResourceGroupResponse struct { + // The List disk access operation response. DiskAccessList } -// DiskAccessesClientListPrivateEndpointConnectionsResponse contains the response from method DiskAccessesClient.ListPrivateEndpointConnections. +// DiskAccessesClientListPrivateEndpointConnectionsResponse contains the response from method DiskAccessesClient.NewListPrivateEndpointConnectionsPager. type DiskAccessesClientListPrivateEndpointConnectionsResponse struct { + // A list of private link resources PrivateEndpointConnectionListResult } -// DiskAccessesClientListResponse contains the response from method DiskAccessesClient.List. +// DiskAccessesClientListResponse contains the response from method DiskAccessesClient.NewListPager. type DiskAccessesClientListResponse struct { + // The List disk access operation response. DiskAccessList } -// DiskAccessesClientUpdateAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.UpdateAPrivateEndpointConnection. +// DiskAccessesClientUpdateAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.BeginUpdateAPrivateEndpointConnection. type DiskAccessesClientUpdateAPrivateEndpointConnectionResponse struct { + // The Private Endpoint Connection resource. PrivateEndpointConnection } -// DiskAccessesClientUpdateResponse contains the response from method DiskAccessesClient.Update. +// DiskAccessesClientUpdateResponse contains the response from method DiskAccessesClient.BeginUpdate. type DiskAccessesClientUpdateResponse struct { + // disk access resource. DiskAccess } -// DiskEncryptionSetsClientCreateOrUpdateResponse contains the response from method DiskEncryptionSetsClient.CreateOrUpdate. +// DiskEncryptionSetsClientCreateOrUpdateResponse contains the response from method DiskEncryptionSetsClient.BeginCreateOrUpdate. type DiskEncryptionSetsClientCreateOrUpdateResponse struct { + // disk encryption set resource. DiskEncryptionSet } -// DiskEncryptionSetsClientDeleteResponse contains the response from method DiskEncryptionSetsClient.Delete. +// DiskEncryptionSetsClientDeleteResponse contains the response from method DiskEncryptionSetsClient.BeginDelete. type DiskEncryptionSetsClientDeleteResponse struct { // placeholder for future response values } // DiskEncryptionSetsClientGetResponse contains the response from method DiskEncryptionSetsClient.Get. type DiskEncryptionSetsClientGetResponse struct { + // disk encryption set resource. DiskEncryptionSet } -// DiskEncryptionSetsClientListAssociatedResourcesResponse contains the response from method DiskEncryptionSetsClient.ListAssociatedResources. +// DiskEncryptionSetsClientListAssociatedResourcesResponse contains the response from method DiskEncryptionSetsClient.NewListAssociatedResourcesPager. type DiskEncryptionSetsClientListAssociatedResourcesResponse struct { + // The List resources which are encrypted with the disk encryption set. ResourceURIList } -// DiskEncryptionSetsClientListByResourceGroupResponse contains the response from method DiskEncryptionSetsClient.ListByResourceGroup. +// DiskEncryptionSetsClientListByResourceGroupResponse contains the response from method DiskEncryptionSetsClient.NewListByResourceGroupPager. type DiskEncryptionSetsClientListByResourceGroupResponse struct { + // The List disk encryption set operation response. DiskEncryptionSetList } -// DiskEncryptionSetsClientListResponse contains the response from method DiskEncryptionSetsClient.List. +// DiskEncryptionSetsClientListResponse contains the response from method DiskEncryptionSetsClient.NewListPager. type DiskEncryptionSetsClientListResponse struct { + // The List disk encryption set operation response. DiskEncryptionSetList } -// DiskEncryptionSetsClientUpdateResponse contains the response from method DiskEncryptionSetsClient.Update. +// DiskEncryptionSetsClientUpdateResponse contains the response from method DiskEncryptionSetsClient.BeginUpdate. type DiskEncryptionSetsClientUpdateResponse struct { + // disk encryption set resource. DiskEncryptionSet } // DiskRestorePointClientGetResponse contains the response from method DiskRestorePointClient.Get. type DiskRestorePointClientGetResponse struct { + // Properties of disk restore point DiskRestorePoint } -// DiskRestorePointClientGrantAccessResponse contains the response from method DiskRestorePointClient.GrantAccess. +// DiskRestorePointClientGrantAccessResponse contains the response from method DiskRestorePointClient.BeginGrantAccess. type DiskRestorePointClientGrantAccessResponse struct { + // A disk access SAS uri. AccessURI } -// DiskRestorePointClientListByRestorePointResponse contains the response from method DiskRestorePointClient.ListByRestorePoint. +// DiskRestorePointClientListByRestorePointResponse contains the response from method DiskRestorePointClient.NewListByRestorePointPager. type DiskRestorePointClientListByRestorePointResponse struct { + // The List Disk Restore Points operation response. DiskRestorePointList } -// DiskRestorePointClientRevokeAccessResponse contains the response from method DiskRestorePointClient.RevokeAccess. +// DiskRestorePointClientRevokeAccessResponse contains the response from method DiskRestorePointClient.BeginRevokeAccess. type DiskRestorePointClientRevokeAccessResponse struct { // placeholder for future response values } -// DisksClientCreateOrUpdateResponse contains the response from method DisksClient.CreateOrUpdate. +// DisksClientCreateOrUpdateResponse contains the response from method DisksClient.BeginCreateOrUpdate. type DisksClientCreateOrUpdateResponse struct { + // Disk resource. Disk } -// DisksClientDeleteResponse contains the response from method DisksClient.Delete. +// DisksClientDeleteResponse contains the response from method DisksClient.BeginDelete. type DisksClientDeleteResponse struct { // placeholder for future response values } // DisksClientGetResponse contains the response from method DisksClient.Get. type DisksClientGetResponse struct { + // Disk resource. Disk } -// DisksClientGrantAccessResponse contains the response from method DisksClient.GrantAccess. +// DisksClientGrantAccessResponse contains the response from method DisksClient.BeginGrantAccess. type DisksClientGrantAccessResponse struct { + // A disk access SAS uri. AccessURI } -// DisksClientListByResourceGroupResponse contains the response from method DisksClient.ListByResourceGroup. +// DisksClientListByResourceGroupResponse contains the response from method DisksClient.NewListByResourceGroupPager. type DisksClientListByResourceGroupResponse struct { + // The List Disks operation response. DiskList } -// DisksClientListResponse contains the response from method DisksClient.List. +// DisksClientListResponse contains the response from method DisksClient.NewListPager. type DisksClientListResponse struct { + // The List Disks operation response. DiskList } -// DisksClientRevokeAccessResponse contains the response from method DisksClient.RevokeAccess. +// DisksClientRevokeAccessResponse contains the response from method DisksClient.BeginRevokeAccess. type DisksClientRevokeAccessResponse struct { // placeholder for future response values } -// DisksClientUpdateResponse contains the response from method DisksClient.Update. +// DisksClientUpdateResponse contains the response from method DisksClient.BeginUpdate. type DisksClientUpdateResponse struct { + // Disk resource. Disk } -// GalleriesClientCreateOrUpdateResponse contains the response from method GalleriesClient.CreateOrUpdate. +// GalleriesClientCreateOrUpdateResponse contains the response from method GalleriesClient.BeginCreateOrUpdate. type GalleriesClientCreateOrUpdateResponse struct { + // Specifies information about the Shared Image Gallery that you want to create or update. Gallery } -// GalleriesClientDeleteResponse contains the response from method GalleriesClient.Delete. +// GalleriesClientDeleteResponse contains the response from method GalleriesClient.BeginDelete. type GalleriesClientDeleteResponse struct { // placeholder for future response values } // GalleriesClientGetResponse contains the response from method GalleriesClient.Get. type GalleriesClientGetResponse struct { + // Specifies information about the Shared Image Gallery that you want to create or update. Gallery } -// GalleriesClientListByResourceGroupResponse contains the response from method GalleriesClient.ListByResourceGroup. +// GalleriesClientListByResourceGroupResponse contains the response from method GalleriesClient.NewListByResourceGroupPager. type GalleriesClientListByResourceGroupResponse struct { + // The List Galleries operation response. GalleryList } -// GalleriesClientListResponse contains the response from method GalleriesClient.List. +// GalleriesClientListResponse contains the response from method GalleriesClient.NewListPager. type GalleriesClientListResponse struct { + // The List Galleries operation response. GalleryList } -// GalleriesClientUpdateResponse contains the response from method GalleriesClient.Update. +// GalleriesClientUpdateResponse contains the response from method GalleriesClient.BeginUpdate. type GalleriesClientUpdateResponse struct { + // Specifies information about the Shared Image Gallery that you want to create or update. Gallery } -// GalleryApplicationVersionsClientCreateOrUpdateResponse contains the response from method GalleryApplicationVersionsClient.CreateOrUpdate. +// GalleryApplicationVersionsClientCreateOrUpdateResponse contains the response from method GalleryApplicationVersionsClient.BeginCreateOrUpdate. type GalleryApplicationVersionsClientCreateOrUpdateResponse struct { + // Specifies information about the gallery Application Version that you want to create or update. GalleryApplicationVersion } -// GalleryApplicationVersionsClientDeleteResponse contains the response from method GalleryApplicationVersionsClient.Delete. +// GalleryApplicationVersionsClientDeleteResponse contains the response from method GalleryApplicationVersionsClient.BeginDelete. type GalleryApplicationVersionsClientDeleteResponse struct { // placeholder for future response values } // GalleryApplicationVersionsClientGetResponse contains the response from method GalleryApplicationVersionsClient.Get. type GalleryApplicationVersionsClientGetResponse struct { + // Specifies information about the gallery Application Version that you want to create or update. GalleryApplicationVersion } -// GalleryApplicationVersionsClientListByGalleryApplicationResponse contains the response from method GalleryApplicationVersionsClient.ListByGalleryApplication. +// GalleryApplicationVersionsClientListByGalleryApplicationResponse contains the response from method GalleryApplicationVersionsClient.NewListByGalleryApplicationPager. type GalleryApplicationVersionsClientListByGalleryApplicationResponse struct { + // The List Gallery Application version operation response. GalleryApplicationVersionList } -// GalleryApplicationVersionsClientUpdateResponse contains the response from method GalleryApplicationVersionsClient.Update. +// GalleryApplicationVersionsClientUpdateResponse contains the response from method GalleryApplicationVersionsClient.BeginUpdate. type GalleryApplicationVersionsClientUpdateResponse struct { + // Specifies information about the gallery Application Version that you want to create or update. GalleryApplicationVersion } -// GalleryApplicationsClientCreateOrUpdateResponse contains the response from method GalleryApplicationsClient.CreateOrUpdate. +// GalleryApplicationsClientCreateOrUpdateResponse contains the response from method GalleryApplicationsClient.BeginCreateOrUpdate. type GalleryApplicationsClientCreateOrUpdateResponse struct { + // Specifies information about the gallery Application Definition that you want to create or update. GalleryApplication } -// GalleryApplicationsClientDeleteResponse contains the response from method GalleryApplicationsClient.Delete. +// GalleryApplicationsClientDeleteResponse contains the response from method GalleryApplicationsClient.BeginDelete. type GalleryApplicationsClientDeleteResponse struct { // placeholder for future response values } // GalleryApplicationsClientGetResponse contains the response from method GalleryApplicationsClient.Get. type GalleryApplicationsClientGetResponse struct { + // Specifies information about the gallery Application Definition that you want to create or update. GalleryApplication } -// GalleryApplicationsClientListByGalleryResponse contains the response from method GalleryApplicationsClient.ListByGallery. +// GalleryApplicationsClientListByGalleryResponse contains the response from method GalleryApplicationsClient.NewListByGalleryPager. type GalleryApplicationsClientListByGalleryResponse struct { + // The List Gallery Applications operation response. GalleryApplicationList } -// GalleryApplicationsClientUpdateResponse contains the response from method GalleryApplicationsClient.Update. +// GalleryApplicationsClientUpdateResponse contains the response from method GalleryApplicationsClient.BeginUpdate. type GalleryApplicationsClientUpdateResponse struct { + // Specifies information about the gallery Application Definition that you want to create or update. GalleryApplication } -// GalleryImageVersionsClientCreateOrUpdateResponse contains the response from method GalleryImageVersionsClient.CreateOrUpdate. +// GalleryImageVersionsClientCreateOrUpdateResponse contains the response from method GalleryImageVersionsClient.BeginCreateOrUpdate. type GalleryImageVersionsClientCreateOrUpdateResponse struct { + // Specifies information about the gallery image version that you want to create or update. GalleryImageVersion } -// GalleryImageVersionsClientDeleteResponse contains the response from method GalleryImageVersionsClient.Delete. +// GalleryImageVersionsClientDeleteResponse contains the response from method GalleryImageVersionsClient.BeginDelete. type GalleryImageVersionsClientDeleteResponse struct { // placeholder for future response values } // GalleryImageVersionsClientGetResponse contains the response from method GalleryImageVersionsClient.Get. type GalleryImageVersionsClientGetResponse struct { + // Specifies information about the gallery image version that you want to create or update. GalleryImageVersion } -// GalleryImageVersionsClientListByGalleryImageResponse contains the response from method GalleryImageVersionsClient.ListByGalleryImage. +// GalleryImageVersionsClientListByGalleryImageResponse contains the response from method GalleryImageVersionsClient.NewListByGalleryImagePager. type GalleryImageVersionsClientListByGalleryImageResponse struct { + // The List Gallery Image version operation response. GalleryImageVersionList } -// GalleryImageVersionsClientUpdateResponse contains the response from method GalleryImageVersionsClient.Update. +// GalleryImageVersionsClientUpdateResponse contains the response from method GalleryImageVersionsClient.BeginUpdate. type GalleryImageVersionsClientUpdateResponse struct { + // Specifies information about the gallery image version that you want to create or update. GalleryImageVersion } -// GalleryImagesClientCreateOrUpdateResponse contains the response from method GalleryImagesClient.CreateOrUpdate. +// GalleryImagesClientCreateOrUpdateResponse contains the response from method GalleryImagesClient.BeginCreateOrUpdate. type GalleryImagesClientCreateOrUpdateResponse struct { + // Specifies information about the gallery image definition that you want to create or update. GalleryImage } -// GalleryImagesClientDeleteResponse contains the response from method GalleryImagesClient.Delete. +// GalleryImagesClientDeleteResponse contains the response from method GalleryImagesClient.BeginDelete. type GalleryImagesClientDeleteResponse struct { // placeholder for future response values } // GalleryImagesClientGetResponse contains the response from method GalleryImagesClient.Get. type GalleryImagesClientGetResponse struct { + // Specifies information about the gallery image definition that you want to create or update. GalleryImage } -// GalleryImagesClientListByGalleryResponse contains the response from method GalleryImagesClient.ListByGallery. +// GalleryImagesClientListByGalleryResponse contains the response from method GalleryImagesClient.NewListByGalleryPager. type GalleryImagesClientListByGalleryResponse struct { + // The List Gallery Images operation response. GalleryImageList } -// GalleryImagesClientUpdateResponse contains the response from method GalleryImagesClient.Update. +// GalleryImagesClientUpdateResponse contains the response from method GalleryImagesClient.BeginUpdate. type GalleryImagesClientUpdateResponse struct { + // Specifies information about the gallery image definition that you want to create or update. GalleryImage } -// GallerySharingProfileClientUpdateResponse contains the response from method GallerySharingProfileClient.Update. +// GallerySharingProfileClientUpdateResponse contains the response from method GallerySharingProfileClient.BeginUpdate. type GallerySharingProfileClientUpdateResponse struct { + // Specifies information about the gallery sharing profile update. SharingUpdate } -// ImagesClientCreateOrUpdateResponse contains the response from method ImagesClient.CreateOrUpdate. +// ImagesClientCreateOrUpdateResponse contains the response from method ImagesClient.BeginCreateOrUpdate. type ImagesClientCreateOrUpdateResponse struct { + // The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. + // If SourceImage is provided, the destination virtual hard drive must not exist. Image } -// ImagesClientDeleteResponse contains the response from method ImagesClient.Delete. +// ImagesClientDeleteResponse contains the response from method ImagesClient.BeginDelete. type ImagesClientDeleteResponse struct { // placeholder for future response values } // ImagesClientGetResponse contains the response from method ImagesClient.Get. type ImagesClientGetResponse struct { + // The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. + // If SourceImage is provided, the destination virtual hard drive must not exist. Image } -// ImagesClientListByResourceGroupResponse contains the response from method ImagesClient.ListByResourceGroup. +// ImagesClientListByResourceGroupResponse contains the response from method ImagesClient.NewListByResourceGroupPager. type ImagesClientListByResourceGroupResponse struct { + // The List Image operation response. ImageListResult } -// ImagesClientListResponse contains the response from method ImagesClient.List. +// ImagesClientListResponse contains the response from method ImagesClient.NewListPager. type ImagesClientListResponse struct { + // The List Image operation response. ImageListResult } -// ImagesClientUpdateResponse contains the response from method ImagesClient.Update. +// ImagesClientUpdateResponse contains the response from method ImagesClient.BeginUpdate. type ImagesClientUpdateResponse struct { + // The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. + // If SourceImage is provided, the destination virtual hard drive must not exist. Image } -// LogAnalyticsClientExportRequestRateByIntervalResponse contains the response from method LogAnalyticsClient.ExportRequestRateByInterval. +// LogAnalyticsClientExportRequestRateByIntervalResponse contains the response from method LogAnalyticsClient.BeginExportRequestRateByInterval. type LogAnalyticsClientExportRequestRateByIntervalResponse struct { + // LogAnalytics operation status response LogAnalyticsOperationResult } -// LogAnalyticsClientExportThrottledRequestsResponse contains the response from method LogAnalyticsClient.ExportThrottledRequests. +// LogAnalyticsClientExportThrottledRequestsResponse contains the response from method LogAnalyticsClient.BeginExportThrottledRequests. type LogAnalyticsClientExportThrottledRequestsResponse struct { + // LogAnalytics operation status response LogAnalyticsOperationResult } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { + // The List Compute Operation operation response. OperationListResult } // ProximityPlacementGroupsClientCreateOrUpdateResponse contains the response from method ProximityPlacementGroupsClient.CreateOrUpdate. type ProximityPlacementGroupsClientCreateOrUpdateResponse struct { + // Specifies information about the proximity placement group. ProximityPlacementGroup } @@ -668,76 +820,89 @@ type ProximityPlacementGroupsClientDeleteResponse struct { // ProximityPlacementGroupsClientGetResponse contains the response from method ProximityPlacementGroupsClient.Get. type ProximityPlacementGroupsClientGetResponse struct { + // Specifies information about the proximity placement group. ProximityPlacementGroup } -// ProximityPlacementGroupsClientListByResourceGroupResponse contains the response from method ProximityPlacementGroupsClient.ListByResourceGroup. +// ProximityPlacementGroupsClientListByResourceGroupResponse contains the response from method ProximityPlacementGroupsClient.NewListByResourceGroupPager. type ProximityPlacementGroupsClientListByResourceGroupResponse struct { + // The List Proximity Placement Group operation response. ProximityPlacementGroupListResult } -// ProximityPlacementGroupsClientListBySubscriptionResponse contains the response from method ProximityPlacementGroupsClient.ListBySubscription. +// ProximityPlacementGroupsClientListBySubscriptionResponse contains the response from method ProximityPlacementGroupsClient.NewListBySubscriptionPager. type ProximityPlacementGroupsClientListBySubscriptionResponse struct { + // The List Proximity Placement Group operation response. ProximityPlacementGroupListResult } // ProximityPlacementGroupsClientUpdateResponse contains the response from method ProximityPlacementGroupsClient.Update. type ProximityPlacementGroupsClientUpdateResponse struct { + // Specifies information about the proximity placement group. ProximityPlacementGroup } -// ResourceSKUsClientListResponse contains the response from method ResourceSKUsClient.List. +// ResourceSKUsClientListResponse contains the response from method ResourceSKUsClient.NewListPager. type ResourceSKUsClientListResponse struct { + // The List Resource Skus operation response. ResourceSKUsResult } // RestorePointCollectionsClientCreateOrUpdateResponse contains the response from method RestorePointCollectionsClient.CreateOrUpdate. type RestorePointCollectionsClientCreateOrUpdateResponse struct { + // Create or update Restore Point collection parameters. RestorePointCollection } -// RestorePointCollectionsClientDeleteResponse contains the response from method RestorePointCollectionsClient.Delete. +// RestorePointCollectionsClientDeleteResponse contains the response from method RestorePointCollectionsClient.BeginDelete. type RestorePointCollectionsClientDeleteResponse struct { // placeholder for future response values } // RestorePointCollectionsClientGetResponse contains the response from method RestorePointCollectionsClient.Get. type RestorePointCollectionsClientGetResponse struct { + // Create or update Restore Point collection parameters. RestorePointCollection } -// RestorePointCollectionsClientListAllResponse contains the response from method RestorePointCollectionsClient.ListAll. +// RestorePointCollectionsClientListAllResponse contains the response from method RestorePointCollectionsClient.NewListAllPager. type RestorePointCollectionsClientListAllResponse struct { + // The List restore point collection operation response. RestorePointCollectionListResult } -// RestorePointCollectionsClientListResponse contains the response from method RestorePointCollectionsClient.List. +// RestorePointCollectionsClientListResponse contains the response from method RestorePointCollectionsClient.NewListPager. type RestorePointCollectionsClientListResponse struct { + // The List restore point collection operation response. RestorePointCollectionListResult } // RestorePointCollectionsClientUpdateResponse contains the response from method RestorePointCollectionsClient.Update. type RestorePointCollectionsClientUpdateResponse struct { + // Create or update Restore Point collection parameters. RestorePointCollection } -// RestorePointsClientCreateResponse contains the response from method RestorePointsClient.Create. +// RestorePointsClientCreateResponse contains the response from method RestorePointsClient.BeginCreate. type RestorePointsClientCreateResponse struct { + // Restore Point details. RestorePoint } -// RestorePointsClientDeleteResponse contains the response from method RestorePointsClient.Delete. +// RestorePointsClientDeleteResponse contains the response from method RestorePointsClient.BeginDelete. type RestorePointsClientDeleteResponse struct { // placeholder for future response values } // RestorePointsClientGetResponse contains the response from method RestorePointsClient.Get. type RestorePointsClientGetResponse struct { + // Restore Point details. RestorePoint } // SSHPublicKeysClientCreateResponse contains the response from method SSHPublicKeysClient.Create. type SSHPublicKeysClientCreateResponse struct { + // Specifies information about the SSH public key. SSHPublicKeyResource } @@ -748,106 +913,125 @@ type SSHPublicKeysClientDeleteResponse struct { // SSHPublicKeysClientGenerateKeyPairResponse contains the response from method SSHPublicKeysClient.GenerateKeyPair. type SSHPublicKeysClientGenerateKeyPairResponse struct { + // Response from generation of an SSH key pair. SSHPublicKeyGenerateKeyPairResult } // SSHPublicKeysClientGetResponse contains the response from method SSHPublicKeysClient.Get. type SSHPublicKeysClientGetResponse struct { + // Specifies information about the SSH public key. SSHPublicKeyResource } -// SSHPublicKeysClientListByResourceGroupResponse contains the response from method SSHPublicKeysClient.ListByResourceGroup. +// SSHPublicKeysClientListByResourceGroupResponse contains the response from method SSHPublicKeysClient.NewListByResourceGroupPager. type SSHPublicKeysClientListByResourceGroupResponse struct { + // The list SSH public keys operation response. SSHPublicKeysGroupListResult } -// SSHPublicKeysClientListBySubscriptionResponse contains the response from method SSHPublicKeysClient.ListBySubscription. +// SSHPublicKeysClientListBySubscriptionResponse contains the response from method SSHPublicKeysClient.NewListBySubscriptionPager. type SSHPublicKeysClientListBySubscriptionResponse struct { + // The list SSH public keys operation response. SSHPublicKeysGroupListResult } // SSHPublicKeysClientUpdateResponse contains the response from method SSHPublicKeysClient.Update. type SSHPublicKeysClientUpdateResponse struct { + // Specifies information about the SSH public key. SSHPublicKeyResource } // SharedGalleriesClientGetResponse contains the response from method SharedGalleriesClient.Get. type SharedGalleriesClientGetResponse struct { + // Specifies information about the Shared Gallery that you want to create or update. SharedGallery } -// SharedGalleriesClientListResponse contains the response from method SharedGalleriesClient.List. +// SharedGalleriesClientListResponse contains the response from method SharedGalleriesClient.NewListPager. type SharedGalleriesClientListResponse struct { + // The List Shared Galleries operation response. SharedGalleryList } // SharedGalleryImageVersionsClientGetResponse contains the response from method SharedGalleryImageVersionsClient.Get. type SharedGalleryImageVersionsClientGetResponse struct { + // Specifies information about the gallery image version that you want to create or update. SharedGalleryImageVersion } -// SharedGalleryImageVersionsClientListResponse contains the response from method SharedGalleryImageVersionsClient.List. +// SharedGalleryImageVersionsClientListResponse contains the response from method SharedGalleryImageVersionsClient.NewListPager. type SharedGalleryImageVersionsClientListResponse struct { + // The List Shared Gallery Image versions operation response. SharedGalleryImageVersionList } // SharedGalleryImagesClientGetResponse contains the response from method SharedGalleryImagesClient.Get. type SharedGalleryImagesClientGetResponse struct { + // Specifies information about the gallery image definition that you want to create or update. SharedGalleryImage } -// SharedGalleryImagesClientListResponse contains the response from method SharedGalleryImagesClient.List. +// SharedGalleryImagesClientListResponse contains the response from method SharedGalleryImagesClient.NewListPager. type SharedGalleryImagesClientListResponse struct { + // The List Shared Gallery Images operation response. SharedGalleryImageList } -// SnapshotsClientCreateOrUpdateResponse contains the response from method SnapshotsClient.CreateOrUpdate. +// SnapshotsClientCreateOrUpdateResponse contains the response from method SnapshotsClient.BeginCreateOrUpdate. type SnapshotsClientCreateOrUpdateResponse struct { + // Snapshot resource. Snapshot } -// SnapshotsClientDeleteResponse contains the response from method SnapshotsClient.Delete. +// SnapshotsClientDeleteResponse contains the response from method SnapshotsClient.BeginDelete. type SnapshotsClientDeleteResponse struct { // placeholder for future response values } // SnapshotsClientGetResponse contains the response from method SnapshotsClient.Get. type SnapshotsClientGetResponse struct { + // Snapshot resource. Snapshot } -// SnapshotsClientGrantAccessResponse contains the response from method SnapshotsClient.GrantAccess. +// SnapshotsClientGrantAccessResponse contains the response from method SnapshotsClient.BeginGrantAccess. type SnapshotsClientGrantAccessResponse struct { + // A disk access SAS uri. AccessURI } -// SnapshotsClientListByResourceGroupResponse contains the response from method SnapshotsClient.ListByResourceGroup. +// SnapshotsClientListByResourceGroupResponse contains the response from method SnapshotsClient.NewListByResourceGroupPager. type SnapshotsClientListByResourceGroupResponse struct { + // The List Snapshots operation response. SnapshotList } -// SnapshotsClientListResponse contains the response from method SnapshotsClient.List. +// SnapshotsClientListResponse contains the response from method SnapshotsClient.NewListPager. type SnapshotsClientListResponse struct { + // The List Snapshots operation response. SnapshotList } -// SnapshotsClientRevokeAccessResponse contains the response from method SnapshotsClient.RevokeAccess. +// SnapshotsClientRevokeAccessResponse contains the response from method SnapshotsClient.BeginRevokeAccess. type SnapshotsClientRevokeAccessResponse struct { // placeholder for future response values } -// SnapshotsClientUpdateResponse contains the response from method SnapshotsClient.Update. +// SnapshotsClientUpdateResponse contains the response from method SnapshotsClient.BeginUpdate. type SnapshotsClientUpdateResponse struct { + // Snapshot resource. Snapshot } -// UsageClientListResponse contains the response from method UsageClient.List. +// UsageClientListResponse contains the response from method UsageClient.NewListPager. type UsageClientListResponse struct { + // The List Usages operation response. ListUsagesResult } // VirtualMachineExtensionImagesClientGetResponse contains the response from method VirtualMachineExtensionImagesClient.Get. type VirtualMachineExtensionImagesClientGetResponse struct { + // Describes a Virtual Machine Extension Image. VirtualMachineExtensionImage } @@ -863,36 +1047,47 @@ type VirtualMachineExtensionImagesClientListVersionsResponse struct { VirtualMachineExtensionImageArray []*VirtualMachineExtensionImage } -// VirtualMachineExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineExtensionsClient.CreateOrUpdate. +// VirtualMachineExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineExtensionsClient.BeginCreateOrUpdate. type VirtualMachineExtensionsClientCreateOrUpdateResponse struct { + // Describes a Virtual Machine Extension. VirtualMachineExtension } -// VirtualMachineExtensionsClientDeleteResponse contains the response from method VirtualMachineExtensionsClient.Delete. +// VirtualMachineExtensionsClientDeleteResponse contains the response from method VirtualMachineExtensionsClient.BeginDelete. type VirtualMachineExtensionsClientDeleteResponse struct { // placeholder for future response values } // VirtualMachineExtensionsClientGetResponse contains the response from method VirtualMachineExtensionsClient.Get. type VirtualMachineExtensionsClientGetResponse struct { + // Describes a Virtual Machine Extension. VirtualMachineExtension } // VirtualMachineExtensionsClientListResponse contains the response from method VirtualMachineExtensionsClient.List. type VirtualMachineExtensionsClientListResponse struct { + // The List Extension operation response VirtualMachineExtensionsListResult } -// VirtualMachineExtensionsClientUpdateResponse contains the response from method VirtualMachineExtensionsClient.Update. +// VirtualMachineExtensionsClientUpdateResponse contains the response from method VirtualMachineExtensionsClient.BeginUpdate. type VirtualMachineExtensionsClientUpdateResponse struct { + // Describes a Virtual Machine Extension. VirtualMachineExtension } // VirtualMachineImagesClientGetResponse contains the response from method VirtualMachineImagesClient.Get. type VirtualMachineImagesClientGetResponse struct { + // Describes a Virtual Machine Image. VirtualMachineImage } +// VirtualMachineImagesClientListByEdgeZoneResponse contains the response from method VirtualMachineImagesClient.ListByEdgeZone. +type VirtualMachineImagesClientListByEdgeZoneResponse struct { + // The List VmImages in EdgeZone operation response. + VMImagesInEdgeZoneListResult +} + // VirtualMachineImagesClientListOffersResponse contains the response from method VirtualMachineImagesClient.ListOffers. type VirtualMachineImagesClientListOffersResponse struct { // Array of VirtualMachineImageResource @@ -919,6 +1114,7 @@ type VirtualMachineImagesClientListSKUsResponse struct { // VirtualMachineImagesEdgeZoneClientGetResponse contains the response from method VirtualMachineImagesEdgeZoneClient.Get. type VirtualMachineImagesEdgeZoneClientGetResponse struct { + // Describes a Virtual Machine Image. VirtualMachineImage } @@ -946,197 +1142,231 @@ type VirtualMachineImagesEdgeZoneClientListSKUsResponse struct { VirtualMachineImageResourceArray []*VirtualMachineImageResource } -// VirtualMachineRunCommandsClientCreateOrUpdateResponse contains the response from method VirtualMachineRunCommandsClient.CreateOrUpdate. +// VirtualMachineRunCommandsClientCreateOrUpdateResponse contains the response from method VirtualMachineRunCommandsClient.BeginCreateOrUpdate. type VirtualMachineRunCommandsClientCreateOrUpdateResponse struct { + // Describes a Virtual Machine run command. VirtualMachineRunCommand } -// VirtualMachineRunCommandsClientDeleteResponse contains the response from method VirtualMachineRunCommandsClient.Delete. +// VirtualMachineRunCommandsClientDeleteResponse contains the response from method VirtualMachineRunCommandsClient.BeginDelete. type VirtualMachineRunCommandsClientDeleteResponse struct { // placeholder for future response values } // VirtualMachineRunCommandsClientGetByVirtualMachineResponse contains the response from method VirtualMachineRunCommandsClient.GetByVirtualMachine. type VirtualMachineRunCommandsClientGetByVirtualMachineResponse struct { + // Describes a Virtual Machine run command. VirtualMachineRunCommand } // VirtualMachineRunCommandsClientGetResponse contains the response from method VirtualMachineRunCommandsClient.Get. type VirtualMachineRunCommandsClientGetResponse struct { + // Describes the properties of a Run Command. RunCommandDocument } -// VirtualMachineRunCommandsClientListByVirtualMachineResponse contains the response from method VirtualMachineRunCommandsClient.ListByVirtualMachine. +// VirtualMachineRunCommandsClientListByVirtualMachineResponse contains the response from method VirtualMachineRunCommandsClient.NewListByVirtualMachinePager. type VirtualMachineRunCommandsClientListByVirtualMachineResponse struct { + // The List run command operation response VirtualMachineRunCommandsListResult } -// VirtualMachineRunCommandsClientListResponse contains the response from method VirtualMachineRunCommandsClient.List. +// VirtualMachineRunCommandsClientListResponse contains the response from method VirtualMachineRunCommandsClient.NewListPager. type VirtualMachineRunCommandsClientListResponse struct { + // The List Virtual Machine operation response. RunCommandListResult } -// VirtualMachineRunCommandsClientUpdateResponse contains the response from method VirtualMachineRunCommandsClient.Update. +// VirtualMachineRunCommandsClientUpdateResponse contains the response from method VirtualMachineRunCommandsClient.BeginUpdate. type VirtualMachineRunCommandsClientUpdateResponse struct { + // Describes a Virtual Machine run command. VirtualMachineRunCommand } -// VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetExtensionsClient.CreateOrUpdate. +// VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate. type VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse struct { + // Describes a Virtual Machine Scale Set Extension. VirtualMachineScaleSetExtension } -// VirtualMachineScaleSetExtensionsClientDeleteResponse contains the response from method VirtualMachineScaleSetExtensionsClient.Delete. +// VirtualMachineScaleSetExtensionsClientDeleteResponse contains the response from method VirtualMachineScaleSetExtensionsClient.BeginDelete. type VirtualMachineScaleSetExtensionsClientDeleteResponse struct { // placeholder for future response values } // VirtualMachineScaleSetExtensionsClientGetResponse contains the response from method VirtualMachineScaleSetExtensionsClient.Get. type VirtualMachineScaleSetExtensionsClientGetResponse struct { + // Describes a Virtual Machine Scale Set Extension. VirtualMachineScaleSetExtension } -// VirtualMachineScaleSetExtensionsClientListResponse contains the response from method VirtualMachineScaleSetExtensionsClient.List. +// VirtualMachineScaleSetExtensionsClientListResponse contains the response from method VirtualMachineScaleSetExtensionsClient.NewListPager. type VirtualMachineScaleSetExtensionsClientListResponse struct { + // The List VM scale set extension operation response. VirtualMachineScaleSetExtensionListResult } -// VirtualMachineScaleSetExtensionsClientUpdateResponse contains the response from method VirtualMachineScaleSetExtensionsClient.Update. +// VirtualMachineScaleSetExtensionsClientUpdateResponse contains the response from method VirtualMachineScaleSetExtensionsClient.BeginUpdate. type VirtualMachineScaleSetExtensionsClientUpdateResponse struct { + // Describes a Virtual Machine Scale Set Extension. VirtualMachineScaleSetExtension } -// VirtualMachineScaleSetRollingUpgradesClientCancelResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.Cancel. +// VirtualMachineScaleSetRollingUpgradesClientCancelResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.BeginCancel. type VirtualMachineScaleSetRollingUpgradesClientCancelResponse struct { // placeholder for future response values } // VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.GetLatest. type VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse struct { + // The status of the latest virtual machine scale set rolling upgrade. RollingUpgradeStatusInfo } -// VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.StartExtensionUpgrade. +// VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade. type VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.StartOSUpgrade. +// VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade. type VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.CreateOrUpdate. +// VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate. type VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse struct { + // Describes a VMSS VM Extension. VirtualMachineScaleSetVMExtension } -// VirtualMachineScaleSetVMExtensionsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.Delete. +// VirtualMachineScaleSetVMExtensionsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.BeginDelete. type VirtualMachineScaleSetVMExtensionsClientDeleteResponse struct { // placeholder for future response values } // VirtualMachineScaleSetVMExtensionsClientGetResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.Get. type VirtualMachineScaleSetVMExtensionsClientGetResponse struct { + // Describes a VMSS VM Extension. VirtualMachineScaleSetVMExtension } // VirtualMachineScaleSetVMExtensionsClientListResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.List. type VirtualMachineScaleSetVMExtensionsClientListResponse struct { + // The List VMSS VM Extension operation response VirtualMachineScaleSetVMExtensionsListResult } -// VirtualMachineScaleSetVMExtensionsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.Update. +// VirtualMachineScaleSetVMExtensionsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.BeginUpdate. type VirtualMachineScaleSetVMExtensionsClientUpdateResponse struct { + // Describes a VMSS VM Extension. VirtualMachineScaleSetVMExtension } -// VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.CreateOrUpdate. +// VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate. type VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse struct { + // Describes a Virtual Machine run command. VirtualMachineRunCommand } -// VirtualMachineScaleSetVMRunCommandsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.Delete. +// VirtualMachineScaleSetVMRunCommandsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.BeginDelete. type VirtualMachineScaleSetVMRunCommandsClientDeleteResponse struct { // placeholder for future response values } // VirtualMachineScaleSetVMRunCommandsClientGetResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.Get. type VirtualMachineScaleSetVMRunCommandsClientGetResponse struct { + // Describes a Virtual Machine run command. VirtualMachineRunCommand } -// VirtualMachineScaleSetVMRunCommandsClientListResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.List. +// VirtualMachineScaleSetVMRunCommandsClientListResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.NewListPager. type VirtualMachineScaleSetVMRunCommandsClientListResponse struct { + // The List run command operation response VirtualMachineRunCommandsListResult } -// VirtualMachineScaleSetVMRunCommandsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.Update. +// VirtualMachineScaleSetVMRunCommandsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate. type VirtualMachineScaleSetVMRunCommandsClientUpdateResponse struct { + // Describes a Virtual Machine run command. VirtualMachineRunCommand } -// VirtualMachineScaleSetVMsClientDeallocateResponse contains the response from method VirtualMachineScaleSetVMsClient.Deallocate. +// VirtualMachineScaleSetVMsClientApproveRollingUpgradeResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginApproveRollingUpgrade. +type VirtualMachineScaleSetVMsClientApproveRollingUpgradeResponse struct { + // placeholder for future response values +} + +// VirtualMachineScaleSetVMsClientAttachDetachDataDisksResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginAttachDetachDataDisks. +type VirtualMachineScaleSetVMsClientAttachDetachDataDisksResponse struct { + // Specifies the storage settings for the virtual machine disks. + StorageProfile +} + +// VirtualMachineScaleSetVMsClientDeallocateResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginDeallocate. type VirtualMachineScaleSetVMsClientDeallocateResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMsClient.Delete. +// VirtualMachineScaleSetVMsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginDelete. type VirtualMachineScaleSetVMsClientDeleteResponse struct { // placeholder for future response values } // VirtualMachineScaleSetVMsClientGetInstanceViewResponse contains the response from method VirtualMachineScaleSetVMsClient.GetInstanceView. type VirtualMachineScaleSetVMsClientGetInstanceViewResponse struct { + // The instance view of a virtual machine scale set VM. VirtualMachineScaleSetVMInstanceView } // VirtualMachineScaleSetVMsClientGetResponse contains the response from method VirtualMachineScaleSetVMsClient.Get. type VirtualMachineScaleSetVMsClientGetResponse struct { + // Describes a virtual machine scale set virtual machine. VirtualMachineScaleSetVM } -// VirtualMachineScaleSetVMsClientListResponse contains the response from method VirtualMachineScaleSetVMsClient.List. +// VirtualMachineScaleSetVMsClientListResponse contains the response from method VirtualMachineScaleSetVMsClient.NewListPager. type VirtualMachineScaleSetVMsClientListResponse struct { + // The List Virtual Machine Scale Set VMs operation response. VirtualMachineScaleSetVMListResult } -// VirtualMachineScaleSetVMsClientPerformMaintenanceResponse contains the response from method VirtualMachineScaleSetVMsClient.PerformMaintenance. +// VirtualMachineScaleSetVMsClientPerformMaintenanceResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginPerformMaintenance. type VirtualMachineScaleSetVMsClientPerformMaintenanceResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientPowerOffResponse contains the response from method VirtualMachineScaleSetVMsClient.PowerOff. +// VirtualMachineScaleSetVMsClientPowerOffResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginPowerOff. type VirtualMachineScaleSetVMsClientPowerOffResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientRedeployResponse contains the response from method VirtualMachineScaleSetVMsClient.Redeploy. +// VirtualMachineScaleSetVMsClientRedeployResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginRedeploy. type VirtualMachineScaleSetVMsClientRedeployResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientReimageAllResponse contains the response from method VirtualMachineScaleSetVMsClient.ReimageAll. +// VirtualMachineScaleSetVMsClientReimageAllResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginReimageAll. type VirtualMachineScaleSetVMsClientReimageAllResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientReimageResponse contains the response from method VirtualMachineScaleSetVMsClient.Reimage. +// VirtualMachineScaleSetVMsClientReimageResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginReimage. type VirtualMachineScaleSetVMsClientReimageResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientRestartResponse contains the response from method VirtualMachineScaleSetVMsClient.Restart. +// VirtualMachineScaleSetVMsClientRestartResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginRestart. type VirtualMachineScaleSetVMsClientRestartResponse struct { // placeholder for future response values } // VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse contains the response from method VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData. type VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse struct { + // The SAS URIs of the console screenshot and serial log blobs. RetrieveBootDiagnosticsDataResult } -// VirtualMachineScaleSetVMsClientRunCommandResponse contains the response from method VirtualMachineScaleSetVMsClient.RunCommand. +// VirtualMachineScaleSetVMsClientRunCommandResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginRunCommand. type VirtualMachineScaleSetVMsClientRunCommandResponse struct { RunCommandResult } @@ -1146,37 +1376,44 @@ type VirtualMachineScaleSetVMsClientSimulateEvictionResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientStartResponse contains the response from method VirtualMachineScaleSetVMsClient.Start. +// VirtualMachineScaleSetVMsClientStartResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginStart. type VirtualMachineScaleSetVMsClientStartResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetVMsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMsClient.Update. +// VirtualMachineScaleSetVMsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMsClient.BeginUpdate. type VirtualMachineScaleSetVMsClientUpdateResponse struct { + // Describes a virtual machine scale set virtual machine. VirtualMachineScaleSetVM } +// VirtualMachineScaleSetsClientApproveRollingUpgradeResponse contains the response from method VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade. +type VirtualMachineScaleSetsClientApproveRollingUpgradeResponse struct { + // placeholder for future response values +} + // VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse contains the response from method VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup. type VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetsClient.CreateOrUpdate. +// VirtualMachineScaleSetsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetsClient.BeginCreateOrUpdate. type VirtualMachineScaleSetsClientCreateOrUpdateResponse struct { + // Describes a Virtual Machine Scale Set. VirtualMachineScaleSet } -// VirtualMachineScaleSetsClientDeallocateResponse contains the response from method VirtualMachineScaleSetsClient.Deallocate. +// VirtualMachineScaleSetsClientDeallocateResponse contains the response from method VirtualMachineScaleSetsClient.BeginDeallocate. type VirtualMachineScaleSetsClientDeallocateResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientDeleteInstancesResponse contains the response from method VirtualMachineScaleSetsClient.DeleteInstances. +// VirtualMachineScaleSetsClientDeleteInstancesResponse contains the response from method VirtualMachineScaleSetsClient.BeginDeleteInstances. type VirtualMachineScaleSetsClientDeleteInstancesResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientDeleteResponse contains the response from method VirtualMachineScaleSetsClient.Delete. +// VirtualMachineScaleSetsClientDeleteResponse contains the response from method VirtualMachineScaleSetsClient.BeginDelete. type VirtualMachineScaleSetsClientDeleteResponse struct { // placeholder for future response values } @@ -1184,125 +1421,149 @@ type VirtualMachineScaleSetsClientDeleteResponse struct { // VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse contains the response from method // VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk. type VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse struct { + // Response after calling a manual recovery walk RecoveryWalkResponse } // VirtualMachineScaleSetsClientGetInstanceViewResponse contains the response from method VirtualMachineScaleSetsClient.GetInstanceView. type VirtualMachineScaleSetsClientGetInstanceViewResponse struct { + // The instance view of a virtual machine scale set. VirtualMachineScaleSetInstanceView } -// VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse contains the response from method VirtualMachineScaleSetsClient.GetOSUpgradeHistory. +// VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse contains the response from method VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager. type VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse struct { + // List of Virtual Machine Scale Set OS Upgrade History operation response. VirtualMachineScaleSetListOSUpgradeHistory } // VirtualMachineScaleSetsClientGetResponse contains the response from method VirtualMachineScaleSetsClient.Get. type VirtualMachineScaleSetsClientGetResponse struct { + // Describes a Virtual Machine Scale Set. VirtualMachineScaleSet } -// VirtualMachineScaleSetsClientListAllResponse contains the response from method VirtualMachineScaleSetsClient.ListAll. +// VirtualMachineScaleSetsClientListAllResponse contains the response from method VirtualMachineScaleSetsClient.NewListAllPager. type VirtualMachineScaleSetsClientListAllResponse struct { + // The List Virtual Machine operation response. VirtualMachineScaleSetListWithLinkResult } -// VirtualMachineScaleSetsClientListByLocationResponse contains the response from method VirtualMachineScaleSetsClient.ListByLocation. +// VirtualMachineScaleSetsClientListByLocationResponse contains the response from method VirtualMachineScaleSetsClient.NewListByLocationPager. type VirtualMachineScaleSetsClientListByLocationResponse struct { + // The List Virtual Machine operation response. VirtualMachineScaleSetListResult } -// VirtualMachineScaleSetsClientListResponse contains the response from method VirtualMachineScaleSetsClient.List. +// VirtualMachineScaleSetsClientListResponse contains the response from method VirtualMachineScaleSetsClient.NewListPager. type VirtualMachineScaleSetsClientListResponse struct { + // The List Virtual Machine operation response. VirtualMachineScaleSetListResult } -// VirtualMachineScaleSetsClientListSKUsResponse contains the response from method VirtualMachineScaleSetsClient.ListSKUs. +// VirtualMachineScaleSetsClientListSKUsResponse contains the response from method VirtualMachineScaleSetsClient.NewListSKUsPager. type VirtualMachineScaleSetsClientListSKUsResponse struct { + // The Virtual Machine Scale Set List Skus operation response. VirtualMachineScaleSetListSKUsResult } -// VirtualMachineScaleSetsClientPerformMaintenanceResponse contains the response from method VirtualMachineScaleSetsClient.PerformMaintenance. +// VirtualMachineScaleSetsClientPerformMaintenanceResponse contains the response from method VirtualMachineScaleSetsClient.BeginPerformMaintenance. type VirtualMachineScaleSetsClientPerformMaintenanceResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientPowerOffResponse contains the response from method VirtualMachineScaleSetsClient.PowerOff. +// VirtualMachineScaleSetsClientPowerOffResponse contains the response from method VirtualMachineScaleSetsClient.BeginPowerOff. type VirtualMachineScaleSetsClientPowerOffResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientRedeployResponse contains the response from method VirtualMachineScaleSetsClient.Redeploy. +// VirtualMachineScaleSetsClientReapplyResponse contains the response from method VirtualMachineScaleSetsClient.BeginReapply. +type VirtualMachineScaleSetsClientReapplyResponse struct { + // placeholder for future response values +} + +// VirtualMachineScaleSetsClientRedeployResponse contains the response from method VirtualMachineScaleSetsClient.BeginRedeploy. type VirtualMachineScaleSetsClientRedeployResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientReimageAllResponse contains the response from method VirtualMachineScaleSetsClient.ReimageAll. +// VirtualMachineScaleSetsClientReimageAllResponse contains the response from method VirtualMachineScaleSetsClient.BeginReimageAll. type VirtualMachineScaleSetsClientReimageAllResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientReimageResponse contains the response from method VirtualMachineScaleSetsClient.Reimage. +// VirtualMachineScaleSetsClientReimageResponse contains the response from method VirtualMachineScaleSetsClient.BeginReimage. type VirtualMachineScaleSetsClientReimageResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientRestartResponse contains the response from method VirtualMachineScaleSetsClient.Restart. +// VirtualMachineScaleSetsClientRestartResponse contains the response from method VirtualMachineScaleSetsClient.BeginRestart. type VirtualMachineScaleSetsClientRestartResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse contains the response from method VirtualMachineScaleSetsClient.SetOrchestrationServiceState. +// VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse contains the response from method VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState. type VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientStartResponse contains the response from method VirtualMachineScaleSetsClient.Start. +// VirtualMachineScaleSetsClientStartResponse contains the response from method VirtualMachineScaleSetsClient.BeginStart. type VirtualMachineScaleSetsClientStartResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientUpdateInstancesResponse contains the response from method VirtualMachineScaleSetsClient.UpdateInstances. +// VirtualMachineScaleSetsClientUpdateInstancesResponse contains the response from method VirtualMachineScaleSetsClient.BeginUpdateInstances. type VirtualMachineScaleSetsClientUpdateInstancesResponse struct { // placeholder for future response values } -// VirtualMachineScaleSetsClientUpdateResponse contains the response from method VirtualMachineScaleSetsClient.Update. +// VirtualMachineScaleSetsClientUpdateResponse contains the response from method VirtualMachineScaleSetsClient.BeginUpdate. type VirtualMachineScaleSetsClientUpdateResponse struct { + // Describes a Virtual Machine Scale Set. VirtualMachineScaleSet } -// VirtualMachineSizesClientListResponse contains the response from method VirtualMachineSizesClient.List. +// VirtualMachineSizesClientListResponse contains the response from method VirtualMachineSizesClient.NewListPager. type VirtualMachineSizesClientListResponse struct { + // The List Virtual Machine operation response. VirtualMachineSizeListResult } -// VirtualMachinesClientAssessPatchesResponse contains the response from method VirtualMachinesClient.AssessPatches. +// VirtualMachinesClientAssessPatchesResponse contains the response from method VirtualMachinesClient.BeginAssessPatches. type VirtualMachinesClientAssessPatchesResponse struct { + // Describes the properties of an AssessPatches result. VirtualMachineAssessPatchesResult } -// VirtualMachinesClientCaptureResponse contains the response from method VirtualMachinesClient.Capture. +// VirtualMachinesClientAttachDetachDataDisksResponse contains the response from method VirtualMachinesClient.BeginAttachDetachDataDisks. +type VirtualMachinesClientAttachDetachDataDisksResponse struct { + // Specifies the storage settings for the virtual machine disks. + StorageProfile +} + +// VirtualMachinesClientCaptureResponse contains the response from method VirtualMachinesClient.BeginCapture. type VirtualMachinesClientCaptureResponse struct { + // Output of virtual machine capture operation. VirtualMachineCaptureResult } -// VirtualMachinesClientConvertToManagedDisksResponse contains the response from method VirtualMachinesClient.ConvertToManagedDisks. +// VirtualMachinesClientConvertToManagedDisksResponse contains the response from method VirtualMachinesClient.BeginConvertToManagedDisks. type VirtualMachinesClientConvertToManagedDisksResponse struct { // placeholder for future response values } -// VirtualMachinesClientCreateOrUpdateResponse contains the response from method VirtualMachinesClient.CreateOrUpdate. +// VirtualMachinesClientCreateOrUpdateResponse contains the response from method VirtualMachinesClient.BeginCreateOrUpdate. type VirtualMachinesClientCreateOrUpdateResponse struct { + // Describes a Virtual Machine. VirtualMachine } -// VirtualMachinesClientDeallocateResponse contains the response from method VirtualMachinesClient.Deallocate. +// VirtualMachinesClientDeallocateResponse contains the response from method VirtualMachinesClient.BeginDeallocate. type VirtualMachinesClientDeallocateResponse struct { // placeholder for future response values } -// VirtualMachinesClientDeleteResponse contains the response from method VirtualMachinesClient.Delete. +// VirtualMachinesClientDeleteResponse contains the response from method VirtualMachinesClient.BeginDelete. type VirtualMachinesClientDeleteResponse struct { // placeholder for future response values } @@ -1314,75 +1575,83 @@ type VirtualMachinesClientGeneralizeResponse struct { // VirtualMachinesClientGetResponse contains the response from method VirtualMachinesClient.Get. type VirtualMachinesClientGetResponse struct { + // Describes a Virtual Machine. VirtualMachine } -// VirtualMachinesClientInstallPatchesResponse contains the response from method VirtualMachinesClient.InstallPatches. +// VirtualMachinesClientInstallPatchesResponse contains the response from method VirtualMachinesClient.BeginInstallPatches. type VirtualMachinesClientInstallPatchesResponse struct { + // The result summary of an installation operation. VirtualMachineInstallPatchesResult } // VirtualMachinesClientInstanceViewResponse contains the response from method VirtualMachinesClient.InstanceView. type VirtualMachinesClientInstanceViewResponse struct { + // The instance view of a virtual machine. VirtualMachineInstanceView } -// VirtualMachinesClientListAllResponse contains the response from method VirtualMachinesClient.ListAll. +// VirtualMachinesClientListAllResponse contains the response from method VirtualMachinesClient.NewListAllPager. type VirtualMachinesClientListAllResponse struct { + // The List Virtual Machine operation response. VirtualMachineListResult } -// VirtualMachinesClientListAvailableSizesResponse contains the response from method VirtualMachinesClient.ListAvailableSizes. +// VirtualMachinesClientListAvailableSizesResponse contains the response from method VirtualMachinesClient.NewListAvailableSizesPager. type VirtualMachinesClientListAvailableSizesResponse struct { + // The List Virtual Machine operation response. VirtualMachineSizeListResult } -// VirtualMachinesClientListByLocationResponse contains the response from method VirtualMachinesClient.ListByLocation. +// VirtualMachinesClientListByLocationResponse contains the response from method VirtualMachinesClient.NewListByLocationPager. type VirtualMachinesClientListByLocationResponse struct { + // The List Virtual Machine operation response. VirtualMachineListResult } -// VirtualMachinesClientListResponse contains the response from method VirtualMachinesClient.List. +// VirtualMachinesClientListResponse contains the response from method VirtualMachinesClient.NewListPager. type VirtualMachinesClientListResponse struct { + // The List Virtual Machine operation response. VirtualMachineListResult } -// VirtualMachinesClientPerformMaintenanceResponse contains the response from method VirtualMachinesClient.PerformMaintenance. +// VirtualMachinesClientPerformMaintenanceResponse contains the response from method VirtualMachinesClient.BeginPerformMaintenance. type VirtualMachinesClientPerformMaintenanceResponse struct { // placeholder for future response values } -// VirtualMachinesClientPowerOffResponse contains the response from method VirtualMachinesClient.PowerOff. +// VirtualMachinesClientPowerOffResponse contains the response from method VirtualMachinesClient.BeginPowerOff. type VirtualMachinesClientPowerOffResponse struct { // placeholder for future response values } -// VirtualMachinesClientReapplyResponse contains the response from method VirtualMachinesClient.Reapply. +// VirtualMachinesClientReapplyResponse contains the response from method VirtualMachinesClient.BeginReapply. type VirtualMachinesClientReapplyResponse struct { // placeholder for future response values } -// VirtualMachinesClientRedeployResponse contains the response from method VirtualMachinesClient.Redeploy. +// VirtualMachinesClientRedeployResponse contains the response from method VirtualMachinesClient.BeginRedeploy. type VirtualMachinesClientRedeployResponse struct { // placeholder for future response values } -// VirtualMachinesClientReimageResponse contains the response from method VirtualMachinesClient.Reimage. +// VirtualMachinesClientReimageResponse contains the response from method VirtualMachinesClient.BeginReimage. type VirtualMachinesClientReimageResponse struct { // placeholder for future response values } -// VirtualMachinesClientRestartResponse contains the response from method VirtualMachinesClient.Restart. +// VirtualMachinesClientRestartResponse contains the response from method VirtualMachinesClient.BeginRestart. type VirtualMachinesClientRestartResponse struct { // placeholder for future response values } // VirtualMachinesClientRetrieveBootDiagnosticsDataResponse contains the response from method VirtualMachinesClient.RetrieveBootDiagnosticsData. type VirtualMachinesClientRetrieveBootDiagnosticsDataResponse struct { + // The SAS URIs of the console screenshot and serial log blobs. RetrieveBootDiagnosticsDataResult } -// VirtualMachinesClientRunCommandResponse contains the response from method VirtualMachinesClient.RunCommand. +// VirtualMachinesClientRunCommandResponse contains the response from method VirtualMachinesClient.BeginRunCommand. type VirtualMachinesClientRunCommandResponse struct { RunCommandResult } @@ -1392,12 +1661,13 @@ type VirtualMachinesClientSimulateEvictionResponse struct { // placeholder for future response values } -// VirtualMachinesClientStartResponse contains the response from method VirtualMachinesClient.Start. +// VirtualMachinesClientStartResponse contains the response from method VirtualMachinesClient.BeginStart. type VirtualMachinesClientStartResponse struct { // placeholder for future response values } -// VirtualMachinesClientUpdateResponse contains the response from method VirtualMachinesClient.Update. +// VirtualMachinesClientUpdateResponse contains the response from method VirtualMachinesClient.BeginUpdate. type VirtualMachinesClientUpdateResponse struct { + // Describes a Virtual Machine. VirtualMachine } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepointcollections_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepointcollections_client.go similarity index 71% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepointcollections_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepointcollections_client.go index b706d70f..f53e3a7d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepointcollections_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepointcollections_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,32 +23,23 @@ import ( // RestorePointCollectionsClient contains the methods for the RestorePointCollections group. // Don't use this type directly, use NewRestorePointCollectionsClient() instead. type RestorePointCollectionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewRestorePointCollectionsClient creates a new instance of RestorePointCollectionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorePointCollectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorePointCollectionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &RestorePointCollectionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } @@ -58,25 +47,33 @@ func NewRestorePointCollectionsClient(subscriptionID string, credential azcore.T // CreateOrUpdate - The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints // for more details. When updating a restore point collection, only tags may be modified. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection. -// parameters - Parameters supplied to the Create or Update restore point collection operation. -// options - RestorePointCollectionsClientCreateOrUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.CreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection. +// - parameters - Parameters supplied to the Create or Update restore point collection operation. +// - options - RestorePointCollectionsClientCreateOrUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.CreateOrUpdate +// method. func (client *RestorePointCollectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollection, options *RestorePointCollectionsClientCreateOrUpdateOptions) (RestorePointCollectionsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "RestorePointCollectionsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, restorePointCollectionName, parameters, options) if err != nil { return RestorePointCollectionsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return RestorePointCollectionsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return RestorePointCollectionsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return RestorePointCollectionsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -94,15 +91,18 @@ func (client *RestorePointCollectionsClient) createOrUpdateCreateRequest(ctx con return nil, errors.New("parameter restorePointCollectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -117,40 +117,53 @@ func (client *RestorePointCollectionsClient) createOrUpdateHandleResponse(resp * // BeginDelete - The operation to delete the restore point collection. This operation will also delete all the contained restore // points. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the Restore Point Collection. -// options - RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the Restore Point Collection. +// - options - RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete +// method. func (client *RestorePointCollectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientBeginDeleteOptions) (*runtime.Poller[RestorePointCollectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, restorePointCollectionName, options) if err != nil { return nil, err } - return runtime.NewPoller[RestorePointCollectionsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[RestorePointCollectionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[RestorePointCollectionsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[RestorePointCollectionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete the restore point collection. This operation will also delete all the contained restore // points. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *RestorePointCollectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "RestorePointCollectionsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, restorePointCollectionName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -168,12 +181,12 @@ func (client *RestorePointCollectionsClient) deleteCreateRequest(ctx context.Con return nil, errors.New("parameter restorePointCollectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -181,24 +194,32 @@ func (client *RestorePointCollectionsClient) deleteCreateRequest(ctx context.Con // Get - The operation to get the restore point collection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection. -// options - RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection. +// - options - RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get +// method. func (client *RestorePointCollectionsClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientGetOptions) (RestorePointCollectionsClientGetResponse, error) { + var err error + const operationName = "RestorePointCollectionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, restorePointCollectionName, options) if err != nil { return RestorePointCollectionsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return RestorePointCollectionsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return RestorePointCollectionsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return RestorePointCollectionsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -216,7 +237,7 @@ func (client *RestorePointCollectionsClient) getCreateRequest(ctx context.Contex return nil, errors.New("parameter restorePointCollectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -224,7 +245,7 @@ func (client *RestorePointCollectionsClient) getCreateRequest(ctx context.Contex if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -240,36 +261,31 @@ func (client *RestorePointCollectionsClient) getHandleResponse(resp *http.Respon } // NewListPager - Gets the list of restore point collections in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.NewListPager +// method. func (client *RestorePointCollectionsClient) NewListPager(resourceGroupName string, options *RestorePointCollectionsClientListOptions) *runtime.Pager[RestorePointCollectionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorePointCollectionsClientListResponse]{ More: func(page RestorePointCollectionsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *RestorePointCollectionsClientListResponse) (RestorePointCollectionsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return RestorePointCollectionsClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "RestorePointCollectionsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return RestorePointCollectionsClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return RestorePointCollectionsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -284,12 +300,12 @@ func (client *RestorePointCollectionsClient) listCreateRequest(ctx context.Conte return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -307,35 +323,30 @@ func (client *RestorePointCollectionsClient) listHandleResponse(resp *http.Respo // NewListAllPager - Gets the list of restore point collections in the subscription. Use nextLink property in the response // to get the next page of restore point collections. Do this till nextLink is not null to fetch all // the restore point collections. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.ListAll -// method. +// +// Generated from API version 2024-03-01 +// - options - RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.NewListAllPager +// method. func (client *RestorePointCollectionsClient) NewListAllPager(options *RestorePointCollectionsClientListAllOptions) *runtime.Pager[RestorePointCollectionsClientListAllResponse] { return runtime.NewPager(runtime.PagingHandler[RestorePointCollectionsClientListAllResponse]{ More: func(page RestorePointCollectionsClientListAllResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *RestorePointCollectionsClientListAllResponse) (RestorePointCollectionsClientListAllResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listAllCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return RestorePointCollectionsClientListAllResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "RestorePointCollectionsClient.NewListAllPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listAllCreateRequest(ctx, options) + }, nil) if err != nil { return RestorePointCollectionsClientListAllResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return RestorePointCollectionsClientListAllResponse{}, runtime.NewResponseError(resp) - } return client.listAllHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -346,12 +357,12 @@ func (client *RestorePointCollectionsClient) listAllCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -368,25 +379,33 @@ func (client *RestorePointCollectionsClient) listAllHandleResponse(resp *http.Re // Update - The operation to update the restore point collection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection. -// parameters - Parameters supplied to the Update restore point collection operation. -// options - RestorePointCollectionsClientUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.Update -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection. +// - parameters - Parameters supplied to the Update restore point collection operation. +// - options - RestorePointCollectionsClientUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.Update +// method. func (client *RestorePointCollectionsClient) Update(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollectionUpdate, options *RestorePointCollectionsClientUpdateOptions) (RestorePointCollectionsClientUpdateResponse, error) { + var err error + const operationName = "RestorePointCollectionsClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, restorePointCollectionName, parameters, options) if err != nil { return RestorePointCollectionsClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return RestorePointCollectionsClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return RestorePointCollectionsClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return RestorePointCollectionsClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -404,15 +423,18 @@ func (client *RestorePointCollectionsClient) updateCreateRequest(ctx context.Con return nil, errors.New("parameter restorePointCollectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepoints_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepoints_client.go similarity index 68% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepoints_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepoints_client.go index 11ec43cf..dffafe2d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepoints_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepoints_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,73 +23,77 @@ import ( // RestorePointsClient contains the methods for the RestorePoints group. // Don't use this type directly, use NewRestorePointsClient() instead. type RestorePointsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewRestorePointsClient creates a new instance of RestorePointsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorePointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorePointsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &RestorePointsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreate - The operation to create the restore point. Updating properties of an existing restore point is not allowed // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection. -// restorePointName - The name of the restore point. -// parameters - Parameters supplied to the Create restore point operation. -// options - RestorePointsClientBeginCreateOptions contains the optional parameters for the RestorePointsClient.BeginCreate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection. +// - restorePointName - The name of the restore point. +// - parameters - Parameters supplied to the Create restore point operation. +// - options - RestorePointsClientBeginCreateOptions contains the optional parameters for the RestorePointsClient.BeginCreate +// method. func (client *RestorePointsClient) BeginCreate(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint, options *RestorePointsClientBeginCreateOptions) (*runtime.Poller[RestorePointsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, restorePointCollectionName, restorePointName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[RestorePointsClientCreateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[RestorePointsClientCreateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[RestorePointsClientCreateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[RestorePointsClientCreateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Create - The operation to create the restore point. Updating properties of an existing restore point is not allowed // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *RestorePointsClient) create(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint, options *RestorePointsClientBeginCreateOptions) (*http.Response, error) { + var err error + const operationName = "RestorePointsClient.BeginCreate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createCreateRequest(ctx, resourceGroupName, restorePointCollectionName, restorePointName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createCreateRequest creates the Create request. @@ -113,53 +115,69 @@ func (client *RestorePointsClient) createCreateRequest(ctx context.Context, reso return nil, errors.New("parameter restorePointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{restorePointName}", url.PathEscape(restorePointName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - The operation to delete the restore point. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the Restore Point Collection. -// restorePointName - The name of the restore point. -// options - RestorePointsClientBeginDeleteOptions contains the optional parameters for the RestorePointsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the Restore Point Collection. +// - restorePointName - The name of the restore point. +// - options - RestorePointsClientBeginDeleteOptions contains the optional parameters for the RestorePointsClient.BeginDelete +// method. func (client *RestorePointsClient) BeginDelete(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientBeginDeleteOptions) (*runtime.Poller[RestorePointsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, restorePointCollectionName, restorePointName, options) if err != nil { return nil, err } - return runtime.NewPoller[RestorePointsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[RestorePointsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[RestorePointsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[RestorePointsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete the restore point. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *RestorePointsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "RestorePointsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, restorePointCollectionName, restorePointName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -181,12 +199,12 @@ func (client *RestorePointsClient) deleteCreateRequest(ctx context.Context, reso return nil, errors.New("parameter restorePointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{restorePointName}", url.PathEscape(restorePointName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -194,24 +212,32 @@ func (client *RestorePointsClient) deleteCreateRequest(ctx context.Context, reso // Get - The operation to get the restore point. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// restorePointCollectionName - The name of the restore point collection. -// restorePointName - The name of the restore point. -// options - RestorePointsClientGetOptions contains the optional parameters for the RestorePointsClient.Get method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - restorePointCollectionName - The name of the restore point collection. +// - restorePointName - The name of the restore point. +// - options - RestorePointsClientGetOptions contains the optional parameters for the RestorePointsClient.Get method. func (client *RestorePointsClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientGetOptions) (RestorePointsClientGetResponse, error) { + var err error + const operationName = "RestorePointsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, restorePointCollectionName, restorePointName, options) if err != nil { return RestorePointsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return RestorePointsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return RestorePointsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return RestorePointsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -233,7 +259,7 @@ func (client *RestorePointsClient) getCreateRequest(ctx context.Context, resourc return nil, errors.New("parameter restorePointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{restorePointName}", url.PathEscape(restorePointName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -241,7 +267,7 @@ func (client *RestorePointsClient) getCreateRequest(ctx context.Context, resourc if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleries_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleries_client.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleries_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleries_client.go index 9f73e729..ee8172ba 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleries_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleries_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,55 +23,54 @@ import ( // SharedGalleriesClient contains the methods for the SharedGalleries group. // Don't use this type directly, use NewSharedGalleriesClient() instead. type SharedGalleriesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewSharedGalleriesClient creates a new instance of SharedGalleriesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSharedGalleriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedGalleriesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &SharedGalleriesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Get a shared gallery by subscription id or tenant id. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// galleryUniqueName - The unique name of the Shared Gallery. -// options - SharedGalleriesClientGetOptions contains the optional parameters for the SharedGalleriesClient.Get method. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - galleryUniqueName - The unique name of the Shared Gallery. +// - options - SharedGalleriesClientGetOptions contains the optional parameters for the SharedGalleriesClient.Get method. func (client *SharedGalleriesClient) Get(ctx context.Context, location string, galleryUniqueName string, options *SharedGalleriesClientGetOptions) (SharedGalleriesClientGetResponse, error) { + var err error + const operationName = "SharedGalleriesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, galleryUniqueName, options) if err != nil { return SharedGalleriesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SharedGalleriesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SharedGalleriesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SharedGalleriesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -91,12 +88,12 @@ func (client *SharedGalleriesClient) getCreateRequest(ctx context.Context, locat return nil, errors.New("parameter galleryUniqueName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryUniqueName}", url.PathEscape(galleryUniqueName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -112,35 +109,31 @@ func (client *SharedGalleriesClient) getHandleResponse(resp *http.Response) (Sha } // NewListPager - List shared galleries by subscription id or tenant id. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// options - SharedGalleriesClientListOptions contains the optional parameters for the SharedGalleriesClient.List method. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - options - SharedGalleriesClientListOptions contains the optional parameters for the SharedGalleriesClient.NewListPager +// method. func (client *SharedGalleriesClient) NewListPager(location string, options *SharedGalleriesClientListOptions) *runtime.Pager[SharedGalleriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SharedGalleriesClientListResponse]{ More: func(page SharedGalleriesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *SharedGalleriesClientListResponse) (SharedGalleriesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, location, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SharedGalleriesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, options) + }, nil) if err != nil { return SharedGalleriesClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return SharedGalleriesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SharedGalleriesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -155,12 +148,12 @@ func (client *SharedGalleriesClient) listCreateRequest(ctx context.Context, loca return nil, errors.New("parameter location cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") + reqQP.Set("api-version", "2023-07-03") if options != nil && options.SharedTo != nil { reqQP.Set("sharedTo", string(*options.SharedTo)) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleryimages_client.go similarity index 71% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimages_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleryimages_client.go index fca3e47a..8f0ef79c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimages_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleryimages_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,56 +23,55 @@ import ( // SharedGalleryImagesClient contains the methods for the SharedGalleryImages group. // Don't use this type directly, use NewSharedGalleryImagesClient() instead. type SharedGalleryImagesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewSharedGalleryImagesClient creates a new instance of SharedGalleryImagesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSharedGalleryImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedGalleryImagesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &SharedGalleryImagesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Get a shared gallery image by subscription id or tenant id. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// galleryUniqueName - The unique name of the Shared Gallery. -// galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. -// options - SharedGalleryImagesClientGetOptions contains the optional parameters for the SharedGalleryImagesClient.Get method. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - galleryUniqueName - The unique name of the Shared Gallery. +// - galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. +// - options - SharedGalleryImagesClientGetOptions contains the optional parameters for the SharedGalleryImagesClient.Get method. func (client *SharedGalleryImagesClient) Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, options *SharedGalleryImagesClientGetOptions) (SharedGalleryImagesClientGetResponse, error) { + var err error + const operationName = "SharedGalleryImagesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, galleryUniqueName, galleryImageName, options) if err != nil { return SharedGalleryImagesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SharedGalleryImagesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SharedGalleryImagesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SharedGalleryImagesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -96,12 +93,12 @@ func (client *SharedGalleryImagesClient) getCreateRequest(ctx context.Context, l return nil, errors.New("parameter galleryImageName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -117,37 +114,32 @@ func (client *SharedGalleryImagesClient) getHandleResponse(resp *http.Response) } // NewListPager - List shared gallery images by subscription id or tenant id. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// galleryUniqueName - The unique name of the Shared Gallery. -// options - SharedGalleryImagesClientListOptions contains the optional parameters for the SharedGalleryImagesClient.List -// method. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - galleryUniqueName - The unique name of the Shared Gallery. +// - options - SharedGalleryImagesClientListOptions contains the optional parameters for the SharedGalleryImagesClient.NewListPager +// method. func (client *SharedGalleryImagesClient) NewListPager(location string, galleryUniqueName string, options *SharedGalleryImagesClientListOptions) *runtime.Pager[SharedGalleryImagesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SharedGalleryImagesClientListResponse]{ More: func(page SharedGalleryImagesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *SharedGalleryImagesClientListResponse) (SharedGalleryImagesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, location, galleryUniqueName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SharedGalleryImagesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, galleryUniqueName, options) + }, nil) if err != nil { return SharedGalleryImagesClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return SharedGalleryImagesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SharedGalleryImagesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -166,12 +158,12 @@ func (client *SharedGalleryImagesClient) listCreateRequest(ctx context.Context, return nil, errors.New("parameter galleryUniqueName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryUniqueName}", url.PathEscape(galleryUniqueName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") + reqQP.Set("api-version", "2023-07-03") if options != nil && options.SharedTo != nil { reqQP.Set("sharedTo", string(*options.SharedTo)) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimageversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleryimageversions_client.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimageversions_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleryimageversions_client.go index d2257bf3..729b0e3c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimageversions_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sharedgalleryimageversions_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,60 +23,59 @@ import ( // SharedGalleryImageVersionsClient contains the methods for the SharedGalleryImageVersions group. // Don't use this type directly, use NewSharedGalleryImageVersionsClient() instead. type SharedGalleryImageVersionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewSharedGalleryImageVersionsClient creates a new instance of SharedGalleryImageVersionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSharedGalleryImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedGalleryImageVersionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &SharedGalleryImageVersionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Get a shared gallery image version by subscription id or tenant id. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// galleryUniqueName - The unique name of the Shared Gallery. -// galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. -// galleryImageVersionName - The name of the gallery image version to be created. Needs to follow semantic version name pattern: -// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. -// Format: .. -// options - SharedGalleryImageVersionsClientGetOptions contains the optional parameters for the SharedGalleryImageVersionsClient.Get -// method. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - galleryUniqueName - The unique name of the Shared Gallery. +// - galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. +// - galleryImageVersionName - The name of the gallery image version to be created. Needs to follow semantic version name pattern: +// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. +// Format: .. +// - options - SharedGalleryImageVersionsClientGetOptions contains the optional parameters for the SharedGalleryImageVersionsClient.Get +// method. func (client *SharedGalleryImageVersionsClient) Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, galleryImageVersionName string, options *SharedGalleryImageVersionsClientGetOptions) (SharedGalleryImageVersionsClientGetResponse, error) { + var err error + const operationName = "SharedGalleryImageVersionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, galleryUniqueName, galleryImageName, galleryImageVersionName, options) if err != nil { return SharedGalleryImageVersionsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SharedGalleryImageVersionsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SharedGalleryImageVersionsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SharedGalleryImageVersionsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -104,12 +101,12 @@ func (client *SharedGalleryImageVersionsClient) getCreateRequest(ctx context.Con return nil, errors.New("parameter galleryImageVersionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") + reqQP.Set("api-version", "2023-07-03") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -125,38 +122,33 @@ func (client *SharedGalleryImageVersionsClient) getHandleResponse(resp *http.Res } // NewListPager - List shared gallery image versions by subscription id or tenant id. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// galleryUniqueName - The unique name of the Shared Gallery. -// galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. -// options - SharedGalleryImageVersionsClientListOptions contains the optional parameters for the SharedGalleryImageVersionsClient.List -// method. +// +// Generated from API version 2023-07-03 +// - location - Resource location. +// - galleryUniqueName - The unique name of the Shared Gallery. +// - galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. +// - options - SharedGalleryImageVersionsClientListOptions contains the optional parameters for the SharedGalleryImageVersionsClient.NewListPager +// method. func (client *SharedGalleryImageVersionsClient) NewListPager(location string, galleryUniqueName string, galleryImageName string, options *SharedGalleryImageVersionsClientListOptions) *runtime.Pager[SharedGalleryImageVersionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SharedGalleryImageVersionsClientListResponse]{ More: func(page SharedGalleryImageVersionsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *SharedGalleryImageVersionsClientListResponse) (SharedGalleryImageVersionsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, location, galleryUniqueName, galleryImageName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SharedGalleryImageVersionsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, galleryUniqueName, galleryImageName, options) + }, nil) if err != nil { return SharedGalleryImageVersionsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return SharedGalleryImageVersionsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SharedGalleryImageVersionsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -179,12 +171,12 @@ func (client *SharedGalleryImageVersionsClient) listCreateRequest(ctx context.Co return nil, errors.New("parameter galleryImageName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") + reqQP.Set("api-version", "2023-07-03") if options != nil && options.SharedTo != nil { reqQP.Set("sharedTo", string(*options.SharedTo)) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_snapshots_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/snapshots_client.go similarity index 62% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_snapshots_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/snapshots_client.go index 31ee6607..8c73f770 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_snapshots_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/snapshots_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,74 +23,78 @@ import ( // SnapshotsClient contains the methods for the Snapshots group. // Don't use this type directly, use NewSnapshotsClient() instead. type SnapshotsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewSnapshotsClient creates a new instance of SnapshotsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSnapshotsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SnapshotsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &SnapshotsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - Creates or updates a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. -// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 -// characters. -// snapshot - Snapshot object supplied in the body of the Put disk operation. -// options - SnapshotsClientBeginCreateOrUpdateOptions contains the optional parameters for the SnapshotsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. +// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. +// - snapshot - Snapshot object supplied in the body of the Put disk operation. +// - options - SnapshotsClientBeginCreateOrUpdateOptions contains the optional parameters for the SnapshotsClient.BeginCreateOrUpdate +// method. func (client *SnapshotsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot, options *SnapshotsClientBeginCreateOrUpdateOptions) (*runtime.Poller[SnapshotsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, snapshotName, snapshot, options) if err != nil { return nil, err } - return runtime.NewPoller[SnapshotsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[SnapshotsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[SnapshotsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[SnapshotsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Creates or updates a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *SnapshotsClient) createOrUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot, options *SnapshotsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "SnapshotsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, snapshotName, snapshot, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -110,53 +112,69 @@ func (client *SnapshotsClient) createOrUpdateCreateRequest(ctx context.Context, return nil, errors.New("parameter snapshotName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, snapshot) + if err := runtime.MarshalAsJSON(req, snapshot); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Deletes a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. -// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 -// characters. -// options - SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. +// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. +// - options - SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method. func (client *SnapshotsClient) BeginDelete(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginDeleteOptions) (*runtime.Poller[SnapshotsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, snapshotName, options) if err != nil { return nil, err } - return runtime.NewPoller[SnapshotsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[SnapshotsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[SnapshotsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[SnapshotsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *SnapshotsClient) deleteOperation(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "SnapshotsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, snapshotName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -174,37 +192,45 @@ func (client *SnapshotsClient) deleteCreateRequest(ctx context.Context, resource return nil, errors.New("parameter snapshotName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // Get - Gets information about a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. -// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 -// characters. -// options - SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. +// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. +// - options - SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method. func (client *SnapshotsClient) Get(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientGetOptions) (SnapshotsClientGetResponse, error) { + var err error + const operationName = "SnapshotsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, snapshotName, options) if err != nil { return SnapshotsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SnapshotsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SnapshotsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SnapshotsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -222,12 +248,12 @@ func (client *SnapshotsClient) getCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter snapshotName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -244,44 +270,56 @@ func (client *SnapshotsClient) getHandleResponse(resp *http.Response) (Snapshots // BeginGrantAccess - Grants access to a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. -// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 -// characters. -// grantAccessData - Access data object supplied in the body of the get snapshot access operation. -// options - SnapshotsClientBeginGrantAccessOptions contains the optional parameters for the SnapshotsClient.BeginGrantAccess -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. +// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. +// - grantAccessData - Access data object supplied in the body of the get snapshot access operation. +// - options - SnapshotsClientBeginGrantAccessOptions contains the optional parameters for the SnapshotsClient.BeginGrantAccess +// method. func (client *SnapshotsClient) BeginGrantAccess(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData, options *SnapshotsClientBeginGrantAccessOptions) (*runtime.Poller[SnapshotsClientGrantAccessResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.grantAccess(ctx, resourceGroupName, snapshotName, grantAccessData, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SnapshotsClientGrantAccessResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[SnapshotsClientGrantAccessResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[SnapshotsClientGrantAccessResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[SnapshotsClientGrantAccessResponse]{ + Tracer: client.internal.Tracer(), + }) } } // GrantAccess - Grants access to a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *SnapshotsClient) grantAccess(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData, options *SnapshotsClientBeginGrantAccessOptions) (*http.Response, error) { + var err error + const operationName = "SnapshotsClient.BeginGrantAccess" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.grantAccessCreateRequest(ctx, resourceGroupName, snapshotName, grantAccessData, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // grantAccessCreateRequest creates the GrantAccess request. @@ -299,46 +337,44 @@ func (client *SnapshotsClient) grantAccessCreateRequest(ctx context.Context, res return nil, errors.New("parameter snapshotName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, grantAccessData) + if err := runtime.MarshalAsJSON(req, grantAccessData); err != nil { + return nil, err + } + return req, nil } // NewListPager - Lists snapshots under a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// options - SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.List method. +// +// Generated from API version 2023-10-02 +// - options - SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.NewListPager method. func (client *SnapshotsClient) NewListPager(options *SnapshotsClientListOptions) *runtime.Pager[SnapshotsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SnapshotsClientListResponse]{ More: func(page SnapshotsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *SnapshotsClientListResponse) (SnapshotsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SnapshotsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return SnapshotsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return SnapshotsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SnapshotsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -349,12 +385,12 @@ func (client *SnapshotsClient) listCreateRequest(ctx context.Context, options *S return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -370,36 +406,31 @@ func (client *SnapshotsClient) listHandleResponse(resp *http.Response) (Snapshot } // NewListByResourceGroupPager - Lists snapshots under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// options - SnapshotsClientListByResourceGroupOptions contains the optional parameters for the SnapshotsClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - options - SnapshotsClientListByResourceGroupOptions contains the optional parameters for the SnapshotsClient.NewListByResourceGroupPager +// method. func (client *SnapshotsClient) NewListByResourceGroupPager(resourceGroupName string, options *SnapshotsClientListByResourceGroupOptions) *runtime.Pager[SnapshotsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[SnapshotsClientListByResourceGroupResponse]{ More: func(page SnapshotsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *SnapshotsClientListByResourceGroupResponse) (SnapshotsClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SnapshotsClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return SnapshotsClientListByResourceGroupResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return SnapshotsClientListByResourceGroupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SnapshotsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -414,12 +445,12 @@ func (client *SnapshotsClient) listByResourceGroupCreateRequest(ctx context.Cont return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -436,43 +467,55 @@ func (client *SnapshotsClient) listByResourceGroupHandleResponse(resp *http.Resp // BeginRevokeAccess - Revokes access to a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. -// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 -// characters. -// options - SnapshotsClientBeginRevokeAccessOptions contains the optional parameters for the SnapshotsClient.BeginRevokeAccess -// method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. +// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. +// - options - SnapshotsClientBeginRevokeAccessOptions contains the optional parameters for the SnapshotsClient.BeginRevokeAccess +// method. func (client *SnapshotsClient) BeginRevokeAccess(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginRevokeAccessOptions) (*runtime.Poller[SnapshotsClientRevokeAccessResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.revokeAccess(ctx, resourceGroupName, snapshotName, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SnapshotsClientRevokeAccessResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[SnapshotsClientRevokeAccessResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[SnapshotsClientRevokeAccessResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[SnapshotsClientRevokeAccessResponse]{ + Tracer: client.internal.Tracer(), + }) } } // RevokeAccess - Revokes access to a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *SnapshotsClient) revokeAccess(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginRevokeAccessOptions) (*http.Response, error) { + var err error + const operationName = "SnapshotsClient.BeginRevokeAccess" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.revokeAccessCreateRequest(ctx, resourceGroupName, snapshotName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // revokeAccessCreateRequest creates the RevokeAccess request. @@ -490,53 +533,66 @@ func (client *SnapshotsClient) revokeAccessCreateRequest(ctx context.Context, re return nil, errors.New("parameter snapshotName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginUpdate - Updates (patches) a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 -// resourceGroupName - The name of the resource group. -// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. -// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 -// characters. -// snapshot - Snapshot object supplied in the body of the Patch snapshot operation. -// options - SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method. +// +// Generated from API version 2023-10-02 +// - resourceGroupName - The name of the resource group. +// - snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. +// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. +// - snapshot - Snapshot object supplied in the body of the Patch snapshot operation. +// - options - SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method. func (client *SnapshotsClient) BeginUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate, options *SnapshotsClientBeginUpdateOptions) (*runtime.Poller[SnapshotsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, snapshotName, snapshot, options) if err != nil { return nil, err } - return runtime.NewPoller[SnapshotsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[SnapshotsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[SnapshotsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[SnapshotsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Updates (patches) a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01 +// +// Generated from API version 2023-10-02 func (client *SnapshotsClient) update(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate, options *SnapshotsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "SnapshotsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, snapshotName, snapshot, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -554,13 +610,16 @@ func (client *SnapshotsClient) updateCreateRequest(ctx context.Context, resource return nil, errors.New("parameter snapshotName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01") + reqQP.Set("api-version", "2023-10-02") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, snapshot) + if err := runtime.MarshalAsJSON(req, snapshot); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sshpublickeys_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sshpublickeys_client.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sshpublickeys_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sshpublickeys_client.go index c9e72985..58d8d18b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sshpublickeys_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sshpublickeys_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,56 +23,55 @@ import ( // SSHPublicKeysClient contains the methods for the SSHPublicKeys group. // Don't use this type directly, use NewSSHPublicKeysClient() instead. type SSHPublicKeysClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewSSHPublicKeysClient creates a new instance of SSHPublicKeysClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSSHPublicKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SSHPublicKeysClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &SSHPublicKeysClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Create - Creates a new SSH public key resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// sshPublicKeyName - The name of the SSH public key. -// parameters - Parameters supplied to create the SSH public key. -// options - SSHPublicKeysClientCreateOptions contains the optional parameters for the SSHPublicKeysClient.Create method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - sshPublicKeyName - The name of the SSH public key. +// - parameters - Parameters supplied to create the SSH public key. +// - options - SSHPublicKeysClientCreateOptions contains the optional parameters for the SSHPublicKeysClient.Create method. func (client *SSHPublicKeysClient) Create(ctx context.Context, resourceGroupName string, sshPublicKeyName string, parameters SSHPublicKeyResource, options *SSHPublicKeysClientCreateOptions) (SSHPublicKeysClientCreateResponse, error) { + var err error + const operationName = "SSHPublicKeysClient.Create" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createCreateRequest(ctx, resourceGroupName, sshPublicKeyName, parameters, options) if err != nil { return SSHPublicKeysClientCreateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SSHPublicKeysClientCreateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return SSHPublicKeysClientCreateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return SSHPublicKeysClientCreateResponse{}, err } - return client.createHandleResponse(resp) + resp, err := client.createHandleResponse(httpResp) + return resp, err } // createCreateRequest creates the Create request. @@ -92,15 +89,18 @@ func (client *SSHPublicKeysClient) createCreateRequest(ctx context.Context, reso return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // createHandleResponse handles the Create response. @@ -114,21 +114,28 @@ func (client *SSHPublicKeysClient) createHandleResponse(resp *http.Response) (SS // Delete - Delete an SSH public key. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// sshPublicKeyName - The name of the SSH public key. -// options - SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - sshPublicKeyName - The name of the SSH public key. +// - options - SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method. func (client *SSHPublicKeysClient) Delete(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientDeleteOptions) (SSHPublicKeysClientDeleteResponse, error) { + var err error + const operationName = "SSHPublicKeysClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, sshPublicKeyName, options) if err != nil { return SSHPublicKeysClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SSHPublicKeysClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return SSHPublicKeysClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return SSHPublicKeysClientDeleteResponse{}, err } return SSHPublicKeysClientDeleteResponse{}, nil } @@ -148,12 +155,12 @@ func (client *SSHPublicKeysClient) deleteCreateRequest(ctx context.Context, reso return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -163,24 +170,32 @@ func (client *SSHPublicKeysClient) deleteCreateRequest(ctx context.Context, reso // key. The length of the key will be 3072 bits. This operation can only be performed once per // SSH public key resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// sshPublicKeyName - The name of the SSH public key. -// options - SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - sshPublicKeyName - The name of the SSH public key. +// - options - SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair +// method. func (client *SSHPublicKeysClient) GenerateKeyPair(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientGenerateKeyPairOptions) (SSHPublicKeysClientGenerateKeyPairResponse, error) { + var err error + const operationName = "SSHPublicKeysClient.GenerateKeyPair" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.generateKeyPairCreateRequest(ctx, resourceGroupName, sshPublicKeyName, options) if err != nil { return SSHPublicKeysClientGenerateKeyPairResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SSHPublicKeysClientGenerateKeyPairResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SSHPublicKeysClientGenerateKeyPairResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SSHPublicKeysClientGenerateKeyPairResponse{}, err } - return client.generateKeyPairHandleResponse(resp) + resp, err := client.generateKeyPairHandleResponse(httpResp) + return resp, err } // generateKeyPairCreateRequest creates the GenerateKeyPair request. @@ -198,14 +213,20 @@ func (client *SSHPublicKeysClient) generateKeyPairCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.Parameters != nil { + if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil { + return nil, err + } + return req, nil + } return req, nil } @@ -220,23 +241,31 @@ func (client *SSHPublicKeysClient) generateKeyPairHandleResponse(resp *http.Resp // Get - Retrieves information about an SSH public key. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// sshPublicKeyName - The name of the SSH public key. -// options - SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - sshPublicKeyName - The name of the SSH public key. +// - options - SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method. func (client *SSHPublicKeysClient) Get(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientGetOptions) (SSHPublicKeysClientGetResponse, error) { + var err error + const operationName = "SSHPublicKeysClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, sshPublicKeyName, options) if err != nil { return SSHPublicKeysClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SSHPublicKeysClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SSHPublicKeysClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SSHPublicKeysClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -254,12 +283,12 @@ func (client *SSHPublicKeysClient) getCreateRequest(ctx context.Context, resourc return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -276,36 +305,31 @@ func (client *SSHPublicKeysClient) getHandleResponse(resp *http.Response) (SSHPu // NewListByResourceGroupPager - Lists all of the SSH public keys in the specified resource group. Use the nextLink property // in the response to get the next page of SSH public keys. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.ListByResourceGroup -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.NewListByResourceGroupPager +// method. func (client *SSHPublicKeysClient) NewListByResourceGroupPager(resourceGroupName string, options *SSHPublicKeysClientListByResourceGroupOptions) *runtime.Pager[SSHPublicKeysClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[SSHPublicKeysClientListByResourceGroupResponse]{ More: func(page SSHPublicKeysClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *SSHPublicKeysClientListByResourceGroupResponse) (SSHPublicKeysClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return SSHPublicKeysClientListByResourceGroupResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SSHPublicKeysClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return SSHPublicKeysClientListByResourceGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SSHPublicKeysClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -320,12 +344,12 @@ func (client *SSHPublicKeysClient) listByResourceGroupCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -342,35 +366,30 @@ func (client *SSHPublicKeysClient) listByResourceGroupHandleResponse(resp *http. // NewListBySubscriptionPager - Lists all of the SSH public keys in the subscription. Use the nextLink property in the response // to get the next page of SSH public keys. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.ListBySubscription -// method. +// +// Generated from API version 2024-03-01 +// - options - SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.NewListBySubscriptionPager +// method. func (client *SSHPublicKeysClient) NewListBySubscriptionPager(options *SSHPublicKeysClientListBySubscriptionOptions) *runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[SSHPublicKeysClientListBySubscriptionResponse]{ More: func(page SSHPublicKeysClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *SSHPublicKeysClientListBySubscriptionResponse) (SSHPublicKeysClientListBySubscriptionResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listBySubscriptionCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return SSHPublicKeysClientListBySubscriptionResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SSHPublicKeysClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) if err != nil { return SSHPublicKeysClientListBySubscriptionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SSHPublicKeysClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) - } return client.listBySubscriptionHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -381,12 +400,12 @@ func (client *SSHPublicKeysClient) listBySubscriptionCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -403,24 +422,32 @@ func (client *SSHPublicKeysClient) listBySubscriptionHandleResponse(resp *http.R // Update - Updates a new SSH public key resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// sshPublicKeyName - The name of the SSH public key. -// parameters - Parameters supplied to update the SSH public key. -// options - SSHPublicKeysClientUpdateOptions contains the optional parameters for the SSHPublicKeysClient.Update method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - sshPublicKeyName - The name of the SSH public key. +// - parameters - Parameters supplied to update the SSH public key. +// - options - SSHPublicKeysClientUpdateOptions contains the optional parameters for the SSHPublicKeysClient.Update method. func (client *SSHPublicKeysClient) Update(ctx context.Context, resourceGroupName string, sshPublicKeyName string, parameters SSHPublicKeyUpdateResource, options *SSHPublicKeysClientUpdateOptions) (SSHPublicKeysClientUpdateResponse, error) { + var err error + const operationName = "SSHPublicKeysClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, sshPublicKeyName, parameters, options) if err != nil { return SSHPublicKeysClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return SSHPublicKeysClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SSHPublicKeysClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SSHPublicKeysClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -438,15 +465,18 @@ func (client *SSHPublicKeysClient) updateCreateRequest(ctx context.Context, reso return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/time_rfc3339.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/time_rfc3339.go new file mode 100644 index 00000000..ae4e62dd --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/time_rfc3339.go @@ -0,0 +1,110 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcompute + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_usage_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/usage_client.go similarity index 64% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_usage_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/usage_client.go index 039ae899..e251486e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_usage_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/usage_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,67 +23,53 @@ import ( // UsageClient contains the methods for the Usage group. // Don't use this type directly, use NewUsageClient() instead. type UsageClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewUsageClient creates a new instance of UsageClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewUsageClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsageClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &UsageClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // NewListPager - Gets, for the specified location, the current compute resource usage information as well as the limits for // compute resources under the subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location for which resource usage is queried. -// options - UsageClientListOptions contains the optional parameters for the UsageClient.List method. +// +// Generated from API version 2024-03-01 +// - location - The location for which resource usage is queried. +// - options - UsageClientListOptions contains the optional parameters for the UsageClient.NewListPager method. func (client *UsageClient) NewListPager(location string, options *UsageClientListOptions) *runtime.Pager[UsageClientListResponse] { return runtime.NewPager(runtime.PagingHandler[UsageClientListResponse]{ More: func(page UsageClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *UsageClientListResponse) (UsageClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, location, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return UsageClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "UsageClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, options) + }, nil) if err != nil { return UsageClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return UsageClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -100,12 +84,12 @@ func (client *UsageClient) listCreateRequest(ctx context.Context, location strin return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensionimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensionimages_client.go similarity index 75% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensionimages_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensionimages_client.go index 6b17f3e6..a337d245 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensionimages_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensionimages_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,55 +24,54 @@ import ( // VirtualMachineExtensionImagesClient contains the methods for the VirtualMachineExtensionImages group. // Don't use this type directly, use NewVirtualMachineExtensionImagesClient() instead. type VirtualMachineExtensionImagesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineExtensionImagesClient creates a new instance of VirtualMachineExtensionImagesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineExtensionImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineExtensionImagesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineExtensionImagesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Gets a virtual machine extension image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// options - VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - options - VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get +// method. func (client *VirtualMachineExtensionImagesClient) Get(ctx context.Context, location string, publisherName string, typeParam string, version string, options *VirtualMachineExtensionImagesClientGetOptions) (VirtualMachineExtensionImagesClientGetResponse, error) { + var err error + const operationName = "VirtualMachineExtensionImagesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, publisherName, typeParam, version, options) if err != nil { return VirtualMachineExtensionImagesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineExtensionImagesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineExtensionImagesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineExtensionImagesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -100,12 +97,12 @@ func (client *VirtualMachineExtensionImagesClient) getCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -122,23 +119,31 @@ func (client *VirtualMachineExtensionImagesClient) getHandleResponse(resp *http. // ListTypes - Gets a list of virtual machine extension image types. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// options - VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - options - VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes +// method. func (client *VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, location string, publisherName string, options *VirtualMachineExtensionImagesClientListTypesOptions) (VirtualMachineExtensionImagesClientListTypesResponse, error) { + var err error + const operationName = "VirtualMachineExtensionImagesClient.ListTypes" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listTypesCreateRequest(ctx, location, publisherName, options) if err != nil { return VirtualMachineExtensionImagesClientListTypesResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineExtensionImagesClientListTypesResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineExtensionImagesClientListTypesResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineExtensionImagesClientListTypesResponse{}, err } - return client.listTypesHandleResponse(resp) + resp, err := client.listTypesHandleResponse(httpResp) + return resp, err } // listTypesCreateRequest creates the ListTypes request. @@ -156,12 +161,12 @@ func (client *VirtualMachineExtensionImagesClient) listTypesCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -178,23 +183,31 @@ func (client *VirtualMachineExtensionImagesClient) listTypesHandleResponse(resp // ListVersions - Gets a list of virtual machine extension image versions. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// options - VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - options - VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions +// method. func (client *VirtualMachineExtensionImagesClient) ListVersions(ctx context.Context, location string, publisherName string, typeParam string, options *VirtualMachineExtensionImagesClientListVersionsOptions) (VirtualMachineExtensionImagesClientListVersionsResponse, error) { + var err error + const operationName = "VirtualMachineExtensionImagesClient.ListVersions" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listVersionsCreateRequest(ctx, location, publisherName, typeParam, options) if err != nil { return VirtualMachineExtensionImagesClientListVersionsResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineExtensionImagesClientListVersionsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineExtensionImagesClientListVersionsResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineExtensionImagesClientListVersionsResponse{}, err } - return client.listVersionsHandleResponse(resp) + resp, err := client.listVersionsHandleResponse(httpResp) + return resp, err } // listVersionsCreateRequest creates the ListVersions request. @@ -216,7 +229,7 @@ func (client *VirtualMachineExtensionImagesClient) listVersionsCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -224,13 +237,13 @@ func (client *VirtualMachineExtensionImagesClient) listVersionsCreateRequest(ctx if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - if options != nil && options.Top != nil { - reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) - } if options != nil && options.Orderby != nil { reqQP.Set("$orderby", *options.Orderby) } - reqQP.Set("api-version", "2022-03-01") + if options != nil && options.Top != nil { + reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) + } + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensions_client.go similarity index 66% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensions_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensions_client.go index 63b1c5b3..bd62e813 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensions_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensions_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,73 +23,77 @@ import ( // VirtualMachineExtensionsClient contains the methods for the VirtualMachineExtensions group. // Don't use this type directly, use NewVirtualMachineExtensionsClient() instead. type VirtualMachineExtensionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineExtensionsClient creates a new instance of VirtualMachineExtensionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineExtensionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineExtensionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineExtensionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - The operation to create or update the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine where the extension should be created or updated. -// vmExtensionName - The name of the virtual machine extension. -// extensionParameters - Parameters supplied to the Create Virtual Machine Extension operation. -// options - VirtualMachineExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine where the extension should be created or updated. +// - vmExtensionName - The name of the virtual machine extension. +// - extensionParameters - Parameters supplied to the Create Virtual Machine Extension operation. +// - options - VirtualMachineExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginCreateOrUpdate +// method. func (client *VirtualMachineExtensionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, options *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineExtensionsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineExtensionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineExtensionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineExtensionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - The operation to create or update the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, options *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineExtensionsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -113,53 +115,69 @@ func (client *VirtualMachineExtensionsClient) createOrUpdateCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, extensionParameters) + if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - The operation to delete the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine where the extension should be deleted. -// vmExtensionName - The name of the virtual machine extension. -// options - VirtualMachineExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine where the extension should be deleted. +// - vmExtensionName - The name of the virtual machine extension. +// - options - VirtualMachineExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginDelete +// method. func (client *VirtualMachineExtensionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineExtensionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmName, vmExtensionName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineExtensionsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineExtensionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineExtensionsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineExtensionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineExtensionsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -181,12 +199,12 @@ func (client *VirtualMachineExtensionsClient) deleteCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -194,25 +212,33 @@ func (client *VirtualMachineExtensionsClient) deleteCreateRequest(ctx context.Co // Get - The operation to get the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine containing the extension. -// vmExtensionName - The name of the virtual machine extension. -// options - VirtualMachineExtensionsClientGetOptions contains the optional parameters for the VirtualMachineExtensionsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine containing the extension. +// - vmExtensionName - The name of the virtual machine extension. +// - options - VirtualMachineExtensionsClientGetOptions contains the optional parameters for the VirtualMachineExtensionsClient.Get +// method. func (client *VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientGetOptions) (VirtualMachineExtensionsClientGetResponse, error) { + var err error + const operationName = "VirtualMachineExtensionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, options) if err != nil { return VirtualMachineExtensionsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineExtensionsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineExtensionsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineExtensionsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -234,7 +260,7 @@ func (client *VirtualMachineExtensionsClient) getCreateRequest(ctx context.Conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -242,7 +268,7 @@ func (client *VirtualMachineExtensionsClient) getCreateRequest(ctx context.Conte if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -259,24 +285,32 @@ func (client *VirtualMachineExtensionsClient) getHandleResponse(resp *http.Respo // List - The operation to get all extensions of a Virtual Machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine containing the extension. -// options - VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine containing the extension. +// - options - VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List +// method. func (client *VirtualMachineExtensionsClient) List(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachineExtensionsClientListOptions) (VirtualMachineExtensionsClientListResponse, error) { + var err error + const operationName = "VirtualMachineExtensionsClient.List" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return VirtualMachineExtensionsClientListResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineExtensionsClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineExtensionsClientListResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineExtensionsClientListResponse{}, err } - return client.listHandleResponse(resp) + resp, err := client.listHandleResponse(httpResp) + return resp, err } // listCreateRequest creates the List request. @@ -294,7 +328,7 @@ func (client *VirtualMachineExtensionsClient) listCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -302,7 +336,7 @@ func (client *VirtualMachineExtensionsClient) listCreateRequest(ctx context.Cont if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -319,41 +353,54 @@ func (client *VirtualMachineExtensionsClient) listHandleResponse(resp *http.Resp // BeginUpdate - The operation to update the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine where the extension should be updated. -// vmExtensionName - The name of the virtual machine extension. -// extensionParameters - Parameters supplied to the Update Virtual Machine Extension operation. -// options - VirtualMachineExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine where the extension should be updated. +// - vmExtensionName - The name of the virtual machine extension. +// - extensionParameters - Parameters supplied to the Update Virtual Machine Extension operation. +// - options - VirtualMachineExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginUpdate +// method. func (client *VirtualMachineExtensionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtensionUpdate, options *VirtualMachineExtensionsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineExtensionsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineExtensionsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineExtensionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineExtensionsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineExtensionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - The operation to update the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineExtensionsClient) update(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtensionUpdate, options *VirtualMachineExtensionsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineExtensionsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -375,13 +422,16 @@ func (client *VirtualMachineExtensionsClient) updateCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, extensionParameters) + if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimages_client.go similarity index 61% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimages_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimages_client.go index 1a6000e7..d2557d0d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimages_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimages_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,59 +24,58 @@ import ( // VirtualMachineImagesClient contains the methods for the VirtualMachineImages group. // Don't use this type directly, use NewVirtualMachineImagesClient() instead. type VirtualMachineImagesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineImagesClient creates a new instance of VirtualMachineImagesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineImagesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineImagesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Gets a virtual machine image. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// publisherName - A valid image publisher. -// offer - A valid image publisher offer. -// skus - A valid image SKU. -// version - A valid image SKU version. -// options - VirtualMachineImagesClientGetOptions contains the optional parameters for the VirtualMachineImagesClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - publisherName - A valid image publisher. +// - offer - A valid image publisher offer. +// - skus - A valid image SKU. +// - version - A valid image SKU version. +// - options - VirtualMachineImagesClientGetOptions contains the optional parameters for the VirtualMachineImagesClient.Get +// method. func (client *VirtualMachineImagesClient) Get(ctx context.Context, location string, publisherName string, offer string, skus string, version string, options *VirtualMachineImagesClientGetOptions) (VirtualMachineImagesClientGetResponse, error) { + var err error + const operationName = "VirtualMachineImagesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, publisherName, offer, skus, version, options) if err != nil { return VirtualMachineImagesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -108,12 +105,12 @@ func (client *VirtualMachineImagesClient) getCreateRequest(ctx context.Context, return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -130,26 +127,34 @@ func (client *VirtualMachineImagesClient) getHandleResponse(resp *http.Response) // List - Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// publisherName - A valid image publisher. -// offer - A valid image publisher offer. -// skus - A valid image SKU. -// options - VirtualMachineImagesClientListOptions contains the optional parameters for the VirtualMachineImagesClient.List -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - publisherName - A valid image publisher. +// - offer - A valid image publisher offer. +// - skus - A valid image SKU. +// - options - VirtualMachineImagesClientListOptions contains the optional parameters for the VirtualMachineImagesClient.List +// method. func (client *VirtualMachineImagesClient) List(ctx context.Context, location string, publisherName string, offer string, skus string, options *VirtualMachineImagesClientListOptions) (VirtualMachineImagesClientListResponse, error) { + var err error + const operationName = "VirtualMachineImagesClient.List" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listCreateRequest(ctx, location, publisherName, offer, skus, options) if err != nil { return VirtualMachineImagesClientListResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesClientListResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesClientListResponse{}, err } - return client.listHandleResponse(resp) + resp, err := client.listHandleResponse(httpResp) + return resp, err } // listCreateRequest creates the List request. @@ -175,7 +180,7 @@ func (client *VirtualMachineImagesClient) listCreateRequest(ctx context.Context, return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -183,13 +188,13 @@ func (client *VirtualMachineImagesClient) listCreateRequest(ctx context.Context, if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - if options != nil && options.Top != nil { - reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) - } if options != nil && options.Orderby != nil { reqQP.Set("$orderby", *options.Orderby) } - reqQP.Set("api-version", "2022-03-01") + if options != nil && options.Top != nil { + reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) + } + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,26 +209,99 @@ func (client *VirtualMachineImagesClient) listHandleResponse(resp *http.Response return result, nil } +// ListByEdgeZone - Gets a list of all virtual machine image versions for the specified edge zone +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - edgeZone - The name of the edge zone. +// - options - VirtualMachineImagesClientListByEdgeZoneOptions contains the optional parameters for the VirtualMachineImagesClient.ListByEdgeZone +// method. +func (client *VirtualMachineImagesClient) ListByEdgeZone(ctx context.Context, location string, edgeZone string, options *VirtualMachineImagesClientListByEdgeZoneOptions) (VirtualMachineImagesClientListByEdgeZoneResponse, error) { + var err error + const operationName = "VirtualMachineImagesClient.ListByEdgeZone" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.listByEdgeZoneCreateRequest(ctx, location, edgeZone, options) + if err != nil { + return VirtualMachineImagesClientListByEdgeZoneResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return VirtualMachineImagesClientListByEdgeZoneResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesClientListByEdgeZoneResponse{}, err + } + resp, err := client.listByEdgeZoneHandleResponse(httpResp) + return resp, err +} + +// listByEdgeZoneCreateRequest creates the ListByEdgeZone request. +func (client *VirtualMachineImagesClient) listByEdgeZoneCreateRequest(ctx context.Context, location string, edgeZone string, options *VirtualMachineImagesClientListByEdgeZoneOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages" + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + if edgeZone == "" { + return nil, errors.New("parameter edgeZone cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{edgeZone}", url.PathEscape(edgeZone)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByEdgeZoneHandleResponse handles the ListByEdgeZone response. +func (client *VirtualMachineImagesClient) listByEdgeZoneHandleResponse(resp *http.Response) (VirtualMachineImagesClientListByEdgeZoneResponse, error) { + result := VirtualMachineImagesClientListByEdgeZoneResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.VMImagesInEdgeZoneListResult); err != nil { + return VirtualMachineImagesClientListByEdgeZoneResponse{}, err + } + return result, nil +} + // ListOffers - Gets a list of virtual machine image offers for the specified location and publisher. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// publisherName - A valid image publisher. -// options - VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - publisherName - A valid image publisher. +// - options - VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers +// method. func (client *VirtualMachineImagesClient) ListOffers(ctx context.Context, location string, publisherName string, options *VirtualMachineImagesClientListOffersOptions) (VirtualMachineImagesClientListOffersResponse, error) { + var err error + const operationName = "VirtualMachineImagesClient.ListOffers" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listOffersCreateRequest(ctx, location, publisherName, options) if err != nil { return VirtualMachineImagesClientListOffersResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesClientListOffersResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesClientListOffersResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesClientListOffersResponse{}, err } - return client.listOffersHandleResponse(resp) + resp, err := client.listOffersHandleResponse(httpResp) + return resp, err } // listOffersCreateRequest creates the ListOffers request. @@ -241,12 +319,12 @@ func (client *VirtualMachineImagesClient) listOffersCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -263,23 +341,31 @@ func (client *VirtualMachineImagesClient) listOffersHandleResponse(resp *http.Re // ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// options - VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - options - VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers +// method. func (client *VirtualMachineImagesClient) ListPublishers(ctx context.Context, location string, options *VirtualMachineImagesClientListPublishersOptions) (VirtualMachineImagesClientListPublishersResponse, error) { + var err error + const operationName = "VirtualMachineImagesClient.ListPublishers" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listPublishersCreateRequest(ctx, location, options) if err != nil { return VirtualMachineImagesClientListPublishersResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesClientListPublishersResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesClientListPublishersResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesClientListPublishersResponse{}, err } - return client.listPublishersHandleResponse(resp) + resp, err := client.listPublishersHandleResponse(httpResp) + return resp, err } // listPublishersCreateRequest creates the ListPublishers request. @@ -293,12 +379,12 @@ func (client *VirtualMachineImagesClient) listPublishersCreateRequest(ctx contex return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -315,25 +401,33 @@ func (client *VirtualMachineImagesClient) listPublishersHandleResponse(resp *htt // ListSKUs - Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// publisherName - A valid image publisher. -// offer - A valid image publisher offer. -// options - VirtualMachineImagesClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesClient.ListSKUs -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - publisherName - A valid image publisher. +// - offer - A valid image publisher offer. +// - options - VirtualMachineImagesClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesClient.ListSKUs +// method. func (client *VirtualMachineImagesClient) ListSKUs(ctx context.Context, location string, publisherName string, offer string, options *VirtualMachineImagesClientListSKUsOptions) (VirtualMachineImagesClientListSKUsResponse, error) { + var err error + const operationName = "VirtualMachineImagesClient.ListSKUs" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listSKUsCreateRequest(ctx, location, publisherName, offer, options) if err != nil { return VirtualMachineImagesClientListSKUsResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesClientListSKUsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesClientListSKUsResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesClientListSKUsResponse{}, err } - return client.listSKUsHandleResponse(resp) + resp, err := client.listSKUsHandleResponse(httpResp) + return resp, err } // listSKUsCreateRequest creates the ListSKUs request. @@ -355,12 +449,12 @@ func (client *VirtualMachineImagesClient) listSKUsCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimagesedgezone_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimagesedgezone_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimagesedgezone_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimagesedgezone_client.go index 303bb09e..8558798f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimagesedgezone_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimagesedgezone_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,60 +24,59 @@ import ( // VirtualMachineImagesEdgeZoneClient contains the methods for the VirtualMachineImagesEdgeZone group. // Don't use this type directly, use NewVirtualMachineImagesEdgeZoneClient() instead. type VirtualMachineImagesEdgeZoneClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineImagesEdgeZoneClient creates a new instance of VirtualMachineImagesEdgeZoneClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineImagesEdgeZoneClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineImagesEdgeZoneClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineImagesEdgeZoneClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Gets a virtual machine image in an edge zone. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// edgeZone - The name of the edge zone. -// publisherName - A valid image publisher. -// offer - A valid image publisher offer. -// skus - A valid image SKU. -// version - A valid image SKU version. -// options - VirtualMachineImagesEdgeZoneClientGetOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - edgeZone - The name of the edge zone. +// - publisherName - A valid image publisher. +// - offer - A valid image publisher offer. +// - skus - A valid image SKU. +// - version - A valid image SKU version. +// - options - VirtualMachineImagesEdgeZoneClientGetOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.Get +// method. func (client *VirtualMachineImagesEdgeZoneClient) Get(ctx context.Context, location string, edgeZone string, publisherName string, offer string, skus string, version string, options *VirtualMachineImagesEdgeZoneClientGetOptions) (VirtualMachineImagesEdgeZoneClientGetResponse, error) { + var err error + const operationName = "VirtualMachineImagesEdgeZoneClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, edgeZone, publisherName, offer, skus, version, options) if err != nil { return VirtualMachineImagesEdgeZoneClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesEdgeZoneClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesEdgeZoneClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesEdgeZoneClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -113,12 +110,12 @@ func (client *VirtualMachineImagesEdgeZoneClient) getCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -135,27 +132,35 @@ func (client *VirtualMachineImagesEdgeZoneClient) getHandleResponse(resp *http.R // List - Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// edgeZone - The name of the edge zone. -// publisherName - A valid image publisher. -// offer - A valid image publisher offer. -// skus - A valid image SKU. -// options - VirtualMachineImagesEdgeZoneClientListOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.List -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - edgeZone - The name of the edge zone. +// - publisherName - A valid image publisher. +// - offer - A valid image publisher offer. +// - skus - A valid image SKU. +// - options - VirtualMachineImagesEdgeZoneClientListOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.List +// method. func (client *VirtualMachineImagesEdgeZoneClient) List(ctx context.Context, location string, edgeZone string, publisherName string, offer string, skus string, options *VirtualMachineImagesEdgeZoneClientListOptions) (VirtualMachineImagesEdgeZoneClientListResponse, error) { + var err error + const operationName = "VirtualMachineImagesEdgeZoneClient.List" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listCreateRequest(ctx, location, edgeZone, publisherName, offer, skus, options) if err != nil { return VirtualMachineImagesEdgeZoneClientListResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesEdgeZoneClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesEdgeZoneClientListResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesEdgeZoneClientListResponse{}, err } - return client.listHandleResponse(resp) + resp, err := client.listHandleResponse(httpResp) + return resp, err } // listCreateRequest creates the List request. @@ -185,7 +190,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -193,13 +198,13 @@ func (client *VirtualMachineImagesEdgeZoneClient) listCreateRequest(ctx context. if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - if options != nil && options.Top != nil { - reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) - } if options != nil && options.Orderby != nil { reqQP.Set("$orderby", *options.Orderby) } - reqQP.Set("api-version", "2022-03-01") + if options != nil && options.Top != nil { + reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) + } + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -216,25 +221,33 @@ func (client *VirtualMachineImagesEdgeZoneClient) listHandleResponse(resp *http. // ListOffers - Gets a list of virtual machine image offers for the specified location, edge zone and publisher. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// edgeZone - The name of the edge zone. -// publisherName - A valid image publisher. -// options - VirtualMachineImagesEdgeZoneClientListOffersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListOffers -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - edgeZone - The name of the edge zone. +// - publisherName - A valid image publisher. +// - options - VirtualMachineImagesEdgeZoneClientListOffersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListOffers +// method. func (client *VirtualMachineImagesEdgeZoneClient) ListOffers(ctx context.Context, location string, edgeZone string, publisherName string, options *VirtualMachineImagesEdgeZoneClientListOffersOptions) (VirtualMachineImagesEdgeZoneClientListOffersResponse, error) { + var err error + const operationName = "VirtualMachineImagesEdgeZoneClient.ListOffers" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listOffersCreateRequest(ctx, location, edgeZone, publisherName, options) if err != nil { return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, err } - return client.listOffersHandleResponse(resp) + resp, err := client.listOffersHandleResponse(httpResp) + return resp, err } // listOffersCreateRequest creates the ListOffers request. @@ -256,12 +269,12 @@ func (client *VirtualMachineImagesEdgeZoneClient) listOffersCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -278,24 +291,32 @@ func (client *VirtualMachineImagesEdgeZoneClient) listOffersHandleResponse(resp // ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location and edge zone. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// edgeZone - The name of the edge zone. -// options - VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - edgeZone - The name of the edge zone. +// - options - VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers +// method. func (client *VirtualMachineImagesEdgeZoneClient) ListPublishers(ctx context.Context, location string, edgeZone string, options *VirtualMachineImagesEdgeZoneClientListPublishersOptions) (VirtualMachineImagesEdgeZoneClientListPublishersResponse, error) { + var err error + const operationName = "VirtualMachineImagesEdgeZoneClient.ListPublishers" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listPublishersCreateRequest(ctx, location, edgeZone, options) if err != nil { return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, err } - return client.listPublishersHandleResponse(resp) + resp, err := client.listPublishersHandleResponse(httpResp) + return resp, err } // listPublishersCreateRequest creates the ListPublishers request. @@ -313,12 +334,12 @@ func (client *VirtualMachineImagesEdgeZoneClient) listPublishersCreateRequest(ct return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -335,26 +356,34 @@ func (client *VirtualMachineImagesEdgeZoneClient) listPublishersHandleResponse(r // ListSKUs - Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The name of a supported Azure region. -// edgeZone - The name of the edge zone. -// publisherName - A valid image publisher. -// offer - A valid image publisher offer. -// options - VirtualMachineImagesEdgeZoneClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListSKUs -// method. +// +// Generated from API version 2024-03-01 +// - location - The name of a supported Azure region. +// - edgeZone - The name of the edge zone. +// - publisherName - A valid image publisher. +// - offer - A valid image publisher offer. +// - options - VirtualMachineImagesEdgeZoneClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListSKUs +// method. func (client *VirtualMachineImagesEdgeZoneClient) ListSKUs(ctx context.Context, location string, edgeZone string, publisherName string, offer string, options *VirtualMachineImagesEdgeZoneClientListSKUsOptions) (VirtualMachineImagesEdgeZoneClientListSKUsResponse, error) { + var err error + const operationName = "VirtualMachineImagesEdgeZoneClient.ListSKUs" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listSKUsCreateRequest(ctx, location, edgeZone, publisherName, offer, options) if err != nil { return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, err } - return client.listSKUsHandleResponse(resp) + resp, err := client.listSKUsHandleResponse(httpResp) + return resp, err } // listSKUsCreateRequest creates the ListSKUs request. @@ -380,12 +409,12 @@ func (client *VirtualMachineImagesEdgeZoneClient) listSKUsCreateRequest(ctx cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineruncommands_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineruncommands_client.go similarity index 68% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineruncommands_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineruncommands_client.go index eb3408ad..c5ef4894 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineruncommands_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineruncommands_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,73 +23,77 @@ import ( // VirtualMachineRunCommandsClient contains the methods for the VirtualMachineRunCommands group. // Don't use this type directly, use NewVirtualMachineRunCommandsClient() instead. type VirtualMachineRunCommandsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineRunCommandsClient creates a new instance of VirtualMachineRunCommandsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineRunCommandsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineRunCommandsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineRunCommandsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - The operation to create or update the run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine where the run command should be created or updated. -// runCommandName - The name of the virtual machine run command. -// runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation. -// options - VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine where the run command should be created or updated. +// - runCommandName - The name of the virtual machine run command. +// - runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation. +// - options - VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginCreateOrUpdate +// method. func (client *VirtualMachineRunCommandsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vmName, runCommandName, runCommand, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineRunCommandsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineRunCommandsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineRunCommandsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineRunCommandsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - The operation to create or update the run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineRunCommandsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmName, runCommandName, runCommand, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -113,53 +115,69 @@ func (client *VirtualMachineRunCommandsClient) createOrUpdateCreateRequest(ctx c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} - return req, runtime.MarshalAsJSON(req, runCommand) + if err := runtime.MarshalAsJSON(req, runCommand); err != nil { + return nil, err + } + return req, nil } // BeginDelete - The operation to delete the run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine where the run command should be deleted. -// runCommandName - The name of the virtual machine run command. -// options - VirtualMachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine where the run command should be deleted. +// - runCommandName - The name of the virtual machine run command. +// - options - VirtualMachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginDelete +// method. func (client *VirtualMachineRunCommandsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmName, runCommandName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineRunCommandsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineRunCommandsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineRunCommandsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineRunCommandsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete the run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineRunCommandsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmName, runCommandName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -181,12 +199,12 @@ func (client *VirtualMachineRunCommandsClient) deleteCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -194,24 +212,32 @@ func (client *VirtualMachineRunCommandsClient) deleteCreateRequest(ctx context.C // Get - Gets specific run command for a subscription in a location. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location upon which run commands is queried. -// commandID - The command id. -// options - VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - location - The location upon which run commands is queried. +// - commandID - The command id. +// - options - VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get +// method. func (client *VirtualMachineRunCommandsClient) Get(ctx context.Context, location string, commandID string, options *VirtualMachineRunCommandsClientGetOptions) (VirtualMachineRunCommandsClientGetResponse, error) { + var err error + const operationName = "VirtualMachineRunCommandsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, location, commandID, options) if err != nil { return VirtualMachineRunCommandsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineRunCommandsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineRunCommandsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineRunCommandsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -229,12 +255,12 @@ func (client *VirtualMachineRunCommandsClient) getCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -251,25 +277,33 @@ func (client *VirtualMachineRunCommandsClient) getHandleResponse(resp *http.Resp // GetByVirtualMachine - The operation to get the run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine containing the run command. -// runCommandName - The name of the virtual machine run command. -// options - VirtualMachineRunCommandsClientGetByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.GetByVirtualMachine -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine containing the run command. +// - runCommandName - The name of the virtual machine run command. +// - options - VirtualMachineRunCommandsClientGetByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.GetByVirtualMachine +// method. func (client *VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientGetByVirtualMachineOptions) (VirtualMachineRunCommandsClientGetByVirtualMachineResponse, error) { + var err error + const operationName = "VirtualMachineRunCommandsClient.GetByVirtualMachine" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getByVirtualMachineCreateRequest(ctx, resourceGroupName, vmName, runCommandName, options) if err != nil { return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, err } - return client.getByVirtualMachineHandleResponse(resp) + resp, err := client.getByVirtualMachineHandleResponse(httpResp) + return resp, err } // getByVirtualMachineCreateRequest creates the GetByVirtualMachine request. @@ -291,7 +325,7 @@ func (client *VirtualMachineRunCommandsClient) getByVirtualMachineCreateRequest( return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -299,7 +333,7 @@ func (client *VirtualMachineRunCommandsClient) getByVirtualMachineCreateRequest( if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -315,36 +349,31 @@ func (client *VirtualMachineRunCommandsClient) getByVirtualMachineHandleResponse } // NewListPager - Lists all available run commands for a subscription in a location. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location upon which run commands is queried. -// options - VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - location - The location upon which run commands is queried. +// - options - VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListPager +// method. func (client *VirtualMachineRunCommandsClient) NewListPager(location string, options *VirtualMachineRunCommandsClientListOptions) *runtime.Pager[VirtualMachineRunCommandsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineRunCommandsClientListResponse]{ More: func(page VirtualMachineRunCommandsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineRunCommandsClientListResponse) (VirtualMachineRunCommandsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, location, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineRunCommandsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, location, options) + }, nil) if err != nil { return VirtualMachineRunCommandsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return VirtualMachineRunCommandsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineRunCommandsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -359,12 +388,12 @@ func (client *VirtualMachineRunCommandsClient) listCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -380,37 +409,32 @@ func (client *VirtualMachineRunCommandsClient) listHandleResponse(resp *http.Res } // NewListByVirtualMachinePager - The operation to get all run commands of a Virtual Machine. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine containing the run command. -// options - VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.ListByVirtualMachine -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine containing the run command. +// - options - VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListByVirtualMachinePager +// method. func (client *VirtualMachineRunCommandsClient) NewListByVirtualMachinePager(resourceGroupName string, vmName string, options *VirtualMachineRunCommandsClientListByVirtualMachineOptions) *runtime.Pager[VirtualMachineRunCommandsClientListByVirtualMachineResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineRunCommandsClientListByVirtualMachineResponse]{ More: func(page VirtualMachineRunCommandsClientListByVirtualMachineResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineRunCommandsClientListByVirtualMachineResponse) (VirtualMachineRunCommandsClientListByVirtualMachineResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByVirtualMachineCreateRequest(ctx, resourceGroupName, vmName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachineRunCommandsClientListByVirtualMachineResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineRunCommandsClient.NewListByVirtualMachinePager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByVirtualMachineCreateRequest(ctx, resourceGroupName, vmName, options) + }, nil) if err != nil { return VirtualMachineRunCommandsClientListByVirtualMachineResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineRunCommandsClientListByVirtualMachineResponse{}, runtime.NewResponseError(resp) - } return client.listByVirtualMachineHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -429,7 +453,7 @@ func (client *VirtualMachineRunCommandsClient) listByVirtualMachineCreateRequest return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -437,7 +461,7 @@ func (client *VirtualMachineRunCommandsClient) listByVirtualMachineCreateRequest if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -454,41 +478,54 @@ func (client *VirtualMachineRunCommandsClient) listByVirtualMachineHandleRespons // BeginUpdate - The operation to update the run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine where the run command should be updated. -// runCommandName - The name of the virtual machine run command. -// runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation. -// options - VirtualMachineRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine where the run command should be updated. +// - runCommandName - The name of the virtual machine run command. +// - runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation. +// - options - VirtualMachineRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginUpdate +// method. func (client *VirtualMachineRunCommandsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineRunCommandsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmName, runCommandName, runCommand, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineRunCommandsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineRunCommandsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineRunCommandsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineRunCommandsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - The operation to update the run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineRunCommandsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineRunCommandsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmName, runCommandName, runCommand, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -510,13 +547,16 @@ func (client *VirtualMachineRunCommandsClient) updateCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} - return req, runtime.MarshalAsJSON(req, runCommand) + if err := runtime.MarshalAsJSON(req, runCommand); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachines_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachines_client.go similarity index 63% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachines_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachines_client.go index 504deb60..dd55aabc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachines_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachines_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,73 +24,76 @@ import ( // VirtualMachinesClient contains the methods for the VirtualMachines group. // Don't use this type directly, use NewVirtualMachinesClient() instead. type VirtualMachinesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachinesClient creates a new instance of VirtualMachinesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachinesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachinesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginAssessPatches - Assess patches on the VM. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches +// method. func (client *VirtualMachinesClient) BeginAssessPatches(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginAssessPatchesOptions) (*runtime.Poller[VirtualMachinesClientAssessPatchesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.assessPatches(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientAssessPatchesResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientAssessPatchesResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientAssessPatchesResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientAssessPatchesResponse]{ + Tracer: client.internal.Tracer(), + }) } } // AssessPatches - Assess patches on the VM. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) assessPatches(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginAssessPatchesOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginAssessPatches" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.assessPatchesCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // assessPatchesCreateRequest creates the AssessPatches request. @@ -110,57 +111,150 @@ func (client *VirtualMachinesClient) assessPatchesCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginAttachDetachDataDisks - Attach and detach data disks to/from the virtual machine. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - parameters - Parameters supplied to the attach and detach data disks operation on the virtual machine. +// - options - VirtualMachinesClientBeginAttachDetachDataDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginAttachDetachDataDisks +// method. +func (client *VirtualMachinesClient) BeginAttachDetachDataDisks(ctx context.Context, resourceGroupName string, vmName string, parameters AttachDetachDataDisksRequest, options *VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*runtime.Poller[VirtualMachinesClientAttachDetachDataDisksResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.attachDetachDataDisks(ctx, resourceGroupName, vmName, parameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientAttachDetachDataDisksResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientAttachDetachDataDisksResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// AttachDetachDataDisks - Attach and detach data disks to/from the virtual machine. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +func (client *VirtualMachinesClient) attachDetachDataDisks(ctx context.Context, resourceGroupName string, vmName string, parameters AttachDetachDataDisksRequest, options *VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginAttachDetachDataDisks" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.attachDetachDataDisksCreateRequest(ctx, resourceGroupName, vmName, parameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// attachDetachDataDisksCreateRequest creates the AttachDetachDataDisks request. +func (client *VirtualMachinesClient) attachDetachDataDisksCreateRequest(ctx context.Context, resourceGroupName string, vmName string, parameters AttachDetachDataDisksRequest, options *VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if vmName == "" { + return nil, errors.New("parameter vmName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } return req, nil } // BeginCapture - Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create // similar VMs. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// parameters - Parameters supplied to the Capture Virtual Machine operation. -// options - VirtualMachinesClientBeginCaptureOptions contains the optional parameters for the VirtualMachinesClient.BeginCapture -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - parameters - Parameters supplied to the Capture Virtual Machine operation. +// - options - VirtualMachinesClientBeginCaptureOptions contains the optional parameters for the VirtualMachinesClient.BeginCapture +// method. func (client *VirtualMachinesClient) BeginCapture(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, options *VirtualMachinesClientBeginCaptureOptions) (*runtime.Poller[VirtualMachinesClientCaptureResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.capture(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientCaptureResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientCaptureResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientCaptureResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientCaptureResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Capture - Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar // VMs. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) capture(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, options *VirtualMachinesClientBeginCaptureOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginCapture" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.captureCreateRequest(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // captureCreateRequest creates the Capture request. @@ -178,54 +272,70 @@ func (client *VirtualMachinesClient) captureCreateRequest(ctx context.Context, r return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginConvertToManagedDisks - Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated // before invoking this operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks +// method. func (client *VirtualMachinesClient) BeginConvertToManagedDisks(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginConvertToManagedDisksOptions) (*runtime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.convertToManagedDisks(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientConvertToManagedDisksResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientConvertToManagedDisksResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientConvertToManagedDisksResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientConvertToManagedDisksResponse]{ + Tracer: client.internal.Tracer(), + }) } } // ConvertToManagedDisks - Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated // before invoking this operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) convertToManagedDisks(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginConvertToManagedDisksOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginConvertToManagedDisks" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.convertToManagedDisksCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // convertToManagedDisksCreateRequest creates the ConvertToManagedDisks request. @@ -243,12 +353,12 @@ func (client *VirtualMachinesClient) convertToManagedDisksCreateRequest(ctx cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -257,41 +367,54 @@ func (client *VirtualMachinesClient) convertToManagedDisksCreateRequest(ctx cont // BeginCreateOrUpdate - The operation to create or update a virtual machine. Please note some properties can be set only // during virtual machine creation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// parameters - Parameters supplied to the Create Virtual Machine operation. -// options - VirtualMachinesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - parameters - Parameters supplied to the Create Virtual Machine operation. +// - options - VirtualMachinesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginCreateOrUpdate +// method. func (client *VirtualMachinesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - The operation to create or update a virtual machine. Please note some properties can be set only during // virtual machine creation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -309,54 +432,76 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginDeallocate - Shuts down the virtual machine and releases the compute resources. You are not billed for the compute // resources that this virtual machine uses. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate +// method. func (client *VirtualMachinesClient) BeginDeallocate(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeallocateOptions) (*runtime.Poller[VirtualMachinesClientDeallocateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deallocate(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientDeallocateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientDeallocateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientDeallocateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientDeallocateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Deallocate - Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources // that this virtual machine uses. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) deallocate(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeallocateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginDeallocate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deallocateCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deallocateCreateRequest creates the Deallocate request. @@ -374,15 +519,15 @@ func (client *VirtualMachinesClient) deallocateCreateRequest(ctx context.Context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.Hibernate != nil { reqQP.Set("hibernate", strconv.FormatBool(*options.Hibernate)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -390,39 +535,52 @@ func (client *VirtualMachinesClient) deallocateCreateRequest(ctx context.Context // BeginDelete - The operation to delete a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete +// method. func (client *VirtualMachinesClient) BeginDelete(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeleteOptions) (*runtime.Poller[VirtualMachinesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -440,15 +598,15 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.ForceDeletion != nil { reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -460,22 +618,29 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re // please refer to How to create an image of a virtual machine or VHD // [https://docs.microsoft.com/azure/virtual-machines/linux/capture-image]. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize +// method. func (client *VirtualMachinesClient) Generalize(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientGeneralizeOptions) (VirtualMachinesClientGeneralizeResponse, error) { + var err error + const operationName = "VirtualMachinesClient.Generalize" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.generalizeCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return VirtualMachinesClientGeneralizeResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachinesClientGeneralizeResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachinesClientGeneralizeResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachinesClientGeneralizeResponse{}, err } return VirtualMachinesClientGeneralizeResponse{}, nil } @@ -495,12 +660,12 @@ func (client *VirtualMachinesClient) generalizeCreateRequest(ctx context.Context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -508,23 +673,31 @@ func (client *VirtualMachinesClient) generalizeCreateRequest(ctx context.Context // Get - Retrieves information about the model view or the instance view of a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method. func (client *VirtualMachinesClient) Get(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientGetOptions) (VirtualMachinesClientGetResponse, error) { + var err error + const operationName = "VirtualMachinesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return VirtualMachinesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachinesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachinesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachinesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -542,7 +715,7 @@ func (client *VirtualMachinesClient) getCreateRequest(ctx context.Context, resou return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -550,7 +723,7 @@ func (client *VirtualMachinesClient) getCreateRequest(ctx context.Context, resou if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -567,42 +740,54 @@ func (client *VirtualMachinesClient) getHandleResponse(resp *http.Response) (Vir // BeginInstallPatches - Installs patches on the VM. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// installPatchesInput - Input for InstallPatches as directly received by the API -// options - VirtualMachinesClientBeginInstallPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginInstallPatches -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - installPatchesInput - Input for InstallPatches as directly received by the API +// - options - VirtualMachinesClientBeginInstallPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginInstallPatches +// method. func (client *VirtualMachinesClient) BeginInstallPatches(ctx context.Context, resourceGroupName string, vmName string, installPatchesInput VirtualMachineInstallPatchesParameters, options *VirtualMachinesClientBeginInstallPatchesOptions) (*runtime.Poller[VirtualMachinesClientInstallPatchesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.installPatches(ctx, resourceGroupName, vmName, installPatchesInput, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientInstallPatchesResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientInstallPatchesResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientInstallPatchesResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientInstallPatchesResponse]{ + Tracer: client.internal.Tracer(), + }) } } // InstallPatches - Installs patches on the VM. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) installPatches(ctx context.Context, resourceGroupName string, vmName string, installPatchesInput VirtualMachineInstallPatchesParameters, options *VirtualMachinesClientBeginInstallPatchesOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginInstallPatches" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.installPatchesCreateRequest(ctx, resourceGroupName, vmName, installPatchesInput, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // installPatchesCreateRequest creates the InstallPatches request. @@ -620,37 +805,48 @@ func (client *VirtualMachinesClient) installPatchesCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, installPatchesInput) + if err := runtime.MarshalAsJSON(req, installPatchesInput); err != nil { + return nil, err + } + return req, nil } // InstanceView - Retrieves information about the run-time state of a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView +// method. func (client *VirtualMachinesClient) InstanceView(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientInstanceViewOptions) (VirtualMachinesClientInstanceViewResponse, error) { + var err error + const operationName = "VirtualMachinesClient.InstanceView" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.instanceViewCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return VirtualMachinesClientInstanceViewResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachinesClientInstanceViewResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachinesClientInstanceViewResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachinesClientInstanceViewResponse{}, err } - return client.instanceViewHandleResponse(resp) + resp, err := client.instanceViewHandleResponse(httpResp) + return resp, err } // instanceViewCreateRequest creates the InstanceView request. @@ -668,12 +864,12 @@ func (client *VirtualMachinesClient) instanceViewCreateRequest(ctx context.Conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -690,35 +886,31 @@ func (client *VirtualMachinesClient) instanceViewHandleResponse(resp *http.Respo // NewListPager - Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response // to get the next page of virtual machines. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.List method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.NewListPager +// method. func (client *VirtualMachinesClient) NewListPager(resourceGroupName string, options *VirtualMachinesClientListOptions) *runtime.Pager[VirtualMachinesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListResponse]{ More: func(page VirtualMachinesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachinesClientListResponse) (VirtualMachinesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachinesClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachinesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return VirtualMachinesClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachinesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -733,15 +925,18 @@ func (client *VirtualMachinesClient) listCreateRequest(ctx context.Context, reso return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + if options != nil && options.Expand != nil { + reqQP.Set("$expand", string(*options.Expand)) + } if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -758,34 +953,30 @@ func (client *VirtualMachinesClient) listHandleResponse(resp *http.Response) (Vi // NewListAllPager - Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response // to get the next page of virtual machines. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.ListAll method. +// +// Generated from API version 2024-03-01 +// - options - VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.NewListAllPager +// method. func (client *VirtualMachinesClient) NewListAllPager(options *VirtualMachinesClientListAllOptions) *runtime.Pager[VirtualMachinesClientListAllResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListAllResponse]{ More: func(page VirtualMachinesClientListAllResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachinesClientListAllResponse) (VirtualMachinesClientListAllResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listAllCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachinesClientListAllResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachinesClient.NewListAllPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listAllCreateRequest(ctx, options) + }, nil) if err != nil { return VirtualMachinesClientListAllResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachinesClientListAllResponse{}, runtime.NewResponseError(resp) - } return client.listAllHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -796,18 +987,21 @@ func (client *VirtualMachinesClient) listAllCreateRequest(ctx context.Context, o return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") - if options != nil && options.StatusOnly != nil { - reqQP.Set("statusOnly", *options.StatusOnly) + if options != nil && options.Expand != nil { + reqQP.Set("$expand", string(*options.Expand)) } if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } + reqQP.Set("api-version", "2024-03-01") + if options != nil && options.StatusOnly != nil { + reqQP.Set("statusOnly", *options.StatusOnly) + } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -823,23 +1017,24 @@ func (client *VirtualMachinesClient) listAllHandleResponse(resp *http.Response) } // NewListAvailableSizesPager - Lists all available virtual machine sizes to which the specified virtual machine can be resized. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.ListAvailableSizes -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.NewListAvailableSizesPager +// method. func (client *VirtualMachinesClient) NewListAvailableSizesPager(resourceGroupName string, vmName string, options *VirtualMachinesClientListAvailableSizesOptions) *runtime.Pager[VirtualMachinesClientListAvailableSizesResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListAvailableSizesResponse]{ More: func(page VirtualMachinesClientListAvailableSizesResponse) bool { return false }, Fetcher: func(ctx context.Context, page *VirtualMachinesClientListAvailableSizesResponse) (VirtualMachinesClientListAvailableSizesResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachinesClient.NewListAvailableSizesPager") req, err := client.listAvailableSizesCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return VirtualMachinesClientListAvailableSizesResponse{}, err } - resp, err := client.pl.Do(req) + resp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachinesClientListAvailableSizesResponse{}, err } @@ -848,6 +1043,7 @@ func (client *VirtualMachinesClient) NewListAvailableSizesPager(resourceGroupNam } return client.listAvailableSizesHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -866,12 +1062,12 @@ func (client *VirtualMachinesClient) listAvailableSizesCreateRequest(ctx context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -887,36 +1083,31 @@ func (client *VirtualMachinesClient) listAvailableSizesHandleResponse(resp *http } // NewListByLocationPager - Gets all the virtual machines under the specified subscription for the specified location. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location for which virtual machines under the subscription are queried. -// options - VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.ListByLocation -// method. +// +// Generated from API version 2024-03-01 +// - location - The location for which virtual machines under the subscription are queried. +// - options - VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.NewListByLocationPager +// method. func (client *VirtualMachinesClient) NewListByLocationPager(location string, options *VirtualMachinesClientListByLocationOptions) *runtime.Pager[VirtualMachinesClientListByLocationResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListByLocationResponse]{ More: func(page VirtualMachinesClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachinesClientListByLocationResponse) (VirtualMachinesClientListByLocationResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByLocationCreateRequest(ctx, location, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachinesClientListByLocationResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachinesClient.NewListByLocationPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByLocationCreateRequest(ctx, location, options) + }, nil) if err != nil { return VirtualMachinesClientListByLocationResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachinesClientListByLocationResponse{}, runtime.NewResponseError(resp) - } return client.listByLocationHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -931,12 +1122,12 @@ func (client *VirtualMachinesClient) listByLocationCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -953,39 +1144,52 @@ func (client *VirtualMachinesClient) listByLocationHandleResponse(resp *http.Res // BeginPerformMaintenance - The operation to perform maintenance on a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance +// method. func (client *VirtualMachinesClient) BeginPerformMaintenance(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPerformMaintenanceOptions) (*runtime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.performMaintenance(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientPerformMaintenanceResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientPerformMaintenanceResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientPerformMaintenanceResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientPerformMaintenanceResponse]{ + Tracer: client.internal.Tracer(), + }) } } // PerformMaintenance - The operation to perform maintenance on a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) performMaintenance(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPerformMaintenanceOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginPerformMaintenance" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.performMaintenanceCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // performMaintenanceCreateRequest creates the PerformMaintenance request. @@ -1003,12 +1207,12 @@ func (client *VirtualMachinesClient) performMaintenanceCreateRequest(ctx context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1017,40 +1221,53 @@ func (client *VirtualMachinesClient) performMaintenanceCreateRequest(ctx context // BeginPowerOff - The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same // provisioned resources. You are still charged for this virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff +// method. func (client *VirtualMachinesClient) BeginPowerOff(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPowerOffOptions) (*runtime.Poller[VirtualMachinesClientPowerOffResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.powerOff(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientPowerOffResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientPowerOffResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) } } // PowerOff - The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned // resources. You are still charged for this virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) powerOff(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPowerOffOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginPowerOff" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.powerOffCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // powerOffCreateRequest creates the PowerOff request. @@ -1068,15 +1285,15 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context, return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.SkipShutdown != nil { reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1084,39 +1301,52 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context, // BeginReapply - The operation to reapply a virtual machine's state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply +// method. func (client *VirtualMachinesClient) BeginReapply(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReapplyOptions) (*runtime.Poller[VirtualMachinesClientReapplyResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reapply(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientReapplyResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientReapplyResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientReapplyResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientReapplyResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Reapply - The operation to reapply a virtual machine's state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) reapply(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReapplyOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginReapply" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reapplyCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reapplyCreateRequest creates the Reapply request. @@ -1134,12 +1364,12 @@ func (client *VirtualMachinesClient) reapplyCreateRequest(ctx context.Context, r return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1147,39 +1377,52 @@ func (client *VirtualMachinesClient) reapplyCreateRequest(ctx context.Context, r // BeginRedeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy +// method. func (client *VirtualMachinesClient) BeginRedeploy(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRedeployOptions) (*runtime.Poller[VirtualMachinesClientRedeployResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.redeploy(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientRedeployResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientRedeployResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Redeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) redeploy(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRedeployOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginRedeploy" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.redeployCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // redeployCreateRequest creates the Redeploy request. @@ -1197,52 +1440,73 @@ func (client *VirtualMachinesClient) redeployCreateRequest(ctx context.Context, return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// BeginReimage - Reimages the virtual machine which has an ephemeral OS disk back to its initial state. +// BeginReimage - Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual +// machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: +// The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk +// will be preserved after reimage. If deleteOption is delete, the old OS disk +// will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage +// method. func (client *VirtualMachinesClient) BeginReimage(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReimageOptions) (*runtime.Poller[VirtualMachinesClientReimageResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reimage(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientReimageResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientReimageResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) } } -// Reimage - Reimages the virtual machine which has an ephemeral OS disk back to its initial state. +// Reimage - Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines +// who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: +// The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk +// will be preserved after reimage. If deleteOption is delete, the old OS disk +// will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) reimage(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReimageOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginReimage" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reimageCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reimageCreateRequest creates the Reimage request. @@ -1260,55 +1524,71 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, *options.Parameters) + if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginRestart - The operation to restart a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart +// method. func (client *VirtualMachinesClient) BeginRestart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRestartOptions) (*runtime.Poller[VirtualMachinesClientRestartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restart(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientRestartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientRestartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Restart - The operation to restart a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) restart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRestartOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginRestart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.restartCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // restartCreateRequest creates the Restart request. @@ -1326,12 +1606,12 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1339,24 +1619,32 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r // RetrieveBootDiagnosticsData - The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData +// method. func (client *VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientRetrieveBootDiagnosticsDataOptions) (VirtualMachinesClientRetrieveBootDiagnosticsDataResponse, error) { + var err error + const operationName = "VirtualMachinesClient.RetrieveBootDiagnosticsData" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.retrieveBootDiagnosticsDataCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, err } - return client.retrieveBootDiagnosticsDataHandleResponse(resp) + resp, err := client.retrieveBootDiagnosticsDataHandleResponse(httpResp) + return resp, err } // retrieveBootDiagnosticsDataCreateRequest creates the RetrieveBootDiagnosticsData request. @@ -1374,15 +1662,15 @@ func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataCreateRequest(ct return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.SasURIExpirationTimeInMinutes != nil { reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1399,42 +1687,54 @@ func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataHandleResponse(r // BeginRunCommand - Run command on the VM. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// parameters - Parameters supplied to the Run command operation. -// options - VirtualMachinesClientBeginRunCommandOptions contains the optional parameters for the VirtualMachinesClient.BeginRunCommand -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - parameters - Parameters supplied to the Run command operation. +// - options - VirtualMachinesClientBeginRunCommandOptions contains the optional parameters for the VirtualMachinesClient.BeginRunCommand +// method. func (client *VirtualMachinesClient) BeginRunCommand(ctx context.Context, resourceGroupName string, vmName string, parameters RunCommandInput, options *VirtualMachinesClientBeginRunCommandOptions) (*runtime.Poller[VirtualMachinesClientRunCommandResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.runCommand(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientRunCommandResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientRunCommandResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientRunCommandResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientRunCommandResponse]{ + Tracer: client.internal.Tracer(), + }) } } // RunCommand - Run command on the VM. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) runCommand(ctx context.Context, resourceGroupName string, vmName string, parameters RunCommandInput, options *VirtualMachinesClientBeginRunCommandOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginRunCommand" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.runCommandCreateRequest(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // runCommandCreateRequest creates the RunCommand request. @@ -1452,35 +1752,45 @@ func (client *VirtualMachinesClient) runCommandCreateRequest(ctx context.Context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // SimulateEviction - The operation to simulate the eviction of spot virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction +// method. func (client *VirtualMachinesClient) SimulateEviction(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientSimulateEvictionOptions) (VirtualMachinesClientSimulateEvictionResponse, error) { + var err error + const operationName = "VirtualMachinesClient.SimulateEviction" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.simulateEvictionCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return VirtualMachinesClientSimulateEvictionResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachinesClientSimulateEvictionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusNoContent) { - return VirtualMachinesClientSimulateEvictionResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return VirtualMachinesClientSimulateEvictionResponse{}, err } return VirtualMachinesClientSimulateEvictionResponse{}, nil } @@ -1500,12 +1810,12 @@ func (client *VirtualMachinesClient) simulateEvictionCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1513,39 +1823,52 @@ func (client *VirtualMachinesClient) simulateEvictionCreateRequest(ctx context.C // BeginStart - The operation to start a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// options - VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - options - VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart +// method. func (client *VirtualMachinesClient) BeginStart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginStartOptions) (*runtime.Poller[VirtualMachinesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientStartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientStartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Start - The operation to start a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) start(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startCreateRequest(ctx, resourceGroupName, vmName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startCreateRequest creates the Start request. @@ -1563,12 +1886,12 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1576,40 +1899,53 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res // BeginUpdate - The operation to update a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmName - The name of the virtual machine. -// parameters - Parameters supplied to the Update Virtual Machine operation. -// options - VirtualMachinesClientBeginUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmName - The name of the virtual machine. +// - parameters - Parameters supplied to the Update Virtual Machine operation. +// - options - VirtualMachinesClientBeginUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginUpdate +// method. func (client *VirtualMachinesClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineUpdate, options *VirtualMachinesClientBeginUpdateOptions) (*runtime.Poller[VirtualMachinesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachinesClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachinesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachinesClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachinesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - The operation to update a virtual machine. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachinesClient) update(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineUpdate, options *VirtualMachinesClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachinesClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -1627,13 +1963,22 @@ func (client *VirtualMachinesClient) updateCreateRequest(ctx context.Context, re return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetextensions_client.go similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetextensions_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetextensions_client.go index 06b808c2..81ddfad6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetextensions_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetextensions_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,73 +23,77 @@ import ( // VirtualMachineScaleSetExtensionsClient contains the methods for the VirtualMachineScaleSetExtensions group. // Don't use this type directly, use NewVirtualMachineScaleSetExtensionsClient() instead. type VirtualMachineScaleSetExtensionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineScaleSetExtensionsClient creates a new instance of VirtualMachineScaleSetExtensionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineScaleSetExtensionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetExtensionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineScaleSetExtensionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - The operation to create or update an extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set where the extension should be create or updated. -// vmssExtensionName - The name of the VM scale set extension. -// extensionParameters - Parameters supplied to the Create VM scale set Extension operation. -// options - VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set where the extension should be create or updated. +// - vmssExtensionName - The name of the VM scale set extension. +// - extensionParameters - Parameters supplied to the Create VM scale set Extension operation. +// - options - VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate +// method. func (client *VirtualMachineScaleSetExtensionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtension, options *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - The operation to create or update an extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtension, options *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -113,53 +115,69 @@ func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdateCreateReques return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, extensionParameters) + if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - The operation to delete the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set where the extension should be deleted. -// vmssExtensionName - The name of the VM scale set extension. -// options - VirtualMachineScaleSetExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set where the extension should be deleted. +// - vmssExtensionName - The name of the VM scale set extension. +// - options - VirtualMachineScaleSetExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginDelete +// method. func (client *VirtualMachineScaleSetExtensionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetExtensionsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetExtensionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetExtensionsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetExtensionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetExtensionsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -181,12 +199,12 @@ func (client *VirtualMachineScaleSetExtensionsClient) deleteCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -194,25 +212,33 @@ func (client *VirtualMachineScaleSetExtensionsClient) deleteCreateRequest(ctx co // Get - The operation to get the extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set containing the extension. -// vmssExtensionName - The name of the VM scale set extension. -// options - VirtualMachineScaleSetExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set containing the extension. +// - vmssExtensionName - The name of the VM scale set extension. +// - options - VirtualMachineScaleSetExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.Get +// method. func (client *VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientGetOptions) (VirtualMachineScaleSetExtensionsClientGetResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetExtensionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, options) if err != nil { return VirtualMachineScaleSetExtensionsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetExtensionsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetExtensionsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetExtensionsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -234,7 +260,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) getCreateRequest(ctx conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -242,7 +268,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) getCreateRequest(ctx conte if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -258,37 +284,32 @@ func (client *VirtualMachineScaleSetExtensionsClient) getHandleResponse(resp *ht } // NewListPager - Gets a list of all extensions in a VM scale set. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set containing the extension. -// options - VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set containing the extension. +// - options - VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.NewListPager +// method. func (client *VirtualMachineScaleSetExtensionsClient) NewListPager(resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetExtensionsClientListOptions) *runtime.Pager[VirtualMachineScaleSetExtensionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetExtensionsClientListResponse]{ More: func(page VirtualMachineScaleSetExtensionsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetExtensionsClientListResponse) (VirtualMachineScaleSetExtensionsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetExtensionsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) + }, nil) if err != nil { return VirtualMachineScaleSetExtensionsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return VirtualMachineScaleSetExtensionsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetExtensionsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -307,12 +328,12 @@ func (client *VirtualMachineScaleSetExtensionsClient) listCreateRequest(ctx cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -329,41 +350,54 @@ func (client *VirtualMachineScaleSetExtensionsClient) listHandleResponse(resp *h // BeginUpdate - The operation to update an extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set where the extension should be updated. -// vmssExtensionName - The name of the VM scale set extension. -// extensionParameters - Parameters supplied to the Update VM scale set Extension operation. -// options - VirtualMachineScaleSetExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set where the extension should be updated. +// - vmssExtensionName - The name of the VM scale set extension. +// - extensionParameters - Parameters supplied to the Update VM scale set Extension operation. +// - options - VirtualMachineScaleSetExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginUpdate +// method. func (client *VirtualMachineScaleSetExtensionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtensionUpdate, options *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetExtensionsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetExtensionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetExtensionsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetExtensionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - The operation to update an extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtensionUpdate, options *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetExtensionsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -385,13 +419,16 @@ func (client *VirtualMachineScaleSetExtensionsClient) updateCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, extensionParameters) + if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetrollingupgrades_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetrollingupgrades_client.go similarity index 68% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetrollingupgrades_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetrollingupgrades_client.go index d86eeec8..41e01d5d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetrollingupgrades_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetrollingupgrades_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,71 +23,75 @@ import ( // VirtualMachineScaleSetRollingUpgradesClient contains the methods for the VirtualMachineScaleSetRollingUpgrades group. // Don't use this type directly, use NewVirtualMachineScaleSetRollingUpgradesClient() instead. type VirtualMachineScaleSetRollingUpgradesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineScaleSetRollingUpgradesClient creates a new instance of VirtualMachineScaleSetRollingUpgradesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineScaleSetRollingUpgradesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetRollingUpgradesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineScaleSetRollingUpgradesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCancel - Cancels the current virtual machine scale set rolling upgrade. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel +// method. func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginCancel(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions) (*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.cancel(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetRollingUpgradesClientCancelResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetRollingUpgradesClientCancelResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetRollingUpgradesClientCancelResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Cancel - Cancels the current virtual machine scale set rolling upgrade. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetRollingUpgradesClient) cancel(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginCancel" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.cancelCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // cancelCreateRequest creates the Cancel request. @@ -107,12 +109,12 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) cancelCreateRequest(c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -120,24 +122,32 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) cancelCreateRequest(c // GetLatest - Gets the status of the latest virtual machine scale set rolling upgrade. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest +// method. func (client *VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions) (VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetRollingUpgradesClient.GetLatest" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getLatestCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, err } - return client.getLatestHandleResponse(resp) + resp, err := client.getLatestHandleResponse(httpResp) + return resp, err } // getLatestCreateRequest creates the GetLatest request. @@ -155,12 +165,12 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestCreateReques return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -179,20 +189,26 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestHandleRespon // to the latest available extension version. Instances which are already running the latest extension versions // are not affected. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters -// for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters +// for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade method. func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartExtensionUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.startExtensionUpgrade(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -200,20 +216,27 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartExtensionUp // the latest available extension version. Instances which are already running the latest extension versions // are not affected. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startExtensionUpgradeCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startExtensionUpgradeCreateRequest creates the StartExtensionUpgrade request. @@ -231,12 +254,12 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -246,20 +269,26 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade // Platform Image OS version. Instances which are already running the latest available OS version are not // affected. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the -// VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the +// VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade method. func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartOSUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.startOSUpgrade(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -267,20 +296,27 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartOSUpgrade(c // Image OS version. Instances which are already running the latest available OS version are not // affected. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startOSUpgradeCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startOSUpgradeCreateRequest creates the StartOSUpgrade request. @@ -298,12 +334,12 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgradeCreateR return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesets_client.go similarity index 62% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesets_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesets_client.go index 5a5d8a7e..a03ff0c5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesets_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesets_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,55 +24,137 @@ import ( // VirtualMachineScaleSetsClient contains the methods for the VirtualMachineScaleSets group. // Don't use this type directly, use NewVirtualMachineScaleSetsClient() instead. type VirtualMachineScaleSetsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineScaleSetsClient creates a new instance of VirtualMachineScaleSetsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineScaleSetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineScaleSetsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } +// BeginApproveRollingUpgrade - Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM +// scale set. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade +// method. +func (client *VirtualMachineScaleSetsClient) BeginApproveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetsClientApproveRollingUpgradeResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.approveRollingUpgrade(ctx, resourceGroupName, vmScaleSetName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientApproveRollingUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientApproveRollingUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// ApproveRollingUpgrade - Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale +// set. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +func (client *VirtualMachineScaleSetsClient) approveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.approveRollingUpgradeCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// approveRollingUpgradeCreateRequest creates the ApproveRollingUpgrade request. +func (client *VirtualMachineScaleSetsClient) approveRollingUpgradeCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if vmScaleSetName == "" { + return nil, errors.New("parameter vmScaleSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.VMInstanceIDs != nil { + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil + } + return req, nil +} + // ConvertToSinglePlacementGroup - Converts SinglePlacementGroup property to false for a existing virtual machine scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the virtual machine scale set to create or update. -// parameters - The input object for ConvertToSinglePlacementGroup API. -// options - VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the virtual machine scale set to create or update. +// - parameters - The input object for ConvertToSinglePlacementGroup API. +// - options - VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup +// method. func (client *VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VMScaleSetConvertToSinglePlacementGroupInput, options *VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions) (VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.convertToSinglePlacementGroupCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options) if err != nil { return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, err } return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, nil } @@ -94,53 +174,69 @@ func (client *VirtualMachineScaleSetsClient) convertToSinglePlacementGroupCreate return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginCreateOrUpdate - Create or update a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set to create or update. -// parameters - The scale set object. -// options - VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set to create or update. +// - parameters - The scale set object. +// - options - VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginCreateOrUpdate +// method. func (client *VirtualMachineScaleSetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSet, options *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - Create or update a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSet, options *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -158,35 +254,50 @@ func (client *VirtualMachineScaleSetsClient) createOrUpdateCreateRequest(ctx con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginDeallocate - Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases // the compute resources. You are not billed for the compute resources that this virtual machine // scale set deallocates. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate +// method. func (client *VirtualMachineScaleSetsClient) BeginDeallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeallocateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deallocate(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientDeallocateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientDeallocateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientDeallocateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientDeallocateResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -194,20 +305,27 @@ func (client *VirtualMachineScaleSetsClient) BeginDeallocate(ctx context.Context // compute resources. You are not billed for the compute resources that this virtual machine // scale set deallocates. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeallocateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginDeallocate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deallocateCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deallocateCreateRequest creates the Deallocate request. @@ -225,55 +343,74 @@ func (client *VirtualMachineScaleSetsClient) deallocateCreateRequest(ctx context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") + if options != nil && options.Hibernate != nil { + reqQP.Set("hibernate", strconv.FormatBool(*options.Hibernate)) + } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMInstanceIDs != nil { - return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs) + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginDelete - Deletes a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete +// method. func (client *VirtualMachineScaleSetsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -291,15 +428,15 @@ func (client *VirtualMachineScaleSetsClient) deleteCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.ForceDeletion != nil { reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -307,40 +444,53 @@ func (client *VirtualMachineScaleSetsClient) deleteCreateRequest(ctx context.Con // BeginDeleteInstances - Deletes virtual machines in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set. -// options - VirtualMachineScaleSetsClientBeginDeleteInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeleteInstances -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginDeleteInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeleteInstances +// method. func (client *VirtualMachineScaleSetsClient) BeginDeleteInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions) (*runtime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteInstances(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientDeleteInstancesResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientDeleteInstancesResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientDeleteInstancesResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientDeleteInstancesResponse]{ + Tracer: client.internal.Tracer(), + }) } } // DeleteInstances - Deletes virtual machines in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) deleteInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginDeleteInstances" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteInstancesCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteInstancesCreateRequest creates the DeleteInstances request. @@ -358,42 +508,53 @@ func (client *VirtualMachineScaleSetsClient) deleteInstancesCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.ForceDeletion != nil { reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, vmInstanceIDs) + if err := runtime.MarshalAsJSON(req, vmInstanceIDs); err != nil { + return nil, err + } + return req, nil } // ForceRecoveryServiceFabricPlatformUpdateDomainWalk - Manual platform update domain walk to update virtual machines in a // service fabric virtual machine scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// platformUpdateDomain - The platform update domain for which a manual recovery walk is requested -// options - VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions contains the optional -// parameters for the VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - platformUpdateDomain - The platform update domain for which a manual recovery walk is requested +// - options - VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions contains the optional +// parameters for the VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk method. func (client *VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateDomainWalk(ctx context.Context, resourceGroupName string, vmScaleSetName string, platformUpdateDomain int32, options *VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions) (VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.forceRecoveryServiceFabricPlatformUpdateDomainWalkCreateRequest(ctx, resourceGroupName, vmScaleSetName, platformUpdateDomain, options) if err != nil { return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, err } - return client.forceRecoveryServiceFabricPlatformUpdateDomainWalkHandleResponse(resp) + resp, err := client.forceRecoveryServiceFabricPlatformUpdateDomainWalkHandleResponse(httpResp) + return resp, err } // forceRecoveryServiceFabricPlatformUpdateDomainWalkCreateRequest creates the ForceRecoveryServiceFabricPlatformUpdateDomainWalk request. @@ -411,19 +572,19 @@ func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformU return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") + if options != nil && options.PlacementGroupID != nil { + reqQP.Set("placementGroupId", *options.PlacementGroupID) + } reqQP.Set("platformUpdateDomain", strconv.FormatInt(int64(platformUpdateDomain), 10)) if options != nil && options.Zone != nil { reqQP.Set("zone", *options.Zone) } - if options != nil && options.PlacementGroupID != nil { - reqQP.Set("placementGroupId", *options.PlacementGroupID) - } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -440,24 +601,32 @@ func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformU // Get - Display information about a virtual machine scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get +// method. func (client *VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetOptions) (VirtualMachineScaleSetsClientGetResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return VirtualMachineScaleSetsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -475,15 +644,15 @@ func (client *VirtualMachineScaleSetsClient) getCreateRequest(ctx context.Contex return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -500,24 +669,32 @@ func (client *VirtualMachineScaleSetsClient) getHandleResponse(resp *http.Respon // GetInstanceView - Gets the status of a VM scale set instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView +// method. func (client *VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetInstanceViewOptions) (VirtualMachineScaleSetsClientGetInstanceViewResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.GetInstanceView" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getInstanceViewCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, err } - return client.getInstanceViewHandleResponse(resp) + resp, err := client.getInstanceViewHandleResponse(httpResp) + return resp, err } // getInstanceViewCreateRequest creates the GetInstanceView request. @@ -535,12 +712,12 @@ func (client *VirtualMachineScaleSetsClient) getInstanceViewCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -556,37 +733,32 @@ func (client *VirtualMachineScaleSetsClient) getInstanceViewHandleResponse(resp } // NewGetOSUpgradeHistoryPager - Gets list of OS upgrades on a VM scale set instance. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetOSUpgradeHistory -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager +// method. func (client *VirtualMachineScaleSetsClient) NewGetOSUpgradeHistoryPager(resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions) *runtime.Pager[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse]{ More: func(page VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse) (VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.getOSUpgradeHistoryCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.getOSUpgradeHistoryCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) + }, nil) if err != nil { return VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}, runtime.NewResponseError(resp) - } return client.getOSUpgradeHistoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -605,12 +777,12 @@ func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryCreateRequest(ct return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -626,36 +798,31 @@ func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryHandleResponse(r } // NewListPager - Gets a list of all VM scale sets under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// options - VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - options - VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListPager +// method. func (client *VirtualMachineScaleSetsClient) NewListPager(resourceGroupName string, options *VirtualMachineScaleSetsClientListOptions) *runtime.Pager[VirtualMachineScaleSetsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListResponse]{ More: func(page VirtualMachineScaleSetsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListResponse) (VirtualMachineScaleSetsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return VirtualMachineScaleSetsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return VirtualMachineScaleSetsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -670,12 +837,12 @@ func (client *VirtualMachineScaleSetsClient) listCreateRequest(ctx context.Conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -693,35 +860,30 @@ func (client *VirtualMachineScaleSetsClient) listHandleResponse(resp *http.Respo // NewListAllPager - Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use // nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is // null to fetch all the VM Scale Sets. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListAll -// method. +// +// Generated from API version 2024-03-01 +// - options - VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListAllPager +// method. func (client *VirtualMachineScaleSetsClient) NewListAllPager(options *VirtualMachineScaleSetsClientListAllOptions) *runtime.Pager[VirtualMachineScaleSetsClientListAllResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListAllResponse]{ More: func(page VirtualMachineScaleSetsClientListAllResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListAllResponse) (VirtualMachineScaleSetsClientListAllResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listAllCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachineScaleSetsClientListAllResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetsClient.NewListAllPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listAllCreateRequest(ctx, options) + }, nil) if err != nil { return VirtualMachineScaleSetsClientListAllResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientListAllResponse{}, runtime.NewResponseError(resp) - } return client.listAllHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -732,12 +894,12 @@ func (client *VirtualMachineScaleSetsClient) listAllCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -753,36 +915,31 @@ func (client *VirtualMachineScaleSetsClient) listAllHandleResponse(resp *http.Re } // NewListByLocationPager - Gets all the VM scale sets under the specified subscription for the specified location. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location for which VM scale sets under the subscription are queried. -// options - VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListByLocation -// method. +// +// Generated from API version 2024-03-01 +// - location - The location for which VM scale sets under the subscription are queried. +// - options - VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListByLocationPager +// method. func (client *VirtualMachineScaleSetsClient) NewListByLocationPager(location string, options *VirtualMachineScaleSetsClientListByLocationOptions) *runtime.Pager[VirtualMachineScaleSetsClientListByLocationResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListByLocationResponse]{ More: func(page VirtualMachineScaleSetsClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListByLocationResponse) (VirtualMachineScaleSetsClientListByLocationResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByLocationCreateRequest(ctx, location, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachineScaleSetsClientListByLocationResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetsClient.NewListByLocationPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByLocationCreateRequest(ctx, location, options) + }, nil) if err != nil { return VirtualMachineScaleSetsClientListByLocationResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientListByLocationResponse{}, runtime.NewResponseError(resp) - } return client.listByLocationHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -797,12 +954,12 @@ func (client *VirtualMachineScaleSetsClient) listByLocationCreateRequest(ctx con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -819,37 +976,32 @@ func (client *VirtualMachineScaleSetsClient) listByLocationHandleResponse(resp * // NewListSKUsPager - Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances // allowed for each SKU. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListSKUs -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListSKUsPager +// method. func (client *VirtualMachineScaleSetsClient) NewListSKUsPager(resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientListSKUsOptions) *runtime.Pager[VirtualMachineScaleSetsClientListSKUsResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListSKUsResponse]{ More: func(page VirtualMachineScaleSetsClientListSKUsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListSKUsResponse) (VirtualMachineScaleSetsClientListSKUsResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listSKUsCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return VirtualMachineScaleSetsClientListSKUsResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetsClient.NewListSKUsPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listSKUsCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) + }, nil) if err != nil { return VirtualMachineScaleSetsClientListSKUsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetsClientListSKUsResponse{}, runtime.NewResponseError(resp) - } return client.listSKUsHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -868,12 +1020,12 @@ func (client *VirtualMachineScaleSetsClient) listSKUsCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -892,20 +1044,26 @@ func (client *VirtualMachineScaleSetsClient) listSKUsHandleResponse(resp *http.R // which are not eligible for perform maintenance will be failed. Please refer to best practices for more // details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance +// method. func (client *VirtualMachineScaleSetsClient) BeginPerformMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions) (*runtime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.performMaintenance(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientPerformMaintenanceResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientPerformMaintenanceResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientPerformMaintenanceResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientPerformMaintenanceResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -913,20 +1071,27 @@ func (client *VirtualMachineScaleSetsClient) BeginPerformMaintenance(ctx context // are not eligible for perform maintenance will be failed. Please refer to best practices for more // details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginPerformMaintenance" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.performMaintenanceCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // performMaintenanceCreateRequest creates the PerformMaintenance request. @@ -944,16 +1109,19 @@ func (client *VirtualMachineScaleSetsClient) performMaintenanceCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMInstanceIDs != nil { - return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs) + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil } return req, nil } @@ -962,20 +1130,26 @@ func (client *VirtualMachineScaleSetsClient) performMaintenanceCreateRequest(ctx // and you are getting charged for the resources. Instead, use deallocate to release resources and // avoid charges. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff +// method. func (client *VirtualMachineScaleSetsClient) BeginPowerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPowerOffOptions) (*runtime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.powerOff(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientPowerOffResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientPowerOffResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -983,20 +1157,27 @@ func (client *VirtualMachineScaleSetsClient) BeginPowerOff(ctx context.Context, // you are getting charged for the resources. Instead, use deallocate to release resources and // avoid charges. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPowerOffOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginPowerOff" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.powerOffCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // powerOffCreateRequest creates the PowerOff request. @@ -1014,60 +1195,153 @@ func (client *VirtualMachineScaleSetsClient) powerOffCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.SkipShutdown != nil { reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMInstanceIDs != nil { - return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs) + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil + } + return req, nil +} + +// BeginReapply - Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginReapplyOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReapply +// method. +func (client *VirtualMachineScaleSetsClient) BeginReapply(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReapplyOptions) (*runtime.Poller[VirtualMachineScaleSetsClientReapplyResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.reapply(ctx, resourceGroupName, vmScaleSetName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientReapplyResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientReapplyResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Reapply - Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +func (client *VirtualMachineScaleSetsClient) reapply(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReapplyOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginReapply" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.reapplyCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// reapplyCreateRequest creates the Reapply request. +func (client *VirtualMachineScaleSetsClient) reapplyCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReapplyOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if vmScaleSetName == "" { + return nil, errors.New("parameter vmScaleSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // BeginRedeploy - Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers // them back on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy +// method. func (client *VirtualMachineScaleSetsClient) BeginRedeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRedeployOptions) (*runtime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.redeploy(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientRedeployResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientRedeployResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Redeploy - Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them // back on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRedeployOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginRedeploy" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.redeployCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // redeployCreateRequest creates the Redeploy request. @@ -1085,16 +1359,19 @@ func (client *VirtualMachineScaleSetsClient) redeployCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMInstanceIDs != nil { - return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs) + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil } return req, nil } @@ -1103,20 +1380,26 @@ func (client *VirtualMachineScaleSetsClient) redeployCreateRequest(ctx context.C // a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is // reset to initial state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage +// method. func (client *VirtualMachineScaleSetsClient) BeginReimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageOptions) (*runtime.Poller[VirtualMachineScaleSetsClientReimageResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reimage(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientReimageResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientReimageResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -1124,20 +1407,27 @@ func (client *VirtualMachineScaleSetsClient) BeginReimage(ctx context.Context, r // OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is // reset to initial state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginReimage" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reimageCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reimageCreateRequest creates the Reimage request. @@ -1155,16 +1445,19 @@ func (client *VirtualMachineScaleSetsClient) reimageCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMScaleSetReimageInput != nil { - return req, runtime.MarshalAsJSON(req, *options.VMScaleSetReimageInput) + if err := runtime.MarshalAsJSON(req, *options.VMScaleSetReimageInput); err != nil { + return nil, err + } + return req, nil } return req, nil } @@ -1172,40 +1465,53 @@ func (client *VirtualMachineScaleSetsClient) reimageCreateRequest(ctx context.Co // BeginReimageAll - Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation // is only supported for managed disks. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll +// method. func (client *VirtualMachineScaleSetsClient) BeginReimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageAllOptions) (*runtime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reimageAll(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientReimageAllResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientReimageAllResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientReimageAllResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientReimageAllResponse]{ + Tracer: client.internal.Tracer(), + }) } } // ReimageAll - Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation // is only supported for managed disks. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageAllOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginReimageAll" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reimageAllCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reimageAllCreateRequest creates the ReimageAll request. @@ -1223,55 +1529,71 @@ func (client *VirtualMachineScaleSetsClient) reimageAllCreateRequest(ctx context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMInstanceIDs != nil { - return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs) + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginRestart - Restarts one or more virtual machines in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart +// method. func (client *VirtualMachineScaleSetsClient) BeginRestart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRestartOptions) (*runtime.Poller[VirtualMachineScaleSetsClientRestartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restart(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientRestartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientRestartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Restart - Restarts one or more virtual machines in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRestartOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginRestart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.restartCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // restartCreateRequest creates the Restart request. @@ -1289,56 +1611,72 @@ func (client *VirtualMachineScaleSetsClient) restartCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMInstanceIDs != nil { - return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs) + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginSetOrchestrationServiceState - Changes ServiceState property for a given service // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the virtual machine scale set to create or update. -// parameters - The input object for SetOrchestrationServiceState API. -// options - VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions contains the optional parameters for the -// VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the virtual machine scale set to create or update. +// - parameters - The input object for SetOrchestrationServiceState API. +// - options - VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions contains the optional parameters for the +// VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState method. func (client *VirtualMachineScaleSetsClient) BeginSetOrchestrationServiceState(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters OrchestrationServiceStateInput, options *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.setOrchestrationServiceState(ctx, resourceGroupName, vmScaleSetName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // SetOrchestrationServiceState - Changes ServiceState property for a given service // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceState(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters OrchestrationServiceStateInput, options *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.setOrchestrationServiceStateCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // setOrchestrationServiceStateCreateRequest creates the SetOrchestrationServiceState request. @@ -1356,52 +1694,68 @@ func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceStateCreateR return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginStart - Starts one or more virtual machines in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart +// method. func (client *VirtualMachineScaleSetsClient) BeginStart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginStartOptions) (*runtime.Poller[VirtualMachineScaleSetsClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientStartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientStartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Start - Starts one or more virtual machines in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startCreateRequest(ctx, resourceGroupName, vmScaleSetName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startCreateRequest creates the Start request. @@ -1419,56 +1773,72 @@ func (client *VirtualMachineScaleSetsClient) startCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMInstanceIDs != nil { - return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs) + if err := runtime.MarshalAsJSON(req, *options.VMInstanceIDs); err != nil { + return nil, err + } + return req, nil } return req, nil } // BeginUpdate - Update a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set to create or update. -// parameters - The scale set object. -// options - VirtualMachineScaleSetsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set to create or update. +// - parameters - The scale set object. +// - options - VirtualMachineScaleSetsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdate +// method. func (client *VirtualMachineScaleSetsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSetUpdate, options *VirtualMachineScaleSetsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Update a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSetUpdate, options *VirtualMachineScaleSetsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -1486,53 +1856,75 @@ func (client *VirtualMachineScaleSetsClient) updateCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginUpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set. -// options - VirtualMachineScaleSetsClientBeginUpdateInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdateInstances -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set. +// - options - VirtualMachineScaleSetsClientBeginUpdateInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdateInstances +// method. func (client *VirtualMachineScaleSetsClient) BeginUpdateInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions) (*runtime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateInstances(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetsClientUpdateInstancesResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetsClientUpdateInstancesResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientUpdateInstancesResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetsClientUpdateInstancesResponse]{ + Tracer: client.internal.Tracer(), + }) } } // UpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetsClient) updateInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetsClient.BeginUpdateInstances" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateInstancesCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateInstancesCreateRequest creates the UpdateInstances request. @@ -1550,13 +1942,16 @@ func (client *VirtualMachineScaleSetsClient) updateInstancesCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, vmInstanceIDs) + if err := runtime.MarshalAsJSON(req, vmInstanceIDs); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmextensions_client.go similarity index 69% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmextensions_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmextensions_client.go index eb3d4c83..c16821d8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmextensions_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmextensions_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,74 +23,78 @@ import ( // VirtualMachineScaleSetVMExtensionsClient contains the methods for the VirtualMachineScaleSetVMExtensions group. // Don't use this type directly, use NewVirtualMachineScaleSetVMExtensionsClient() instead. type VirtualMachineScaleSetVMExtensionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineScaleSetVMExtensionsClient creates a new instance of VirtualMachineScaleSetVMExtensionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetVMExtensionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineScaleSetVMExtensionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - The operation to create or update the VMSS VM extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// vmExtensionName - The name of the virtual machine extension. -// extensionParameters - Parameters supplied to the Create Virtual Machine Extension operation. -// options - VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - vmExtensionName - The name of the virtual machine extension. +// - extensionParameters - Parameters supplied to the Create Virtual Machine Extension operation. +// - options - VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate +// method. func (client *VirtualMachineScaleSetVMExtensionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtension, options *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - The operation to create or update the VMSS VM extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtension, options *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -118,54 +120,70 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdateCreateRequ return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, extensionParameters) + if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - The operation to delete the VMSS VM extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// vmExtensionName - The name of the virtual machine extension. -// options - VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - vmExtensionName - The name of the virtual machine extension. +// - options - VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginDelete +// method. func (client *VirtualMachineScaleSetVMExtensionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMExtensionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMExtensionsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMExtensionsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete the VMSS VM extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -191,12 +209,12 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) deleteCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,26 +222,34 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) deleteCreateRequest(ctx // Get - The operation to get the VMSS VM extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// vmExtensionName - The name of the virtual machine extension. -// options - VirtualMachineScaleSetVMExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - vmExtensionName - The name of the virtual machine extension. +// - options - VirtualMachineScaleSetVMExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.Get +// method. func (client *VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientGetOptions) (VirtualMachineScaleSetVMExtensionsClientGetResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetVMExtensionsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, options) if err != nil { return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -249,7 +275,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) getCreateRequest(ctx con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -257,7 +283,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) getCreateRequest(ctx con if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -274,25 +300,33 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) getHandleResponse(resp * // List - The operation to get all extensions of an instance in Virtual Machine Scaleset. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.List +// method. func (client *VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMExtensionsClientListOptions) (VirtualMachineScaleSetVMExtensionsClientListResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetVMExtensionsClient.List" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return VirtualMachineScaleSetVMExtensionsClientListResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetVMExtensionsClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMExtensionsClientListResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetVMExtensionsClientListResponse{}, err } - return client.listHandleResponse(resp) + resp, err := client.listHandleResponse(httpResp) + return resp, err } // listCreateRequest creates the List request. @@ -314,7 +348,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) listCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -322,7 +356,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) listCreateRequest(ctx co if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -339,42 +373,55 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) listHandleResponse(resp // BeginUpdate - The operation to update the VMSS VM extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// vmExtensionName - The name of the virtual machine extension. -// extensionParameters - Parameters supplied to the Update Virtual Machine Extension operation. -// options - VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - vmExtensionName - The name of the virtual machine extension. +// - extensionParameters - Parameters supplied to the Update Virtual Machine Extension operation. +// - options - VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginUpdate +// method. func (client *VirtualMachineScaleSetVMExtensionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtensionUpdate, options *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMExtensionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMExtensionsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMExtensionsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - The operation to update the VMSS VM extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtensionUpdate, options *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -400,13 +447,16 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) updateCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, extensionParameters) + if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmruncommands_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmruncommands_client.go similarity index 69% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmruncommands_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmruncommands_client.go index 0476b357..85e67fc5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmruncommands_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmruncommands_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,74 +23,78 @@ import ( // VirtualMachineScaleSetVMRunCommandsClient contains the methods for the VirtualMachineScaleSetVMRunCommands group. // Don't use this type directly, use NewVirtualMachineScaleSetVMRunCommandsClient() instead. type VirtualMachineScaleSetVMRunCommandsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineScaleSetVMRunCommandsClient creates a new instance of VirtualMachineScaleSetVMRunCommandsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineScaleSetVMRunCommandsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetVMRunCommandsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineScaleSetVMRunCommandsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // BeginCreateOrUpdate - The operation to create or update the VMSS VM run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// runCommandName - The name of the virtual machine run command. -// runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation. -// options - VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the -// VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - runCommandName - The name of the virtual machine run command. +// - runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation. +// - options - VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the +// VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate method. func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // CreateOrUpdate - The operation to create or update the VMSS VM run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -118,54 +120,70 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdateCreateReq return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} - return req, runtime.MarshalAsJSON(req, runCommand) + if err := runtime.MarshalAsJSON(req, runCommand); err != nil { + return nil, err + } + return req, nil } // BeginDelete - The operation to delete the VMSS VM run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// runCommandName - The name of the virtual machine run command. -// options - VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - runCommandName - The name of the virtual machine run command. +// - options - VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginDelete +// method. func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - The operation to delete the VMSS VM run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -191,12 +209,12 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -204,26 +222,34 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx // Get - The operation to get the VMSS VM run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// runCommandName - The name of the virtual machine run command. -// options - VirtualMachineScaleSetVMRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - runCommandName - The name of the virtual machine run command. +// - options - VirtualMachineScaleSetVMRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.Get +// method. func (client *VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientGetOptions) (VirtualMachineScaleSetVMRunCommandsClientGetResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetVMRunCommandsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, options) if err != nil { return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -249,7 +275,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) getCreateRequest(ctx co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -257,7 +283,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) getCreateRequest(ctx co if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -273,38 +299,33 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) getHandleResponse(resp } // NewListPager - The operation to get all run commands of an instance in Virtual Machine Scaleset. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMRunCommandsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMRunCommandsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.NewListPager +// method. func (client *VirtualMachineScaleSetVMRunCommandsClient) NewListPager(resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMRunCommandsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMRunCommandsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetVMRunCommandsClientListResponse]{ More: func(page VirtualMachineScaleSetVMRunCommandsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetVMRunCommandsClientListResponse) (VirtualMachineScaleSetVMRunCommandsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetVMRunCommandsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) + }, nil) if err != nil { return VirtualMachineScaleSetVMRunCommandsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return VirtualMachineScaleSetVMRunCommandsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMRunCommandsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -327,7 +348,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) listCreateRequest(ctx c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -335,7 +356,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) listCreateRequest(ctx c if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} return req, nil @@ -352,42 +373,55 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) listHandleResponse(resp // BeginUpdate - The operation to update the VMSS VM run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// runCommandName - The name of the virtual machine run command. -// runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation. -// options - VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - runCommandName - The name of the virtual machine run command. +// - runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation. +// - options - VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate +// method. func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - The operation to update the VMSS VM run command. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -413,13 +447,16 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) updateCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} - return req, runtime.MarshalAsJSON(req, runCommand) + if err := runtime.MarshalAsJSON(req, runCommand); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvms_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvms_client.go similarity index 60% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvms_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvms_client.go index 32b2b3a2..379ae96b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvms_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvms_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,55 +24,219 @@ import ( // VirtualMachineScaleSetVMsClient contains the methods for the VirtualMachineScaleSetVMs group. // Don't use this type directly, use NewVirtualMachineScaleSetVMsClient() instead. type VirtualMachineScaleSetVMsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineScaleSetVMsClient creates a new instance of VirtualMachineScaleSetVMsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineScaleSetVMsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetVMsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineScaleSetVMsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } +// BeginApproveRollingUpgrade - Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginApproveRollingUpgrade +// method. +func (client *VirtualMachineScaleSetVMsClient) BeginApproveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientApproveRollingUpgradeResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.approveRollingUpgrade(ctx, resourceGroupName, vmScaleSetName, instanceID, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientApproveRollingUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientApproveRollingUpgradeResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// ApproveRollingUpgrade - Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginApproveRollingUpgrade" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.approveRollingUpgradeCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// approveRollingUpgradeCreateRequest creates the ApproveRollingUpgrade request. +func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgradeCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if vmScaleSetName == "" { + return nil, errors.New("parameter vmScaleSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName)) + if instanceID == "" { + return nil, errors.New("parameter instanceID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginAttachDetachDataDisks - Attach and detach data disks to/from a virtual machine in a VM scale set. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM. +// - options - VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginAttachDetachDataDisks +// method. +func (client *VirtualMachineScaleSetVMsClient) BeginAttachDetachDataDisks(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters AttachDetachDataDisksRequest, options *VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientAttachDetachDataDisksResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.attachDetachDataDisks(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientAttachDetachDataDisksResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientAttachDetachDataDisksResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// AttachDetachDataDisks - Attach and detach data disks to/from a virtual machine in a VM scale set. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-03-01 +func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisks(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters AttachDetachDataDisksRequest, options *VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginAttachDetachDataDisks" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.attachDetachDataDisksCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// attachDetachDataDisksCreateRequest creates the AttachDetachDataDisks request. +func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisksCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters AttachDetachDataDisksRequest, options *VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if vmScaleSetName == "" { + return nil, errors.New("parameter vmScaleSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName)) + if instanceID == "" { + return nil, errors.New("parameter instanceID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + // BeginDeallocate - Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases // the compute resources it uses. You are not billed for the compute resources of this virtual // machine once it is deallocated. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDeallocate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDeallocate +// method. func (client *VirtualMachineScaleSetVMsClient) BeginDeallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeallocateOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deallocate(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientDeallocateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientDeallocateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientDeallocateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientDeallocateResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -82,20 +244,27 @@ func (client *VirtualMachineScaleSetVMsClient) BeginDeallocate(ctx context.Conte // compute resources it uses. You are not billed for the compute resources of this virtual // machine once it is deallocated. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeallocateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginDeallocate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deallocateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deallocateCreateRequest creates the Deallocate request. @@ -117,12 +286,12 @@ func (client *VirtualMachineScaleSetVMsClient) deallocateCreateRequest(ctx conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -130,40 +299,53 @@ func (client *VirtualMachineScaleSetVMsClient) deallocateCreateRequest(ctx conte // BeginDelete - Deletes a virtual machine from a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDelete -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDelete +// method. func (client *VirtualMachineScaleSetVMsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientDeleteResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientDeleteResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Delete - Deletes a virtual machine from a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -185,15 +367,15 @@ func (client *VirtualMachineScaleSetVMsClient) deleteCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.ForceDeletion != nil { reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -201,25 +383,33 @@ func (client *VirtualMachineScaleSetVMsClient) deleteCreateRequest(ctx context.C // Get - Gets a virtual machine from a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.Get -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.Get +// method. func (client *VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientGetOptions) (VirtualMachineScaleSetVMsClientGetResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return VirtualMachineScaleSetVMsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetVMsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetVMsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -241,7 +431,7 @@ func (client *VirtualMachineScaleSetVMsClient) getCreateRequest(ctx context.Cont return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -249,7 +439,7 @@ func (client *VirtualMachineScaleSetVMsClient) getCreateRequest(ctx context.Cont if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -266,25 +456,33 @@ func (client *VirtualMachineScaleSetVMsClient) getHandleResponse(resp *http.Resp // GetInstanceView - Gets the status of a virtual machine from a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.GetInstanceView -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.GetInstanceView +// method. func (client *VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientGetInstanceViewOptions) (VirtualMachineScaleSetVMsClientGetInstanceViewResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.GetInstanceView" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getInstanceViewCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, err } - return client.getInstanceViewHandleResponse(resp) + resp, err := client.getInstanceViewHandleResponse(httpResp) + return resp, err } // getInstanceViewCreateRequest creates the GetInstanceView request. @@ -306,12 +504,12 @@ func (client *VirtualMachineScaleSetVMsClient) getInstanceViewCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,37 +525,32 @@ func (client *VirtualMachineScaleSetVMsClient) getInstanceViewHandleResponse(res } // NewListPager - Gets a list of all virtual machines in a VM scale sets. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// virtualMachineScaleSetName - The name of the VM scale set. -// options - VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.List -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - virtualMachineScaleSetName - The name of the VM scale set. +// - options - VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.NewListPager +// method. func (client *VirtualMachineScaleSetVMsClient) NewListPager(resourceGroupName string, virtualMachineScaleSetName string, options *VirtualMachineScaleSetVMsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetVMsClientListResponse]{ More: func(page VirtualMachineScaleSetVMsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetVMsClientListResponse) (VirtualMachineScaleSetVMsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, virtualMachineScaleSetName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineScaleSetVMsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, virtualMachineScaleSetName, options) + }, nil) if err != nil { return VirtualMachineScaleSetVMsClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return VirtualMachineScaleSetVMsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -376,21 +569,21 @@ func (client *VirtualMachineScaleSetVMsClient) listCreateRequest(ctx context.Con return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + if options != nil && options.Expand != nil { + reqQP.Set("$expand", *options.Expand) + } if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } if options != nil && options.Select != nil { reqQP.Set("$select", *options.Select) } - if options != nil && options.Expand != nil { - reqQP.Set("$expand", *options.Expand) - } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -407,40 +600,53 @@ func (client *VirtualMachineScaleSetVMsClient) listHandleResponse(resp *http.Res // BeginPerformMaintenance - Performs maintenance on a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPerformMaintenance -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPerformMaintenance +// method. func (client *VirtualMachineScaleSetVMsClient) BeginPerformMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.performMaintenance(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse]{ + Tracer: client.internal.Tracer(), + }) } } // PerformMaintenance - Performs maintenance on a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginPerformMaintenance" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.performMaintenanceCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // performMaintenanceCreateRequest creates the PerformMaintenance request. @@ -462,12 +668,12 @@ func (client *VirtualMachineScaleSetVMsClient) performMaintenanceCreateRequest(c return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -477,21 +683,27 @@ func (client *VirtualMachineScaleSetVMsClient) performMaintenanceCreateRequest(c // getting charged for the resources. Instead, use deallocate to release resources and avoid // charges. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPowerOff -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPowerOff +// method. func (client *VirtualMachineScaleSetVMsClient) BeginPowerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPowerOffOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.powerOff(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientPowerOffResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientPowerOffResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientPowerOffResponse]{ + Tracer: client.internal.Tracer(), + }) } } @@ -499,20 +711,27 @@ func (client *VirtualMachineScaleSetVMsClient) BeginPowerOff(ctx context.Context // charged for the resources. Instead, use deallocate to release resources and avoid // charges. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPowerOffOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginPowerOff" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.powerOffCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // powerOffCreateRequest creates the PowerOff request. @@ -534,15 +753,15 @@ func (client *VirtualMachineScaleSetVMsClient) powerOffCreateRequest(ctx context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.SkipShutdown != nil { reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -551,41 +770,54 @@ func (client *VirtualMachineScaleSetVMsClient) powerOffCreateRequest(ctx context // BeginRedeploy - Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it // back on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRedeploy -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRedeploy +// method. func (client *VirtualMachineScaleSetVMsClient) BeginRedeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRedeployOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.redeploy(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientRedeployResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientRedeployResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientRedeployResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Redeploy - Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back // on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRedeployOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginRedeploy" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.redeployCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // redeployCreateRequest creates the Redeploy request. @@ -607,12 +839,12 @@ func (client *VirtualMachineScaleSetVMsClient) redeployCreateRequest(ctx context return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -620,40 +852,53 @@ func (client *VirtualMachineScaleSetVMsClient) redeployCreateRequest(ctx context // BeginReimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimage -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimage +// method. func (client *VirtualMachineScaleSetVMsClient) BeginReimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reimage(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientReimageResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientReimageResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientReimageResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Reimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginReimage" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reimageCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reimageCreateRequest creates the Reimage request. @@ -675,16 +920,19 @@ func (client *VirtualMachineScaleSetVMsClient) reimageCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VMScaleSetVMReimageInput != nil { - return req, runtime.MarshalAsJSON(req, *options.VMScaleSetVMReimageInput) + if err := runtime.MarshalAsJSON(req, *options.VMScaleSetVMReimageInput); err != nil { + return nil, err + } + return req, nil } return req, nil } @@ -692,41 +940,54 @@ func (client *VirtualMachineScaleSetVMsClient) reimageCreateRequest(ctx context. // BeginReimageAll - Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation // is only supported for managed disks. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimageAll -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimageAll +// method. func (client *VirtualMachineScaleSetVMsClient) BeginReimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageAllOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.reimageAll(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientReimageAllResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientReimageAllResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientReimageAllResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientReimageAllResponse]{ + Tracer: client.internal.Tracer(), + }) } } // ReimageAll - Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation // is only supported for managed disks. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageAllOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginReimageAll" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.reimageAllCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // reimageAllCreateRequest creates the ReimageAll request. @@ -748,12 +1009,12 @@ func (client *VirtualMachineScaleSetVMsClient) reimageAllCreateRequest(ctx conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -761,40 +1022,53 @@ func (client *VirtualMachineScaleSetVMsClient) reimageAllCreateRequest(ctx conte // BeginRestart - Restarts a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRestart -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRestart +// method. func (client *VirtualMachineScaleSetVMsClient) BeginRestart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRestartOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restart(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientRestartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientRestartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientRestartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Restart - Restarts a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRestartOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginRestart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.restartCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // restartCreateRequest creates the Restart request. @@ -816,12 +1090,12 @@ func (client *VirtualMachineScaleSetVMsClient) restartCreateRequest(ctx context. return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -830,25 +1104,33 @@ func (client *VirtualMachineScaleSetVMsClient) restartCreateRequest(ctx context. // RetrieveBootDiagnosticsData - The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM // scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData +// method. func (client *VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions) (VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.retrieveBootDiagnosticsDataCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, err } - return client.retrieveBootDiagnosticsDataHandleResponse(resp) + resp, err := client.retrieveBootDiagnosticsDataHandleResponse(httpResp) + return resp, err } // retrieveBootDiagnosticsDataCreateRequest creates the RetrieveBootDiagnosticsData request. @@ -870,15 +1152,15 @@ func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataCreate return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-03-01") if options != nil && options.SasURIExpirationTimeInMinutes != nil { reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10)) } - reqQP.Set("api-version", "2022-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -895,43 +1177,55 @@ func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataHandle // BeginRunCommand - Run command on a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// parameters - Parameters supplied to the Run command operation. -// options - VirtualMachineScaleSetVMsClientBeginRunCommandOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRunCommand -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - parameters - Parameters supplied to the Run command operation. +// - options - VirtualMachineScaleSetVMsClientBeginRunCommandOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRunCommand +// method. func (client *VirtualMachineScaleSetVMsClient) BeginRunCommand(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters RunCommandInput, options *VirtualMachineScaleSetVMsClientBeginRunCommandOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.runCommand(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientRunCommandResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientRunCommandResponse]{ FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientRunCommandResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientRunCommandResponse]{ + Tracer: client.internal.Tracer(), + }) } } // RunCommand - Run command on a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) runCommand(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters RunCommandInput, options *VirtualMachineScaleSetVMsClientBeginRunCommandOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginRunCommand" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.runCommandCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // runCommandCreateRequest creates the RunCommand request. @@ -953,36 +1247,46 @@ func (client *VirtualMachineScaleSetVMsClient) runCommandCreateRequest(ctx conte return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json, text/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // SimulateEviction - The operation to simulate the eviction of spot virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientSimulateEvictionOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.SimulateEviction -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientSimulateEvictionOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.SimulateEviction +// method. func (client *VirtualMachineScaleSetVMsClient) SimulateEviction(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientSimulateEvictionOptions) (VirtualMachineScaleSetVMsClientSimulateEvictionResponse, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.SimulateEviction" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.simulateEvictionCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusNoContent) { - return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, err } return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, nil } @@ -1006,12 +1310,12 @@ func (client *VirtualMachineScaleSetVMsClient) simulateEvictionCreateRequest(ctx return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1019,40 +1323,53 @@ func (client *VirtualMachineScaleSetVMsClient) simulateEvictionCreateRequest(ctx // BeginStart - Starts a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set. -// instanceID - The instance ID of the virtual machine. -// options - VirtualMachineScaleSetVMsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginStart -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set. +// - instanceID - The instance ID of the virtual machine. +// - options - VirtualMachineScaleSetVMsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginStart +// method. func (client *VirtualMachineScaleSetVMsClient) BeginStart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginStartOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientStartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientStartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Start - Starts a virtual machine in a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startCreateRequest creates the Start request. @@ -1074,12 +1391,12 @@ func (client *VirtualMachineScaleSetVMsClient) startCreateRequest(ctx context.Co return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1087,41 +1404,54 @@ func (client *VirtualMachineScaleSetVMsClient) startCreateRequest(ctx context.Co // BeginUpdate - Updates a virtual machine of a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - The name of the resource group. -// vmScaleSetName - The name of the VM scale set where the extension should be create or updated. -// instanceID - The instance ID of the virtual machine. -// parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation. -// options - VirtualMachineScaleSetVMsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginUpdate -// method. +// +// Generated from API version 2024-03-01 +// - resourceGroupName - The name of the resource group. +// - vmScaleSetName - The name of the VM scale set where the extension should be create or updated. +// - instanceID - The instance ID of the virtual machine. +// - parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation. +// - options - VirtualMachineScaleSetVMsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginUpdate +// method. func (client *VirtualMachineScaleSetVMsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters VirtualMachineScaleSetVM, options *VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[VirtualMachineScaleSetVMsClientUpdateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientUpdateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VirtualMachineScaleSetVMsClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Update - Updates a virtual machine of a VM scale set. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2024-03-01 func (client *VirtualMachineScaleSetVMsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters VirtualMachineScaleSetVM, options *VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "VirtualMachineScaleSetVMsClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // updateCreateRequest creates the Update request. @@ -1143,13 +1473,22 @@ func (client *VirtualMachineScaleSetVMsClient) updateCreateRequest(ctx context.C return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinesizes_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinesizes_client.go similarity index 73% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinesizes_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinesizes_client.go index 8add0cc3..80a7316a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinesizes_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinesizes_client.go @@ -3,7 +3,7 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armcompute @@ -13,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -25,53 +23,45 @@ import ( // VirtualMachineSizesClient contains the methods for the VirtualMachineSizes group. // Don't use this type directly, use NewVirtualMachineSizesClient() instead. type VirtualMachineSizesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewVirtualMachineSizesClient creates a new instance of VirtualMachineSizesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVirtualMachineSizesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineSizesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &VirtualMachineSizesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // NewListPager - This API is deprecated. Use Resources Skus [https://docs.microsoft.com/rest/api/compute/resourceskus/list] -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - The location upon which virtual-machine-sizes is queried. -// options - VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.List -// method. +// +// Generated from API version 2024-03-01 +// - location - The location upon which virtual-machine-sizes is queried. +// - options - VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.NewListPager +// method. func (client *VirtualMachineSizesClient) NewListPager(location string, options *VirtualMachineSizesClientListOptions) *runtime.Pager[VirtualMachineSizesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[VirtualMachineSizesClientListResponse]{ More: func(page VirtualMachineSizesClientListResponse) bool { return false }, Fetcher: func(ctx context.Context, page *VirtualMachineSizesClientListResponse) (VirtualMachineSizesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "VirtualMachineSizesClient.NewListPager") req, err := client.listCreateRequest(ctx, location, options) if err != nil { return VirtualMachineSizesClientListResponse{}, err } - resp, err := client.pl.Do(req) + resp, err := client.internal.Pipeline().Do(req) if err != nil { return VirtualMachineSizesClientListResponse{}, err } @@ -80,6 +70,7 @@ func (client *VirtualMachineSizesClient) NewListPager(location string, options * } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -94,12 +85,12 @@ func (client *VirtualMachineSizesClient) listCreateRequest(ctx context.Context, return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2024-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimages_client.go deleted file mode 100644 index cffc731a..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimages_client.go +++ /dev/null @@ -1,118 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcompute - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// CommunityGalleryImagesClient contains the methods for the CommunityGalleryImages group. -// Don't use this type directly, use NewCommunityGalleryImagesClient() instead. -type CommunityGalleryImagesClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewCommunityGalleryImagesClient creates a new instance of CommunityGalleryImagesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewCommunityGalleryImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleryImagesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &CommunityGalleryImagesClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// Get - Get a community gallery image. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// publicGalleryName - The public name of the community gallery. -// galleryImageName - The name of the community gallery image definition. -// options - CommunityGalleryImagesClientGetOptions contains the optional parameters for the CommunityGalleryImagesClient.Get -// method. -func (client *CommunityGalleryImagesClient) Get(ctx context.Context, location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImagesClientGetOptions) (CommunityGalleryImagesClientGetResponse, error) { - req, err := client.getCreateRequest(ctx, location, publicGalleryName, galleryImageName, options) - if err != nil { - return CommunityGalleryImagesClientGetResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return CommunityGalleryImagesClientGetResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CommunityGalleryImagesClientGetResponse{}, runtime.NewResponseError(resp) - } - return client.getHandleResponse(resp) -} - -// getCreateRequest creates the Get request. -func (client *CommunityGalleryImagesClient) getCreateRequest(ctx context.Context, location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImagesClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if location == "" { - return nil, errors.New("parameter location cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) - if publicGalleryName == "" { - return nil, errors.New("parameter publicGalleryName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName)) - if galleryImageName == "" { - return nil, errors.New("parameter galleryImageName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getHandleResponse handles the Get response. -func (client *CommunityGalleryImagesClient) getHandleResponse(resp *http.Response) (CommunityGalleryImagesClientGetResponse, error) { - result := CommunityGalleryImagesClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImage); err != nil { - return CommunityGalleryImagesClientGetResponse{}, err - } - return result, nil -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimageversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimageversions_client.go deleted file mode 100644 index d4287c90..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimageversions_client.go +++ /dev/null @@ -1,125 +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 armcompute - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// CommunityGalleryImageVersionsClient contains the methods for the CommunityGalleryImageVersions group. -// Don't use this type directly, use NewCommunityGalleryImageVersionsClient() instead. -type CommunityGalleryImageVersionsClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewCommunityGalleryImageVersionsClient creates a new instance of CommunityGalleryImageVersionsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewCommunityGalleryImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleryImageVersionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &CommunityGalleryImageVersionsClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// Get - Get a community gallery image version. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-07-01 -// location - Resource location. -// publicGalleryName - The public name of the community gallery. -// galleryImageName - The name of the community gallery image definition. -// galleryImageVersionName - The name of the community gallery image version. Needs to follow semantic version name pattern: -// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. -// Format: .. -// options - CommunityGalleryImageVersionsClientGetOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.Get -// method. -func (client *CommunityGalleryImageVersionsClient) Get(ctx context.Context, location string, publicGalleryName string, galleryImageName string, galleryImageVersionName string, options *CommunityGalleryImageVersionsClientGetOptions) (CommunityGalleryImageVersionsClientGetResponse, error) { - req, err := client.getCreateRequest(ctx, location, publicGalleryName, galleryImageName, galleryImageVersionName, options) - if err != nil { - return CommunityGalleryImageVersionsClientGetResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return CommunityGalleryImageVersionsClientGetResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CommunityGalleryImageVersionsClientGetResponse{}, runtime.NewResponseError(resp) - } - return client.getHandleResponse(resp) -} - -// getCreateRequest creates the Get request. -func (client *CommunityGalleryImageVersionsClient) getCreateRequest(ctx context.Context, location string, publicGalleryName string, galleryImageName string, galleryImageVersionName string, options *CommunityGalleryImageVersionsClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if location == "" { - return nil, errors.New("parameter location cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) - if publicGalleryName == "" { - return nil, errors.New("parameter publicGalleryName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName)) - if galleryImageName == "" { - return nil, errors.New("parameter galleryImageName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName)) - if galleryImageVersionName == "" { - return nil, errors.New("parameter galleryImageVersionName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-07-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getHandleResponse handles the Get response. -func (client *CommunityGalleryImageVersionsClient) getHandleResponse(resp *http.Response) (CommunityGalleryImageVersionsClientGetResponse, error) { - result := CommunityGalleryImageVersionsClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImageVersion); err != nil { - return CommunityGalleryImageVersionsClientGetResponse{}, err - } - return result, nil -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models_serde.go deleted file mode 100644 index 3de39856..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models_serde.go +++ /dev/null @@ -1,3416 +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 armcompute - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" -) - -// MarshalJSON implements the json.Marshaller interface for type APIError. -func (a APIError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "code", a.Code) - populate(objectMap, "details", a.Details) - populate(objectMap, "innererror", a.Innererror) - populate(objectMap, "message", a.Message) - populate(objectMap, "target", a.Target) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ApplicationProfile. -func (a ApplicationProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "galleryApplications", a.GalleryApplications) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type AvailabilitySet. -func (a AvailabilitySet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", a.ID) - populate(objectMap, "location", a.Location) - populate(objectMap, "name", a.Name) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type AvailabilitySetProperties. -func (a AvailabilitySetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "platformFaultDomainCount", a.PlatformFaultDomainCount) - populate(objectMap, "platformUpdateDomainCount", a.PlatformUpdateDomainCount) - populate(objectMap, "proximityPlacementGroup", a.ProximityPlacementGroup) - populate(objectMap, "statuses", a.Statuses) - populate(objectMap, "virtualMachines", a.VirtualMachines) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type AvailabilitySetUpdate. -func (a AvailabilitySetUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type AvailablePatchSummary. -func (a AvailablePatchSummary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "assessmentActivityId", a.AssessmentActivityID) - populate(objectMap, "criticalAndSecurityPatchCount", a.CriticalAndSecurityPatchCount) - populate(objectMap, "error", a.Error) - populateTimeRFC3339(objectMap, "lastModifiedTime", a.LastModifiedTime) - populate(objectMap, "otherPatchCount", a.OtherPatchCount) - populate(objectMap, "rebootPending", a.RebootPending) - populateTimeRFC3339(objectMap, "startTime", a.StartTime) - populate(objectMap, "status", a.Status) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AvailablePatchSummary. -func (a *AvailablePatchSummary) UnmarshalJSON(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 "assessmentActivityId": - err = unpopulate(val, "AssessmentActivityID", &a.AssessmentActivityID) - delete(rawMsg, key) - case "criticalAndSecurityPatchCount": - err = unpopulate(val, "CriticalAndSecurityPatchCount", &a.CriticalAndSecurityPatchCount) - delete(rawMsg, key) - case "error": - err = unpopulate(val, "Error", &a.Error) - delete(rawMsg, key) - case "lastModifiedTime": - err = unpopulateTimeRFC3339(val, "LastModifiedTime", &a.LastModifiedTime) - delete(rawMsg, key) - case "otherPatchCount": - err = unpopulate(val, "OtherPatchCount", &a.OtherPatchCount) - delete(rawMsg, key) - case "rebootPending": - err = unpopulate(val, "RebootPending", &a.RebootPending) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &a.StartTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &a.Status) - 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 CapacityReservation. -func (c CapacityReservation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "location", c.Location) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "sku", c.SKU) - populate(objectMap, "tags", c.Tags) - populate(objectMap, "type", c.Type) - populate(objectMap, "zones", c.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroup. -func (c CapacityReservationGroup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "location", c.Location) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "tags", c.Tags) - populate(objectMap, "type", c.Type) - populate(objectMap, "zones", c.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroupInstanceView. -func (c CapacityReservationGroupInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "capacityReservations", c.CapacityReservations) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroupProperties. -func (c CapacityReservationGroupProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "capacityReservations", c.CapacityReservations) - populate(objectMap, "instanceView", c.InstanceView) - populate(objectMap, "virtualMachinesAssociated", c.VirtualMachinesAssociated) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroupUpdate. -func (c CapacityReservationGroupUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "tags", c.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationInstanceView. -func (c CapacityReservationInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "statuses", c.Statuses) - populate(objectMap, "utilizationInfo", c.UtilizationInfo) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationInstanceViewWithName. -func (c CapacityReservationInstanceViewWithName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", c.Name) - populate(objectMap, "statuses", c.Statuses) - populate(objectMap, "utilizationInfo", c.UtilizationInfo) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationProperties. -func (c CapacityReservationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "instanceView", c.InstanceView) - populate(objectMap, "provisioningState", c.ProvisioningState) - populateTimeRFC3339(objectMap, "provisioningTime", c.ProvisioningTime) - populate(objectMap, "reservationId", c.ReservationID) - populateTimeRFC3339(objectMap, "timeCreated", c.TimeCreated) - populate(objectMap, "virtualMachinesAssociated", c.VirtualMachinesAssociated) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationProperties. -func (c *CapacityReservationProperties) UnmarshalJSON(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 "instanceView": - err = unpopulate(val, "InstanceView", &c.InstanceView) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) - delete(rawMsg, key) - case "provisioningTime": - err = unpopulateTimeRFC3339(val, "ProvisioningTime", &c.ProvisioningTime) - delete(rawMsg, key) - case "reservationId": - err = unpopulate(val, "ReservationID", &c.ReservationID) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &c.TimeCreated) - delete(rawMsg, key) - case "virtualMachinesAssociated": - err = unpopulate(val, "VirtualMachinesAssociated", &c.VirtualMachinesAssociated) - 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 CapacityReservationUpdate. -func (c CapacityReservationUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "sku", c.SKU) - populate(objectMap, "tags", c.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CapacityReservationUtilization. -func (c CapacityReservationUtilization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "virtualMachinesAllocated", c.VirtualMachinesAllocated) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudService. -func (c CloudService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "location", c.Location) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "tags", c.Tags) - populate(objectMap, "type", c.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudServiceExtensionProfile. -func (c CloudServiceExtensionProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extensions", c.Extensions) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudServiceExtensionProperties. -func (c CloudServiceExtensionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoUpgradeMinorVersion", c.AutoUpgradeMinorVersion) - populate(objectMap, "forceUpdateTag", c.ForceUpdateTag) - populate(objectMap, "protectedSettings", c.ProtectedSettings) - populate(objectMap, "protectedSettingsFromKeyVault", c.ProtectedSettingsFromKeyVault) - populate(objectMap, "provisioningState", c.ProvisioningState) - populate(objectMap, "publisher", c.Publisher) - populate(objectMap, "rolesAppliedTo", c.RolesAppliedTo) - populate(objectMap, "settings", c.Settings) - populate(objectMap, "type", c.Type) - populate(objectMap, "typeHandlerVersion", c.TypeHandlerVersion) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudServiceNetworkProfile. -func (c CloudServiceNetworkProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "loadBalancerConfigurations", c.LoadBalancerConfigurations) - populate(objectMap, "swappableCloudService", c.SwappableCloudService) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudServiceOsProfile. -func (c CloudServiceOsProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "secrets", c.Secrets) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudServiceRoleProfile. -func (c CloudServiceRoleProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "roles", c.Roles) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudServiceUpdate. -func (c CloudServiceUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tags", c.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CloudServiceVaultSecretGroup. -func (c CloudServiceVaultSecretGroup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "sourceVault", c.SourceVault) - populate(objectMap, "vaultCertificates", c.VaultCertificates) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageProperties. -func (c *CommunityGalleryImageProperties) UnmarshalJSON(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 "disallowed": - err = unpopulate(val, "Disallowed", &c.Disallowed) - delete(rawMsg, key) - case "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &c.EndOfLifeDate) - delete(rawMsg, key) - case "features": - err = unpopulate(val, "Features", &c.Features) - delete(rawMsg, key) - case "hyperVGeneration": - err = unpopulate(val, "HyperVGeneration", &c.HyperVGeneration) - delete(rawMsg, key) - case "identifier": - err = unpopulate(val, "Identifier", &c.Identifier) - delete(rawMsg, key) - case "osState": - err = unpopulate(val, "OSState", &c.OSState) - delete(rawMsg, key) - case "osType": - err = unpopulate(val, "OSType", &c.OSType) - delete(rawMsg, key) - case "purchasePlan": - err = unpopulate(val, "PurchasePlan", &c.PurchasePlan) - delete(rawMsg, key) - case "recommended": - err = unpopulate(val, "Recommended", &c.Recommended) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageVersionProperties. -func (c *CommunityGalleryImageVersionProperties) UnmarshalJSON(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 "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &c.EndOfLifeDate) - delete(rawMsg, key) - case "publishedDate": - err = unpopulateTimeRFC3339(val, "PublishedDate", &c.PublishedDate) - 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 DedicatedHost. -func (d DedicatedHost) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "sku", d.SKU) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostAvailableCapacity. -func (d DedicatedHostAvailableCapacity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allocatableVMs", d.AllocatableVMs) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroup. -func (d DedicatedHostGroup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - populate(objectMap, "zones", d.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroupInstanceView. -func (d DedicatedHostGroupInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "hosts", d.Hosts) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroupProperties. -func (d DedicatedHostGroupProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalCapabilities", d.AdditionalCapabilities) - populate(objectMap, "hosts", d.Hosts) - populate(objectMap, "instanceView", d.InstanceView) - populate(objectMap, "platformFaultDomainCount", d.PlatformFaultDomainCount) - populate(objectMap, "supportAutomaticPlacement", d.SupportAutomaticPlacement) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroupUpdate. -func (d DedicatedHostGroupUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "zones", d.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostInstanceView. -func (d DedicatedHostInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "assetId", d.AssetID) - populate(objectMap, "availableCapacity", d.AvailableCapacity) - populate(objectMap, "statuses", d.Statuses) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostInstanceViewWithName. -func (d DedicatedHostInstanceViewWithName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "assetId", d.AssetID) - populate(objectMap, "availableCapacity", d.AvailableCapacity) - populate(objectMap, "name", d.Name) - populate(objectMap, "statuses", d.Statuses) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DedicatedHostProperties. -func (d DedicatedHostProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoReplaceOnFailure", d.AutoReplaceOnFailure) - populate(objectMap, "hostId", d.HostID) - populate(objectMap, "instanceView", d.InstanceView) - populate(objectMap, "licenseType", d.LicenseType) - populate(objectMap, "platformFaultDomain", d.PlatformFaultDomain) - populate(objectMap, "provisioningState", d.ProvisioningState) - populateTimeRFC3339(objectMap, "provisioningTime", d.ProvisioningTime) - populateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated) - populate(objectMap, "virtualMachines", d.VirtualMachines) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostProperties. -func (d *DedicatedHostProperties) UnmarshalJSON(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 "autoReplaceOnFailure": - err = unpopulate(val, "AutoReplaceOnFailure", &d.AutoReplaceOnFailure) - delete(rawMsg, key) - case "hostId": - err = unpopulate(val, "HostID", &d.HostID) - delete(rawMsg, key) - case "instanceView": - err = unpopulate(val, "InstanceView", &d.InstanceView) - delete(rawMsg, key) - case "licenseType": - err = unpopulate(val, "LicenseType", &d.LicenseType) - delete(rawMsg, key) - case "platformFaultDomain": - err = unpopulate(val, "PlatformFaultDomain", &d.PlatformFaultDomain) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) - delete(rawMsg, key) - case "provisioningTime": - err = unpopulateTimeRFC3339(val, "ProvisioningTime", &d.ProvisioningTime) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) - delete(rawMsg, key) - case "virtualMachines": - err = unpopulate(val, "VirtualMachines", &d.VirtualMachines) - 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 DedicatedHostUpdate. -func (d DedicatedHostUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Disallowed. -func (d Disallowed) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "diskTypes", d.DiskTypes) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Disk. -func (d Disk) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", d.ExtendedLocation) - populate(objectMap, "id", d.ID) - populate(objectMap, "location", d.Location) - populate(objectMap, "managedBy", d.ManagedBy) - populate(objectMap, "managedByExtended", d.ManagedByExtended) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "sku", d.SKU) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - populate(objectMap, "zones", d.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DiskAccess. -func (d DiskAccess) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", d.ExtendedLocation) - populate(objectMap, "id", d.ID) - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DiskAccessProperties. -func (d DiskAccessProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "privateEndpointConnections", d.PrivateEndpointConnections) - populate(objectMap, "provisioningState", d.ProvisioningState) - populateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DiskAccessProperties. -func (d *DiskAccessProperties) UnmarshalJSON(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 "privateEndpointConnections": - err = unpopulate(val, "PrivateEndpointConnections", &d.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) - 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 DiskAccessUpdate. -func (d DiskAccessUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tags", d.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DiskEncryptionSet. -func (d DiskEncryptionSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "identity", d.Identity) - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DiskEncryptionSetUpdate. -func (d DiskEncryptionSetUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", d.Identity) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DiskInstanceView. -func (d DiskInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptionSettings", d.EncryptionSettings) - populate(objectMap, "name", d.Name) - populate(objectMap, "statuses", d.Statuses) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DiskProperties. -func (d DiskProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "burstingEnabled", d.BurstingEnabled) - populate(objectMap, "completionPercent", d.CompletionPercent) - populate(objectMap, "creationData", d.CreationData) - populate(objectMap, "dataAccessAuthMode", d.DataAccessAuthMode) - populate(objectMap, "diskAccessId", d.DiskAccessID) - populate(objectMap, "diskIOPSReadOnly", d.DiskIOPSReadOnly) - populate(objectMap, "diskIOPSReadWrite", d.DiskIOPSReadWrite) - populate(objectMap, "diskMBpsReadOnly", d.DiskMBpsReadOnly) - populate(objectMap, "diskMBpsReadWrite", d.DiskMBpsReadWrite) - populate(objectMap, "diskSizeBytes", d.DiskSizeBytes) - populate(objectMap, "diskSizeGB", d.DiskSizeGB) - populate(objectMap, "diskState", d.DiskState) - populate(objectMap, "encryption", d.Encryption) - populate(objectMap, "encryptionSettingsCollection", d.EncryptionSettingsCollection) - populate(objectMap, "hyperVGeneration", d.HyperVGeneration) - populate(objectMap, "maxShares", d.MaxShares) - populate(objectMap, "networkAccessPolicy", d.NetworkAccessPolicy) - populate(objectMap, "osType", d.OSType) - populate(objectMap, "propertyUpdatesInProgress", d.PropertyUpdatesInProgress) - populate(objectMap, "provisioningState", d.ProvisioningState) - populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) - populate(objectMap, "purchasePlan", d.PurchasePlan) - populate(objectMap, "securityProfile", d.SecurityProfile) - populate(objectMap, "shareInfo", d.ShareInfo) - populate(objectMap, "supportedCapabilities", d.SupportedCapabilities) - populate(objectMap, "supportsHibernation", d.SupportsHibernation) - populate(objectMap, "tier", d.Tier) - populateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated) - populate(objectMap, "uniqueId", d.UniqueID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DiskProperties. -func (d *DiskProperties) UnmarshalJSON(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 "burstingEnabled": - err = unpopulate(val, "BurstingEnabled", &d.BurstingEnabled) - delete(rawMsg, key) - case "completionPercent": - err = unpopulate(val, "CompletionPercent", &d.CompletionPercent) - delete(rawMsg, key) - case "creationData": - err = unpopulate(val, "CreationData", &d.CreationData) - delete(rawMsg, key) - case "dataAccessAuthMode": - err = unpopulate(val, "DataAccessAuthMode", &d.DataAccessAuthMode) - delete(rawMsg, key) - case "diskAccessId": - err = unpopulate(val, "DiskAccessID", &d.DiskAccessID) - delete(rawMsg, key) - case "diskIOPSReadOnly": - err = unpopulate(val, "DiskIOPSReadOnly", &d.DiskIOPSReadOnly) - delete(rawMsg, key) - case "diskIOPSReadWrite": - err = unpopulate(val, "DiskIOPSReadWrite", &d.DiskIOPSReadWrite) - delete(rawMsg, key) - case "diskMBpsReadOnly": - err = unpopulate(val, "DiskMBpsReadOnly", &d.DiskMBpsReadOnly) - delete(rawMsg, key) - case "diskMBpsReadWrite": - err = unpopulate(val, "DiskMBpsReadWrite", &d.DiskMBpsReadWrite) - delete(rawMsg, key) - case "diskSizeBytes": - err = unpopulate(val, "DiskSizeBytes", &d.DiskSizeBytes) - delete(rawMsg, key) - case "diskSizeGB": - err = unpopulate(val, "DiskSizeGB", &d.DiskSizeGB) - delete(rawMsg, key) - case "diskState": - err = unpopulate(val, "DiskState", &d.DiskState) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, "Encryption", &d.Encryption) - delete(rawMsg, key) - case "encryptionSettingsCollection": - err = unpopulate(val, "EncryptionSettingsCollection", &d.EncryptionSettingsCollection) - delete(rawMsg, key) - case "hyperVGeneration": - err = unpopulate(val, "HyperVGeneration", &d.HyperVGeneration) - delete(rawMsg, key) - case "maxShares": - err = unpopulate(val, "MaxShares", &d.MaxShares) - delete(rawMsg, key) - case "networkAccessPolicy": - err = unpopulate(val, "NetworkAccessPolicy", &d.NetworkAccessPolicy) - delete(rawMsg, key) - case "osType": - err = unpopulate(val, "OSType", &d.OSType) - delete(rawMsg, key) - case "propertyUpdatesInProgress": - err = unpopulate(val, "PropertyUpdatesInProgress", &d.PropertyUpdatesInProgress) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) - delete(rawMsg, key) - case "purchasePlan": - err = unpopulate(val, "PurchasePlan", &d.PurchasePlan) - delete(rawMsg, key) - case "securityProfile": - err = unpopulate(val, "SecurityProfile", &d.SecurityProfile) - delete(rawMsg, key) - case "shareInfo": - err = unpopulate(val, "ShareInfo", &d.ShareInfo) - delete(rawMsg, key) - case "supportedCapabilities": - err = unpopulate(val, "SupportedCapabilities", &d.SupportedCapabilities) - delete(rawMsg, key) - case "supportsHibernation": - err = unpopulate(val, "SupportsHibernation", &d.SupportsHibernation) - delete(rawMsg, key) - case "tier": - err = unpopulate(val, "Tier", &d.Tier) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) - delete(rawMsg, key) - case "uniqueId": - err = unpopulate(val, "UniqueID", &d.UniqueID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePointProperties. -func (d *DiskRestorePointProperties) UnmarshalJSON(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 "completionPercent": - err = unpopulate(val, "CompletionPercent", &d.CompletionPercent) - delete(rawMsg, key) - case "diskAccessId": - err = unpopulate(val, "DiskAccessID", &d.DiskAccessID) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, "Encryption", &d.Encryption) - delete(rawMsg, key) - case "familyId": - err = unpopulate(val, "FamilyID", &d.FamilyID) - delete(rawMsg, key) - case "hyperVGeneration": - err = unpopulate(val, "HyperVGeneration", &d.HyperVGeneration) - delete(rawMsg, key) - case "networkAccessPolicy": - err = unpopulate(val, "NetworkAccessPolicy", &d.NetworkAccessPolicy) - delete(rawMsg, key) - case "osType": - err = unpopulate(val, "OSType", &d.OSType) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) - delete(rawMsg, key) - case "purchasePlan": - err = unpopulate(val, "PurchasePlan", &d.PurchasePlan) - delete(rawMsg, key) - case "replicationState": - err = unpopulate(val, "ReplicationState", &d.ReplicationState) - delete(rawMsg, key) - case "sourceResourceId": - err = unpopulate(val, "SourceResourceID", &d.SourceResourceID) - delete(rawMsg, key) - case "sourceResourceLocation": - err = unpopulate(val, "SourceResourceLocation", &d.SourceResourceLocation) - delete(rawMsg, key) - case "sourceUniqueId": - err = unpopulate(val, "SourceUniqueID", &d.SourceUniqueID) - delete(rawMsg, key) - case "supportedCapabilities": - err = unpopulate(val, "SupportedCapabilities", &d.SupportedCapabilities) - delete(rawMsg, key) - case "supportsHibernation": - err = unpopulate(val, "SupportsHibernation", &d.SupportsHibernation) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated) - 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 DiskUpdate. -func (d DiskUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "sku", d.SKU) - populate(objectMap, "tags", d.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type EncryptionImages. -func (e EncryptionImages) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDiskImages", e.DataDiskImages) - populate(objectMap, "osDiskImage", e.OSDiskImage) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type EncryptionSetProperties. -func (e EncryptionSetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "activeKey", e.ActiveKey) - populate(objectMap, "autoKeyRotationError", e.AutoKeyRotationError) - populate(objectMap, "encryptionType", e.EncryptionType) - populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", e.LastKeyRotationTimestamp) - populate(objectMap, "previousKeys", e.PreviousKeys) - populate(objectMap, "provisioningState", e.ProvisioningState) - populate(objectMap, "rotationToLatestKeyVersionEnabled", e.RotationToLatestKeyVersionEnabled) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSetProperties. -func (e *EncryptionSetProperties) UnmarshalJSON(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 "activeKey": - err = unpopulate(val, "ActiveKey", &e.ActiveKey) - delete(rawMsg, key) - case "autoKeyRotationError": - err = unpopulate(val, "AutoKeyRotationError", &e.AutoKeyRotationError) - delete(rawMsg, key) - case "encryptionType": - err = unpopulate(val, "EncryptionType", &e.EncryptionType) - delete(rawMsg, key) - case "lastKeyRotationTimestamp": - err = unpopulateTimeRFC3339(val, "LastKeyRotationTimestamp", &e.LastKeyRotationTimestamp) - delete(rawMsg, key) - case "previousKeys": - err = unpopulate(val, "PreviousKeys", &e.PreviousKeys) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &e.ProvisioningState) - delete(rawMsg, key) - case "rotationToLatestKeyVersionEnabled": - err = unpopulate(val, "RotationToLatestKeyVersionEnabled", &e.RotationToLatestKeyVersionEnabled) - 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 EncryptionSettingsCollection. -func (e EncryptionSettingsCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enabled", e.Enabled) - populate(objectMap, "encryptionSettings", e.EncryptionSettings) - populate(objectMap, "encryptionSettingsVersion", e.EncryptionSettingsVersion) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Gallery. -func (g Gallery) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryApplication. -func (g GalleryApplication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationProperties. -func (g GalleryApplicationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", g.Description) - populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) - populate(objectMap, "eula", g.Eula) - populate(objectMap, "privacyStatementUri", g.PrivacyStatementURI) - populate(objectMap, "releaseNoteUri", g.ReleaseNoteURI) - populate(objectMap, "supportedOSType", g.SupportedOSType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationProperties. -func (g *GalleryApplicationProperties) UnmarshalJSON(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 "description": - err = unpopulate(val, "Description", &g.Description) - delete(rawMsg, key) - case "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) - delete(rawMsg, key) - case "eula": - err = unpopulate(val, "Eula", &g.Eula) - delete(rawMsg, key) - case "privacyStatementUri": - err = unpopulate(val, "PrivacyStatementURI", &g.PrivacyStatementURI) - delete(rawMsg, key) - case "releaseNoteUri": - err = unpopulate(val, "ReleaseNoteURI", &g.ReleaseNoteURI) - delete(rawMsg, key) - case "supportedOSType": - err = unpopulate(val, "SupportedOSType", &g.SupportedOSType) - 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 GalleryApplicationUpdate. -func (g GalleryApplicationUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationVersion. -func (g GalleryApplicationVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationVersionPublishingProfile. -func (g GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enableHealthCheck", g.EnableHealthCheck) - populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) - populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest) - populate(objectMap, "manageActions", g.ManageActions) - populateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate) - populate(objectMap, "replicaCount", g.ReplicaCount) - populate(objectMap, "replicationMode", g.ReplicationMode) - populate(objectMap, "source", g.Source) - populate(objectMap, "storageAccountType", g.StorageAccountType) - populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations) - populate(objectMap, "targetRegions", g.TargetRegions) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersionPublishingProfile. -func (g *GalleryApplicationVersionPublishingProfile) UnmarshalJSON(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 "enableHealthCheck": - err = unpopulate(val, "EnableHealthCheck", &g.EnableHealthCheck) - delete(rawMsg, key) - case "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) - delete(rawMsg, key) - case "excludeFromLatest": - err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest) - delete(rawMsg, key) - case "manageActions": - err = unpopulate(val, "ManageActions", &g.ManageActions) - delete(rawMsg, key) - case "publishedDate": - err = unpopulateTimeRFC3339(val, "PublishedDate", &g.PublishedDate) - delete(rawMsg, key) - case "replicaCount": - err = unpopulate(val, "ReplicaCount", &g.ReplicaCount) - delete(rawMsg, key) - case "replicationMode": - err = unpopulate(val, "ReplicationMode", &g.ReplicationMode) - delete(rawMsg, key) - case "source": - err = unpopulate(val, "Source", &g.Source) - delete(rawMsg, key) - case "storageAccountType": - err = unpopulate(val, "StorageAccountType", &g.StorageAccountType) - delete(rawMsg, key) - case "targetExtendedLocations": - err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations) - delete(rawMsg, key) - case "targetRegions": - err = unpopulate(val, "TargetRegions", &g.TargetRegions) - 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 GalleryApplicationVersionUpdate. -func (g GalleryApplicationVersionUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryArtifactPublishingProfileBase. -func (g GalleryArtifactPublishingProfileBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) - populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest) - populateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate) - populate(objectMap, "replicaCount", g.ReplicaCount) - populate(objectMap, "replicationMode", g.ReplicationMode) - populate(objectMap, "storageAccountType", g.StorageAccountType) - populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations) - populate(objectMap, "targetRegions", g.TargetRegions) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryArtifactPublishingProfileBase. -func (g *GalleryArtifactPublishingProfileBase) UnmarshalJSON(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 "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) - delete(rawMsg, key) - case "excludeFromLatest": - err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest) - delete(rawMsg, key) - case "publishedDate": - err = unpopulateTimeRFC3339(val, "PublishedDate", &g.PublishedDate) - delete(rawMsg, key) - case "replicaCount": - err = unpopulate(val, "ReplicaCount", &g.ReplicaCount) - delete(rawMsg, key) - case "replicationMode": - err = unpopulate(val, "ReplicationMode", &g.ReplicationMode) - delete(rawMsg, key) - case "storageAccountType": - err = unpopulate(val, "StorageAccountType", &g.StorageAccountType) - delete(rawMsg, key) - case "targetExtendedLocations": - err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations) - delete(rawMsg, key) - case "targetRegions": - err = unpopulate(val, "TargetRegions", &g.TargetRegions) - 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 GalleryImage. -func (g GalleryImage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryImageProperties. -func (g GalleryImageProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "architecture", g.Architecture) - populate(objectMap, "description", g.Description) - populate(objectMap, "disallowed", g.Disallowed) - populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) - populate(objectMap, "eula", g.Eula) - populate(objectMap, "features", g.Features) - populate(objectMap, "hyperVGeneration", g.HyperVGeneration) - populate(objectMap, "identifier", g.Identifier) - populate(objectMap, "osState", g.OSState) - populate(objectMap, "osType", g.OSType) - populate(objectMap, "privacyStatementUri", g.PrivacyStatementURI) - populate(objectMap, "provisioningState", g.ProvisioningState) - populate(objectMap, "purchasePlan", g.PurchasePlan) - populate(objectMap, "recommended", g.Recommended) - populate(objectMap, "releaseNoteUri", g.ReleaseNoteURI) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageProperties. -func (g *GalleryImageProperties) UnmarshalJSON(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 "architecture": - err = unpopulate(val, "Architecture", &g.Architecture) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &g.Description) - delete(rawMsg, key) - case "disallowed": - err = unpopulate(val, "Disallowed", &g.Disallowed) - delete(rawMsg, key) - case "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) - delete(rawMsg, key) - case "eula": - err = unpopulate(val, "Eula", &g.Eula) - delete(rawMsg, key) - case "features": - err = unpopulate(val, "Features", &g.Features) - delete(rawMsg, key) - case "hyperVGeneration": - err = unpopulate(val, "HyperVGeneration", &g.HyperVGeneration) - delete(rawMsg, key) - case "identifier": - err = unpopulate(val, "Identifier", &g.Identifier) - delete(rawMsg, key) - case "osState": - err = unpopulate(val, "OSState", &g.OSState) - delete(rawMsg, key) - case "osType": - err = unpopulate(val, "OSType", &g.OSType) - delete(rawMsg, key) - case "privacyStatementUri": - err = unpopulate(val, "PrivacyStatementURI", &g.PrivacyStatementURI) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &g.ProvisioningState) - delete(rawMsg, key) - case "purchasePlan": - err = unpopulate(val, "PurchasePlan", &g.PurchasePlan) - delete(rawMsg, key) - case "recommended": - err = unpopulate(val, "Recommended", &g.Recommended) - delete(rawMsg, key) - case "releaseNoteUri": - err = unpopulate(val, "ReleaseNoteURI", &g.ReleaseNoteURI) - 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 GalleryImageUpdate. -func (g GalleryImageUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryImageVersion. -func (g GalleryImageVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryImageVersionPublishingProfile. -func (g GalleryImageVersionPublishingProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate) - populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest) - populateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate) - populate(objectMap, "replicaCount", g.ReplicaCount) - populate(objectMap, "replicationMode", g.ReplicationMode) - populate(objectMap, "storageAccountType", g.StorageAccountType) - populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations) - populate(objectMap, "targetRegions", g.TargetRegions) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionPublishingProfile. -func (g *GalleryImageVersionPublishingProfile) UnmarshalJSON(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 "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate) - delete(rawMsg, key) - case "excludeFromLatest": - err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest) - delete(rawMsg, key) - case "publishedDate": - err = unpopulateTimeRFC3339(val, "PublishedDate", &g.PublishedDate) - delete(rawMsg, key) - case "replicaCount": - err = unpopulate(val, "ReplicaCount", &g.ReplicaCount) - delete(rawMsg, key) - case "replicationMode": - err = unpopulate(val, "ReplicationMode", &g.ReplicationMode) - delete(rawMsg, key) - case "storageAccountType": - err = unpopulate(val, "StorageAccountType", &g.StorageAccountType) - delete(rawMsg, key) - case "targetExtendedLocations": - err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations) - delete(rawMsg, key) - case "targetRegions": - err = unpopulate(val, "TargetRegions", &g.TargetRegions) - 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 GalleryImageVersionStorageProfile. -func (g GalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDiskImages", g.DataDiskImages) - populate(objectMap, "osDiskImage", g.OSDiskImage) - populate(objectMap, "source", g.Source) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryImageVersionUpdate. -func (g GalleryImageVersionUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type GalleryUpdate. -func (g GalleryUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Image. -func (i Image) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", i.ExtendedLocation) - populate(objectMap, "id", i.ID) - populate(objectMap, "location", i.Location) - populate(objectMap, "name", i.Name) - populate(objectMap, "properties", i.Properties) - populate(objectMap, "tags", i.Tags) - populate(objectMap, "type", i.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ImageStorageProfile. -func (i ImageStorageProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDisks", i.DataDisks) - populate(objectMap, "osDisk", i.OSDisk) - populate(objectMap, "zoneResilient", i.ZoneResilient) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ImageUpdate. -func (i ImageUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", i.Properties) - populate(objectMap, "tags", i.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type InstanceViewStatus. -func (i InstanceViewStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "code", i.Code) - populate(objectMap, "displayStatus", i.DisplayStatus) - populate(objectMap, "level", i.Level) - populate(objectMap, "message", i.Message) - populateTimeRFC3339(objectMap, "time", i.Time) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type InstanceViewStatus. -func (i *InstanceViewStatus) UnmarshalJSON(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 "code": - err = unpopulate(val, "Code", &i.Code) - delete(rawMsg, key) - case "displayStatus": - err = unpopulate(val, "DisplayStatus", &i.DisplayStatus) - delete(rawMsg, key) - case "level": - err = unpopulate(val, "Level", &i.Level) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &i.Message) - delete(rawMsg, key) - case "time": - err = unpopulateTimeRFC3339(val, "Time", &i.Time) - 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 LastPatchInstallationSummary. -func (l LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "error", l.Error) - populate(objectMap, "excludedPatchCount", l.ExcludedPatchCount) - populate(objectMap, "failedPatchCount", l.FailedPatchCount) - populate(objectMap, "installationActivityId", l.InstallationActivityID) - populate(objectMap, "installedPatchCount", l.InstalledPatchCount) - populateTimeRFC3339(objectMap, "lastModifiedTime", l.LastModifiedTime) - populate(objectMap, "maintenanceWindowExceeded", l.MaintenanceWindowExceeded) - populate(objectMap, "notSelectedPatchCount", l.NotSelectedPatchCount) - populate(objectMap, "pendingPatchCount", l.PendingPatchCount) - populateTimeRFC3339(objectMap, "startTime", l.StartTime) - populate(objectMap, "status", l.Status) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LastPatchInstallationSummary. -func (l *LastPatchInstallationSummary) UnmarshalJSON(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 "error": - err = unpopulate(val, "Error", &l.Error) - delete(rawMsg, key) - case "excludedPatchCount": - err = unpopulate(val, "ExcludedPatchCount", &l.ExcludedPatchCount) - delete(rawMsg, key) - case "failedPatchCount": - err = unpopulate(val, "FailedPatchCount", &l.FailedPatchCount) - delete(rawMsg, key) - case "installationActivityId": - err = unpopulate(val, "InstallationActivityID", &l.InstallationActivityID) - delete(rawMsg, key) - case "installedPatchCount": - err = unpopulate(val, "InstalledPatchCount", &l.InstalledPatchCount) - delete(rawMsg, key) - case "lastModifiedTime": - err = unpopulateTimeRFC3339(val, "LastModifiedTime", &l.LastModifiedTime) - delete(rawMsg, key) - case "maintenanceWindowExceeded": - err = unpopulate(val, "MaintenanceWindowExceeded", &l.MaintenanceWindowExceeded) - delete(rawMsg, key) - case "notSelectedPatchCount": - err = unpopulate(val, "NotSelectedPatchCount", &l.NotSelectedPatchCount) - delete(rawMsg, key) - case "pendingPatchCount": - err = unpopulate(val, "PendingPatchCount", &l.PendingPatchCount) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &l.StartTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &l.Status) - 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 LinuxParameters. -func (l LinuxParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "classificationsToInclude", l.ClassificationsToInclude) - populate(objectMap, "maintenanceRunId", l.MaintenanceRunID) - populate(objectMap, "packageNameMasksToExclude", l.PackageNameMasksToExclude) - populate(objectMap, "packageNameMasksToInclude", l.PackageNameMasksToInclude) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type LoadBalancerConfigurationProperties. -func (l LoadBalancerConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "frontendIPConfigurations", l.FrontendIPConfigurations) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type LogAnalyticsInputBase. -func (l LogAnalyticsInputBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobContainerSasUri", l.BlobContainerSasURI) - populateTimeRFC3339(objectMap, "fromTime", l.FromTime) - populate(objectMap, "groupByClientApplicationId", l.GroupByClientApplicationID) - populate(objectMap, "groupByOperationName", l.GroupByOperationName) - populate(objectMap, "groupByResourceName", l.GroupByResourceName) - populate(objectMap, "groupByThrottlePolicy", l.GroupByThrottlePolicy) - populate(objectMap, "groupByUserAgent", l.GroupByUserAgent) - populateTimeRFC3339(objectMap, "toTime", l.ToTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsInputBase. -func (l *LogAnalyticsInputBase) UnmarshalJSON(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 "blobContainerSasUri": - err = unpopulate(val, "BlobContainerSasURI", &l.BlobContainerSasURI) - delete(rawMsg, key) - case "fromTime": - err = unpopulateTimeRFC3339(val, "FromTime", &l.FromTime) - delete(rawMsg, key) - case "groupByClientApplicationId": - err = unpopulate(val, "GroupByClientApplicationID", &l.GroupByClientApplicationID) - delete(rawMsg, key) - case "groupByOperationName": - err = unpopulate(val, "GroupByOperationName", &l.GroupByOperationName) - delete(rawMsg, key) - case "groupByResourceName": - err = unpopulate(val, "GroupByResourceName", &l.GroupByResourceName) - delete(rawMsg, key) - case "groupByThrottlePolicy": - err = unpopulate(val, "GroupByThrottlePolicy", &l.GroupByThrottlePolicy) - delete(rawMsg, key) - case "groupByUserAgent": - err = unpopulate(val, "GroupByUserAgent", &l.GroupByUserAgent) - delete(rawMsg, key) - case "toTime": - err = unpopulateTimeRFC3339(val, "ToTime", &l.ToTime) - 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 MaintenanceRedeployStatus. -func (m MaintenanceRedeployStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "isCustomerInitiatedMaintenanceAllowed", m.IsCustomerInitiatedMaintenanceAllowed) - populate(objectMap, "lastOperationMessage", m.LastOperationMessage) - populate(objectMap, "lastOperationResultCode", m.LastOperationResultCode) - populateTimeRFC3339(objectMap, "maintenanceWindowEndTime", m.MaintenanceWindowEndTime) - populateTimeRFC3339(objectMap, "maintenanceWindowStartTime", m.MaintenanceWindowStartTime) - populateTimeRFC3339(objectMap, "preMaintenanceWindowEndTime", m.PreMaintenanceWindowEndTime) - populateTimeRFC3339(objectMap, "preMaintenanceWindowStartTime", m.PreMaintenanceWindowStartTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceRedeployStatus. -func (m *MaintenanceRedeployStatus) UnmarshalJSON(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 "isCustomerInitiatedMaintenanceAllowed": - err = unpopulate(val, "IsCustomerInitiatedMaintenanceAllowed", &m.IsCustomerInitiatedMaintenanceAllowed) - delete(rawMsg, key) - case "lastOperationMessage": - err = unpopulate(val, "LastOperationMessage", &m.LastOperationMessage) - delete(rawMsg, key) - case "lastOperationResultCode": - err = unpopulate(val, "LastOperationResultCode", &m.LastOperationResultCode) - delete(rawMsg, key) - case "maintenanceWindowEndTime": - err = unpopulateTimeRFC3339(val, "MaintenanceWindowEndTime", &m.MaintenanceWindowEndTime) - delete(rawMsg, key) - case "maintenanceWindowStartTime": - err = unpopulateTimeRFC3339(val, "MaintenanceWindowStartTime", &m.MaintenanceWindowStartTime) - delete(rawMsg, key) - case "preMaintenanceWindowEndTime": - err = unpopulateTimeRFC3339(val, "PreMaintenanceWindowEndTime", &m.PreMaintenanceWindowEndTime) - delete(rawMsg, key) - case "preMaintenanceWindowStartTime": - err = unpopulateTimeRFC3339(val, "PreMaintenanceWindowStartTime", &m.PreMaintenanceWindowStartTime) - 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 NetworkProfile. -func (n NetworkProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "networkApiVersion", n.NetworkAPIVersion) - populate(objectMap, "networkInterfaceConfigurations", n.NetworkInterfaceConfigurations) - populate(objectMap, "networkInterfaces", n.NetworkInterfaces) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type OSProfile. -func (o OSProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "adminPassword", o.AdminPassword) - populate(objectMap, "adminUsername", o.AdminUsername) - populate(objectMap, "allowExtensionOperations", o.AllowExtensionOperations) - populate(objectMap, "computerName", o.ComputerName) - populate(objectMap, "customData", o.CustomData) - populate(objectMap, "linuxConfiguration", o.LinuxConfiguration) - populate(objectMap, "requireGuestProvisionSignal", o.RequireGuestProvisionSignal) - populate(objectMap, "secrets", o.Secrets) - populate(objectMap, "windowsConfiguration", o.WindowsConfiguration) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroup. -func (p ProximityPlacementGroup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) - populate(objectMap, "location", p.Location) - populate(objectMap, "name", p.Name) - populate(objectMap, "properties", p.Properties) - populate(objectMap, "tags", p.Tags) - populate(objectMap, "type", p.Type) - populate(objectMap, "zones", p.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroupProperties. -func (p ProximityPlacementGroupProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "availabilitySets", p.AvailabilitySets) - populate(objectMap, "colocationStatus", p.ColocationStatus) - populate(objectMap, "intent", p.Intent) - populate(objectMap, "proximityPlacementGroupType", p.ProximityPlacementGroupType) - populate(objectMap, "virtualMachineScaleSets", p.VirtualMachineScaleSets) - populate(objectMap, "virtualMachines", p.VirtualMachines) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroupPropertiesIntent. -func (p ProximityPlacementGroupPropertiesIntent) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "vmSizes", p.VMSizes) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroupUpdate. -func (p ProximityPlacementGroupUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tags", p.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ReplicationStatus. -func (r ReplicationStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aggregatedState", r.AggregatedState) - populate(objectMap, "summary", r.Summary) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RequestRateByIntervalInput. -func (r RequestRateByIntervalInput) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobContainerSasUri", r.BlobContainerSasURI) - populateTimeRFC3339(objectMap, "fromTime", r.FromTime) - populate(objectMap, "groupByClientApplicationId", r.GroupByClientApplicationID) - populate(objectMap, "groupByOperationName", r.GroupByOperationName) - populate(objectMap, "groupByResourceName", r.GroupByResourceName) - populate(objectMap, "groupByThrottlePolicy", r.GroupByThrottlePolicy) - populate(objectMap, "groupByUserAgent", r.GroupByUserAgent) - populate(objectMap, "intervalLength", r.IntervalLength) - populateTimeRFC3339(objectMap, "toTime", r.ToTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RequestRateByIntervalInput. -func (r *RequestRateByIntervalInput) UnmarshalJSON(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 "blobContainerSasUri": - err = unpopulate(val, "BlobContainerSasURI", &r.BlobContainerSasURI) - delete(rawMsg, key) - case "fromTime": - err = unpopulateTimeRFC3339(val, "FromTime", &r.FromTime) - delete(rawMsg, key) - case "groupByClientApplicationId": - err = unpopulate(val, "GroupByClientApplicationID", &r.GroupByClientApplicationID) - delete(rawMsg, key) - case "groupByOperationName": - err = unpopulate(val, "GroupByOperationName", &r.GroupByOperationName) - delete(rawMsg, key) - case "groupByResourceName": - err = unpopulate(val, "GroupByResourceName", &r.GroupByResourceName) - delete(rawMsg, key) - case "groupByThrottlePolicy": - err = unpopulate(val, "GroupByThrottlePolicy", &r.GroupByThrottlePolicy) - delete(rawMsg, key) - case "groupByUserAgent": - err = unpopulate(val, "GroupByUserAgent", &r.GroupByUserAgent) - delete(rawMsg, key) - case "intervalLength": - err = unpopulate(val, "IntervalLength", &r.IntervalLength) - delete(rawMsg, key) - case "toTime": - err = unpopulateTimeRFC3339(val, "ToTime", &r.ToTime) - 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 Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceInstanceViewStatus. -func (r *ResourceInstanceViewStatus) UnmarshalJSON(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 "code": - err = unpopulate(val, "Code", &r.Code) - delete(rawMsg, key) - case "displayStatus": - err = unpopulate(val, "DisplayStatus", &r.DisplayStatus) - delete(rawMsg, key) - case "level": - err = unpopulate(val, "Level", &r.Level) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &r.Message) - delete(rawMsg, key) - case "time": - err = unpopulateTimeRFC3339(val, "Time", &r.Time) - 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 ResourceWithOptionalLocation. -func (r ResourceWithOptionalLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RestorePointCollection. -func (r RestorePointCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RestorePointCollectionProperties. -func (r RestorePointCollectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "provisioningState", r.ProvisioningState) - populate(objectMap, "restorePointCollectionId", r.RestorePointCollectionID) - populate(objectMap, "restorePoints", r.RestorePoints) - populate(objectMap, "source", r.Source) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RestorePointCollectionUpdate. -func (r RestorePointCollectionUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "tags", r.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RestorePointInstanceView. -func (r RestorePointInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "diskRestorePoints", r.DiskRestorePoints) - populate(objectMap, "statuses", r.Statuses) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RestorePointProperties. -func (r RestorePointProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "consistencyMode", r.ConsistencyMode) - populate(objectMap, "excludeDisks", r.ExcludeDisks) - populate(objectMap, "instanceView", r.InstanceView) - populate(objectMap, "provisioningState", r.ProvisioningState) - populate(objectMap, "sourceMetadata", r.SourceMetadata) - populate(objectMap, "sourceRestorePoint", r.SourceRestorePoint) - populateTimeRFC3339(objectMap, "timeCreated", r.TimeCreated) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointProperties. -func (r *RestorePointProperties) UnmarshalJSON(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 "consistencyMode": - err = unpopulate(val, "ConsistencyMode", &r.ConsistencyMode) - delete(rawMsg, key) - case "excludeDisks": - err = unpopulate(val, "ExcludeDisks", &r.ExcludeDisks) - delete(rawMsg, key) - case "instanceView": - err = unpopulate(val, "InstanceView", &r.InstanceView) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) - delete(rawMsg, key) - case "sourceMetadata": - err = unpopulate(val, "SourceMetadata", &r.SourceMetadata) - delete(rawMsg, key) - case "sourceRestorePoint": - err = unpopulate(val, "SourceRestorePoint", &r.SourceRestorePoint) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &r.TimeCreated) - 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 RestorePointSourceVMStorageProfile. -func (r RestorePointSourceVMStorageProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDisks", r.DataDisks) - populate(objectMap, "osDisk", r.OSDisk) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RoleInstances. -func (r RoleInstances) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "roleInstances", r.RoleInstances) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RollingUpgradeRunningStatus. -func (r RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "code", r.Code) - populate(objectMap, "lastAction", r.LastAction) - populateTimeRFC3339(objectMap, "lastActionTime", r.LastActionTime) - populateTimeRFC3339(objectMap, "startTime", r.StartTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RollingUpgradeRunningStatus. -func (r *RollingUpgradeRunningStatus) UnmarshalJSON(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 "code": - err = unpopulate(val, "Code", &r.Code) - delete(rawMsg, key) - case "lastAction": - err = unpopulate(val, "LastAction", &r.LastAction) - delete(rawMsg, key) - case "lastActionTime": - err = unpopulateTimeRFC3339(val, "LastActionTime", &r.LastActionTime) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &r.StartTime) - 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 RollingUpgradeStatusInfo. -func (r RollingUpgradeStatusInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RunCommandInput. -func (r RunCommandInput) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "commandId", r.CommandID) - populate(objectMap, "parameters", r.Parameters) - populate(objectMap, "script", r.Script) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SSHConfiguration. -func (s SSHConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "publicKeys", s.PublicKeys) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SSHPublicKeyResource. -func (s SSHPublicKeyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", s.ID) - populate(objectMap, "location", s.Location) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SSHPublicKeyUpdateResource. -func (s SSHPublicKeyUpdateResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "tags", s.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ScaleInPolicy. -func (s ScaleInPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "forceDeletion", s.ForceDeletion) - populate(objectMap, "rules", s.Rules) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageProperties. -func (s *SharedGalleryImageProperties) UnmarshalJSON(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 "disallowed": - err = unpopulate(val, "Disallowed", &s.Disallowed) - delete(rawMsg, key) - case "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &s.EndOfLifeDate) - delete(rawMsg, key) - case "features": - err = unpopulate(val, "Features", &s.Features) - delete(rawMsg, key) - case "hyperVGeneration": - err = unpopulate(val, "HyperVGeneration", &s.HyperVGeneration) - delete(rawMsg, key) - case "identifier": - err = unpopulate(val, "Identifier", &s.Identifier) - delete(rawMsg, key) - case "osState": - err = unpopulate(val, "OSState", &s.OSState) - delete(rawMsg, key) - case "osType": - err = unpopulate(val, "OSType", &s.OSType) - delete(rawMsg, key) - case "purchasePlan": - err = unpopulate(val, "PurchasePlan", &s.PurchasePlan) - delete(rawMsg, key) - case "recommended": - err = unpopulate(val, "Recommended", &s.Recommended) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageVersionProperties. -func (s *SharedGalleryImageVersionProperties) UnmarshalJSON(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 "endOfLifeDate": - err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &s.EndOfLifeDate) - delete(rawMsg, key) - case "publishedDate": - err = unpopulateTimeRFC3339(val, "PublishedDate", &s.PublishedDate) - 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 SharingProfile. -func (s SharingProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "communityGalleryInfo", &s.CommunityGalleryInfo) - populate(objectMap, "groups", s.Groups) - populate(objectMap, "permissions", s.Permissions) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SharingProfileGroup. -func (s SharingProfileGroup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "ids", s.IDs) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SharingStatus. -func (s SharingStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aggregatedState", s.AggregatedState) - populate(objectMap, "summary", s.Summary) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SharingUpdate. -func (s SharingUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groups", s.Groups) - populate(objectMap, "operationType", s.OperationType) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Snapshot. -func (s Snapshot) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", s.ExtendedLocation) - populate(objectMap, "id", s.ID) - populate(objectMap, "location", s.Location) - populate(objectMap, "managedBy", s.ManagedBy) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SnapshotProperties. -func (s SnapshotProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "completionPercent", s.CompletionPercent) - populate(objectMap, "creationData", s.CreationData) - populate(objectMap, "dataAccessAuthMode", s.DataAccessAuthMode) - populate(objectMap, "diskAccessId", s.DiskAccessID) - populate(objectMap, "diskSizeBytes", s.DiskSizeBytes) - populate(objectMap, "diskSizeGB", s.DiskSizeGB) - populate(objectMap, "diskState", s.DiskState) - populate(objectMap, "encryption", s.Encryption) - populate(objectMap, "encryptionSettingsCollection", s.EncryptionSettingsCollection) - populate(objectMap, "hyperVGeneration", s.HyperVGeneration) - populate(objectMap, "incremental", s.Incremental) - populate(objectMap, "networkAccessPolicy", s.NetworkAccessPolicy) - populate(objectMap, "osType", s.OSType) - populate(objectMap, "provisioningState", s.ProvisioningState) - populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess) - populate(objectMap, "purchasePlan", s.PurchasePlan) - populate(objectMap, "securityProfile", s.SecurityProfile) - populate(objectMap, "supportedCapabilities", s.SupportedCapabilities) - populate(objectMap, "supportsHibernation", s.SupportsHibernation) - populateTimeRFC3339(objectMap, "timeCreated", s.TimeCreated) - populate(objectMap, "uniqueId", s.UniqueID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotProperties. -func (s *SnapshotProperties) UnmarshalJSON(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 "completionPercent": - err = unpopulate(val, "CompletionPercent", &s.CompletionPercent) - delete(rawMsg, key) - case "creationData": - err = unpopulate(val, "CreationData", &s.CreationData) - delete(rawMsg, key) - case "dataAccessAuthMode": - err = unpopulate(val, "DataAccessAuthMode", &s.DataAccessAuthMode) - delete(rawMsg, key) - case "diskAccessId": - err = unpopulate(val, "DiskAccessID", &s.DiskAccessID) - delete(rawMsg, key) - case "diskSizeBytes": - err = unpopulate(val, "DiskSizeBytes", &s.DiskSizeBytes) - delete(rawMsg, key) - case "diskSizeGB": - err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB) - delete(rawMsg, key) - case "diskState": - err = unpopulate(val, "DiskState", &s.DiskState) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, "Encryption", &s.Encryption) - delete(rawMsg, key) - case "encryptionSettingsCollection": - err = unpopulate(val, "EncryptionSettingsCollection", &s.EncryptionSettingsCollection) - delete(rawMsg, key) - case "hyperVGeneration": - err = unpopulate(val, "HyperVGeneration", &s.HyperVGeneration) - delete(rawMsg, key) - case "incremental": - err = unpopulate(val, "Incremental", &s.Incremental) - delete(rawMsg, key) - case "networkAccessPolicy": - err = unpopulate(val, "NetworkAccessPolicy", &s.NetworkAccessPolicy) - delete(rawMsg, key) - case "osType": - err = unpopulate(val, "OSType", &s.OSType) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &s.PublicNetworkAccess) - delete(rawMsg, key) - case "purchasePlan": - err = unpopulate(val, "PurchasePlan", &s.PurchasePlan) - delete(rawMsg, key) - case "securityProfile": - err = unpopulate(val, "SecurityProfile", &s.SecurityProfile) - delete(rawMsg, key) - case "supportedCapabilities": - err = unpopulate(val, "SupportedCapabilities", &s.SupportedCapabilities) - delete(rawMsg, key) - case "supportsHibernation": - err = unpopulate(val, "SupportsHibernation", &s.SupportsHibernation) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &s.TimeCreated) - delete(rawMsg, key) - case "uniqueId": - err = unpopulate(val, "UniqueID", &s.UniqueID) - 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 SnapshotUpdate. -func (s SnapshotUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "tags", s.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type StorageProfile. -func (s StorageProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDisks", s.DataDisks) - populate(objectMap, "imageReference", s.ImageReference) - populate(objectMap, "osDisk", s.OSDisk) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ThrottledRequestsInput. -func (t ThrottledRequestsInput) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobContainerSasUri", t.BlobContainerSasURI) - populateTimeRFC3339(objectMap, "fromTime", t.FromTime) - populate(objectMap, "groupByClientApplicationId", t.GroupByClientApplicationID) - populate(objectMap, "groupByOperationName", t.GroupByOperationName) - populate(objectMap, "groupByResourceName", t.GroupByResourceName) - populate(objectMap, "groupByThrottlePolicy", t.GroupByThrottlePolicy) - populate(objectMap, "groupByUserAgent", t.GroupByUserAgent) - populateTimeRFC3339(objectMap, "toTime", t.ToTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ThrottledRequestsInput. -func (t *ThrottledRequestsInput) UnmarshalJSON(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 "blobContainerSasUri": - err = unpopulate(val, "BlobContainerSasURI", &t.BlobContainerSasURI) - delete(rawMsg, key) - case "fromTime": - err = unpopulateTimeRFC3339(val, "FromTime", &t.FromTime) - delete(rawMsg, key) - case "groupByClientApplicationId": - err = unpopulate(val, "GroupByClientApplicationID", &t.GroupByClientApplicationID) - delete(rawMsg, key) - case "groupByOperationName": - err = unpopulate(val, "GroupByOperationName", &t.GroupByOperationName) - delete(rawMsg, key) - case "groupByResourceName": - err = unpopulate(val, "GroupByResourceName", &t.GroupByResourceName) - delete(rawMsg, key) - case "groupByThrottlePolicy": - err = unpopulate(val, "GroupByThrottlePolicy", &t.GroupByThrottlePolicy) - delete(rawMsg, key) - case "groupByUserAgent": - err = unpopulate(val, "GroupByUserAgent", &t.GroupByUserAgent) - delete(rawMsg, key) - case "toTime": - err = unpopulateTimeRFC3339(val, "ToTime", &t.ToTime) - 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 UpdateResource. -func (u UpdateResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tags", u.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type UpdateResourceDefinition. -func (u UpdateResourceDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", u.ID) - populate(objectMap, "name", u.Name) - populate(objectMap, "tags", u.Tags) - populate(objectMap, "type", u.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UpgradeOperationHistoryStatus. -func (u *UpgradeOperationHistoryStatus) UnmarshalJSON(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 "code": - err = unpopulate(val, "Code", &u.Code) - delete(rawMsg, key) - case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &u.EndTime) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(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 VaultSecretGroup. -func (v VaultSecretGroup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "sourceVault", v.SourceVault) - populate(objectMap, "vaultCertificates", v.VaultCertificates) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachine. -func (v VirtualMachine) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", v.ExtendedLocation) - populate(objectMap, "id", v.ID) - populate(objectMap, "identity", v.Identity) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "plan", v.Plan) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "resources", v.Resources) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "type", v.Type) - populate(objectMap, "zones", v.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineAgentInstanceView. -func (v VirtualMachineAgentInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extensionHandlers", v.ExtensionHandlers) - populate(objectMap, "statuses", v.Statuses) - populate(objectMap, "vmAgentVersion", v.VMAgentVersion) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineAssessPatchesResult. -func (v *VirtualMachineAssessPatchesResult) UnmarshalJSON(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 "assessmentActivityId": - err = unpopulate(val, "AssessmentActivityID", &v.AssessmentActivityID) - delete(rawMsg, key) - case "availablePatches": - err = unpopulate(val, "AvailablePatches", &v.AvailablePatches) - delete(rawMsg, key) - case "criticalAndSecurityPatchCount": - err = unpopulate(val, "CriticalAndSecurityPatchCount", &v.CriticalAndSecurityPatchCount) - delete(rawMsg, key) - case "error": - err = unpopulate(val, "Error", &v.Error) - delete(rawMsg, key) - case "otherPatchCount": - err = unpopulate(val, "OtherPatchCount", &v.OtherPatchCount) - delete(rawMsg, key) - case "rebootPending": - err = unpopulate(val, "RebootPending", &v.RebootPending) - delete(rawMsg, key) - case "startDateTime": - err = unpopulateTimeRFC3339(val, "StartDateTime", &v.StartDateTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &v.Status) - 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 VirtualMachineCaptureResult. -func (v VirtualMachineCaptureResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "contentVersion", v.ContentVersion) - populate(objectMap, "id", v.ID) - populate(objectMap, "parameters", &v.Parameters) - populate(objectMap, "resources", v.Resources) - populate(objectMap, "$schema", v.Schema) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtension. -func (v VirtualMachineExtension) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", v.ID) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "type", v.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtensionImage. -func (v VirtualMachineExtensionImage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", v.ID) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "type", v.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtensionInstanceView. -func (v VirtualMachineExtensionInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", v.Name) - populate(objectMap, "statuses", v.Statuses) - populate(objectMap, "substatuses", v.Substatuses) - populate(objectMap, "type", v.Type) - populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtensionUpdate. -func (v VirtualMachineExtensionUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineIdentity. -func (v VirtualMachineIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", v.PrincipalID) - populate(objectMap, "tenantId", v.TenantID) - populate(objectMap, "type", v.Type) - populate(objectMap, "userAssignedIdentities", v.UserAssignedIdentities) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineImage. -func (v VirtualMachineImage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", v.ExtendedLocation) - populate(objectMap, "id", v.ID) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineImageProperties. -func (v VirtualMachineImageProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "architecture", v.Architecture) - populate(objectMap, "automaticOSUpgradeProperties", v.AutomaticOSUpgradeProperties) - populate(objectMap, "dataDiskImages", v.DataDiskImages) - populate(objectMap, "disallowed", v.Disallowed) - populate(objectMap, "features", v.Features) - populate(objectMap, "hyperVGeneration", v.HyperVGeneration) - populate(objectMap, "osDiskImage", v.OSDiskImage) - populate(objectMap, "plan", v.Plan) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineImageResource. -func (v VirtualMachineImageResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", v.ExtendedLocation) - populate(objectMap, "id", v.ID) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "tags", v.Tags) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineInstallPatchesResult. -func (v *VirtualMachineInstallPatchesResult) UnmarshalJSON(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 "error": - err = unpopulate(val, "Error", &v.Error) - delete(rawMsg, key) - case "excludedPatchCount": - err = unpopulate(val, "ExcludedPatchCount", &v.ExcludedPatchCount) - delete(rawMsg, key) - case "failedPatchCount": - err = unpopulate(val, "FailedPatchCount", &v.FailedPatchCount) - delete(rawMsg, key) - case "installationActivityId": - err = unpopulate(val, "InstallationActivityID", &v.InstallationActivityID) - delete(rawMsg, key) - case "installedPatchCount": - err = unpopulate(val, "InstalledPatchCount", &v.InstalledPatchCount) - delete(rawMsg, key) - case "maintenanceWindowExceeded": - err = unpopulate(val, "MaintenanceWindowExceeded", &v.MaintenanceWindowExceeded) - delete(rawMsg, key) - case "notSelectedPatchCount": - err = unpopulate(val, "NotSelectedPatchCount", &v.NotSelectedPatchCount) - delete(rawMsg, key) - case "patches": - err = unpopulate(val, "Patches", &v.Patches) - delete(rawMsg, key) - case "pendingPatchCount": - err = unpopulate(val, "PendingPatchCount", &v.PendingPatchCount) - delete(rawMsg, key) - case "rebootStatus": - err = unpopulate(val, "RebootStatus", &v.RebootStatus) - delete(rawMsg, key) - case "startDateTime": - err = unpopulateTimeRFC3339(val, "StartDateTime", &v.StartDateTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &v.Status) - 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 VirtualMachineInstanceView. -func (v VirtualMachineInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "assignedHost", v.AssignedHost) - populate(objectMap, "bootDiagnostics", v.BootDiagnostics) - populate(objectMap, "computerName", v.ComputerName) - populate(objectMap, "disks", v.Disks) - populate(objectMap, "extensions", v.Extensions) - populate(objectMap, "hyperVGeneration", v.HyperVGeneration) - populate(objectMap, "maintenanceRedeployStatus", v.MaintenanceRedeployStatus) - populate(objectMap, "osName", v.OSName) - populate(objectMap, "osVersion", v.OSVersion) - populate(objectMap, "patchStatus", v.PatchStatus) - populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain) - populate(objectMap, "platformUpdateDomain", v.PlatformUpdateDomain) - populate(objectMap, "rdpThumbPrint", v.RdpThumbPrint) - populate(objectMap, "statuses", v.Statuses) - populate(objectMap, "vmAgent", v.VMAgent) - populate(objectMap, "vmHealth", v.VMHealth) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineNetworkInterfaceConfigurationProperties. -func (v VirtualMachineNetworkInterfaceConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dnsSettings", v.DNSSettings) - populate(objectMap, "deleteOption", v.DeleteOption) - populate(objectMap, "dscpConfiguration", v.DscpConfiguration) - populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking) - populate(objectMap, "enableFpga", v.EnableFpga) - populate(objectMap, "enableIPForwarding", v.EnableIPForwarding) - populate(objectMap, "ipConfigurations", v.IPConfigurations) - populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup) - populate(objectMap, "primary", v.Primary) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineNetworkInterfaceDNSSettingsConfiguration. -func (v VirtualMachineNetworkInterfaceDNSSettingsConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dnsServers", v.DNSServers) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineNetworkInterfaceIPConfigurationProperties. -func (v VirtualMachineNetworkInterfaceIPConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools) - populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups) - populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools) - populate(objectMap, "primary", v.Primary) - populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion) - populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration) - populate(objectMap, "subnet", v.Subnet) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachinePatchStatus. -func (v VirtualMachinePatchStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "availablePatchSummary", v.AvailablePatchSummary) - populate(objectMap, "configurationStatuses", v.ConfigurationStatuses) - populate(objectMap, "lastPatchInstallationSummary", v.LastPatchInstallationSummary) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineProperties. -func (v VirtualMachineProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities) - populate(objectMap, "applicationProfile", v.ApplicationProfile) - populate(objectMap, "availabilitySet", v.AvailabilitySet) - populate(objectMap, "billingProfile", v.BillingProfile) - populate(objectMap, "capacityReservation", v.CapacityReservation) - populate(objectMap, "diagnosticsProfile", v.DiagnosticsProfile) - populate(objectMap, "evictionPolicy", v.EvictionPolicy) - populate(objectMap, "extensionsTimeBudget", v.ExtensionsTimeBudget) - populate(objectMap, "hardwareProfile", v.HardwareProfile) - populate(objectMap, "host", v.Host) - populate(objectMap, "hostGroup", v.HostGroup) - populate(objectMap, "instanceView", v.InstanceView) - populate(objectMap, "licenseType", v.LicenseType) - populate(objectMap, "networkProfile", v.NetworkProfile) - populate(objectMap, "osProfile", v.OSProfile) - populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain) - populate(objectMap, "priority", v.Priority) - populate(objectMap, "provisioningState", v.ProvisioningState) - populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup) - populate(objectMap, "scheduledEventsProfile", v.ScheduledEventsProfile) - populate(objectMap, "securityProfile", v.SecurityProfile) - populate(objectMap, "storageProfile", v.StorageProfile) - populateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated) - populate(objectMap, "userData", v.UserData) - populate(objectMap, "vmId", v.VMID) - populate(objectMap, "virtualMachineScaleSet", v.VirtualMachineScaleSet) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineProperties. -func (v *VirtualMachineProperties) UnmarshalJSON(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 "additionalCapabilities": - err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities) - delete(rawMsg, key) - case "applicationProfile": - err = unpopulate(val, "ApplicationProfile", &v.ApplicationProfile) - delete(rawMsg, key) - case "availabilitySet": - err = unpopulate(val, "AvailabilitySet", &v.AvailabilitySet) - delete(rawMsg, key) - case "billingProfile": - err = unpopulate(val, "BillingProfile", &v.BillingProfile) - delete(rawMsg, key) - case "capacityReservation": - err = unpopulate(val, "CapacityReservation", &v.CapacityReservation) - delete(rawMsg, key) - case "diagnosticsProfile": - err = unpopulate(val, "DiagnosticsProfile", &v.DiagnosticsProfile) - delete(rawMsg, key) - case "evictionPolicy": - err = unpopulate(val, "EvictionPolicy", &v.EvictionPolicy) - delete(rawMsg, key) - case "extensionsTimeBudget": - err = unpopulate(val, "ExtensionsTimeBudget", &v.ExtensionsTimeBudget) - delete(rawMsg, key) - case "hardwareProfile": - err = unpopulate(val, "HardwareProfile", &v.HardwareProfile) - delete(rawMsg, key) - case "host": - err = unpopulate(val, "Host", &v.Host) - delete(rawMsg, key) - case "hostGroup": - err = unpopulate(val, "HostGroup", &v.HostGroup) - delete(rawMsg, key) - case "instanceView": - err = unpopulate(val, "InstanceView", &v.InstanceView) - delete(rawMsg, key) - case "licenseType": - err = unpopulate(val, "LicenseType", &v.LicenseType) - delete(rawMsg, key) - case "networkProfile": - err = unpopulate(val, "NetworkProfile", &v.NetworkProfile) - delete(rawMsg, key) - case "osProfile": - err = unpopulate(val, "OSProfile", &v.OSProfile) - delete(rawMsg, key) - case "platformFaultDomain": - err = unpopulate(val, "PlatformFaultDomain", &v.PlatformFaultDomain) - delete(rawMsg, key) - case "priority": - err = unpopulate(val, "Priority", &v.Priority) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) - delete(rawMsg, key) - case "proximityPlacementGroup": - err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup) - delete(rawMsg, key) - case "scheduledEventsProfile": - err = unpopulate(val, "ScheduledEventsProfile", &v.ScheduledEventsProfile) - delete(rawMsg, key) - case "securityProfile": - err = unpopulate(val, "SecurityProfile", &v.SecurityProfile) - delete(rawMsg, key) - case "storageProfile": - err = unpopulate(val, "StorageProfile", &v.StorageProfile) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &v.TimeCreated) - delete(rawMsg, key) - case "userData": - err = unpopulate(val, "UserData", &v.UserData) - delete(rawMsg, key) - case "vmId": - err = unpopulate(val, "VMID", &v.VMID) - delete(rawMsg, key) - case "virtualMachineScaleSet": - err = unpopulate(val, "VirtualMachineScaleSet", &v.VirtualMachineScaleSet) - 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 VirtualMachinePublicIPAddressConfigurationProperties. -func (v VirtualMachinePublicIPAddressConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dnsSettings", v.DNSSettings) - populate(objectMap, "deleteOption", v.DeleteOption) - populate(objectMap, "ipTags", v.IPTags) - populate(objectMap, "idleTimeoutInMinutes", v.IdleTimeoutInMinutes) - populate(objectMap, "publicIPAddressVersion", v.PublicIPAddressVersion) - populate(objectMap, "publicIPAllocationMethod", v.PublicIPAllocationMethod) - populate(objectMap, "publicIPPrefix", v.PublicIPPrefix) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineRunCommand. -func (v VirtualMachineRunCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", v.ID) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "type", v.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineRunCommandInstanceView. -func (v VirtualMachineRunCommandInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endTime", v.EndTime) - populate(objectMap, "error", v.Error) - populate(objectMap, "executionMessage", v.ExecutionMessage) - populate(objectMap, "executionState", v.ExecutionState) - populate(objectMap, "exitCode", v.ExitCode) - populate(objectMap, "output", v.Output) - populateTimeRFC3339(objectMap, "startTime", v.StartTime) - populate(objectMap, "statuses", v.Statuses) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommandInstanceView. -func (v *VirtualMachineRunCommandInstanceView) UnmarshalJSON(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 "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &v.EndTime) - delete(rawMsg, key) - case "error": - err = unpopulate(val, "Error", &v.Error) - delete(rawMsg, key) - case "executionMessage": - err = unpopulate(val, "ExecutionMessage", &v.ExecutionMessage) - delete(rawMsg, key) - case "executionState": - err = unpopulate(val, "ExecutionState", &v.ExecutionState) - delete(rawMsg, key) - case "exitCode": - err = unpopulate(val, "ExitCode", &v.ExitCode) - delete(rawMsg, key) - case "output": - err = unpopulate(val, "Output", &v.Output) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &v.StartTime) - delete(rawMsg, key) - case "statuses": - err = unpopulate(val, "Statuses", &v.Statuses) - 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 VirtualMachineRunCommandProperties. -func (v VirtualMachineRunCommandProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "asyncExecution", v.AsyncExecution) - populate(objectMap, "errorBlobUri", v.ErrorBlobURI) - populate(objectMap, "instanceView", v.InstanceView) - populate(objectMap, "outputBlobUri", v.OutputBlobURI) - populate(objectMap, "parameters", v.Parameters) - populate(objectMap, "protectedParameters", v.ProtectedParameters) - populate(objectMap, "provisioningState", v.ProvisioningState) - populate(objectMap, "runAsPassword", v.RunAsPassword) - populate(objectMap, "runAsUser", v.RunAsUser) - populate(objectMap, "source", v.Source) - populate(objectMap, "timeoutInSeconds", v.TimeoutInSeconds) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineRunCommandUpdate. -func (v VirtualMachineRunCommandUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSet. -func (v VirtualMachineScaleSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", v.ExtendedLocation) - populate(objectMap, "id", v.ID) - populate(objectMap, "identity", v.Identity) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "plan", v.Plan) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "sku", v.SKU) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "type", v.Type) - populate(objectMap, "zones", v.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetExtensionProfile. -func (v VirtualMachineScaleSetExtensionProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extensions", v.Extensions) - populate(objectMap, "extensionsTimeBudget", v.ExtensionsTimeBudget) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetExtensionProperties. -func (v VirtualMachineScaleSetExtensionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoUpgradeMinorVersion", v.AutoUpgradeMinorVersion) - populate(objectMap, "enableAutomaticUpgrade", v.EnableAutomaticUpgrade) - populate(objectMap, "forceUpdateTag", v.ForceUpdateTag) - populate(objectMap, "protectedSettings", &v.ProtectedSettings) - populate(objectMap, "protectedSettingsFromKeyVault", &v.ProtectedSettingsFromKeyVault) - populate(objectMap, "provisionAfterExtensions", v.ProvisionAfterExtensions) - populate(objectMap, "provisioningState", v.ProvisioningState) - populate(objectMap, "publisher", v.Publisher) - populate(objectMap, "settings", &v.Settings) - populate(objectMap, "suppressFailures", v.SuppressFailures) - populate(objectMap, "type", v.Type) - populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetExtensionUpdate. -func (v VirtualMachineScaleSetExtensionUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", v.ID) - populate(objectMap, "name", v.Name) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "type", v.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetIPConfigurationProperties. -func (v VirtualMachineScaleSetIPConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools) - populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups) - populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools) - populate(objectMap, "loadBalancerInboundNatPools", v.LoadBalancerInboundNatPools) - populate(objectMap, "primary", v.Primary) - populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion) - populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration) - populate(objectMap, "subnet", v.Subnet) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetIdentity. -func (v VirtualMachineScaleSetIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", v.PrincipalID) - populate(objectMap, "tenantId", v.TenantID) - populate(objectMap, "type", v.Type) - populate(objectMap, "userAssignedIdentities", v.UserAssignedIdentities) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetNetworkConfigurationDNSSettings. -func (v VirtualMachineScaleSetNetworkConfigurationDNSSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dnsServers", v.DNSServers) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetNetworkConfigurationProperties. -func (v VirtualMachineScaleSetNetworkConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dnsSettings", v.DNSSettings) - populate(objectMap, "deleteOption", v.DeleteOption) - populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking) - populate(objectMap, "enableFpga", v.EnableFpga) - populate(objectMap, "enableIPForwarding", v.EnableIPForwarding) - populate(objectMap, "ipConfigurations", v.IPConfigurations) - populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup) - populate(objectMap, "primary", v.Primary) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetNetworkProfile. -func (v VirtualMachineScaleSetNetworkProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "healthProbe", v.HealthProbe) - populate(objectMap, "networkApiVersion", v.NetworkAPIVersion) - populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetOSDisk. -func (v VirtualMachineScaleSetOSDisk) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "caching", v.Caching) - populate(objectMap, "createOption", v.CreateOption) - populate(objectMap, "deleteOption", v.DeleteOption) - populate(objectMap, "diffDiskSettings", v.DiffDiskSettings) - populate(objectMap, "diskSizeGB", v.DiskSizeGB) - populate(objectMap, "image", v.Image) - populate(objectMap, "managedDisk", v.ManagedDisk) - populate(objectMap, "name", v.Name) - populate(objectMap, "osType", v.OSType) - populate(objectMap, "vhdContainers", v.VhdContainers) - populate(objectMap, "writeAcceleratorEnabled", v.WriteAcceleratorEnabled) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetOSProfile. -func (v VirtualMachineScaleSetOSProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "adminPassword", v.AdminPassword) - populate(objectMap, "adminUsername", v.AdminUsername) - populate(objectMap, "allowExtensionOperations", v.AllowExtensionOperations) - populate(objectMap, "computerNamePrefix", v.ComputerNamePrefix) - populate(objectMap, "customData", v.CustomData) - populate(objectMap, "linuxConfiguration", v.LinuxConfiguration) - populate(objectMap, "secrets", v.Secrets) - populate(objectMap, "windowsConfiguration", v.WindowsConfiguration) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetProperties. -func (v VirtualMachineScaleSetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities) - populate(objectMap, "automaticRepairsPolicy", v.AutomaticRepairsPolicy) - populate(objectMap, "doNotRunExtensionsOnOverprovisionedVMs", v.DoNotRunExtensionsOnOverprovisionedVMs) - populate(objectMap, "hostGroup", v.HostGroup) - populate(objectMap, "orchestrationMode", v.OrchestrationMode) - populate(objectMap, "overprovision", v.Overprovision) - populate(objectMap, "platformFaultDomainCount", v.PlatformFaultDomainCount) - populate(objectMap, "provisioningState", v.ProvisioningState) - populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup) - populate(objectMap, "scaleInPolicy", v.ScaleInPolicy) - populate(objectMap, "singlePlacementGroup", v.SinglePlacementGroup) - populate(objectMap, "spotRestorePolicy", v.SpotRestorePolicy) - populateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated) - populate(objectMap, "uniqueId", v.UniqueID) - populate(objectMap, "upgradePolicy", v.UpgradePolicy) - populate(objectMap, "virtualMachineProfile", v.VirtualMachineProfile) - populate(objectMap, "zoneBalance", v.ZoneBalance) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetProperties. -func (v *VirtualMachineScaleSetProperties) UnmarshalJSON(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 "additionalCapabilities": - err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities) - delete(rawMsg, key) - case "automaticRepairsPolicy": - err = unpopulate(val, "AutomaticRepairsPolicy", &v.AutomaticRepairsPolicy) - delete(rawMsg, key) - case "doNotRunExtensionsOnOverprovisionedVMs": - err = unpopulate(val, "DoNotRunExtensionsOnOverprovisionedVMs", &v.DoNotRunExtensionsOnOverprovisionedVMs) - delete(rawMsg, key) - case "hostGroup": - err = unpopulate(val, "HostGroup", &v.HostGroup) - delete(rawMsg, key) - case "orchestrationMode": - err = unpopulate(val, "OrchestrationMode", &v.OrchestrationMode) - delete(rawMsg, key) - case "overprovision": - err = unpopulate(val, "Overprovision", &v.Overprovision) - delete(rawMsg, key) - case "platformFaultDomainCount": - err = unpopulate(val, "PlatformFaultDomainCount", &v.PlatformFaultDomainCount) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) - delete(rawMsg, key) - case "proximityPlacementGroup": - err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup) - delete(rawMsg, key) - case "scaleInPolicy": - err = unpopulate(val, "ScaleInPolicy", &v.ScaleInPolicy) - delete(rawMsg, key) - case "singlePlacementGroup": - err = unpopulate(val, "SinglePlacementGroup", &v.SinglePlacementGroup) - delete(rawMsg, key) - case "spotRestorePolicy": - err = unpopulate(val, "SpotRestorePolicy", &v.SpotRestorePolicy) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, "TimeCreated", &v.TimeCreated) - delete(rawMsg, key) - case "uniqueId": - err = unpopulate(val, "UniqueID", &v.UniqueID) - delete(rawMsg, key) - case "upgradePolicy": - err = unpopulate(val, "UpgradePolicy", &v.UpgradePolicy) - delete(rawMsg, key) - case "virtualMachineProfile": - err = unpopulate(val, "VirtualMachineProfile", &v.VirtualMachineProfile) - delete(rawMsg, key) - case "zoneBalance": - err = unpopulate(val, "ZoneBalance", &v.ZoneBalance) - 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 VirtualMachineScaleSetPublicIPAddressConfigurationProperties. -func (v VirtualMachineScaleSetPublicIPAddressConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dnsSettings", v.DNSSettings) - populate(objectMap, "deleteOption", v.DeleteOption) - populate(objectMap, "ipTags", v.IPTags) - populate(objectMap, "idleTimeoutInMinutes", v.IdleTimeoutInMinutes) - populate(objectMap, "publicIPAddressVersion", v.PublicIPAddressVersion) - populate(objectMap, "publicIPPrefix", v.PublicIPPrefix) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetReimageParameters. -func (v VirtualMachineScaleSetReimageParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "instanceIds", v.InstanceIDs) - populate(objectMap, "tempDisk", v.TempDisk) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetStorageProfile. -func (v VirtualMachineScaleSetStorageProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDisks", v.DataDisks) - populate(objectMap, "imageReference", v.ImageReference) - populate(objectMap, "osDisk", v.OSDisk) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdate. -func (v VirtualMachineScaleSetUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", v.Identity) - populate(objectMap, "plan", v.Plan) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "sku", v.SKU) - populate(objectMap, "tags", v.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateIPConfigurationProperties. -func (v VirtualMachineScaleSetUpdateIPConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools) - populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups) - populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools) - populate(objectMap, "loadBalancerInboundNatPools", v.LoadBalancerInboundNatPools) - populate(objectMap, "primary", v.Primary) - populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion) - populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration) - populate(objectMap, "subnet", v.Subnet) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateNetworkConfigurationProperties. -func (v VirtualMachineScaleSetUpdateNetworkConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dnsSettings", v.DNSSettings) - populate(objectMap, "deleteOption", v.DeleteOption) - populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking) - populate(objectMap, "enableFpga", v.EnableFpga) - populate(objectMap, "enableIPForwarding", v.EnableIPForwarding) - populate(objectMap, "ipConfigurations", v.IPConfigurations) - populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup) - populate(objectMap, "primary", v.Primary) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateNetworkProfile. -func (v VirtualMachineScaleSetUpdateNetworkProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "healthProbe", v.HealthProbe) - populate(objectMap, "networkApiVersion", v.NetworkAPIVersion) - populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateOSDisk. -func (v VirtualMachineScaleSetUpdateOSDisk) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "caching", v.Caching) - populate(objectMap, "deleteOption", v.DeleteOption) - populate(objectMap, "diskSizeGB", v.DiskSizeGB) - populate(objectMap, "image", v.Image) - populate(objectMap, "managedDisk", v.ManagedDisk) - populate(objectMap, "vhdContainers", v.VhdContainers) - populate(objectMap, "writeAcceleratorEnabled", v.WriteAcceleratorEnabled) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateOSProfile. -func (v VirtualMachineScaleSetUpdateOSProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "customData", v.CustomData) - populate(objectMap, "linuxConfiguration", v.LinuxConfiguration) - populate(objectMap, "secrets", v.Secrets) - populate(objectMap, "windowsConfiguration", v.WindowsConfiguration) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateStorageProfile. -func (v VirtualMachineScaleSetUpdateStorageProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDisks", v.DataDisks) - populate(objectMap, "imageReference", v.ImageReference) - populate(objectMap, "osDisk", v.OSDisk) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVM. -func (v VirtualMachineScaleSetVM) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", v.ID) - populate(objectMap, "identity", v.Identity) - populate(objectMap, "instanceId", v.InstanceID) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "plan", v.Plan) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "resources", v.Resources) - populate(objectMap, "sku", v.SKU) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "type", v.Type) - populate(objectMap, "zones", v.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMExtensionUpdate. -func (v VirtualMachineScaleSetVMExtensionUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", v.ID) - populate(objectMap, "name", v.Name) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "type", v.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMInstanceIDs. -func (v VirtualMachineScaleSetVMInstanceIDs) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "instanceIds", v.InstanceIDs) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMInstanceRequiredIDs. -func (v VirtualMachineScaleSetVMInstanceRequiredIDs) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "instanceIds", v.InstanceIDs) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMInstanceView. -func (v VirtualMachineScaleSetVMInstanceView) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "assignedHost", v.AssignedHost) - populate(objectMap, "bootDiagnostics", v.BootDiagnostics) - populate(objectMap, "disks", v.Disks) - populate(objectMap, "extensions", v.Extensions) - populate(objectMap, "maintenanceRedeployStatus", v.MaintenanceRedeployStatus) - populate(objectMap, "placementGroupId", v.PlacementGroupID) - populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain) - populate(objectMap, "platformUpdateDomain", v.PlatformUpdateDomain) - populate(objectMap, "rdpThumbPrint", v.RdpThumbPrint) - populate(objectMap, "statuses", v.Statuses) - populate(objectMap, "vmAgent", v.VMAgent) - populate(objectMap, "vmHealth", v.VMHealth) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMNetworkProfileConfiguration. -func (v VirtualMachineScaleSetVMNetworkProfileConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineSoftwarePatchProperties. -func (v *VirtualMachineSoftwarePatchProperties) UnmarshalJSON(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 "activityId": - err = unpopulate(val, "ActivityID", &v.ActivityID) - delete(rawMsg, key) - case "assessmentState": - err = unpopulate(val, "AssessmentState", &v.AssessmentState) - delete(rawMsg, key) - case "classifications": - err = unpopulate(val, "Classifications", &v.Classifications) - delete(rawMsg, key) - case "kbId": - err = unpopulate(val, "KbID", &v.KbID) - delete(rawMsg, key) - case "lastModifiedDateTime": - err = unpopulateTimeRFC3339(val, "LastModifiedDateTime", &v.LastModifiedDateTime) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &v.Name) - delete(rawMsg, key) - case "patchId": - err = unpopulate(val, "PatchID", &v.PatchID) - delete(rawMsg, key) - case "publishedDate": - err = unpopulateTimeRFC3339(val, "PublishedDate", &v.PublishedDate) - delete(rawMsg, key) - case "rebootBehavior": - err = unpopulate(val, "RebootBehavior", &v.RebootBehavior) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &v.Version) - 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 VirtualMachineUpdate. -func (v VirtualMachineUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", v.Identity) - populate(objectMap, "plan", v.Plan) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "zones", v.Zones) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WinRMConfiguration. -func (w WinRMConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "listeners", w.Listeners) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WindowsConfiguration. -func (w WindowsConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalUnattendContent", w.AdditionalUnattendContent) - populate(objectMap, "enableAutomaticUpdates", w.EnableAutomaticUpdates) - populate(objectMap, "patchSettings", w.PatchSettings) - populate(objectMap, "provisionVMAgent", w.ProvisionVMAgent) - populate(objectMap, "timeZone", w.TimeZone) - populate(objectMap, "winRM", w.WinRM) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WindowsParameters. -func (w WindowsParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "classificationsToInclude", w.ClassificationsToInclude) - populate(objectMap, "excludeKbsRequiringReboot", w.ExcludeKbsRequiringReboot) - populate(objectMap, "kbNumbersToExclude", w.KbNumbersToExclude) - populate(objectMap, "kbNumbersToInclude", w.KbNumbersToInclude) - populateTimeRFC3339(objectMap, "maxPatchPublishDate", w.MaxPatchPublishDate) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type WindowsParameters. -func (w *WindowsParameters) UnmarshalJSON(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 "classificationsToInclude": - err = unpopulate(val, "ClassificationsToInclude", &w.ClassificationsToInclude) - delete(rawMsg, key) - case "excludeKbsRequiringReboot": - err = unpopulate(val, "ExcludeKbsRequiringReboot", &w.ExcludeKbsRequiringReboot) - delete(rawMsg, key) - case "kbNumbersToExclude": - err = unpopulate(val, "KbNumbersToExclude", &w.KbNumbersToExclude) - delete(rawMsg, key) - case "kbNumbersToInclude": - err = unpopulate(val, "KbNumbersToInclude", &w.KbNumbersToInclude) - delete(rawMsg, key) - case "maxPatchPublishDate": - err = unpopulateTimeRFC3339(val, "MaxPatchPublishDate", &w.MaxPatchPublishDate) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", w, err) - } - } - return nil -} - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, fn string, v interface{}) error { - if data == nil { - return nil - } - if err := json.Unmarshal(data, v); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - return nil -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_time_rfc3339.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_time_rfc3339.go deleted file mode 100644 index 06819587..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_time_rfc3339.go +++ /dev/null @@ -1,86 +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 armcompute - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "regexp" - "strings" - "time" -) - -const ( - utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` - utcLayout = "2006-01-02T15:04:05.999999999" - rfc3339JSON = `"` + time.RFC3339Nano + `"` -) - -// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) - -type timeRFC3339 time.Time - -func (t timeRFC3339) MarshalJSON() (json []byte, err error) { - tt := time.Time(t) - return tt.MarshalJSON() -} - -func (t timeRFC3339) MarshalText() (text []byte, err error) { - tt := time.Time(t) - return tt.MarshalText() -} - -func (t *timeRFC3339) UnmarshalJSON(data []byte) error { - layout := utcLayoutJSON - if tzOffsetRegex.Match(data) { - layout = rfc3339JSON - } - return t.Parse(layout, string(data)) -} - -func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { - layout := utcLayout - if tzOffsetRegex.Match(data) { - layout = time.RFC3339Nano - } - return t.Parse(layout, string(data)) -} - -func (t *timeRFC3339) Parse(layout, value string) error { - p, err := time.Parse(layout, strings.ToUpper(value)) - *t = timeRFC3339(p) - return err -} - -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*timeRFC3339)(t) -} - -func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || strings.EqualFold(string(data), "null") { - return nil - } - var aux timeRFC3339 - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md deleted file mode 100644 index c5c7249a..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md +++ /dev/null @@ -1,89 +0,0 @@ -# Release History - -## 1.3.0 (2022-09-07) -### Features Added - -- New const `NotebookParameterTypeBool` -- New const `NotebookReferenceTypeNotebookReference` -- New const `NotebookParameterTypeString` -- New const `SparkJobReferenceTypeSparkJobDefinitionReference` -- New const `NotebookParameterTypeInt` -- New const `BigDataPoolReferenceTypeBigDataPoolReference` -- New const `NotebookParameterTypeFloat` -- New type alias `NotebookParameterType` -- New type alias `SparkJobReferenceType` -- New type alias `NotebookReferenceType` -- New type alias `BigDataPoolReferenceType` -- New function `*AzureSynapseArtifactsLinkedService.GetLinkedService() *LinkedService` -- New function `PossibleBigDataPoolReferenceTypeValues() []BigDataPoolReferenceType` -- New function `PossibleNotebookParameterTypeValues() []NotebookParameterType` -- New function `*SynapseSparkJobDefinitionActivity.GetExecutionActivity() *ExecutionActivity` -- New function `*GoogleSheetsLinkedService.GetLinkedService() *LinkedService` -- New function `*SynapseNotebookActivity.GetExecutionActivity() *ExecutionActivity` -- New function `PossibleNotebookReferenceTypeValues() []NotebookReferenceType` -- New function `PossibleSparkJobReferenceTypeValues() []SparkJobReferenceType` -- New function `*SynapseNotebookActivity.GetActivity() *Activity` -- New function `*SynapseSparkJobDefinitionActivity.GetActivity() *Activity` -- New struct `AzureSynapseArtifactsLinkedService` -- New struct `AzureSynapseArtifactsLinkedServiceTypeProperties` -- New struct `BigDataPoolParametrizationReference` -- New struct `GoogleSheetsLinkedService` -- New struct `GoogleSheetsLinkedServiceTypeProperties` -- 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 - -- New field `ClientSecret` in struct `RestServiceLinkedServiceTypeProperties` -- New field `Resource` in struct `RestServiceLinkedServiceTypeProperties` -- New field `Scope` in struct `RestServiceLinkedServiceTypeProperties` -- New field `TokenEndpoint` in struct `RestServiceLinkedServiceTypeProperties` -- New field `ClientID` in struct `RestServiceLinkedServiceTypeProperties` - - -## 1.1.0 (2022-05-30) -### Features Added - -- New function `GlobalParameterResource.MarshalJSON() ([]byte, error)` -- New struct `GlobalParameterListResponse` -- New struct `GlobalParameterResource` -- New struct `GlobalParametersClientCreateOrUpdateOptions` -- New struct `GlobalParametersClientCreateOrUpdateResponse` -- New struct `GlobalParametersClientDeleteOptions` -- New struct `GlobalParametersClientDeleteResponse` -- New struct `GlobalParametersClientGetOptions` -- New struct `GlobalParametersClientGetResponse` -- New struct `GlobalParametersClientListByFactoryOptions` -- New struct `GlobalParametersClientListByFactoryResponse` - - -## 1.0.0 (2022-05-17) - -The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes. - -To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/azsdk/go/mgmt/migration). - -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt).## 1.2.0 (2022-06-15) -### Features Added - -- New field `ClientSecret` in struct `RestServiceLinkedServiceTypeProperties` -- New field `Resource` in struct `RestServiceLinkedServiceTypeProperties` -- New field `Scope` in struct `RestServiceLinkedServiceTypeProperties` -- New field `TokenEndpoint` in struct `RestServiceLinkedServiceTypeProperties` -- New field `ClientID` in struct `RestServiceLinkedServiceTypeProperties` - - -## 1.0.0 (2022-05-17) - -The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes. - -To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/azsdk/go/mgmt/migration). - -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/autorest.md deleted file mode 100644 index b3b98ff7..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/autorest.md +++ /dev/null @@ -1,13 +0,0 @@ -### AutoRest Configuration - -> see https://aka.ms/autorest - -``` yaml -azure-arm: true -require: -- https://github.com/Azure/azure-rest-api-specs/blob/9e8ee53d513a1f7e698bba19dcaf1d376da00b95/specification/datafactory/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/9e8ee53d513a1f7e698bba19dcaf1d376da00b95/specification/datafactory/resource-manager/readme.go.md -license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.3.0 - -``` \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go deleted file mode 100644 index aeac0835..00000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go +++ /dev/null @@ -1,87 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "regexp" - "strings" - "time" -) - -const ( - utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` - utcLayout = "2006-01-02T15:04:05.999999999" - rfc3339JSON = `"` + time.RFC3339Nano + `"` -) - -// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) - -type timeRFC3339 time.Time - -func (t timeRFC3339) MarshalJSON() (json []byte, err error) { - tt := time.Time(t) - return tt.MarshalJSON() -} - -func (t timeRFC3339) MarshalText() (text []byte, err error) { - tt := time.Time(t) - return tt.MarshalText() -} - -func (t *timeRFC3339) UnmarshalJSON(data []byte) error { - layout := utcLayoutJSON - if tzOffsetRegex.Match(data) { - layout = rfc3339JSON - } - return t.Parse(layout, string(data)) -} - -func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { - layout := utcLayout - if tzOffsetRegex.Match(data) { - layout = time.RFC3339Nano - } - return t.Parse(layout, string(data)) -} - -func (t *timeRFC3339) Parse(layout, value string) error { - p, err := time.Parse(layout, strings.ToUpper(value)) - *t = timeRFC3339(p) - return err -} - -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*timeRFC3339)(t) -} - -func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || strings.EqualFold(string(data), "null") { - return nil - } - var aux timeRFC3339 - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/CHANGELOG.md new file mode 100644 index 00000000..a19ee548 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/CHANGELOG.md @@ -0,0 +1,550 @@ +# Release History + +## 7.0.0 (2024-04-04) +### Breaking Changes + +- Function `*CredentialOperationsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, ManagedIdentityCredentialResource, *CredentialOperationsClientCreateOrUpdateOptions)` to `(context.Context, string, string, string, CredentialResource, *CredentialOperationsClientCreateOrUpdateOptions)` +- Type of `AzureFunctionActivityTypeProperties.Headers` has been changed from `map[string]*string` to `map[string]any` +- Type of `CredentialListResponse.Value` has been changed from `[]*ManagedIdentityCredentialResource` to `[]*CredentialResource` +- Type of `WebActivityTypeProperties.Headers` has been changed from `map[string]*string` to `map[string]any` +- Type of `WebHookActivityTypeProperties.Headers` has been changed from `map[string]*string` to `map[string]any` +- Struct `ManagedIdentityCredentialResource` has been removed +- Struct `ManagedIdentityTypeProperties` has been removed +- Field `ManagedIdentityCredentialResource` of struct `CredentialOperationsClientCreateOrUpdateResponse` has been removed +- Field `ManagedIdentityCredentialResource` of struct `CredentialOperationsClientGetResponse` has been removed +- Field `TypeProperties` of struct `ManagedIdentityCredential` has been removed + +### Features Added + +- New struct `CredentialResource` +- New anonymous field `CredentialResource` in struct `CredentialOperationsClientCreateOrUpdateResponse` +- New anonymous field `CredentialResource` in struct `CredentialOperationsClientGetResponse` + + +## 6.1.0 (2024-03-22) +### Features Added + +- New enum type `ExpressionV2Type` with values `ExpressionV2TypeBinary`, `ExpressionV2TypeConstant`, `ExpressionV2TypeField`, `ExpressionV2TypeUnary` +- New enum type `GoogleBigQueryV2AuthenticationType` with values `GoogleBigQueryV2AuthenticationTypeServiceAuthentication`, `GoogleBigQueryV2AuthenticationTypeUserAuthentication` +- New enum type `ServiceNowV2AuthenticationType` with values `ServiceNowV2AuthenticationTypeBasic`, `ServiceNowV2AuthenticationTypeOAuth2` +- New function `*GoogleBigQueryV2LinkedService.GetLinkedService() *LinkedService` +- New function `*GoogleBigQueryV2ObjectDataset.GetDataset() *Dataset` +- New function `*GoogleBigQueryV2Source.GetCopySource() *CopySource` +- New function `*GoogleBigQueryV2Source.GetTabularSource() *TabularSource` +- New function `*PostgreSQLV2LinkedService.GetLinkedService() *LinkedService` +- New function `*PostgreSQLV2Source.GetCopySource() *CopySource` +- New function `*PostgreSQLV2Source.GetTabularSource() *TabularSource` +- New function `*PostgreSQLV2TableDataset.GetDataset() *Dataset` +- New function `*ServiceNowV2LinkedService.GetLinkedService() *LinkedService` +- New function `*ServiceNowV2ObjectDataset.GetDataset() *Dataset` +- New function `*ServiceNowV2Source.GetCopySource() *CopySource` +- New function `*ServiceNowV2Source.GetTabularSource() *TabularSource` +- New struct `ExpressionV2` +- New struct `GoogleBigQueryV2DatasetTypeProperties` +- New struct `GoogleBigQueryV2LinkedService` +- New struct `GoogleBigQueryV2LinkedServiceTypeProperties` +- New struct `GoogleBigQueryV2ObjectDataset` +- New struct `GoogleBigQueryV2Source` +- New struct `PostgreSQLV2LinkedService` +- New struct `PostgreSQLV2LinkedServiceTypeProperties` +- New struct `PostgreSQLV2Source` +- New struct `PostgreSQLV2TableDataset` +- New struct `PostgreSQLV2TableDatasetTypeProperties` +- New struct `ServiceNowV2LinkedService` +- New struct `ServiceNowV2LinkedServiceTypeProperties` +- New struct `ServiceNowV2ObjectDataset` +- New struct `ServiceNowV2Source` + + +## 6.0.0 (2024-02-23) +### Breaking Changes + +- Type of `AzureFunctionActivityTypeProperties.Headers` has been changed from `any` to `map[string]*string` +- Type of `WebActivityTypeProperties.Headers` has been changed from `any` to `map[string]*string` +- Type of `WebHookActivityTypeProperties.Headers` has been changed from `any` to `map[string]*string` +- Field `ReadBehavior` of struct `SalesforceServiceCloudV2Source` has been removed +- Field `ReadBehavior` of struct `SalesforceV2Source` has been removed + +### Features Added + +- New enum type `SnowflakeAuthenticationType` with values `SnowflakeAuthenticationTypeAADServicePrincipal`, `SnowflakeAuthenticationTypeBasic`, `SnowflakeAuthenticationTypeKeyPair` +- New function `*SnowflakeV2Dataset.GetDataset() *Dataset` +- New function `*SnowflakeV2LinkedService.GetLinkedService() *LinkedService` +- New function `*SnowflakeV2Sink.GetCopySink() *CopySink` +- New function `*SnowflakeV2Source.GetCopySource() *CopySource` +- New struct `SnowflakeLinkedV2ServiceTypeProperties` +- New struct `SnowflakeV2Dataset` +- New struct `SnowflakeV2LinkedService` +- New struct `SnowflakeV2Sink` +- New struct `SnowflakeV2Source` +- New field `AuthenticationType` in struct `SalesforceServiceCloudV2LinkedServiceTypeProperties` +- New field `IncludeDeletedObjects` in struct `SalesforceServiceCloudV2Source` +- New field `AuthenticationType` in struct `SalesforceV2LinkedServiceTypeProperties` +- New field `IncludeDeletedObjects` in struct `SalesforceV2Source` + + +## 5.0.0 (2024-01-26) +### Breaking Changes + +- Field `Pwd` of struct `MariaDBLinkedServiceTypeProperties` has been removed + +### Features Added + +- New enum type `SalesforceV2SinkWriteBehavior` with values `SalesforceV2SinkWriteBehaviorInsert`, `SalesforceV2SinkWriteBehaviorUpsert` +- New function `*SalesforceServiceCloudV2LinkedService.GetLinkedService() *LinkedService` +- New function `*SalesforceServiceCloudV2ObjectDataset.GetDataset() *Dataset` +- New function `*SalesforceServiceCloudV2Sink.GetCopySink() *CopySink` +- New function `*SalesforceServiceCloudV2Source.GetCopySource() *CopySource` +- New function `*SalesforceV2LinkedService.GetLinkedService() *LinkedService` +- New function `*SalesforceV2ObjectDataset.GetDataset() *Dataset` +- New function `*SalesforceV2Sink.GetCopySink() *CopySink` +- New function `*SalesforceV2Source.GetCopySource() *CopySource` +- New function `*SalesforceV2Source.GetTabularSource() *TabularSource` +- New function `*WarehouseLinkedService.GetLinkedService() *LinkedService` +- New function `*WarehouseSink.GetCopySink() *CopySink` +- New function `*WarehouseSource.GetCopySource() *CopySource` +- New function `*WarehouseSource.GetTabularSource() *TabularSource` +- New function `*WarehouseTableDataset.GetDataset() *Dataset` +- New struct `SalesforceServiceCloudV2LinkedService` +- New struct `SalesforceServiceCloudV2LinkedServiceTypeProperties` +- New struct `SalesforceServiceCloudV2ObjectDataset` +- New struct `SalesforceServiceCloudV2ObjectDatasetTypeProperties` +- New struct `SalesforceServiceCloudV2Sink` +- New struct `SalesforceServiceCloudV2Source` +- New struct `SalesforceV2LinkedService` +- New struct `SalesforceV2LinkedServiceTypeProperties` +- New struct `SalesforceV2ObjectDataset` +- New struct `SalesforceV2ObjectDatasetTypeProperties` +- New struct `SalesforceV2Sink` +- New struct `SalesforceV2Source` +- New struct `WarehouseLinkedService` +- New struct `WarehouseLinkedServiceTypeProperties` +- New struct `WarehouseSink` +- New struct `WarehouseSource` +- New struct `WarehouseTableDataset` +- New struct `WarehouseTableDatasetTypeProperties` +- New field `Metadata` in struct `AzureBlobFSWriteSettings` +- New field `Metadata` in struct `AzureBlobStorageWriteSettings` +- New field `Metadata` in struct `AzureDataLakeStoreWriteSettings` +- New field `Metadata` in struct `AzureFileStorageWriteSettings` +- New field `Metadata` in struct `FileServerWriteSettings` +- New field `Metadata` in struct `LakeHouseWriteSettings` +- New field `Database`, `DriverVersion`, `Password`, `Port`, `Server`, `Username` in struct `MariaDBLinkedServiceTypeProperties` +- New field `Database`, `DriverVersion`, `Port`, `SSLMode`, `Server`, `UseSystemTrustStore`, `Username` in struct `MySQLLinkedServiceTypeProperties` +- New field `Metadata` in struct `SftpWriteSettings` +- New field `Metadata` in struct `StoreWriteSettings` +- New field `HTTPRequestTimeout`, `TurnOffAsync` in struct `WebActivityTypeProperties` + + +## 4.0.0 (2023-12-22) +### Breaking Changes + +- Type of `AmazonMWSLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonRdsForLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonRdsForSQLServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonRedshiftLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonS3CompatibleLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonS3LinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AsanaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureBatchLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureBlobFSLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDataLakeAnalyticsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDataLakeStoreLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDatabricksDetltaLakeLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDatabricksLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureFileStorageLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureFunctionLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMLServiceLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMariaDBLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMySQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzurePostgreSQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSQLDWLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSQLDatabaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSQLMILinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSearchLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CassandraLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CommonDataServiceForAppsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ConcurLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CosmosDbLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CouchbaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DataworldLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `Db2LinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DrillLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DynamicsAXLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DynamicsCrmLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DynamicsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `EloquaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `FileServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `FtpServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleAdWordsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleBigQueryLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleCloudStorageLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleSheetsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GreenplumLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HBaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HDInsightHiveActivityTypeProperties.Variables` has been changed from `[]any` to `map[string]any` +- Type of `HDInsightLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HDInsightOnDemandLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HTTPLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HdfsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HiveLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HubspotLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ImpalaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `InformixLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `JiraLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MagentoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MariaDBLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MarketoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MicrosoftAccessLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MongoDbLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MySQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `NetezzaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ODataLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OdbcLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `Office365LinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OracleCloudStorageLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OracleLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OracleServiceCloudLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PaypalLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PhoenixLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PostgreSQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PrestoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `QuickBooksLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `QuickbaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ResponsysLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `RestResourceDatasetTypeProperties.AdditionalHeaders` has been changed from `any` to `map[string]any` +- Type of `RestResourceDatasetTypeProperties.PaginationRules` has been changed from `any` to `map[string]any` +- Type of `RestServiceLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SQLServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SalesforceLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SalesforceMarketingCloudLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SalesforceServiceCloudLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapBWLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapCloudForCustomerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapHanaLinkedServiceProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapOdpLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapOpenHubLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapTableLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ServiceNowLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SftpServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SharePointOnlineListLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ShopifyLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SmartsheetLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SnowflakeLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SparkLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SquareLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SybaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `TeamDeskLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `TeradataLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `VerticaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `XeroLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ZendeskLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ZohoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Enum `CosmosDbServicePrincipalCredentialType` has been removed +- Enum `SalesforceSourceReadBehavior` has been removed +- Field `EnablePartitionDiscovery`, `PartitionRootPath` of struct `HTTPReadSettings` has been removed + +### Features Added + +- Support for test fakes and OpenTelemetry trace spans. +- Type of `AmazonS3CompatibleReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AmazonS3ReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureBlobFSReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureBlobStorageLinkedServiceTypeProperties.AccountKind` has been changed from `*string` to `any` +- Type of `AzureBlobStorageLinkedServiceTypeProperties.ServiceEndpoint` has been changed from `*string` to `any` +- Type of `AzureBlobStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureDataLakeStoreReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureFileStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `CosmosDbLinkedServiceTypeProperties.ServicePrincipalCredentialType` has been changed from `*CosmosDbServicePrincipalCredentialType` to `any` +- Type of `FileServerReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `FtpReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `FtpReadSettings.UseBinaryTransfer` has been changed from `*bool` to `any` +- Type of `GoogleCloudStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `HdfsReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `OracleCloudStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `SalesforceServiceCloudSource.ReadBehavior` has been changed from `*SalesforceSourceReadBehavior` to `any` +- Type of `SalesforceSource.ReadBehavior` has been changed from `*SalesforceSourceReadBehavior` to `any` +- Type of `SapEccLinkedServiceTypeProperties.URL` has been changed from `*string` to `any` +- Type of `SapEccLinkedServiceTypeProperties.Username` has been changed from `*string` to `any` +- Type of `SftpReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `SynapseNotebookActivityTypeProperties.NumExecutors` has been changed from `*int32` to `any` +- New enum type `ActivityOnInactiveMarkAs` with values `ActivityOnInactiveMarkAsFailed`, `ActivityOnInactiveMarkAsSkipped`, `ActivityOnInactiveMarkAsSucceeded` +- New enum type `ActivityState` with values `ActivityStateActive`, `ActivityStateInactive` +- New enum type `ConnectionType` with values `ConnectionTypeLinkedservicetype` +- New enum type `FrequencyType` with values `FrequencyTypeHour`, `FrequencyTypeMinute`, `FrequencyTypeSecond` +- New enum type `MappingType` with values `MappingTypeAggregate`, `MappingTypeDerived`, `MappingTypeDirect` +- New function `NewChangeDataCaptureClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ChangeDataCaptureClient, error)` +- New function `*ChangeDataCaptureClient.CreateOrUpdate(context.Context, string, string, string, ChangeDataCaptureResource, *ChangeDataCaptureClientCreateOrUpdateOptions) (ChangeDataCaptureClientCreateOrUpdateResponse, error)` +- New function `*ChangeDataCaptureClient.Delete(context.Context, string, string, string, *ChangeDataCaptureClientDeleteOptions) (ChangeDataCaptureClientDeleteResponse, error)` +- New function `*ChangeDataCaptureClient.Get(context.Context, string, string, string, *ChangeDataCaptureClientGetOptions) (ChangeDataCaptureClientGetResponse, error)` +- New function `*ChangeDataCaptureClient.NewListByFactoryPager(string, string, *ChangeDataCaptureClientListByFactoryOptions) *runtime.Pager[ChangeDataCaptureClientListByFactoryResponse]` +- New function `*ChangeDataCaptureClient.Start(context.Context, string, string, string, *ChangeDataCaptureClientStartOptions) (ChangeDataCaptureClientStartResponse, error)` +- New function `*ChangeDataCaptureClient.Status(context.Context, string, string, string, *ChangeDataCaptureClientStatusOptions) (ChangeDataCaptureClientStatusResponse, error)` +- New function `*ChangeDataCaptureClient.Stop(context.Context, string, string, string, *ChangeDataCaptureClientStopOptions) (ChangeDataCaptureClientStopResponse, error)` +- New function `*ClientFactory.NewChangeDataCaptureClient() *ChangeDataCaptureClient` +- New function `*LakeHouseLinkedService.GetLinkedService() *LinkedService` +- New function `*LakeHouseLocation.GetDatasetLocation() *DatasetLocation` +- New function `*LakeHouseReadSettings.GetStoreReadSettings() *StoreReadSettings` +- New function `*LakeHouseTableDataset.GetDataset() *Dataset` +- New function `*LakeHouseTableSink.GetCopySink() *CopySink` +- New function `*LakeHouseTableSource.GetCopySource() *CopySource` +- New function `*LakeHouseWriteSettings.GetStoreWriteSettings() *StoreWriteSettings` +- New function `*ParquetReadSettings.GetFormatReadSettings() *FormatReadSettings` +- New struct `ChangeDataCapture` +- New struct `ChangeDataCaptureFolder` +- New struct `ChangeDataCaptureListResponse` +- New struct `ChangeDataCaptureResource` +- New struct `DataMapperMapping` +- New struct `IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem` +- New struct `LakeHouseLinkedService` +- New struct `LakeHouseLinkedServiceTypeProperties` +- New struct `LakeHouseLocation` +- New struct `LakeHouseReadSettings` +- New struct `LakeHouseTableDataset` +- New struct `LakeHouseTableDatasetTypeProperties` +- New struct `LakeHouseTableSink` +- New struct `LakeHouseTableSource` +- New struct `LakeHouseWriteSettings` +- New struct `MapperAttributeMapping` +- New struct `MapperAttributeMappings` +- New struct `MapperAttributeReference` +- New struct `MapperConnection` +- New struct `MapperConnectionReference` +- New struct `MapperDslConnectorProperties` +- New struct `MapperPolicy` +- New struct `MapperPolicyRecurrence` +- New struct `MapperSourceConnectionsInfo` +- New struct `MapperTable` +- New struct `MapperTableProperties` +- New struct `MapperTableSchema` +- New struct `MapperTargetConnectionsInfo` +- New struct `ParquetReadSettings` +- New struct `SecureInputOutputPolicy` +- New field `OnInactiveMarkAs`, `State` in struct `Activity` +- New field `IsolationLevel` in struct `AmazonRdsForSQLServerSource` +- New field `OnInactiveMarkAs`, `State` in struct `AppendVariableActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureDataExplorerCommandActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureFunctionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureMLBatchExecutionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureMLExecutePipelineActivity` +- New field `Authentication` in struct `AzureMLServiceLinkedServiceTypeProperties` +- New field `OnInactiveMarkAs`, `State` in struct `AzureMLUpdateResourceActivity` +- New field `IsolationLevel` in struct `AzureSQLSource` +- New field `OnInactiveMarkAs`, `State` in struct `ControlActivity` +- New field `OnInactiveMarkAs`, `State` in struct `CopyActivity` +- New field `OnInactiveMarkAs`, `State` in struct `CustomActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DataLakeAnalyticsUSQLActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DatabricksNotebookActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DatabricksSparkJarActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DatabricksSparkPythonActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DeleteActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecuteDataFlowActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecutePipelineActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecuteSSISPackageActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecuteWranglingDataflowActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecutionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `FailActivity` +- New field `OnInactiveMarkAs`, `State` in struct `FilterActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ForEachActivity` +- New field `OnInactiveMarkAs`, `State` in struct `GetMetadataActivity` +- New field `GoogleAdsAPIVersion`, `LoginCustomerID`, `PrivateKey`, `SupportLegacyDataTypes` in struct `GoogleAdWordsLinkedServiceTypeProperties` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightHiveActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightMapReduceActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightPigActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightSparkActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightStreamingActivity` +- New field `AdditionalColumns` in struct `HTTPReadSettings` +- New field `OnInactiveMarkAs`, `State` in struct `IfConditionActivity` +- New field `CustomProperties` in struct `IntegrationRuntimeDataFlowProperties` +- New field `OnInactiveMarkAs`, `State` in struct `LookupActivity` +- New field `DriverVersion` in struct `MongoDbAtlasLinkedServiceTypeProperties` +- New field `FormatSettings` in struct `ParquetSource` +- New field `NumberOfExternalNodes`, `NumberOfPipelineNodes` in struct `PipelineExternalComputeScaleProperties` +- New field `IsolationLevel` in struct `SQLDWSource` +- New field `IsolationLevel` in struct `SQLMISource` +- New field `IsolationLevel` in struct `SQLServerSource` +- New field `OnInactiveMarkAs`, `State` in struct `SQLServerStoredProcedureActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ScriptActivity` +- New field `SelfContainedInteractiveAuthoringEnabled` in struct `SelfHostedIntegrationRuntimeStatusTypeProperties` +- New field `SelfContainedInteractiveAuthoringEnabled` in struct `SelfHostedIntegrationRuntimeTypeProperties` +- New field `OnInactiveMarkAs`, `Policy`, `State` in struct `SetVariableActivity` +- New field `SetSystemVariable` in struct `SetVariableActivityTypeProperties` +- New field `OnInactiveMarkAs`, `State` in struct `SwitchActivity` +- New field `OnInactiveMarkAs`, `State` in struct `SynapseNotebookActivity` +- New field `ConfigurationType`, `SparkConfig`, `TargetSparkConfiguration` in struct `SynapseNotebookActivityTypeProperties` +- New field `OnInactiveMarkAs`, `State` in struct `SynapseSparkJobDefinitionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `UntilActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ValidationActivity` +- New field `OnInactiveMarkAs`, `State` in struct `WaitActivity` +- New field `OnInactiveMarkAs`, `State` in struct `WebActivity` +- New field `OnInactiveMarkAs`, `Policy`, `State` in struct `WebHookActivity` + + +## 3.2.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + +## 3.2.0 (2023-03-24) +### Features Added + +- New struct `ClientFactory` which is a client factory used to create any client in this module +- New enum type `AzureStorageAuthenticationType` with values `AzureStorageAuthenticationTypeAccountKey`, `AzureStorageAuthenticationTypeAnonymous`, `AzureStorageAuthenticationTypeMsi`, `AzureStorageAuthenticationTypeSasURI`, `AzureStorageAuthenticationTypeServicePrincipal` +- New struct `CopyComputeScaleProperties` +- New struct `PipelineExternalComputeScaleProperties` +- New field `SasToken` in struct `AzureBlobFSLinkedServiceTypeProperties` +- New field `SasURI` in struct `AzureBlobFSLinkedServiceTypeProperties` +- New field `AuthenticationType` in struct `AzureBlobStorageLinkedServiceTypeProperties` +- New field `ContainerURI` in struct `AzureBlobStorageLinkedServiceTypeProperties` +- New field `CopyComputeScaleProperties` in struct `IntegrationRuntimeComputeProperties` +- New field `PipelineExternalComputeScaleProperties` in struct `IntegrationRuntimeComputeProperties` + + +## 3.1.0 (2023-02-24) +### Features Added + +- Type of `SynapseSparkJobActivityTypeProperties.NumExecutors` has been changed from `*int32` to `any` +- New type alias `ConfigurationType` with values `ConfigurationTypeArtifact`, `ConfigurationTypeCustomized`, `ConfigurationTypeDefault` +- New type alias `SparkConfigurationReferenceType` with values `SparkConfigurationReferenceTypeSparkConfigurationReference` +- New function `*Credential.GetCredential() *Credential` +- New function `NewCredentialOperationsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*CredentialOperationsClient, error)` +- New function `*CredentialOperationsClient.CreateOrUpdate(context.Context, string, string, string, ManagedIdentityCredentialResource, *CredentialOperationsClientCreateOrUpdateOptions) (CredentialOperationsClientCreateOrUpdateResponse, error)` +- New function `*CredentialOperationsClient.Delete(context.Context, string, string, string, *CredentialOperationsClientDeleteOptions) (CredentialOperationsClientDeleteResponse, error)` +- New function `*CredentialOperationsClient.Get(context.Context, string, string, string, *CredentialOperationsClientGetOptions) (CredentialOperationsClientGetResponse, error)` +- New function `*CredentialOperationsClient.NewListByFactoryPager(string, string, *CredentialOperationsClientListByFactoryOptions) *runtime.Pager[CredentialOperationsClientListByFactoryResponse]` +- New function `*ManagedIdentityCredential.GetCredential() *Credential` +- New function `*ServicePrincipalCredential.GetCredential() *Credential` +- New struct `CredentialListResponse` +- New struct `CredentialOperationsClient` +- New struct `CredentialOperationsClientListByFactoryResponse` +- New struct `ManagedIdentityCredential` +- New struct `ManagedIdentityCredentialResource` +- New struct `ManagedIdentityTypeProperties` +- New struct `ServicePrincipalCredential` +- New struct `ServicePrincipalCredentialTypeProperties` +- New struct `SparkConfigurationParametrizationReference` +- New field `ConfigurationType` in struct `SynapseSparkJobActivityTypeProperties` +- New field `ScanFolder` in struct `SynapseSparkJobActivityTypeProperties` +- New field `SparkConfig` in struct `SynapseSparkJobActivityTypeProperties` +- New field `TargetSparkConfiguration` in struct `SynapseSparkJobActivityTypeProperties` + + +## 3.0.0 (2022-10-27) +### Breaking Changes + +- Type of `SynapseSparkJobReference.ReferenceName` has been changed from `*string` to `interface{}` + +### Features Added + +- New field `WorkspaceResourceID` in struct `AzureSynapseArtifactsLinkedServiceTypeProperties` +- New field `DisablePublish` in struct `FactoryRepoConfiguration` +- New field `DisablePublish` in struct `FactoryGitHubConfiguration` +- New field `DisablePublish` in struct `FactoryVSTSConfiguration` +- New field `ScriptBlockExecutionTimeout` in struct `ScriptActivityTypeProperties` +- New field `PythonCodeReference` in struct `SynapseSparkJobActivityTypeProperties` +- New field `FilesV2` in struct `SynapseSparkJobActivityTypeProperties` + + +## 2.0.0 (2022-10-10) +### Breaking Changes + +- Type of `SQLMISource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLMISink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `AzureSQLSink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLServerSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLServerSink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `AzureSQLSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLSink.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `SQLSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` +- Type of `AmazonRdsForSQLServerSource.StoredProcedureParameters` has been changed from `map[string]*StoredProcedureParameter` to `interface{}` + + +## 1.3.0 (2022-09-07) +### Features Added + +- New const `NotebookParameterTypeBool` +- New const `NotebookReferenceTypeNotebookReference` +- New const `NotebookParameterTypeString` +- New const `SparkJobReferenceTypeSparkJobDefinitionReference` +- New const `NotebookParameterTypeInt` +- New const `BigDataPoolReferenceTypeBigDataPoolReference` +- New const `NotebookParameterTypeFloat` +- New type alias `NotebookParameterType` +- New type alias `SparkJobReferenceType` +- New type alias `NotebookReferenceType` +- New type alias `BigDataPoolReferenceType` +- New function `*AzureSynapseArtifactsLinkedService.GetLinkedService() *LinkedService` +- New function `PossibleBigDataPoolReferenceTypeValues() []BigDataPoolReferenceType` +- New function `PossibleNotebookParameterTypeValues() []NotebookParameterType` +- New function `*SynapseSparkJobDefinitionActivity.GetExecutionActivity() *ExecutionActivity` +- New function `*GoogleSheetsLinkedService.GetLinkedService() *LinkedService` +- New function `*SynapseNotebookActivity.GetExecutionActivity() *ExecutionActivity` +- New function `PossibleNotebookReferenceTypeValues() []NotebookReferenceType` +- New function `PossibleSparkJobReferenceTypeValues() []SparkJobReferenceType` +- New function `*SynapseNotebookActivity.GetActivity() *Activity` +- New function `*SynapseSparkJobDefinitionActivity.GetActivity() *Activity` +- New struct `AzureSynapseArtifactsLinkedService` +- New struct `AzureSynapseArtifactsLinkedServiceTypeProperties` +- New struct `BigDataPoolParametrizationReference` +- New struct `GoogleSheetsLinkedService` +- New struct `GoogleSheetsLinkedServiceTypeProperties` +- 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 + +- New field `ClientSecret` in struct `RestServiceLinkedServiceTypeProperties` +- New field `Resource` in struct `RestServiceLinkedServiceTypeProperties` +- New field `Scope` in struct `RestServiceLinkedServiceTypeProperties` +- New field `TokenEndpoint` in struct `RestServiceLinkedServiceTypeProperties` +- New field `ClientID` in struct `RestServiceLinkedServiceTypeProperties` + + +## 1.1.0 (2022-05-30) +### Features Added + +- New function `GlobalParameterResource.MarshalJSON() ([]byte, error)` +- New struct `GlobalParameterListResponse` +- New struct `GlobalParameterResource` +- New struct `GlobalParametersClientCreateOrUpdateOptions` +- New struct `GlobalParametersClientCreateOrUpdateResponse` +- New struct `GlobalParametersClientDeleteOptions` +- New struct `GlobalParametersClientDeleteResponse` +- New struct `GlobalParametersClientGetOptions` +- New struct `GlobalParametersClientGetResponse` +- New struct `GlobalParametersClientListByFactoryOptions` +- New struct `GlobalParametersClientListByFactoryResponse` + + +## 1.0.0 (2022-05-17) + +The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes. + +To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/azsdk/go/mgmt/migration). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt).## 1.2.0 (2022-06-15) +### Features Added + +- New field `ClientSecret` in struct `RestServiceLinkedServiceTypeProperties` +- New field `Resource` in struct `RestServiceLinkedServiceTypeProperties` +- New field `Scope` in struct `RestServiceLinkedServiceTypeProperties` +- New field `TokenEndpoint` in struct `RestServiceLinkedServiceTypeProperties` +- New field `ClientID` in struct `RestServiceLinkedServiceTypeProperties` + + +## 1.0.0 (2022-05-17) + +The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes. + +To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/azsdk/go/mgmt/migration). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/LICENSE.txt b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/LICENSE.txt new file mode 100644 index 00000000..dc0c2ffb --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/README.md similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/README.md rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/README.md index 8109055d..46dac46c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/README.md +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/README.md @@ -1,6 +1,6 @@ # Azure Data Factory Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7) The `armdatafactory` module provides operations for working with Azure Data Factory. @@ -11,7 +11,7 @@ The `armdatafactory` module provides operations for working with Azure Data Fact ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.18 or above +- Go 1.18 or above (You could download and install the latest version of Go from [here](https://go.dev/doc/install). It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this [doc](https://go.dev/doc/manage-install).) ## Install the package @@ -20,7 +20,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve Install the Azure Data Factory module: ```sh -go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7 ``` ## Authorization @@ -33,12 +33,12 @@ cred, err := azidentity.NewDefaultAzureCredential(nil) For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). -## Clients +## Client Factory -Azure Data Factory modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. +Azure Data Factory module consists of one or more clients. We provide a client factory which could be used to create any client in this module. ```go -client, err := armdatafactory.NewTriggersClient(, cred, nil) +clientFactory, err := armdatafactory.NewClientFactory(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). @@ -49,9 +49,25 @@ options := arm.ClientOptions { Cloud: cloud.AzureChina, }, } -client, err := armdatafactory.NewTriggersClient(, cred, &options) +clientFactory, err := armdatafactory.NewClientFactory(, cred, &options) ``` +## Clients + +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. + +```go +client := clientFactory.NewActivityRunsClient() +``` + +## Fakes + +The fake package contains types used for constructing in-memory fake servers used in unit tests. +This allows writing tests to cover various success/error conditions without the need for connecting to a live service. + +Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. + + ## Provide Feedback If you encounter bugs or have suggestions, please diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/activityruns_client.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/activityruns_client.go index 8ccfd801..980092fc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/activityruns_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,57 +23,56 @@ import ( // ActivityRunsClient contains the methods for the ActivityRuns group. // Don't use this type directly, use NewActivityRunsClient() instead. type ActivityRunsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewActivityRunsClient creates a new instance of ActivityRunsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewActivityRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ActivityRunsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &ActivityRunsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // QueryByPipelineRun - Query activity runs based on input filter conditions. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// runID - The pipeline run identifier. -// filterParameters - Parameters to filter the activity runs. -// options - ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - runID - The pipeline run identifier. +// - filterParameters - Parameters to filter the activity runs. +// - options - ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun +// method. func (client *ActivityRunsClient) QueryByPipelineRun(ctx context.Context, resourceGroupName string, factoryName string, runID string, filterParameters RunFilterParameters, options *ActivityRunsClientQueryByPipelineRunOptions) (ActivityRunsClientQueryByPipelineRunResponse, error) { + var err error + const operationName = "ActivityRunsClient.QueryByPipelineRun" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.queryByPipelineRunCreateRequest(ctx, resourceGroupName, factoryName, runID, filterParameters, options) if err != nil { return ActivityRunsClientQueryByPipelineRunResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ActivityRunsClientQueryByPipelineRunResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ActivityRunsClientQueryByPipelineRunResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ActivityRunsClientQueryByPipelineRunResponse{}, err } - return client.queryByPipelineRunHandleResponse(resp) + resp, err := client.queryByPipelineRunHandleResponse(httpResp) + return resp, err } // queryByPipelineRunCreateRequest creates the QueryByPipelineRun request. @@ -98,7 +94,7 @@ func (client *ActivityRunsClient) queryByPipelineRunCreateRequest(ctx context.Co return nil, errors.New("parameter runID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{runId}", url.PathEscape(runID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -106,7 +102,10 @@ func (client *ActivityRunsClient) queryByPipelineRunCreateRequest(ctx context.Co reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, filterParameters) + if err := runtime.MarshalAsJSON(req, filterParameters); err != nil { + return nil, err + } + return req, nil } // queryByPipelineRunHandleResponse handles the QueryByPipelineRun response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/assets.json b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/assets.json new file mode 100644 index 00000000..972ab7c2 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/datafactory/armdatafactory", + "Tag": "go/resourcemanager/datafactory/armdatafactory_993da29d54" +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/autorest.md new file mode 100644 index 00000000..e697eee5 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/autorest.md @@ -0,0 +1,13 @@ +### AutoRest Configuration + +> see https://aka.ms/autorest + +``` yaml +azure-arm: true +require: +- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/datafactory/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/datafactory/resource-manager/readme.go.md +license-header: MICROSOFT_MIT_NO_VERSION +module-version: 7.0.0 +tag: package-2018-06 +``` \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/build.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/build.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/build.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/build.go index 30633f24..5b58cdff 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/build.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/build.go @@ -2,6 +2,6 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // This file enables 'go generate' to regenerate this specific SDK -//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/datafactory/armdatafactory +//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -removeUnreferencedTypes resourcemanager/datafactory/armdatafactory package armdatafactory diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/changedatacapture_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/changedatacapture_client.go new file mode 100644 index 00000000..c918f4ac --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/changedatacapture_client.go @@ -0,0 +1,506 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armdatafactory + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ChangeDataCaptureClient contains the methods for the ChangeDataCapture group. +// Don't use this type directly, use NewChangeDataCaptureClient() instead. +type ChangeDataCaptureClient struct { + internal *arm.Client + subscriptionID string +} + +// NewChangeDataCaptureClient creates a new instance of ChangeDataCaptureClient with the specified values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewChangeDataCaptureClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ChangeDataCaptureClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ChangeDataCaptureClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a change data capture resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - changeDataCaptureName - The change data capture name. +// - changeDataCapture - Change data capture resource definition. +// - options - ChangeDataCaptureClientCreateOrUpdateOptions contains the optional parameters for the ChangeDataCaptureClient.CreateOrUpdate +// method. +func (client *ChangeDataCaptureClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, changeDataCapture ChangeDataCaptureResource, options *ChangeDataCaptureClientCreateOrUpdateOptions) (ChangeDataCaptureClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ChangeDataCaptureClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, changeDataCaptureName, changeDataCapture, options) + if err != nil { + return ChangeDataCaptureClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ChangeDataCaptureClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ChangeDataCaptureClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ChangeDataCaptureClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, changeDataCapture ChangeDataCaptureResource, options *ChangeDataCaptureClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if changeDataCaptureName == "" { + return nil, errors.New("parameter changeDataCaptureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{changeDataCaptureName}", url.PathEscape(changeDataCaptureName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + if err := runtime.MarshalAsJSON(req, changeDataCapture); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *ChangeDataCaptureClient) createOrUpdateHandleResponse(resp *http.Response) (ChangeDataCaptureClientCreateOrUpdateResponse, error) { + result := ChangeDataCaptureClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ChangeDataCaptureResource); err != nil { + return ChangeDataCaptureClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Deletes a change data capture. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - changeDataCaptureName - The change data capture name. +// - options - ChangeDataCaptureClientDeleteOptions contains the optional parameters for the ChangeDataCaptureClient.Delete +// method. +func (client *ChangeDataCaptureClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientDeleteOptions) (ChangeDataCaptureClientDeleteResponse, error) { + var err error + const operationName = "ChangeDataCaptureClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, changeDataCaptureName, options) + if err != nil { + return ChangeDataCaptureClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ChangeDataCaptureClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ChangeDataCaptureClientDeleteResponse{}, err + } + return ChangeDataCaptureClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ChangeDataCaptureClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if changeDataCaptureName == "" { + return nil, errors.New("parameter changeDataCaptureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{changeDataCaptureName}", url.PathEscape(changeDataCaptureName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets a change data capture. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - changeDataCaptureName - The change data capture name. +// - options - ChangeDataCaptureClientGetOptions contains the optional parameters for the ChangeDataCaptureClient.Get method. +func (client *ChangeDataCaptureClient) Get(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientGetOptions) (ChangeDataCaptureClientGetResponse, error) { + var err error + const operationName = "ChangeDataCaptureClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, changeDataCaptureName, options) + if err != nil { + return ChangeDataCaptureClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ChangeDataCaptureClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ChangeDataCaptureClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *ChangeDataCaptureClient) getCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if changeDataCaptureName == "" { + return nil, errors.New("parameter changeDataCaptureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{changeDataCaptureName}", url.PathEscape(changeDataCaptureName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ChangeDataCaptureClient) getHandleResponse(resp *http.Response) (ChangeDataCaptureClientGetResponse, error) { + result := ChangeDataCaptureClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ChangeDataCaptureResource); err != nil { + return ChangeDataCaptureClientGetResponse{}, err + } + return result, nil +} + +// NewListByFactoryPager - Lists all resources of type change data capture. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - ChangeDataCaptureClientListByFactoryOptions contains the optional parameters for the ChangeDataCaptureClient.NewListByFactoryPager +// method. +func (client *ChangeDataCaptureClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *ChangeDataCaptureClientListByFactoryOptions) *runtime.Pager[ChangeDataCaptureClientListByFactoryResponse] { + return runtime.NewPager(runtime.PagingHandler[ChangeDataCaptureClientListByFactoryResponse]{ + More: func(page ChangeDataCaptureClientListByFactoryResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ChangeDataCaptureClientListByFactoryResponse) (ChangeDataCaptureClientListByFactoryResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ChangeDataCaptureClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) + if err != nil { + return ChangeDataCaptureClientListByFactoryResponse{}, err + } + return client.listByFactoryHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByFactoryCreateRequest creates the ListByFactory request. +func (client *ChangeDataCaptureClient) listByFactoryCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, options *ChangeDataCaptureClientListByFactoryOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByFactoryHandleResponse handles the ListByFactory response. +func (client *ChangeDataCaptureClient) listByFactoryHandleResponse(resp *http.Response) (ChangeDataCaptureClientListByFactoryResponse, error) { + result := ChangeDataCaptureClientListByFactoryResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ChangeDataCaptureListResponse); err != nil { + return ChangeDataCaptureClientListByFactoryResponse{}, err + } + return result, nil +} + +// Start - Starts a change data capture. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - changeDataCaptureName - The change data capture name. +// - options - ChangeDataCaptureClientStartOptions contains the optional parameters for the ChangeDataCaptureClient.Start method. +func (client *ChangeDataCaptureClient) Start(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientStartOptions) (ChangeDataCaptureClientStartResponse, error) { + var err error + const operationName = "ChangeDataCaptureClient.Start" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.startCreateRequest(ctx, resourceGroupName, factoryName, changeDataCaptureName, options) + if err != nil { + return ChangeDataCaptureClientStartResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ChangeDataCaptureClientStartResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ChangeDataCaptureClientStartResponse{}, err + } + return ChangeDataCaptureClientStartResponse{}, nil +} + +// startCreateRequest creates the Start request. +func (client *ChangeDataCaptureClient) startCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientStartOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if changeDataCaptureName == "" { + return nil, errors.New("parameter changeDataCaptureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{changeDataCaptureName}", url.PathEscape(changeDataCaptureName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Status - Gets the current status for the change data capture resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - changeDataCaptureName - The change data capture name. +// - options - ChangeDataCaptureClientStatusOptions contains the optional parameters for the ChangeDataCaptureClient.Status +// method. +func (client *ChangeDataCaptureClient) Status(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientStatusOptions) (ChangeDataCaptureClientStatusResponse, error) { + var err error + const operationName = "ChangeDataCaptureClient.Status" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.statusCreateRequest(ctx, resourceGroupName, factoryName, changeDataCaptureName, options) + if err != nil { + return ChangeDataCaptureClientStatusResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ChangeDataCaptureClientStatusResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ChangeDataCaptureClientStatusResponse{}, err + } + resp, err := client.statusHandleResponse(httpResp) + return resp, err +} + +// statusCreateRequest creates the Status request. +func (client *ChangeDataCaptureClient) statusCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientStatusOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if changeDataCaptureName == "" { + return nil, errors.New("parameter changeDataCaptureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{changeDataCaptureName}", url.PathEscape(changeDataCaptureName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// statusHandleResponse handles the Status response. +func (client *ChangeDataCaptureClient) statusHandleResponse(resp *http.Response) (ChangeDataCaptureClientStatusResponse, error) { + result := ChangeDataCaptureClientStatusResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil { + return ChangeDataCaptureClientStatusResponse{}, err + } + return result, nil +} + +// Stop - Stops a change data capture. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - changeDataCaptureName - The change data capture name. +// - options - ChangeDataCaptureClientStopOptions contains the optional parameters for the ChangeDataCaptureClient.Stop method. +func (client *ChangeDataCaptureClient) Stop(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientStopOptions) (ChangeDataCaptureClientStopResponse, error) { + var err error + const operationName = "ChangeDataCaptureClient.Stop" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.stopCreateRequest(ctx, resourceGroupName, factoryName, changeDataCaptureName, options) + if err != nil { + return ChangeDataCaptureClientStopResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ChangeDataCaptureClientStopResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ChangeDataCaptureClientStopResponse{}, err + } + return ChangeDataCaptureClientStopResponse{}, nil +} + +// stopCreateRequest creates the Stop request. +func (client *ChangeDataCaptureClient) stopCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, changeDataCaptureName string, options *ChangeDataCaptureClientStopOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if changeDataCaptureName == "" { + return nil, errors.New("parameter changeDataCaptureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{changeDataCaptureName}", url.PathEscape(changeDataCaptureName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/ci.yml b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/ci.yml similarity index 88% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/ci.yml rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/ci.yml index 11d480f8..2033dc94 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/ci.yml +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/ci.yml @@ -21,8 +21,8 @@ pr: include: - sdk/resourcemanager/datafactory/armdatafactory/ -stages: -- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml +extends: + template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/datafactory/armdatafactory' diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/client_factory.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/client_factory.go new file mode 100644 index 00000000..fc59af30 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/client_factory.go @@ -0,0 +1,220 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armdatafactory + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" +) + +// ClientFactory is a client factory used to create any client in this module. +// Don't use this type directly, use NewClientFactory instead. +type ClientFactory struct { + subscriptionID string + internal *arm.Client +} + +// NewClientFactory creates a new instance of ClientFactory with the specified values. +// The parameter values will be propagated to any client created from this factory. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { + internal, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + return &ClientFactory{ + subscriptionID: subscriptionID, + internal: internal, + }, nil +} + +// NewActivityRunsClient creates a new instance of ActivityRunsClient. +func (c *ClientFactory) NewActivityRunsClient() *ActivityRunsClient { + return &ActivityRunsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewChangeDataCaptureClient creates a new instance of ChangeDataCaptureClient. +func (c *ClientFactory) NewChangeDataCaptureClient() *ChangeDataCaptureClient { + return &ChangeDataCaptureClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewCredentialOperationsClient creates a new instance of CredentialOperationsClient. +func (c *ClientFactory) NewCredentialOperationsClient() *CredentialOperationsClient { + return &CredentialOperationsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDataFlowDebugSessionClient creates a new instance of DataFlowDebugSessionClient. +func (c *ClientFactory) NewDataFlowDebugSessionClient() *DataFlowDebugSessionClient { + return &DataFlowDebugSessionClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDataFlowsClient creates a new instance of DataFlowsClient. +func (c *ClientFactory) NewDataFlowsClient() *DataFlowsClient { + return &DataFlowsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewDatasetsClient creates a new instance of DatasetsClient. +func (c *ClientFactory) NewDatasetsClient() *DatasetsClient { + return &DatasetsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewExposureControlClient creates a new instance of ExposureControlClient. +func (c *ClientFactory) NewExposureControlClient() *ExposureControlClient { + return &ExposureControlClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewFactoriesClient creates a new instance of FactoriesClient. +func (c *ClientFactory) NewFactoriesClient() *FactoriesClient { + return &FactoriesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewGlobalParametersClient creates a new instance of GlobalParametersClient. +func (c *ClientFactory) NewGlobalParametersClient() *GlobalParametersClient { + return &GlobalParametersClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewIntegrationRuntimeNodesClient creates a new instance of IntegrationRuntimeNodesClient. +func (c *ClientFactory) NewIntegrationRuntimeNodesClient() *IntegrationRuntimeNodesClient { + return &IntegrationRuntimeNodesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewIntegrationRuntimeObjectMetadataClient creates a new instance of IntegrationRuntimeObjectMetadataClient. +func (c *ClientFactory) NewIntegrationRuntimeObjectMetadataClient() *IntegrationRuntimeObjectMetadataClient { + return &IntegrationRuntimeObjectMetadataClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewIntegrationRuntimesClient creates a new instance of IntegrationRuntimesClient. +func (c *ClientFactory) NewIntegrationRuntimesClient() *IntegrationRuntimesClient { + return &IntegrationRuntimesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewLinkedServicesClient creates a new instance of LinkedServicesClient. +func (c *ClientFactory) NewLinkedServicesClient() *LinkedServicesClient { + return &LinkedServicesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedPrivateEndpointsClient creates a new instance of ManagedPrivateEndpointsClient. +func (c *ClientFactory) NewManagedPrivateEndpointsClient() *ManagedPrivateEndpointsClient { + return &ManagedPrivateEndpointsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewManagedVirtualNetworksClient creates a new instance of ManagedVirtualNetworksClient. +func (c *ClientFactory) NewManagedVirtualNetworksClient() *ManagedVirtualNetworksClient { + return &ManagedVirtualNetworksClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewOperationsClient creates a new instance of OperationsClient. +func (c *ClientFactory) NewOperationsClient() *OperationsClient { + return &OperationsClient{ + internal: c.internal, + } +} + +// NewPipelineRunsClient creates a new instance of PipelineRunsClient. +func (c *ClientFactory) NewPipelineRunsClient() *PipelineRunsClient { + return &PipelineRunsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewPipelinesClient creates a new instance of PipelinesClient. +func (c *ClientFactory) NewPipelinesClient() *PipelinesClient { + return &PipelinesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewPrivateEndPointConnectionsClient creates a new instance of PrivateEndPointConnectionsClient. +func (c *ClientFactory) NewPrivateEndPointConnectionsClient() *PrivateEndPointConnectionsClient { + return &PrivateEndPointConnectionsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient. +func (c *ClientFactory) NewPrivateEndpointConnectionClient() *PrivateEndpointConnectionClient { + return &PrivateEndpointConnectionClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient. +func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient { + return &PrivateLinkResourcesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewTriggerRunsClient creates a new instance of TriggerRunsClient. +func (c *ClientFactory) NewTriggerRunsClient() *TriggerRunsClient { + return &TriggerRunsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewTriggersClient creates a new instance of TriggersClient. +func (c *ClientFactory) NewTriggersClient() *TriggersClient { + return &TriggersClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/constants.go similarity index 80% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/constants.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/constants.go index 7d21b797..b6e6b96a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/constants.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/constants.go @@ -3,52 +3,48 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory const ( - moduleName = "armdatafactory" - moduleVersion = "v1.3.0" + moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + moduleVersion = "v7.0.0" ) -type AmazonRdsForOraclePartitionOption string +// ActivityOnInactiveMarkAs - Status result of the activity when the state is set to Inactive. This is an optional property +// and if not provided when the activity is inactive, the status will be Succeeded by default. +type ActivityOnInactiveMarkAs string const ( - AmazonRdsForOraclePartitionOptionDynamicRange AmazonRdsForOraclePartitionOption = "DynamicRange" - AmazonRdsForOraclePartitionOptionNone AmazonRdsForOraclePartitionOption = "None" - AmazonRdsForOraclePartitionOptionPhysicalPartitionsOfTable AmazonRdsForOraclePartitionOption = "PhysicalPartitionsOfTable" + ActivityOnInactiveMarkAsFailed ActivityOnInactiveMarkAs = "Failed" + ActivityOnInactiveMarkAsSkipped ActivityOnInactiveMarkAs = "Skipped" + ActivityOnInactiveMarkAsSucceeded ActivityOnInactiveMarkAs = "Succeeded" ) -// PossibleAmazonRdsForOraclePartitionOptionValues returns the possible values for the AmazonRdsForOraclePartitionOption const type. -func PossibleAmazonRdsForOraclePartitionOptionValues() []AmazonRdsForOraclePartitionOption { - return []AmazonRdsForOraclePartitionOption{ - AmazonRdsForOraclePartitionOptionDynamicRange, - AmazonRdsForOraclePartitionOptionNone, - AmazonRdsForOraclePartitionOptionPhysicalPartitionsOfTable, +// PossibleActivityOnInactiveMarkAsValues returns the possible values for the ActivityOnInactiveMarkAs const type. +func PossibleActivityOnInactiveMarkAsValues() []ActivityOnInactiveMarkAs { + return []ActivityOnInactiveMarkAs{ + ActivityOnInactiveMarkAsFailed, + ActivityOnInactiveMarkAsSkipped, + ActivityOnInactiveMarkAsSucceeded, } } -type AvroCompressionCodec string +// ActivityState - Activity state. This is an optional property and if not provided, the state will be Active by default. +type ActivityState string const ( - AvroCompressionCodecBzip2 AvroCompressionCodec = "bzip2" - AvroCompressionCodecDeflate AvroCompressionCodec = "deflate" - AvroCompressionCodecNone AvroCompressionCodec = "none" - AvroCompressionCodecSnappy AvroCompressionCodec = "snappy" - AvroCompressionCodecXz AvroCompressionCodec = "xz" + ActivityStateActive ActivityState = "Active" + ActivityStateInactive ActivityState = "Inactive" ) -// PossibleAvroCompressionCodecValues returns the possible values for the AvroCompressionCodec const type. -func PossibleAvroCompressionCodecValues() []AvroCompressionCodec { - return []AvroCompressionCodec{ - AvroCompressionCodecBzip2, - AvroCompressionCodecDeflate, - AvroCompressionCodecNone, - AvroCompressionCodecSnappy, - AvroCompressionCodecXz, +// PossibleActivityStateValues returns the possible values for the ActivityState const type. +func PossibleActivityStateValues() []ActivityState { + return []ActivityState{ + ActivityStateActive, + ActivityStateInactive, } } @@ -94,6 +90,28 @@ func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBe } } +// AzureStorageAuthenticationType - The type used for authentication. Type: string. +type AzureStorageAuthenticationType string + +const ( + AzureStorageAuthenticationTypeAccountKey AzureStorageAuthenticationType = "AccountKey" + AzureStorageAuthenticationTypeAnonymous AzureStorageAuthenticationType = "Anonymous" + AzureStorageAuthenticationTypeMsi AzureStorageAuthenticationType = "Msi" + AzureStorageAuthenticationTypeSasURI AzureStorageAuthenticationType = "SasUri" + AzureStorageAuthenticationTypeServicePrincipal AzureStorageAuthenticationType = "ServicePrincipal" +) + +// PossibleAzureStorageAuthenticationTypeValues returns the possible values for the AzureStorageAuthenticationType const type. +func PossibleAzureStorageAuthenticationTypeValues() []AzureStorageAuthenticationType { + return []AzureStorageAuthenticationType{ + AzureStorageAuthenticationTypeAccountKey, + AzureStorageAuthenticationTypeAnonymous, + AzureStorageAuthenticationTypeMsi, + AzureStorageAuthenticationTypeSasURI, + AzureStorageAuthenticationTypeServicePrincipal, + } +} + // BigDataPoolReferenceType - Big data pool reference type. type BigDataPoolReferenceType string @@ -158,58 +176,39 @@ func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadC } } -// CompressionCodec - All available compressionCodec values. -type CompressionCodec string +// ConfigurationType - The type of the spark config. +type ConfigurationType string const ( - CompressionCodecBzip2 CompressionCodec = "bzip2" - CompressionCodecDeflate CompressionCodec = "deflate" - CompressionCodecGzip CompressionCodec = "gzip" - CompressionCodecLz4 CompressionCodec = "lz4" - CompressionCodecLzo CompressionCodec = "lzo" - CompressionCodecNone CompressionCodec = "none" - CompressionCodecSnappy CompressionCodec = "snappy" - CompressionCodecTar CompressionCodec = "tar" - CompressionCodecTarGZip CompressionCodec = "tarGZip" - CompressionCodecZipDeflate CompressionCodec = "zipDeflate" + ConfigurationTypeArtifact ConfigurationType = "Artifact" + ConfigurationTypeCustomized ConfigurationType = "Customized" + ConfigurationTypeDefault ConfigurationType = "Default" ) -// PossibleCompressionCodecValues returns the possible values for the CompressionCodec const type. -func PossibleCompressionCodecValues() []CompressionCodec { - return []CompressionCodec{ - CompressionCodecBzip2, - CompressionCodecDeflate, - CompressionCodecGzip, - CompressionCodecLz4, - CompressionCodecLzo, - CompressionCodecNone, - CompressionCodecSnappy, - CompressionCodecTar, - CompressionCodecTarGZip, - CompressionCodecZipDeflate, +// PossibleConfigurationTypeValues returns the possible values for the ConfigurationType const type. +func PossibleConfigurationTypeValues() []ConfigurationType { + return []ConfigurationType{ + ConfigurationTypeArtifact, + ConfigurationTypeCustomized, + ConfigurationTypeDefault, } } -// CopyBehaviorType - All available types of copy behavior. -type CopyBehaviorType string +// ConnectionType - Type of connection via linked service or dataset. +type ConnectionType string const ( - CopyBehaviorTypeFlattenHierarchy CopyBehaviorType = "FlattenHierarchy" - CopyBehaviorTypeMergeFiles CopyBehaviorType = "MergeFiles" - CopyBehaviorTypePreserveHierarchy CopyBehaviorType = "PreserveHierarchy" + ConnectionTypeLinkedservicetype ConnectionType = "linkedservicetype" ) -// PossibleCopyBehaviorTypeValues returns the possible values for the CopyBehaviorType const type. -func PossibleCopyBehaviorTypeValues() []CopyBehaviorType { - return []CopyBehaviorType{ - CopyBehaviorTypeFlattenHierarchy, - CopyBehaviorTypeMergeFiles, - CopyBehaviorTypePreserveHierarchy, +// PossibleConnectionTypeValues returns the possible values for the ConnectionType const type. +func PossibleConnectionTypeValues() []ConnectionType { + return []ConnectionType{ + ConnectionTypeLinkedservicetype, } } -// CosmosDbConnectionMode - The connection mode used to access CosmosDB account. Type: string (or Expression with resultType -// string). +// CosmosDbConnectionMode - The connection mode used to access CosmosDB account. Type: string. type CosmosDbConnectionMode string const ( @@ -225,24 +224,6 @@ func PossibleCosmosDbConnectionModeValues() []CosmosDbConnectionMode { } } -// CosmosDbServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. -// 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with -// resultType string). -type CosmosDbServicePrincipalCredentialType string - -const ( - CosmosDbServicePrincipalCredentialTypeServicePrincipalCert CosmosDbServicePrincipalCredentialType = "ServicePrincipalCert" - CosmosDbServicePrincipalCredentialTypeServicePrincipalKey CosmosDbServicePrincipalCredentialType = "ServicePrincipalKey" -) - -// PossibleCosmosDbServicePrincipalCredentialTypeValues returns the possible values for the CosmosDbServicePrincipalCredentialType const type. -func PossibleCosmosDbServicePrincipalCredentialTypeValues() []CosmosDbServicePrincipalCredentialType { - return []CosmosDbServicePrincipalCredentialType{ - CosmosDbServicePrincipalCredentialTypeServicePrincipalCert, - CosmosDbServicePrincipalCredentialTypeServicePrincipalKey, - } -} - // CredentialReferenceType - Credential reference type. type CredentialReferenceType string @@ -307,22 +288,6 @@ func PossibleDataFlowReferenceTypeValues() []DataFlowReferenceType { } } -// DatasetCompressionLevel - All available compression levels. -type DatasetCompressionLevel string - -const ( - DatasetCompressionLevelFastest DatasetCompressionLevel = "Fastest" - DatasetCompressionLevelOptimal DatasetCompressionLevel = "Optimal" -) - -// PossibleDatasetCompressionLevelValues returns the possible values for the DatasetCompressionLevel const type. -func PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel { - return []DatasetCompressionLevel{ - DatasetCompressionLevelFastest, - DatasetCompressionLevelOptimal, - } -} - // DatasetReferenceType - Dataset reference type. type DatasetReferenceType string @@ -341,50 +306,50 @@ func PossibleDatasetReferenceTypeValues() []DatasetReferenceType { type DayOfWeek string const ( - DayOfWeekSunday DayOfWeek = "Sunday" + DayOfWeekFriday DayOfWeek = "Friday" DayOfWeekMonday DayOfWeek = "Monday" + DayOfWeekSaturday DayOfWeek = "Saturday" + DayOfWeekSunday DayOfWeek = "Sunday" + DayOfWeekThursday DayOfWeek = "Thursday" DayOfWeekTuesday DayOfWeek = "Tuesday" DayOfWeekWednesday DayOfWeek = "Wednesday" - DayOfWeekThursday DayOfWeek = "Thursday" - DayOfWeekFriday DayOfWeek = "Friday" - DayOfWeekSaturday DayOfWeek = "Saturday" ) // PossibleDayOfWeekValues returns the possible values for the DayOfWeek const type. func PossibleDayOfWeekValues() []DayOfWeek { return []DayOfWeek{ - DayOfWeekSunday, + DayOfWeekFriday, DayOfWeekMonday, + DayOfWeekSaturday, + DayOfWeekSunday, + DayOfWeekThursday, DayOfWeekTuesday, DayOfWeekWednesday, - DayOfWeekThursday, - DayOfWeekFriday, - DayOfWeekSaturday, } } type DaysOfWeek string const ( - DaysOfWeekSunday DaysOfWeek = "Sunday" + DaysOfWeekFriday DaysOfWeek = "Friday" DaysOfWeekMonday DaysOfWeek = "Monday" + DaysOfWeekSaturday DaysOfWeek = "Saturday" + DaysOfWeekSunday DaysOfWeek = "Sunday" + DaysOfWeekThursday DaysOfWeek = "Thursday" DaysOfWeekTuesday DaysOfWeek = "Tuesday" DaysOfWeekWednesday DaysOfWeek = "Wednesday" - DaysOfWeekThursday DaysOfWeek = "Thursday" - DaysOfWeekFriday DaysOfWeek = "Friday" - DaysOfWeekSaturday DaysOfWeek = "Saturday" ) // PossibleDaysOfWeekValues returns the possible values for the DaysOfWeek const type. func PossibleDaysOfWeekValues() []DaysOfWeek { return []DaysOfWeek{ - DaysOfWeekSunday, + DaysOfWeekFriday, DaysOfWeekMonday, + DaysOfWeekSaturday, + DaysOfWeekSunday, + DaysOfWeekThursday, DaysOfWeekTuesday, DaysOfWeekWednesday, - DaysOfWeekThursday, - DaysOfWeekFriday, - DaysOfWeekSaturday, } } @@ -421,40 +386,6 @@ func PossibleDependencyConditionValues() []DependencyCondition { } } -// DynamicsAuthenticationType - All available dynamicsAuthenticationType values. -type DynamicsAuthenticationType string - -const ( - DynamicsAuthenticationTypeAADServicePrincipal DynamicsAuthenticationType = "AADServicePrincipal" - DynamicsAuthenticationTypeIfd DynamicsAuthenticationType = "Ifd" - DynamicsAuthenticationTypeOffice365 DynamicsAuthenticationType = "Office365" -) - -// PossibleDynamicsAuthenticationTypeValues returns the possible values for the DynamicsAuthenticationType const type. -func PossibleDynamicsAuthenticationTypeValues() []DynamicsAuthenticationType { - return []DynamicsAuthenticationType{ - DynamicsAuthenticationTypeAADServicePrincipal, - DynamicsAuthenticationTypeIfd, - DynamicsAuthenticationTypeOffice365, - } -} - -// DynamicsDeploymentType - All available dynamicsDeploymentType values. -type DynamicsDeploymentType string - -const ( - DynamicsDeploymentTypeOnPremisesWithIfd DynamicsDeploymentType = "OnPremisesWithIfd" - DynamicsDeploymentTypeOnline DynamicsDeploymentType = "Online" -) - -// PossibleDynamicsDeploymentTypeValues returns the possible values for the DynamicsDeploymentType const type. -func PossibleDynamicsDeploymentTypeValues() []DynamicsDeploymentType { - return []DynamicsDeploymentType{ - DynamicsDeploymentTypeOnPremisesWithIfd, - DynamicsDeploymentTypeOnline, - } -} - // DynamicsSinkWriteBehavior - Defines values for DynamicsSinkWriteBehavior. type DynamicsSinkWriteBehavior string @@ -505,6 +436,26 @@ func PossibleExpressionTypeValues() []ExpressionType { } } +// ExpressionV2Type - Type of expressions supported by the system. Type: string. +type ExpressionV2Type string + +const ( + ExpressionV2TypeBinary ExpressionV2Type = "Binary" + ExpressionV2TypeConstant ExpressionV2Type = "Constant" + ExpressionV2TypeField ExpressionV2Type = "Field" + ExpressionV2TypeUnary ExpressionV2Type = "Unary" +) + +// PossibleExpressionV2TypeValues returns the possible values for the ExpressionV2Type const type. +func PossibleExpressionV2TypeValues() []ExpressionV2Type { + return []ExpressionV2Type{ + ExpressionV2TypeBinary, + ExpressionV2TypeConstant, + ExpressionV2TypeField, + ExpressionV2TypeUnary, + } +} + // FactoryIdentityType - The identity type. type FactoryIdentityType string @@ -523,6 +474,24 @@ func PossibleFactoryIdentityTypeValues() []FactoryIdentityType { } } +// FrequencyType - Frequency of period in terms of 'Hour', 'Minute' or 'Second'. +type FrequencyType string + +const ( + FrequencyTypeHour FrequencyType = "Hour" + FrequencyTypeMinute FrequencyType = "Minute" + FrequencyTypeSecond FrequencyType = "Second" +) + +// PossibleFrequencyTypeValues returns the possible values for the FrequencyType const type. +func PossibleFrequencyTypeValues() []FrequencyType { + return []FrequencyType{ + FrequencyTypeHour, + FrequencyTypeMinute, + FrequencyTypeSecond, + } +} + // FtpAuthenticationType - The authentication type to be used to connect to the FTP server. type FtpAuthenticationType string @@ -597,6 +566,22 @@ func PossibleGoogleBigQueryAuthenticationTypeValues() []GoogleBigQueryAuthentica } } +// GoogleBigQueryV2AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. +type GoogleBigQueryV2AuthenticationType string + +const ( + GoogleBigQueryV2AuthenticationTypeServiceAuthentication GoogleBigQueryV2AuthenticationType = "ServiceAuthentication" + GoogleBigQueryV2AuthenticationTypeUserAuthentication GoogleBigQueryV2AuthenticationType = "UserAuthentication" +) + +// PossibleGoogleBigQueryV2AuthenticationTypeValues returns the possible values for the GoogleBigQueryV2AuthenticationType const type. +func PossibleGoogleBigQueryV2AuthenticationTypeValues() []GoogleBigQueryV2AuthenticationType { + return []GoogleBigQueryV2AuthenticationType{ + GoogleBigQueryV2AuthenticationTypeServiceAuthentication, + GoogleBigQueryV2AuthenticationTypeUserAuthentication, + } +} + // HBaseAuthenticationType - The authentication mechanism to use to connect to the HBase server. type HBaseAuthenticationType string @@ -653,24 +638,6 @@ func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType { } } -// HdiNodeTypes - All available HdiNodeTypes values. -type HdiNodeTypes string - -const ( - HdiNodeTypesHeadnode HdiNodeTypes = "Headnode" - HdiNodeTypesWorkernode HdiNodeTypes = "Workernode" - HdiNodeTypesZookeeper HdiNodeTypes = "Zookeeper" -) - -// PossibleHdiNodeTypesValues returns the possible values for the HdiNodeTypes const type. -func PossibleHdiNodeTypesValues() []HdiNodeTypes { - return []HdiNodeTypes{ - HdiNodeTypesHeadnode, - HdiNodeTypesWorkernode, - HdiNodeTypesZookeeper, - } -} - // HiveAuthenticationType - The authentication method used to access the Hive server. type HiveAuthenticationType string @@ -945,38 +912,6 @@ func PossibleIntegrationRuntimeUpdateResultValues() []IntegrationRuntimeUpdateRe } } -// JSONFormatFilePattern - JSON format file pattern. A property of JsonFormat. -type JSONFormatFilePattern string - -const ( - JSONFormatFilePatternArrayOfObjects JSONFormatFilePattern = "arrayOfObjects" - JSONFormatFilePatternSetOfObjects JSONFormatFilePattern = "setOfObjects" -) - -// PossibleJSONFormatFilePatternValues returns the possible values for the JSONFormatFilePattern const type. -func PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern { - return []JSONFormatFilePattern{ - JSONFormatFilePatternArrayOfObjects, - JSONFormatFilePatternSetOfObjects, - } -} - -// JSONWriteFilePattern - All available filePatterns. -type JSONWriteFilePattern string - -const ( - JSONWriteFilePatternArrayOfObjects JSONWriteFilePattern = "arrayOfObjects" - JSONWriteFilePatternSetOfObjects JSONWriteFilePattern = "setOfObjects" -) - -// PossibleJSONWriteFilePatternValues returns the possible values for the JSONWriteFilePattern const type. -func PossibleJSONWriteFilePatternValues() []JSONWriteFilePattern { - return []JSONWriteFilePattern{ - JSONWriteFilePatternArrayOfObjects, - JSONWriteFilePatternSetOfObjects, - } -} - // LinkedServiceReferenceType - Linked service reference type. type LinkedServiceReferenceType string @@ -1025,6 +960,24 @@ func PossibleManagedVirtualNetworkReferenceTypeValues() []ManagedVirtualNetworkR } } +// MappingType - Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. +type MappingType string + +const ( + MappingTypeAggregate MappingType = "Aggregate" + MappingTypeDerived MappingType = "Derived" + MappingTypeDirect MappingType = "Direct" +) + +// PossibleMappingTypeValues returns the possible values for the MappingType const type. +func PossibleMappingTypeValues() []MappingType { + return []MappingType{ + MappingTypeAggregate, + MappingTypeDerived, + MappingTypeDirect, + } +} + // MongoDbAuthenticationType - The authentication type to be used to connect to the MongoDB database. type MongoDbAuthenticationType string @@ -1041,24 +994,6 @@ func PossibleMongoDbAuthenticationTypeValues() []MongoDbAuthenticationType { } } -// NetezzaPartitionOption - The partition mechanism that will be used for Netezza read in parallel. -type NetezzaPartitionOption string - -const ( - NetezzaPartitionOptionDataSlice NetezzaPartitionOption = "DataSlice" - NetezzaPartitionOptionDynamicRange NetezzaPartitionOption = "DynamicRange" - NetezzaPartitionOptionNone NetezzaPartitionOption = "None" -) - -// PossibleNetezzaPartitionOptionValues returns the possible values for the NetezzaPartitionOption const type. -func PossibleNetezzaPartitionOptionValues() []NetezzaPartitionOption { - return []NetezzaPartitionOption{ - NetezzaPartitionOptionDataSlice, - NetezzaPartitionOptionDynamicRange, - NetezzaPartitionOptionNone, - } -} - // NotebookParameterType - Notebook parameter type. type NotebookParameterType string @@ -1131,43 +1066,6 @@ func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType { } } -// OraclePartitionOption - The partition mechanism that will be used for Oracle read in parallel. -type OraclePartitionOption string - -const ( - OraclePartitionOptionDynamicRange OraclePartitionOption = "DynamicRange" - OraclePartitionOptionNone OraclePartitionOption = "None" - OraclePartitionOptionPhysicalPartitionsOfTable OraclePartitionOption = "PhysicalPartitionsOfTable" -) - -// PossibleOraclePartitionOptionValues returns the possible values for the OraclePartitionOption const type. -func PossibleOraclePartitionOptionValues() []OraclePartitionOption { - return []OraclePartitionOption{ - OraclePartitionOptionDynamicRange, - OraclePartitionOptionNone, - OraclePartitionOptionPhysicalPartitionsOfTable, - } -} - -type OrcCompressionCodec string - -const ( - OrcCompressionCodecLzo OrcCompressionCodec = "lzo" - OrcCompressionCodecNone OrcCompressionCodec = "none" - OrcCompressionCodecSnappy OrcCompressionCodec = "snappy" - OrcCompressionCodecZlib OrcCompressionCodec = "zlib" -) - -// PossibleOrcCompressionCodecValues returns the possible values for the OrcCompressionCodec const type. -func PossibleOrcCompressionCodecValues() []OrcCompressionCodec { - return []OrcCompressionCodec{ - OrcCompressionCodecLzo, - OrcCompressionCodecNone, - OrcCompressionCodecSnappy, - OrcCompressionCodecZlib, - } -} - // ParameterType - Parameter type. type ParameterType string @@ -1428,8 +1326,7 @@ func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField { } } -// SQLAlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string (or Expression with resultType -// string). +// SQLAlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string. type SQLAlwaysEncryptedAkvAuthType string const ( @@ -1447,58 +1344,6 @@ func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthTy } } -// SQLDWWriteBehaviorEnum - Specify the write behavior when copying data into sql dw. -type SQLDWWriteBehaviorEnum string - -const ( - SQLDWWriteBehaviorEnumInsert SQLDWWriteBehaviorEnum = "Insert" - SQLDWWriteBehaviorEnumUpsert SQLDWWriteBehaviorEnum = "Upsert" -) - -// PossibleSQLDWWriteBehaviorEnumValues returns the possible values for the SQLDWWriteBehaviorEnum const type. -func PossibleSQLDWWriteBehaviorEnumValues() []SQLDWWriteBehaviorEnum { - return []SQLDWWriteBehaviorEnum{ - SQLDWWriteBehaviorEnumInsert, - SQLDWWriteBehaviorEnumUpsert, - } -} - -// SQLPartitionOption - The partition mechanism that will be used for Sql read in parallel. -type SQLPartitionOption string - -const ( - SQLPartitionOptionDynamicRange SQLPartitionOption = "DynamicRange" - SQLPartitionOptionNone SQLPartitionOption = "None" - SQLPartitionOptionPhysicalPartitionsOfTable SQLPartitionOption = "PhysicalPartitionsOfTable" -) - -// PossibleSQLPartitionOptionValues returns the possible values for the SQLPartitionOption const type. -func PossibleSQLPartitionOptionValues() []SQLPartitionOption { - return []SQLPartitionOption{ - SQLPartitionOptionDynamicRange, - SQLPartitionOptionNone, - SQLPartitionOptionPhysicalPartitionsOfTable, - } -} - -// SQLWriteBehaviorEnum - Specify the write behavior when copying data into sql. -type SQLWriteBehaviorEnum string - -const ( - SQLWriteBehaviorEnumInsert SQLWriteBehaviorEnum = "Insert" - SQLWriteBehaviorEnumStoredProcedure SQLWriteBehaviorEnum = "StoredProcedure" - SQLWriteBehaviorEnumUpsert SQLWriteBehaviorEnum = "Upsert" -) - -// PossibleSQLWriteBehaviorEnumValues returns the possible values for the SQLWriteBehaviorEnum const type. -func PossibleSQLWriteBehaviorEnumValues() []SQLWriteBehaviorEnum { - return []SQLWriteBehaviorEnum{ - SQLWriteBehaviorEnumInsert, - SQLWriteBehaviorEnumStoredProcedure, - SQLWriteBehaviorEnumUpsert, - } -} - // SalesforceSinkWriteBehavior - The write behavior for the operation. Default is Insert. type SalesforceSinkWriteBehavior string @@ -1515,19 +1360,19 @@ func PossibleSalesforceSinkWriteBehaviorValues() []SalesforceSinkWriteBehavior { } } -// SalesforceSourceReadBehavior - The read behavior for the operation. Default is Query. -type SalesforceSourceReadBehavior string +// SalesforceV2SinkWriteBehavior - The write behavior for the operation. Default is Insert. +type SalesforceV2SinkWriteBehavior string const ( - SalesforceSourceReadBehaviorQuery SalesforceSourceReadBehavior = "Query" - SalesforceSourceReadBehaviorQueryAll SalesforceSourceReadBehavior = "QueryAll" + SalesforceV2SinkWriteBehaviorInsert SalesforceV2SinkWriteBehavior = "Insert" + SalesforceV2SinkWriteBehaviorUpsert SalesforceV2SinkWriteBehavior = "Upsert" ) -// PossibleSalesforceSourceReadBehaviorValues returns the possible values for the SalesforceSourceReadBehavior const type. -func PossibleSalesforceSourceReadBehaviorValues() []SalesforceSourceReadBehavior { - return []SalesforceSourceReadBehavior{ - SalesforceSourceReadBehaviorQuery, - SalesforceSourceReadBehaviorQueryAll, +// PossibleSalesforceV2SinkWriteBehaviorValues returns the possible values for the SalesforceV2SinkWriteBehavior const type. +func PossibleSalesforceV2SinkWriteBehaviorValues() []SalesforceV2SinkWriteBehavior { + return []SalesforceV2SinkWriteBehavior{ + SalesforceV2SinkWriteBehaviorInsert, + SalesforceV2SinkWriteBehaviorUpsert, } } @@ -1563,48 +1408,6 @@ func PossibleSapHanaAuthenticationTypeValues() []SapHanaAuthenticationType { } } -// SapHanaPartitionOption - The partition mechanism that will be used for SAP HANA read in parallel. -type SapHanaPartitionOption string - -const ( - SapHanaPartitionOptionNone SapHanaPartitionOption = "None" - SapHanaPartitionOptionPhysicalPartitionsOfTable SapHanaPartitionOption = "PhysicalPartitionsOfTable" - SapHanaPartitionOptionSapHanaDynamicRange SapHanaPartitionOption = "SapHanaDynamicRange" -) - -// PossibleSapHanaPartitionOptionValues returns the possible values for the SapHanaPartitionOption const type. -func PossibleSapHanaPartitionOptionValues() []SapHanaPartitionOption { - return []SapHanaPartitionOption{ - SapHanaPartitionOptionNone, - SapHanaPartitionOptionPhysicalPartitionsOfTable, - SapHanaPartitionOptionSapHanaDynamicRange, - } -} - -// SapTablePartitionOption - The partition mechanism that will be used for SAP table read in parallel. -type SapTablePartitionOption string - -const ( - SapTablePartitionOptionNone SapTablePartitionOption = "None" - SapTablePartitionOptionPartitionOnCalendarDate SapTablePartitionOption = "PartitionOnCalendarDate" - SapTablePartitionOptionPartitionOnCalendarMonth SapTablePartitionOption = "PartitionOnCalendarMonth" - SapTablePartitionOptionPartitionOnCalendarYear SapTablePartitionOption = "PartitionOnCalendarYear" - SapTablePartitionOptionPartitionOnInt SapTablePartitionOption = "PartitionOnInt" - SapTablePartitionOptionPartitionOnTime SapTablePartitionOption = "PartitionOnTime" -) - -// PossibleSapTablePartitionOptionValues returns the possible values for the SapTablePartitionOption const type. -func PossibleSapTablePartitionOptionValues() []SapTablePartitionOption { - return []SapTablePartitionOption{ - SapTablePartitionOptionNone, - SapTablePartitionOptionPartitionOnCalendarDate, - SapTablePartitionOptionPartitionOnCalendarMonth, - SapTablePartitionOptionPartitionOnCalendarYear, - SapTablePartitionOptionPartitionOnInt, - SapTablePartitionOptionPartitionOnTime, - } -} - // ScriptActivityLogDestination - The destination of logs. Type: string. type ScriptActivityLogDestination string @@ -1733,19 +1536,19 @@ func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType } } -// ServicePrincipalCredentialType - All available servicePrincipalCredentialType values. -type ServicePrincipalCredentialType string +// ServiceNowV2AuthenticationType - The authentication type to use. +type ServiceNowV2AuthenticationType string const ( - ServicePrincipalCredentialTypeServicePrincipalCert ServicePrincipalCredentialType = "ServicePrincipalCert" - ServicePrincipalCredentialTypeServicePrincipalKey ServicePrincipalCredentialType = "ServicePrincipalKey" + ServiceNowV2AuthenticationTypeBasic ServiceNowV2AuthenticationType = "Basic" + ServiceNowV2AuthenticationTypeOAuth2 ServiceNowV2AuthenticationType = "OAuth2" ) -// PossibleServicePrincipalCredentialTypeValues returns the possible values for the ServicePrincipalCredentialType const type. -func PossibleServicePrincipalCredentialTypeValues() []ServicePrincipalCredentialType { - return []ServicePrincipalCredentialType{ - ServicePrincipalCredentialTypeServicePrincipalCert, - ServicePrincipalCredentialTypeServicePrincipalKey, +// PossibleServiceNowV2AuthenticationTypeValues returns the possible values for the ServiceNowV2AuthenticationType const type. +func PossibleServiceNowV2AuthenticationTypeValues() []ServiceNowV2AuthenticationType { + return []ServiceNowV2AuthenticationType{ + ServiceNowV2AuthenticationTypeBasic, + ServiceNowV2AuthenticationTypeOAuth2, } } @@ -1767,6 +1570,24 @@ func PossibleSftpAuthenticationTypeValues() []SftpAuthenticationType { } } +// SnowflakeAuthenticationType - The type used for authentication. Type: string. +type SnowflakeAuthenticationType string + +const ( + SnowflakeAuthenticationTypeAADServicePrincipal SnowflakeAuthenticationType = "AADServicePrincipal" + SnowflakeAuthenticationTypeBasic SnowflakeAuthenticationType = "Basic" + SnowflakeAuthenticationTypeKeyPair SnowflakeAuthenticationType = "KeyPair" +) + +// PossibleSnowflakeAuthenticationTypeValues returns the possible values for the SnowflakeAuthenticationType const type. +func PossibleSnowflakeAuthenticationTypeValues() []SnowflakeAuthenticationType { + return []SnowflakeAuthenticationType{ + SnowflakeAuthenticationTypeAADServicePrincipal, + SnowflakeAuthenticationTypeBasic, + SnowflakeAuthenticationTypeKeyPair, + } +} + // SparkAuthenticationType - The authentication method used to access the Spark server. type SparkAuthenticationType string @@ -1787,6 +1608,20 @@ func PossibleSparkAuthenticationTypeValues() []SparkAuthenticationType { } } +// SparkConfigurationReferenceType - Spark configuration reference type. +type SparkConfigurationReferenceType string + +const ( + SparkConfigurationReferenceTypeSparkConfigurationReference SparkConfigurationReferenceType = "SparkConfigurationReference" +) + +// PossibleSparkConfigurationReferenceTypeValues returns the possible values for the SparkConfigurationReferenceType const type. +func PossibleSparkConfigurationReferenceTypeValues() []SparkConfigurationReferenceType { + return []SparkConfigurationReferenceType{ + SparkConfigurationReferenceTypeSparkConfigurationReference, + } +} + // SparkJobReferenceType - Synapse spark job reference type. type SparkJobReferenceType string @@ -1891,32 +1726,6 @@ func PossibleSsisPackageLocationTypeValues() []SsisPackageLocationType { } } -// StoredProcedureParameterType - Stored procedure parameter type. -type StoredProcedureParameterType string - -const ( - StoredProcedureParameterTypeBoolean StoredProcedureParameterType = "Boolean" - StoredProcedureParameterTypeDate StoredProcedureParameterType = "Date" - StoredProcedureParameterTypeDecimal StoredProcedureParameterType = "Decimal" - StoredProcedureParameterTypeGUID StoredProcedureParameterType = "Guid" - StoredProcedureParameterTypeInt StoredProcedureParameterType = "Int" - StoredProcedureParameterTypeInt64 StoredProcedureParameterType = "Int64" - StoredProcedureParameterTypeString StoredProcedureParameterType = "String" -) - -// PossibleStoredProcedureParameterTypeValues returns the possible values for the StoredProcedureParameterType const type. -func PossibleStoredProcedureParameterTypeValues() []StoredProcedureParameterType { - return []StoredProcedureParameterType{ - StoredProcedureParameterTypeBoolean, - StoredProcedureParameterTypeDate, - StoredProcedureParameterTypeDecimal, - StoredProcedureParameterTypeGUID, - StoredProcedureParameterTypeInt, - StoredProcedureParameterTypeInt64, - StoredProcedureParameterTypeString, - } -} - // SybaseAuthenticationType - AuthenticationType to be used for connection. type SybaseAuthenticationType string @@ -1965,24 +1774,6 @@ func PossibleTeradataAuthenticationTypeValues() []TeradataAuthenticationType { } } -// TeradataPartitionOption - The partition mechanism that will be used for teradata read in parallel. -type TeradataPartitionOption string - -const ( - TeradataPartitionOptionDynamicRange TeradataPartitionOption = "DynamicRange" - TeradataPartitionOptionHash TeradataPartitionOption = "Hash" - TeradataPartitionOptionNone TeradataPartitionOption = "None" -) - -// PossibleTeradataPartitionOptionValues returns the possible values for the TeradataPartitionOption const type. -func PossibleTeradataPartitionOptionValues() []TeradataPartitionOption { - return []TeradataPartitionOption{ - TeradataPartitionOptionDynamicRange, - TeradataPartitionOptionHash, - TeradataPartitionOptionNone, - } -} - // TriggerReferenceType - Trigger reference type. type TriggerReferenceType string diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/credentialoperations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/credentialoperations_client.go new file mode 100644 index 00000000..c025ebef --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/credentialoperations_client.go @@ -0,0 +1,319 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armdatafactory + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CredentialOperationsClient contains the methods for the CredentialOperations group. +// Don't use this type directly, use NewCredentialOperationsClient() instead. +type CredentialOperationsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewCredentialOperationsClient creates a new instance of CredentialOperationsClient with the specified values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCredentialOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CredentialOperationsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &CredentialOperationsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a credential. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - credentialName - Credential name +// - credential - Credential resource definition. +// - options - CredentialOperationsClientCreateOrUpdateOptions contains the optional parameters for the CredentialOperationsClient.CreateOrUpdate +// method. +func (client *CredentialOperationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, credential CredentialResource, options *CredentialOperationsClientCreateOrUpdateOptions) (CredentialOperationsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "CredentialOperationsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, credentialName, credential, options) + if err != nil { + return CredentialOperationsClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CredentialOperationsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return CredentialOperationsClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *CredentialOperationsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, credential CredentialResource, options *CredentialOperationsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if credentialName == "" { + return nil, errors.New("parameter credentialName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialName}", url.PathEscape(credentialName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + if err := runtime.MarshalAsJSON(req, credential); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *CredentialOperationsClient) createOrUpdateHandleResponse(resp *http.Response) (CredentialOperationsClientCreateOrUpdateResponse, error) { + result := CredentialOperationsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CredentialResource); err != nil { + return CredentialOperationsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Deletes a credential. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - credentialName - Credential name +// - options - CredentialOperationsClientDeleteOptions contains the optional parameters for the CredentialOperationsClient.Delete +// method. +func (client *CredentialOperationsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientDeleteOptions) (CredentialOperationsClientDeleteResponse, error) { + var err error + const operationName = "CredentialOperationsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, credentialName, options) + if err != nil { + return CredentialOperationsClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CredentialOperationsClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return CredentialOperationsClientDeleteResponse{}, err + } + return CredentialOperationsClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *CredentialOperationsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if credentialName == "" { + return nil, errors.New("parameter credentialName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialName}", url.PathEscape(credentialName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets a credential. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - credentialName - Credential name +// - options - CredentialOperationsClientGetOptions contains the optional parameters for the CredentialOperationsClient.Get +// method. +func (client *CredentialOperationsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientGetOptions) (CredentialOperationsClientGetResponse, error) { + var err error + const operationName = "CredentialOperationsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, credentialName, options) + if err != nil { + return CredentialOperationsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CredentialOperationsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNotModified) { + err = runtime.NewResponseError(httpResp) + return CredentialOperationsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *CredentialOperationsClient) getCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if credentialName == "" { + return nil, errors.New("parameter credentialName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialName}", url.PathEscape(credentialName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CredentialOperationsClient) getHandleResponse(resp *http.Response) (CredentialOperationsClientGetResponse, error) { + result := CredentialOperationsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CredentialResource); err != nil { + return CredentialOperationsClientGetResponse{}, err + } + return result, nil +} + +// NewListByFactoryPager - List credentials. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - CredentialOperationsClientListByFactoryOptions contains the optional parameters for the CredentialOperationsClient.NewListByFactoryPager +// method. +func (client *CredentialOperationsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *CredentialOperationsClientListByFactoryOptions) *runtime.Pager[CredentialOperationsClientListByFactoryResponse] { + return runtime.NewPager(runtime.PagingHandler[CredentialOperationsClientListByFactoryResponse]{ + More: func(page CredentialOperationsClientListByFactoryResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CredentialOperationsClientListByFactoryResponse) (CredentialOperationsClientListByFactoryResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "CredentialOperationsClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) + if err != nil { + return CredentialOperationsClientListByFactoryResponse{}, err + } + return client.listByFactoryHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByFactoryCreateRequest creates the ListByFactory request. +func (client *CredentialOperationsClient) listByFactoryCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, options *CredentialOperationsClientListByFactoryOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByFactoryHandleResponse handles the ListByFactory response. +func (client *CredentialOperationsClient) listByFactoryHandleResponse(resp *http.Response) (CredentialOperationsClientListByFactoryResponse, error) { + result := CredentialOperationsClientListByFactoryResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CredentialListResponse); err != nil { + return CredentialOperationsClientListByFactoryResponse{}, err + } + return result, nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/dataflowdebugsession_client.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/dataflowdebugsession_client.go index 26dca937..ce823f5b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/dataflowdebugsession_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,56 +23,55 @@ import ( // DataFlowDebugSessionClient contains the methods for the DataFlowDebugSession group. // Don't use this type directly, use NewDataFlowDebugSessionClient() instead. type DataFlowDebugSessionClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDataFlowDebugSessionClient creates a new instance of DataFlowDebugSessionClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDataFlowDebugSessionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataFlowDebugSessionClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DataFlowDebugSessionClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // AddDataFlow - Add a data flow into debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug session definition with debug content. -// options - DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug session definition with debug content. +// - options - DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow +// method. func (client *DataFlowDebugSessionClient) AddDataFlow(ctx context.Context, resourceGroupName string, factoryName string, request DataFlowDebugPackage, options *DataFlowDebugSessionClientAddDataFlowOptions) (DataFlowDebugSessionClientAddDataFlowResponse, error) { + var err error + const operationName = "DataFlowDebugSessionClient.AddDataFlow" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.addDataFlowCreateRequest(ctx, resourceGroupName, factoryName, request, options) if err != nil { return DataFlowDebugSessionClientAddDataFlowResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DataFlowDebugSessionClientAddDataFlowResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataFlowDebugSessionClientAddDataFlowResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DataFlowDebugSessionClientAddDataFlowResponse{}, err } - return client.addDataFlowHandleResponse(resp) + resp, err := client.addDataFlowHandleResponse(httpResp) + return resp, err } // addDataFlowCreateRequest creates the AddDataFlow request. @@ -93,7 +89,7 @@ func (client *DataFlowDebugSessionClient) addDataFlowCreateRequest(ctx context.C return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -101,7 +97,10 @@ func (client *DataFlowDebugSessionClient) addDataFlowCreateRequest(ctx context.C reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, request) + if err := runtime.MarshalAsJSON(req, request); err != nil { + return nil, err + } + return req, nil } // addDataFlowHandleResponse handles the AddDataFlow response. @@ -115,40 +114,53 @@ func (client *DataFlowDebugSessionClient) addDataFlowHandleResponse(resp *http.R // BeginCreate - Creates a data flow debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug session definition -// options - DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug session definition +// - options - DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate +// method. func (client *DataFlowDebugSessionClient) BeginCreate(ctx context.Context, resourceGroupName string, factoryName string, request CreateDataFlowDebugSessionRequest, options *DataFlowDebugSessionClientBeginCreateOptions) (*runtime.Poller[DataFlowDebugSessionClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, factoryName, request, options) if err != nil { return nil, err } - return runtime.NewPoller[DataFlowDebugSessionClientCreateResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DataFlowDebugSessionClientCreateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DataFlowDebugSessionClientCreateResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DataFlowDebugSessionClientCreateResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Create - Creates a data flow debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *DataFlowDebugSessionClient) create(ctx context.Context, resourceGroupName string, factoryName string, request CreateDataFlowDebugSessionRequest, options *DataFlowDebugSessionClientBeginCreateOptions) (*http.Response, error) { + var err error + const operationName = "DataFlowDebugSessionClient.BeginCreate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createCreateRequest(ctx, resourceGroupName, factoryName, request, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createCreateRequest creates the Create request. @@ -166,7 +178,7 @@ func (client *DataFlowDebugSessionClient) createCreateRequest(ctx context.Contex return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -174,28 +186,38 @@ func (client *DataFlowDebugSessionClient) createCreateRequest(ctx context.Contex reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, request) + if err := runtime.MarshalAsJSON(req, request); err != nil { + return nil, err + } + return req, nil } // Delete - Deletes a data flow debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug session definition for deletion -// options - DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug session definition for deletion +// - options - DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete +// method. func (client *DataFlowDebugSessionClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, request DeleteDataFlowDebugSessionRequest, options *DataFlowDebugSessionClientDeleteOptions) (DataFlowDebugSessionClientDeleteResponse, error) { + var err error + const operationName = "DataFlowDebugSessionClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, request, options) if err != nil { return DataFlowDebugSessionClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DataFlowDebugSessionClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataFlowDebugSessionClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DataFlowDebugSessionClientDeleteResponse{}, err } return DataFlowDebugSessionClientDeleteResponse{}, nil } @@ -215,7 +237,7 @@ func (client *DataFlowDebugSessionClient) deleteCreateRequest(ctx context.Contex return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -223,45 +245,61 @@ func (client *DataFlowDebugSessionClient) deleteCreateRequest(ctx context.Contex reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, request) + if err := runtime.MarshalAsJSON(req, request); err != nil { + return nil, err + } + return req, nil } // BeginExecuteCommand - Execute a data flow debug command. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug command definition. -// options - DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug command definition. +// - options - DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand +// method. func (client *DataFlowDebugSessionClient) BeginExecuteCommand(ctx context.Context, resourceGroupName string, factoryName string, request DataFlowDebugCommandRequest, options *DataFlowDebugSessionClientBeginExecuteCommandOptions) (*runtime.Poller[DataFlowDebugSessionClientExecuteCommandResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.executeCommand(ctx, resourceGroupName, factoryName, request, options) if err != nil { return nil, err } - return runtime.NewPoller[DataFlowDebugSessionClientExecuteCommandResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[DataFlowDebugSessionClientExecuteCommandResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[DataFlowDebugSessionClientExecuteCommandResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[DataFlowDebugSessionClientExecuteCommandResponse]{ + Tracer: client.internal.Tracer(), + }) } } // ExecuteCommand - Execute a data flow debug command. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *DataFlowDebugSessionClient) executeCommand(ctx context.Context, resourceGroupName string, factoryName string, request DataFlowDebugCommandRequest, options *DataFlowDebugSessionClientBeginExecuteCommandOptions) (*http.Response, error) { + var err error + const operationName = "DataFlowDebugSessionClient.BeginExecuteCommand" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.executeCommandCreateRequest(ctx, resourceGroupName, factoryName, request, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // executeCommandCreateRequest creates the ExecuteCommand request. @@ -279,7 +317,7 @@ func (client *DataFlowDebugSessionClient) executeCommandCreateRequest(ctx contex return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -287,41 +325,39 @@ func (client *DataFlowDebugSessionClient) executeCommandCreateRequest(ctx contex reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, request) + if err := runtime.MarshalAsJSON(req, request); err != nil { + return nil, err + } + return req, nil } // NewQueryByFactoryPager - Query all active data flow debug sessions. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.QueryByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.NewQueryByFactoryPager +// method. func (client *DataFlowDebugSessionClient) NewQueryByFactoryPager(resourceGroupName string, factoryName string, options *DataFlowDebugSessionClientQueryByFactoryOptions) *runtime.Pager[DataFlowDebugSessionClientQueryByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[DataFlowDebugSessionClientQueryByFactoryResponse]{ More: func(page DataFlowDebugSessionClientQueryByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DataFlowDebugSessionClientQueryByFactoryResponse) (DataFlowDebugSessionClientQueryByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DataFlowDebugSessionClient.NewQueryByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return DataFlowDebugSessionClientQueryByFactoryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DataFlowDebugSessionClientQueryByFactoryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataFlowDebugSessionClientQueryByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.queryByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -340,7 +376,7 @@ func (client *DataFlowDebugSessionClient) queryByFactoryCreateRequest(ctx contex return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/dataflows_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/dataflows_client.go index 4e9d69ee..dfad1f9f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/dataflows_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,57 +23,56 @@ import ( // DataFlowsClient contains the methods for the DataFlows group. // Don't use this type directly, use NewDataFlowsClient() instead. type DataFlowsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDataFlowsClient creates a new instance of DataFlowsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDataFlowsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataFlowsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DataFlowsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a data flow. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// dataFlowName - The data flow name. -// dataFlow - Data flow resource definition. -// options - DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - dataFlowName - The data flow name. +// - dataFlow - Data flow resource definition. +// - options - DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate +// method. func (client *DataFlowsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, dataFlowName string, dataFlow DataFlowResource, options *DataFlowsClientCreateOrUpdateOptions) (DataFlowsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "DataFlowsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, dataFlowName, dataFlow, options) if err != nil { return DataFlowsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DataFlowsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataFlowsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DataFlowsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -98,18 +94,21 @@ func (client *DataFlowsClient) createOrUpdateCreateRequest(ctx context.Context, return nil, errors.New("parameter dataFlowName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{dataFlowName}", url.PathEscape(dataFlowName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, dataFlow) + if err := runtime.MarshalAsJSON(req, dataFlow); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -123,22 +122,29 @@ func (client *DataFlowsClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a data flow. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// dataFlowName - The data flow name. -// options - DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - dataFlowName - The data flow name. +// - options - DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. func (client *DataFlowsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, dataFlowName string, options *DataFlowsClientDeleteOptions) (DataFlowsClientDeleteResponse, error) { + var err error + const operationName = "DataFlowsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, dataFlowName, options) if err != nil { return DataFlowsClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DataFlowsClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return DataFlowsClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return DataFlowsClientDeleteResponse{}, err } return DataFlowsClientDeleteResponse{}, nil } @@ -162,7 +168,7 @@ func (client *DataFlowsClient) deleteCreateRequest(ctx context.Context, resource return nil, errors.New("parameter dataFlowName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{dataFlowName}", url.PathEscape(dataFlowName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -175,24 +181,32 @@ func (client *DataFlowsClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets a data flow. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// dataFlowName - The data flow name. -// options - DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - dataFlowName - The data flow name. +// - options - DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. func (client *DataFlowsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, dataFlowName string, options *DataFlowsClientGetOptions) (DataFlowsClientGetResponse, error) { + var err error + const operationName = "DataFlowsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, dataFlowName, options) if err != nil { return DataFlowsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DataFlowsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataFlowsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DataFlowsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -214,17 +228,17 @@ func (client *DataFlowsClient) getCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter dataFlowName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{dataFlowName}", url.PathEscape(dataFlowName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -238,36 +252,32 @@ func (client *DataFlowsClient) getHandleResponse(resp *http.Response) (DataFlows } // NewListByFactoryPager - Lists data flows. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.NewListByFactoryPager +// method. func (client *DataFlowsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *DataFlowsClientListByFactoryOptions) *runtime.Pager[DataFlowsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[DataFlowsClientListByFactoryResponse]{ More: func(page DataFlowsClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DataFlowsClientListByFactoryResponse) (DataFlowsClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DataFlowsClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return DataFlowsClientListByFactoryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DataFlowsClientListByFactoryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataFlowsClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -286,7 +296,7 @@ func (client *DataFlowsClient) listByFactoryCreateRequest(ctx context.Context, r return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/datasets_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/datasets_client.go index 48540d63..31a46760 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/datasets_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,56 +23,55 @@ import ( // DatasetsClient contains the methods for the Datasets group. // Don't use this type directly, use NewDatasetsClient() instead. type DatasetsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewDatasetsClient creates a new instance of DatasetsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDatasetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatasetsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &DatasetsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a dataset. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// datasetName - The dataset name. -// dataset - Dataset resource definition. -// options - DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - datasetName - The dataset name. +// - dataset - Dataset resource definition. +// - options - DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. func (client *DatasetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, dataset DatasetResource, options *DatasetsClientCreateOrUpdateOptions) (DatasetsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "DatasetsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, datasetName, dataset, options) if err != nil { return DatasetsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DatasetsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DatasetsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return DatasetsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -97,18 +93,21 @@ func (client *DatasetsClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, errors.New("parameter datasetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{datasetName}", url.PathEscape(datasetName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, dataset) + if err := runtime.MarshalAsJSON(req, dataset); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -122,22 +121,29 @@ func (client *DatasetsClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a dataset. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// datasetName - The dataset name. -// options - DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - datasetName - The dataset name. +// - options - DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. func (client *DatasetsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, options *DatasetsClientDeleteOptions) (DatasetsClientDeleteResponse, error) { + var err error + const operationName = "DatasetsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, datasetName, options) if err != nil { return DatasetsClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DatasetsClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return DatasetsClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return DatasetsClientDeleteResponse{}, err } return DatasetsClientDeleteResponse{}, nil } @@ -161,7 +167,7 @@ func (client *DatasetsClient) deleteCreateRequest(ctx context.Context, resourceG return nil, errors.New("parameter datasetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{datasetName}", url.PathEscape(datasetName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -174,24 +180,32 @@ func (client *DatasetsClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Gets a dataset. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// datasetName - The dataset name. -// options - DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - datasetName - The dataset name. +// - options - DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. func (client *DatasetsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, options *DatasetsClientGetOptions) (DatasetsClientGetResponse, error) { + var err error + const operationName = "DatasetsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, datasetName, options) if err != nil { return DatasetsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return DatasetsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotModified) { - return DatasetsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNotModified) { + err = runtime.NewResponseError(httpResp) + return DatasetsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -213,17 +227,17 @@ func (client *DatasetsClient) getCreateRequest(ctx context.Context, resourceGrou return nil, errors.New("parameter datasetName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{datasetName}", url.PathEscape(datasetName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -237,36 +251,32 @@ func (client *DatasetsClient) getHandleResponse(resp *http.Response) (DatasetsCl } // NewListByFactoryPager - Lists datasets. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.NewListByFactoryPager +// method. func (client *DatasetsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *DatasetsClientListByFactoryOptions) *runtime.Pager[DatasetsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[DatasetsClientListByFactoryResponse]{ More: func(page DatasetsClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *DatasetsClientListByFactoryResponse) (DatasetsClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "DatasetsClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return DatasetsClientListByFactoryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return DatasetsClientListByFactoryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DatasetsClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -285,7 +295,7 @@ func (client *DatasetsClient) listByFactoryCreateRequest(ctx context.Context, re return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/exposurecontrol_client.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/exposurecontrol_client.go index ac85b4c5..e10a38bf 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/exposurecontrol_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,55 +23,54 @@ import ( // ExposureControlClient contains the methods for the ExposureControl group. // Don't use this type directly, use NewExposureControlClient() instead. type ExposureControlClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewExposureControlClient creates a new instance of ExposureControlClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewExposureControlClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExposureControlClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &ExposureControlClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // GetFeatureValue - Get exposure control feature for specific location. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// locationID - The location identifier. -// exposureControlRequest - The exposure control request. -// options - ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue -// method. +// - locationID - The location identifier. +// - exposureControlRequest - The exposure control request. +// - options - ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue +// method. func (client *ExposureControlClient) GetFeatureValue(ctx context.Context, locationID string, exposureControlRequest ExposureControlRequest, options *ExposureControlClientGetFeatureValueOptions) (ExposureControlClientGetFeatureValueResponse, error) { + var err error + const operationName = "ExposureControlClient.GetFeatureValue" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getFeatureValueCreateRequest(ctx, locationID, exposureControlRequest, options) if err != nil { return ExposureControlClientGetFeatureValueResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ExposureControlClientGetFeatureValueResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ExposureControlClientGetFeatureValueResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ExposureControlClientGetFeatureValueResponse{}, err } - return client.getFeatureValueHandleResponse(resp) + resp, err := client.getFeatureValueHandleResponse(httpResp) + return resp, err } // getFeatureValueCreateRequest creates the GetFeatureValue request. @@ -88,7 +84,7 @@ func (client *ExposureControlClient) getFeatureValueCreateRequest(ctx context.Co return nil, errors.New("parameter locationID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{locationId}", url.PathEscape(locationID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -96,7 +92,10 @@ func (client *ExposureControlClient) getFeatureValueCreateRequest(ctx context.Co reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, exposureControlRequest) + if err := runtime.MarshalAsJSON(req, exposureControlRequest); err != nil { + return nil, err + } + return req, nil } // getFeatureValueHandleResponse handles the GetFeatureValue response. @@ -110,25 +109,33 @@ func (client *ExposureControlClient) getFeatureValueHandleResponse(resp *http.Re // GetFeatureValueByFactory - Get exposure control feature for specific factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// exposureControlRequest - The exposure control request. -// options - ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - exposureControlRequest - The exposure control request. +// - options - ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory +// method. func (client *ExposureControlClient) GetFeatureValueByFactory(ctx context.Context, resourceGroupName string, factoryName string, exposureControlRequest ExposureControlRequest, options *ExposureControlClientGetFeatureValueByFactoryOptions) (ExposureControlClientGetFeatureValueByFactoryResponse, error) { + var err error + const operationName = "ExposureControlClient.GetFeatureValueByFactory" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getFeatureValueByFactoryCreateRequest(ctx, resourceGroupName, factoryName, exposureControlRequest, options) if err != nil { return ExposureControlClientGetFeatureValueByFactoryResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ExposureControlClientGetFeatureValueByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ExposureControlClientGetFeatureValueByFactoryResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ExposureControlClientGetFeatureValueByFactoryResponse{}, err } - return client.getFeatureValueByFactoryHandleResponse(resp) + resp, err := client.getFeatureValueByFactoryHandleResponse(httpResp) + return resp, err } // getFeatureValueByFactoryCreateRequest creates the GetFeatureValueByFactory request. @@ -146,7 +153,7 @@ func (client *ExposureControlClient) getFeatureValueByFactoryCreateRequest(ctx c return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -154,7 +161,10 @@ func (client *ExposureControlClient) getFeatureValueByFactoryCreateRequest(ctx c reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, exposureControlRequest) + if err := runtime.MarshalAsJSON(req, exposureControlRequest); err != nil { + return nil, err + } + return req, nil } // getFeatureValueByFactoryHandleResponse handles the GetFeatureValueByFactory response. @@ -168,25 +178,33 @@ func (client *ExposureControlClient) getFeatureValueByFactoryHandleResponse(resp // QueryFeatureValuesByFactory - Get list of exposure control features for specific factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// exposureControlBatchRequest - The exposure control request for list of features. -// options - ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - exposureControlBatchRequest - The exposure control request for list of features. +// - options - ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory +// method. func (client *ExposureControlClient) QueryFeatureValuesByFactory(ctx context.Context, resourceGroupName string, factoryName string, exposureControlBatchRequest ExposureControlBatchRequest, options *ExposureControlClientQueryFeatureValuesByFactoryOptions) (ExposureControlClientQueryFeatureValuesByFactoryResponse, error) { + var err error + const operationName = "ExposureControlClient.QueryFeatureValuesByFactory" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.queryFeatureValuesByFactoryCreateRequest(ctx, resourceGroupName, factoryName, exposureControlBatchRequest, options) if err != nil { return ExposureControlClientQueryFeatureValuesByFactoryResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ExposureControlClientQueryFeatureValuesByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ExposureControlClientQueryFeatureValuesByFactoryResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ExposureControlClientQueryFeatureValuesByFactoryResponse{}, err } - return client.queryFeatureValuesByFactoryHandleResponse(resp) + resp, err := client.queryFeatureValuesByFactoryHandleResponse(httpResp) + return resp, err } // queryFeatureValuesByFactoryCreateRequest creates the QueryFeatureValuesByFactory request. @@ -204,7 +222,7 @@ func (client *ExposureControlClient) queryFeatureValuesByFactoryCreateRequest(ct return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -212,7 +230,10 @@ func (client *ExposureControlClient) queryFeatureValuesByFactoryCreateRequest(ct reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, exposureControlBatchRequest) + if err := runtime.MarshalAsJSON(req, exposureControlBatchRequest); err != nil { + return nil, err + } + return req, nil } // queryFeatureValuesByFactoryHandleResponse handles the QueryFeatureValuesByFactory response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/factories_client.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/factories_client.go index f31442b0..6ad2c3e1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/factories_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,55 +23,54 @@ import ( // FactoriesClient contains the methods for the Factories group. // Don't use this type directly, use NewFactoriesClient() instead. type FactoriesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewFactoriesClient creates a new instance of FactoriesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewFactoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FactoriesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &FactoriesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // ConfigureFactoryRepo - Updates a factory's repo information. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// locationID - The location identifier. -// factoryRepoUpdate - Update factory repo request definition. -// options - FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo -// method. +// - locationID - The location identifier. +// - factoryRepoUpdate - Update factory repo request definition. +// - options - FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo +// method. func (client *FactoriesClient) ConfigureFactoryRepo(ctx context.Context, locationID string, factoryRepoUpdate FactoryRepoUpdate, options *FactoriesClientConfigureFactoryRepoOptions) (FactoriesClientConfigureFactoryRepoResponse, error) { + var err error + const operationName = "FactoriesClient.ConfigureFactoryRepo" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.configureFactoryRepoCreateRequest(ctx, locationID, factoryRepoUpdate, options) if err != nil { return FactoriesClientConfigureFactoryRepoResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return FactoriesClientConfigureFactoryRepoResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return FactoriesClientConfigureFactoryRepoResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return FactoriesClientConfigureFactoryRepoResponse{}, err } - return client.configureFactoryRepoHandleResponse(resp) + resp, err := client.configureFactoryRepoHandleResponse(httpResp) + return resp, err } // configureFactoryRepoCreateRequest creates the ConfigureFactoryRepo request. @@ -88,7 +84,7 @@ func (client *FactoriesClient) configureFactoryRepoCreateRequest(ctx context.Con return nil, errors.New("parameter locationID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{locationId}", url.PathEscape(locationID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -96,7 +92,10 @@ func (client *FactoriesClient) configureFactoryRepoCreateRequest(ctx context.Con reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, factoryRepoUpdate) + if err := runtime.MarshalAsJSON(req, factoryRepoUpdate); err != nil { + return nil, err + } + return req, nil } // configureFactoryRepoHandleResponse handles the ConfigureFactoryRepo response. @@ -110,25 +109,33 @@ func (client *FactoriesClient) configureFactoryRepoHandleResponse(resp *http.Res // CreateOrUpdate - Creates or updates a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// factory - Factory resource definition. -// options - FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - factory - Factory resource definition. +// - options - FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate +// method. func (client *FactoriesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, factory Factory, options *FactoriesClientCreateOrUpdateOptions) (FactoriesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "FactoriesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, factory, options) if err != nil { return FactoriesClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return FactoriesClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return FactoriesClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return FactoriesClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -146,18 +153,21 @@ func (client *FactoriesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, factory) + if err := runtime.MarshalAsJSON(req, factory); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -171,21 +181,28 @@ func (client *FactoriesClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. func (client *FactoriesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, options *FactoriesClientDeleteOptions) (FactoriesClientDeleteResponse, error) { + var err error + const operationName = "FactoriesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, options) if err != nil { return FactoriesClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return FactoriesClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return FactoriesClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return FactoriesClientDeleteResponse{}, err } return FactoriesClientDeleteResponse{}, nil } @@ -205,7 +222,7 @@ func (client *FactoriesClient) deleteCreateRequest(ctx context.Context, resource return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -218,23 +235,31 @@ func (client *FactoriesClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. func (client *FactoriesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, options *FactoriesClientGetOptions) (FactoriesClientGetResponse, error) { + var err error + const operationName = "FactoriesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, options) if err != nil { return FactoriesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return FactoriesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotModified) { - return FactoriesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNotModified) { + err = runtime.NewResponseError(httpResp) + return FactoriesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -252,17 +277,17 @@ func (client *FactoriesClient) getCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -277,25 +302,33 @@ func (client *FactoriesClient) getHandleResponse(resp *http.Response) (Factories // GetDataPlaneAccess - Get Data Plane access. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// policy - Data Plane user access policy definition. -// options - FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - policy - Data Plane user access policy definition. +// - options - FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess +// method. func (client *FactoriesClient) GetDataPlaneAccess(ctx context.Context, resourceGroupName string, factoryName string, policy UserAccessPolicy, options *FactoriesClientGetDataPlaneAccessOptions) (FactoriesClientGetDataPlaneAccessResponse, error) { + var err error + const operationName = "FactoriesClient.GetDataPlaneAccess" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getDataPlaneAccessCreateRequest(ctx, resourceGroupName, factoryName, policy, options) if err != nil { return FactoriesClientGetDataPlaneAccessResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return FactoriesClientGetDataPlaneAccessResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return FactoriesClientGetDataPlaneAccessResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return FactoriesClientGetDataPlaneAccessResponse{}, err } - return client.getDataPlaneAccessHandleResponse(resp) + resp, err := client.getDataPlaneAccessHandleResponse(httpResp) + return resp, err } // getDataPlaneAccessCreateRequest creates the GetDataPlaneAccess request. @@ -313,7 +346,7 @@ func (client *FactoriesClient) getDataPlaneAccessCreateRequest(ctx context.Conte return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -321,7 +354,10 @@ func (client *FactoriesClient) getDataPlaneAccessCreateRequest(ctx context.Conte reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, policy) + if err := runtime.MarshalAsJSON(req, policy); err != nil { + return nil, err + } + return req, nil } // getDataPlaneAccessHandleResponse handles the GetDataPlaneAccess response. @@ -335,25 +371,33 @@ func (client *FactoriesClient) getDataPlaneAccessHandleResponse(resp *http.Respo // GetGitHubAccessToken - Get GitHub Access Token. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// gitHubAccessTokenRequest - Get GitHub access token request definition. -// options - FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - gitHubAccessTokenRequest - Get GitHub access token request definition. +// - options - FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken +// method. func (client *FactoriesClient) GetGitHubAccessToken(ctx context.Context, resourceGroupName string, factoryName string, gitHubAccessTokenRequest GitHubAccessTokenRequest, options *FactoriesClientGetGitHubAccessTokenOptions) (FactoriesClientGetGitHubAccessTokenResponse, error) { + var err error + const operationName = "FactoriesClient.GetGitHubAccessToken" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getGitHubAccessTokenCreateRequest(ctx, resourceGroupName, factoryName, gitHubAccessTokenRequest, options) if err != nil { return FactoriesClientGetGitHubAccessTokenResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return FactoriesClientGetGitHubAccessTokenResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return FactoriesClientGetGitHubAccessTokenResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return FactoriesClientGetGitHubAccessTokenResponse{}, err } - return client.getGitHubAccessTokenHandleResponse(resp) + resp, err := client.getGitHubAccessTokenHandleResponse(httpResp) + return resp, err } // getGitHubAccessTokenCreateRequest creates the GetGitHubAccessToken request. @@ -371,7 +415,7 @@ func (client *FactoriesClient) getGitHubAccessTokenCreateRequest(ctx context.Con return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -379,7 +423,10 @@ func (client *FactoriesClient) getGitHubAccessTokenCreateRequest(ctx context.Con reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, gitHubAccessTokenRequest) + if err := runtime.MarshalAsJSON(req, gitHubAccessTokenRequest); err != nil { + return nil, err + } + return req, nil } // getGitHubAccessTokenHandleResponse handles the GetGitHubAccessToken response. @@ -392,34 +439,29 @@ func (client *FactoriesClient) getGitHubAccessTokenHandleResponse(resp *http.Res } // NewListPager - Lists factories under the specified subscription. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// options - FactoriesClientListOptions contains the optional parameters for the FactoriesClient.List method. +// - options - FactoriesClientListOptions contains the optional parameters for the FactoriesClient.NewListPager method. func (client *FactoriesClient) NewListPager(options *FactoriesClientListOptions) *runtime.Pager[FactoriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[FactoriesClientListResponse]{ More: func(page FactoriesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *FactoriesClientListResponse) (FactoriesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "FactoriesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return FactoriesClientListResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return FactoriesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return FactoriesClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -430,7 +472,7 @@ func (client *FactoriesClient) listCreateRequest(ctx context.Context, options *F return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -451,36 +493,31 @@ func (client *FactoriesClient) listHandleResponse(resp *http.Response) (Factorie } // NewListByResourceGroupPager - Lists factories. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// options - FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.ListByResourceGroup -// method. +// - resourceGroupName - The resource group name. +// - options - FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.NewListByResourceGroupPager +// method. func (client *FactoriesClient) NewListByResourceGroupPager(resourceGroupName string, options *FactoriesClientListByResourceGroupOptions) *runtime.Pager[FactoriesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[FactoriesClientListByResourceGroupResponse]{ More: func(page FactoriesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *FactoriesClientListByResourceGroupResponse) (FactoriesClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "FactoriesClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) if err != nil { return FactoriesClientListByResourceGroupResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return FactoriesClientListByResourceGroupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return FactoriesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } return client.listByResourceGroupHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -495,7 +532,7 @@ func (client *FactoriesClient) listByResourceGroupCreateRequest(ctx context.Cont return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -517,24 +554,32 @@ func (client *FactoriesClient) listByResourceGroupHandleResponse(resp *http.Resp // Update - Updates a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// factoryUpdateParameters - The parameters for updating a factory. -// options - FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - factoryUpdateParameters - The parameters for updating a factory. +// - options - FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. func (client *FactoriesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, factoryUpdateParameters FactoryUpdateParameters, options *FactoriesClientUpdateOptions) (FactoriesClientUpdateResponse, error) { + var err error + const operationName = "FactoriesClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, factoryName, factoryUpdateParameters, options) if err != nil { return FactoriesClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return FactoriesClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return FactoriesClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return FactoriesClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -552,7 +597,7 @@ func (client *FactoriesClient) updateCreateRequest(ctx context.Context, resource return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -560,7 +605,10 @@ func (client *FactoriesClient) updateCreateRequest(ctx context.Context, resource reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, factoryUpdateParameters) + if err := runtime.MarshalAsJSON(req, factoryUpdateParameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/globalparameters_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/globalparameters_client.go index 33286baa..52f0bc2b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/globalparameters_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,57 +23,56 @@ import ( // GlobalParametersClient contains the methods for the GlobalParameters group. // Don't use this type directly, use NewGlobalParametersClient() instead. type GlobalParametersClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewGlobalParametersClient creates a new instance of GlobalParametersClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGlobalParametersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GlobalParametersClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &GlobalParametersClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a Global parameter // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// globalParameterName - The global parameter name. -// defaultParam - Global parameter resource definition. -// options - GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - globalParameterName - The global parameter name. +// - defaultParam - Global parameter resource definition. +// - options - GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate +// method. func (client *GlobalParametersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, globalParameterName string, defaultParam GlobalParameterResource, options *GlobalParametersClientCreateOrUpdateOptions) (GlobalParametersClientCreateOrUpdateResponse, error) { + var err error + const operationName = "GlobalParametersClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, globalParameterName, defaultParam, options) if err != nil { return GlobalParametersClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GlobalParametersClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GlobalParametersClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GlobalParametersClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -98,7 +94,7 @@ func (client *GlobalParametersClient) createOrUpdateCreateRequest(ctx context.Co return nil, errors.New("parameter globalParameterName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{globalParameterName}", url.PathEscape(globalParameterName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -106,7 +102,10 @@ func (client *GlobalParametersClient) createOrUpdateCreateRequest(ctx context.Co reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, defaultParam) + if err := runtime.MarshalAsJSON(req, defaultParam); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -120,22 +119,29 @@ func (client *GlobalParametersClient) createOrUpdateHandleResponse(resp *http.Re // Delete - Deletes a Global parameter // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// globalParameterName - The global parameter name. -// options - GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - globalParameterName - The global parameter name. +// - options - GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. func (client *GlobalParametersClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, globalParameterName string, options *GlobalParametersClientDeleteOptions) (GlobalParametersClientDeleteResponse, error) { + var err error + const operationName = "GlobalParametersClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, globalParameterName, options) if err != nil { return GlobalParametersClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GlobalParametersClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return GlobalParametersClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return GlobalParametersClientDeleteResponse{}, err } return GlobalParametersClientDeleteResponse{}, nil } @@ -159,7 +165,7 @@ func (client *GlobalParametersClient) deleteCreateRequest(ctx context.Context, r return nil, errors.New("parameter globalParameterName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{globalParameterName}", url.PathEscape(globalParameterName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -172,24 +178,32 @@ func (client *GlobalParametersClient) deleteCreateRequest(ctx context.Context, r // Get - Gets a Global parameter // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// globalParameterName - The global parameter name. -// options - GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - globalParameterName - The global parameter name. +// - options - GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. func (client *GlobalParametersClient) Get(ctx context.Context, resourceGroupName string, factoryName string, globalParameterName string, options *GlobalParametersClientGetOptions) (GlobalParametersClientGetResponse, error) { + var err error + const operationName = "GlobalParametersClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, globalParameterName, options) if err != nil { return GlobalParametersClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return GlobalParametersClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GlobalParametersClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GlobalParametersClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -211,7 +225,7 @@ func (client *GlobalParametersClient) getCreateRequest(ctx context.Context, reso return nil, errors.New("parameter globalParameterName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{globalParameterName}", url.PathEscape(globalParameterName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -232,37 +246,32 @@ func (client *GlobalParametersClient) getHandleResponse(resp *http.Response) (Gl } // NewListByFactoryPager - Lists Global parameters -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.NewListByFactoryPager +// method. func (client *GlobalParametersClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *GlobalParametersClientListByFactoryOptions) *runtime.Pager[GlobalParametersClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[GlobalParametersClientListByFactoryResponse]{ More: func(page GlobalParametersClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *GlobalParametersClientListByFactoryResponse) (GlobalParametersClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return GlobalParametersClientListByFactoryResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GlobalParametersClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return GlobalParametersClientListByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GlobalParametersClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -281,7 +290,7 @@ func (client *GlobalParametersClient) listByFactoryCreateRequest(ctx context.Con return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimenodes_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimenodes_client.go index e62c5b8f..22063e36 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimenodes_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,55 +23,53 @@ import ( // IntegrationRuntimeNodesClient contains the methods for the IntegrationRuntimeNodes group. // Don't use this type directly, use NewIntegrationRuntimeNodesClient() instead. type IntegrationRuntimeNodesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewIntegrationRuntimeNodesClient creates a new instance of IntegrationRuntimeNodesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeNodesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeNodesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &IntegrationRuntimeNodesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Delete - Deletes a self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// options - IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - options - IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete +// method. func (client *IntegrationRuntimeNodesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientDeleteOptions) (IntegrationRuntimeNodesClientDeleteResponse, error) { + var err error + const operationName = "IntegrationRuntimeNodesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) if err != nil { return IntegrationRuntimeNodesClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimeNodesClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return IntegrationRuntimeNodesClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimeNodesClientDeleteResponse{}, err } return IntegrationRuntimeNodesClientDeleteResponse{}, nil } @@ -102,7 +97,7 @@ func (client *IntegrationRuntimeNodesClient) deleteCreateRequest(ctx context.Con return nil, errors.New("parameter nodeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{nodeName}", url.PathEscape(nodeName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -115,26 +110,34 @@ func (client *IntegrationRuntimeNodesClient) deleteCreateRequest(ctx context.Con // Get - Gets a self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// options - IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - options - IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get +// method. func (client *IntegrationRuntimeNodesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientGetOptions) (IntegrationRuntimeNodesClientGetResponse, error) { + var err error + const operationName = "IntegrationRuntimeNodesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) if err != nil { return IntegrationRuntimeNodesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimeNodesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimeNodesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimeNodesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -160,7 +163,7 @@ func (client *IntegrationRuntimeNodesClient) getCreateRequest(ctx context.Contex return nil, errors.New("parameter nodeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{nodeName}", url.PathEscape(nodeName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -182,26 +185,34 @@ func (client *IntegrationRuntimeNodesClient) getHandleResponse(resp *http.Respon // GetIPAddress - Get the IP address of self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// options - IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - options - IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress +// method. func (client *IntegrationRuntimeNodesClient) GetIPAddress(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientGetIPAddressOptions) (IntegrationRuntimeNodesClientGetIPAddressResponse, error) { + var err error + const operationName = "IntegrationRuntimeNodesClient.GetIPAddress" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getIPAddressCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) if err != nil { return IntegrationRuntimeNodesClientGetIPAddressResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimeNodesClientGetIPAddressResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimeNodesClientGetIPAddressResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimeNodesClientGetIPAddressResponse{}, err } - return client.getIPAddressHandleResponse(resp) + resp, err := client.getIPAddressHandleResponse(httpResp) + return resp, err } // getIPAddressCreateRequest creates the GetIPAddress request. @@ -227,7 +238,7 @@ func (client *IntegrationRuntimeNodesClient) getIPAddressCreateRequest(ctx conte return nil, errors.New("parameter nodeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{nodeName}", url.PathEscape(nodeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -249,27 +260,35 @@ func (client *IntegrationRuntimeNodesClient) getIPAddressHandleResponse(resp *ht // Update - Updates a self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// updateIntegrationRuntimeNodeRequest - The parameters for updating an integration runtime node. -// options - IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - updateIntegrationRuntimeNodeRequest - The parameters for updating an integration runtime node. +// - options - IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update +// method. func (client *IntegrationRuntimeNodesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, updateIntegrationRuntimeNodeRequest UpdateIntegrationRuntimeNodeRequest, options *IntegrationRuntimeNodesClientUpdateOptions) (IntegrationRuntimeNodesClientUpdateResponse, error) { + var err error + const operationName = "IntegrationRuntimeNodesClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options) if err != nil { return IntegrationRuntimeNodesClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimeNodesClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimeNodesClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimeNodesClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -295,7 +314,7 @@ func (client *IntegrationRuntimeNodesClient) updateCreateRequest(ctx context.Con return nil, errors.New("parameter nodeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{nodeName}", url.PathEscape(nodeName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -303,7 +322,10 @@ func (client *IntegrationRuntimeNodesClient) updateCreateRequest(ctx context.Con reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, updateIntegrationRuntimeNodeRequest) + if err := runtime.MarshalAsJSON(req, updateIntegrationRuntimeNodeRequest); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimeobjectmetadata_client.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimeobjectmetadata_client.go index 9c46d5bb..8b658081 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimeobjectmetadata_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,56 +23,55 @@ import ( // IntegrationRuntimeObjectMetadataClient contains the methods for the IntegrationRuntimeObjectMetadata group. // Don't use this type directly, use NewIntegrationRuntimeObjectMetadataClient() instead. type IntegrationRuntimeObjectMetadataClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewIntegrationRuntimeObjectMetadataClient creates a new instance of IntegrationRuntimeObjectMetadataClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeObjectMetadataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeObjectMetadataClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &IntegrationRuntimeObjectMetadataClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get +// method. func (client *IntegrationRuntimeObjectMetadataClient) Get(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientGetOptions) (IntegrationRuntimeObjectMetadataClientGetResponse, error) { + var err error + const operationName = "IntegrationRuntimeObjectMetadataClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimeObjectMetadataClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimeObjectMetadataClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimeObjectMetadataClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimeObjectMetadataClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -97,7 +93,7 @@ func (client *IntegrationRuntimeObjectMetadataClient) getCreateRequest(ctx conte return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -106,7 +102,10 @@ func (client *IntegrationRuntimeObjectMetadataClient) getCreateRequest(ctx conte req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.GetMetadataRequest != nil { - return req, runtime.MarshalAsJSON(req, *options.GetMetadataRequest) + if err := runtime.MarshalAsJSON(req, *options.GetMetadataRequest); err != nil { + return nil, err + } + return req, nil } return req, nil } @@ -122,40 +121,53 @@ func (client *IntegrationRuntimeObjectMetadataClient) getHandleResponse(resp *ht // BeginRefresh - Refresh a SSIS integration runtime object metadata. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh +// method. func (client *IntegrationRuntimeObjectMetadataClient) BeginRefresh(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) (*runtime.Poller[IntegrationRuntimeObjectMetadataClientRefreshResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.refresh(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return nil, err } - return runtime.NewPoller[IntegrationRuntimeObjectMetadataClientRefreshResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[IntegrationRuntimeObjectMetadataClientRefreshResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[IntegrationRuntimeObjectMetadataClientRefreshResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[IntegrationRuntimeObjectMetadataClientRefreshResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Refresh - Refresh a SSIS integration runtime object metadata. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *IntegrationRuntimeObjectMetadataClient) refresh(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) (*http.Response, error) { + var err error + const operationName = "IntegrationRuntimeObjectMetadataClient.BeginRefresh" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.refreshCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // refreshCreateRequest creates the Refresh request. @@ -177,7 +189,7 @@ func (client *IntegrationRuntimeObjectMetadataClient) refreshCreateRequest(ctx c return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimes_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimes_client.go index 1974c879..d6f86257 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/integrationruntimes_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,57 +23,56 @@ import ( // IntegrationRuntimesClient contains the methods for the IntegrationRuntimes group. // Don't use this type directly, use NewIntegrationRuntimesClient() instead. type IntegrationRuntimesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewIntegrationRuntimesClient creates a new instance of IntegrationRuntimesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &IntegrationRuntimesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateLinkedIntegrationRuntime - Create a linked integration runtime entry in a shared integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// createLinkedIntegrationRuntimeRequest - The linked integration runtime properties. -// options - IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - createLinkedIntegrationRuntimeRequest - The linked integration runtime properties. +// - options - IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime +// method. func (client *IntegrationRuntimesClient) CreateLinkedIntegrationRuntime(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, createLinkedIntegrationRuntimeRequest CreateLinkedIntegrationRuntimeRequest, options *IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions) (IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.CreateLinkedIntegrationRuntime" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createLinkedIntegrationRuntimeCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest, options) if err != nil { return IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse{}, err } - return client.createLinkedIntegrationRuntimeHandleResponse(resp) + resp, err := client.createLinkedIntegrationRuntimeHandleResponse(httpResp) + return resp, err } // createLinkedIntegrationRuntimeCreateRequest creates the CreateLinkedIntegrationRuntime request. @@ -98,7 +94,7 @@ func (client *IntegrationRuntimesClient) createLinkedIntegrationRuntimeCreateReq return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -106,7 +102,10 @@ func (client *IntegrationRuntimesClient) createLinkedIntegrationRuntimeCreateReq reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, createLinkedIntegrationRuntimeRequest) + if err := runtime.MarshalAsJSON(req, createLinkedIntegrationRuntimeRequest); err != nil { + return nil, err + } + return req, nil } // createLinkedIntegrationRuntimeHandleResponse handles the CreateLinkedIntegrationRuntime response. @@ -120,26 +119,34 @@ func (client *IntegrationRuntimesClient) createLinkedIntegrationRuntimeHandleRes // CreateOrUpdate - Creates or updates an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// integrationRuntime - Integration runtime resource definition. -// options - IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - integrationRuntime - Integration runtime resource definition. +// - options - IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate +// method. func (client *IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, integrationRuntime IntegrationRuntimeResource, options *IntegrationRuntimesClientCreateOrUpdateOptions) (IntegrationRuntimesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, options) if err != nil { return IntegrationRuntimesClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -161,18 +168,21 @@ func (client *IntegrationRuntimesClient) createOrUpdateCreateRequest(ctx context return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, integrationRuntime) + if err := runtime.MarshalAsJSON(req, integrationRuntime); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -186,23 +196,30 @@ func (client *IntegrationRuntimesClient) createOrUpdateHandleResponse(resp *http // Delete - Deletes an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete +// method. func (client *IntegrationRuntimesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientDeleteOptions) (IntegrationRuntimesClientDeleteResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return IntegrationRuntimesClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientDeleteResponse{}, err } return IntegrationRuntimesClientDeleteResponse{}, nil } @@ -226,7 +243,7 @@ func (client *IntegrationRuntimesClient) deleteCreateRequest(ctx context.Context return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -239,24 +256,32 @@ func (client *IntegrationRuntimesClient) deleteCreateRequest(ctx context.Context // Get - Gets an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. func (client *IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetOptions) (IntegrationRuntimesClientGetResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotModified) { - return IntegrationRuntimesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNotModified) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -278,17 +303,17 @@ func (client *IntegrationRuntimesClient) getCreateRequest(ctx context.Context, r return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -304,25 +329,33 @@ func (client *IntegrationRuntimesClient) getHandleResponse(resp *http.Response) // GetConnectionInfo - Gets the on-premises integration runtime connection information for encrypting the on-premises data // source credentials. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo +// method. func (client *IntegrationRuntimesClient) GetConnectionInfo(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetConnectionInfoOptions) (IntegrationRuntimesClientGetConnectionInfoResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.GetConnectionInfo" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getConnectionInfoCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientGetConnectionInfoResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientGetConnectionInfoResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientGetConnectionInfoResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientGetConnectionInfoResponse{}, err } - return client.getConnectionInfoHandleResponse(resp) + resp, err := client.getConnectionInfoHandleResponse(httpResp) + return resp, err } // getConnectionInfoCreateRequest creates the GetConnectionInfo request. @@ -344,7 +377,7 @@ func (client *IntegrationRuntimesClient) getConnectionInfoCreateRequest(ctx cont return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -367,25 +400,33 @@ func (client *IntegrationRuntimesClient) getConnectionInfoHandleResponse(resp *h // GetMonitoringData - Get the integration runtime monitoring data, which includes the monitor data for all the nodes under // this integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData +// method. func (client *IntegrationRuntimesClient) GetMonitoringData(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetMonitoringDataOptions) (IntegrationRuntimesClientGetMonitoringDataResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.GetMonitoringData" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getMonitoringDataCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientGetMonitoringDataResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientGetMonitoringDataResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientGetMonitoringDataResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientGetMonitoringDataResponse{}, err } - return client.getMonitoringDataHandleResponse(resp) + resp, err := client.getMonitoringDataHandleResponse(httpResp) + return resp, err } // getMonitoringDataCreateRequest creates the GetMonitoringData request. @@ -407,7 +448,7 @@ func (client *IntegrationRuntimesClient) getMonitoringDataCreateRequest(ctx cont return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -429,25 +470,33 @@ func (client *IntegrationRuntimesClient) getMonitoringDataHandleResponse(resp *h // GetStatus - Gets detailed status information for an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus +// method. func (client *IntegrationRuntimesClient) GetStatus(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetStatusOptions) (IntegrationRuntimesClientGetStatusResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.GetStatus" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getStatusCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientGetStatusResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientGetStatusResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientGetStatusResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientGetStatusResponse{}, err } - return client.getStatusHandleResponse(resp) + resp, err := client.getStatusHandleResponse(httpResp) + return resp, err } // getStatusCreateRequest creates the GetStatus request. @@ -469,7 +518,7 @@ func (client *IntegrationRuntimesClient) getStatusCreateRequest(ctx context.Cont return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -491,25 +540,33 @@ func (client *IntegrationRuntimesClient) getStatusHandleResponse(resp *http.Resp // ListAuthKeys - Retrieves the authentication keys for an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys +// method. func (client *IntegrationRuntimesClient) ListAuthKeys(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientListAuthKeysOptions) (IntegrationRuntimesClientListAuthKeysResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.ListAuthKeys" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listAuthKeysCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientListAuthKeysResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientListAuthKeysResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientListAuthKeysResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientListAuthKeysResponse{}, err } - return client.listAuthKeysHandleResponse(resp) + resp, err := client.listAuthKeysHandleResponse(httpResp) + return resp, err } // listAuthKeysCreateRequest creates the ListAuthKeys request. @@ -531,7 +588,7 @@ func (client *IntegrationRuntimesClient) listAuthKeysCreateRequest(ctx context.C return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -552,37 +609,32 @@ func (client *IntegrationRuntimesClient) listAuthKeysHandleResponse(resp *http.R } // NewListByFactoryPager - Lists integration runtimes. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.NewListByFactoryPager +// method. func (client *IntegrationRuntimesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *IntegrationRuntimesClientListByFactoryOptions) *runtime.Pager[IntegrationRuntimesClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[IntegrationRuntimesClientListByFactoryResponse]{ More: func(page IntegrationRuntimesClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *IntegrationRuntimesClientListByFactoryResponse) (IntegrationRuntimesClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "IntegrationRuntimesClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return IntegrationRuntimesClientListByFactoryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return IntegrationRuntimesClientListByFactoryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -601,7 +653,7 @@ func (client *IntegrationRuntimesClient) listByFactoryCreateRequest(ctx context. return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -624,25 +676,33 @@ func (client *IntegrationRuntimesClient) listByFactoryHandleResponse(resp *http. // ListOutboundNetworkDependenciesEndpoints - Gets the list of outbound network dependencies for a given Azure-SSIS integration // runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for -// the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for +// the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. func (client *IntegrationRuntimesClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions) (IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.listOutboundNetworkDependenciesEndpointsCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse{}, err } - return client.listOutboundNetworkDependenciesEndpointsHandleResponse(resp) + resp, err := client.listOutboundNetworkDependenciesEndpointsHandleResponse(httpResp) + return resp, err } // listOutboundNetworkDependenciesEndpointsCreateRequest creates the ListOutboundNetworkDependenciesEndpoints request. @@ -664,7 +724,7 @@ func (client *IntegrationRuntimesClient) listOutboundNetworkDependenciesEndpoint return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -686,26 +746,34 @@ func (client *IntegrationRuntimesClient) listOutboundNetworkDependenciesEndpoint // RegenerateAuthKey - Regenerates the authentication key for an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// regenerateKeyParameters - The parameters for regenerating integration runtime authentication key. -// options - IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - regenerateKeyParameters - The parameters for regenerating integration runtime authentication key. +// - options - IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey +// method. func (client *IntegrationRuntimesClient) RegenerateAuthKey(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, regenerateKeyParameters IntegrationRuntimeRegenerateKeyParameters, options *IntegrationRuntimesClientRegenerateAuthKeyOptions) (IntegrationRuntimesClientRegenerateAuthKeyResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.RegenerateAuthKey" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.regenerateAuthKeyCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, options) if err != nil { return IntegrationRuntimesClientRegenerateAuthKeyResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientRegenerateAuthKeyResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientRegenerateAuthKeyResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientRegenerateAuthKeyResponse{}, err } - return client.regenerateAuthKeyHandleResponse(resp) + resp, err := client.regenerateAuthKeyHandleResponse(httpResp) + return resp, err } // regenerateAuthKeyCreateRequest creates the RegenerateAuthKey request. @@ -727,7 +795,7 @@ func (client *IntegrationRuntimesClient) regenerateAuthKeyCreateRequest(ctx cont return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -735,7 +803,10 @@ func (client *IntegrationRuntimesClient) regenerateAuthKeyCreateRequest(ctx cont reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, regenerateKeyParameters) + if err := runtime.MarshalAsJSON(req, regenerateKeyParameters); err != nil { + return nil, err + } + return req, nil } // regenerateAuthKeyHandleResponse handles the RegenerateAuthKey response. @@ -749,24 +820,31 @@ func (client *IntegrationRuntimesClient) regenerateAuthKeyHandleResponse(resp *h // RemoveLinks - Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// linkedIntegrationRuntimeRequest - The data factory name for the linked integration runtime. -// options - IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - linkedIntegrationRuntimeRequest - The data factory name for the linked integration runtime. +// - options - IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks +// method. func (client *IntegrationRuntimesClient) RemoveLinks(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, linkedIntegrationRuntimeRequest LinkedIntegrationRuntimeRequest, options *IntegrationRuntimesClientRemoveLinksOptions) (IntegrationRuntimesClientRemoveLinksResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.RemoveLinks" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.removeLinksCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest, options) if err != nil { return IntegrationRuntimesClientRemoveLinksResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientRemoveLinksResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientRemoveLinksResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientRemoveLinksResponse{}, err } return IntegrationRuntimesClientRemoveLinksResponse{}, nil } @@ -790,7 +868,7 @@ func (client *IntegrationRuntimesClient) removeLinksCreateRequest(ctx context.Co return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -798,45 +876,61 @@ func (client *IntegrationRuntimesClient) removeLinksCreateRequest(ctx context.Co reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, linkedIntegrationRuntimeRequest) + if err := runtime.MarshalAsJSON(req, linkedIntegrationRuntimeRequest); err != nil { + return nil, err + } + return req, nil } // BeginStart - Starts a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart +// method. func (client *IntegrationRuntimesClient) BeginStart(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStartOptions) (*runtime.Poller[IntegrationRuntimesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return nil, err } - return runtime.NewPoller[IntegrationRuntimesClientStartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[IntegrationRuntimesClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[IntegrationRuntimesClientStartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[IntegrationRuntimesClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Start - Starts a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *IntegrationRuntimesClient) start(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "IntegrationRuntimesClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startCreateRequest creates the Start request. @@ -858,7 +952,7 @@ func (client *IntegrationRuntimesClient) startCreateRequest(ctx context.Context, return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -871,40 +965,53 @@ func (client *IntegrationRuntimesClient) startCreateRequest(ctx context.Context, // BeginStop - Stops a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop +// method. func (client *IntegrationRuntimesClient) BeginStop(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStopOptions) (*runtime.Poller[IntegrationRuntimesClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return nil, err } - return runtime.NewPoller[IntegrationRuntimesClientStopResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[IntegrationRuntimesClientStopResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[IntegrationRuntimesClientStopResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[IntegrationRuntimesClientStopResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Stop - Stops a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *IntegrationRuntimesClient) stop(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStopOptions) (*http.Response, error) { + var err error + const operationName = "IntegrationRuntimesClient.BeginStop" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.stopCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // stopCreateRequest creates the Stop request. @@ -926,7 +1033,7 @@ func (client *IntegrationRuntimesClient) stopCreateRequest(ctx context.Context, return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -942,23 +1049,30 @@ func (client *IntegrationRuntimesClient) stopCreateRequest(ctx context.Context, // If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration // runtime node than using this API directly. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials +// method. func (client *IntegrationRuntimesClient) SyncCredentials(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientSyncCredentialsOptions) (IntegrationRuntimesClientSyncCredentialsResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.SyncCredentials" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.syncCredentialsCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientSyncCredentialsResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientSyncCredentialsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientSyncCredentialsResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientSyncCredentialsResponse{}, err } return IntegrationRuntimesClientSyncCredentialsResponse{}, nil } @@ -982,7 +1096,7 @@ func (client *IntegrationRuntimesClient) syncCredentialsCreateRequest(ctx contex return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -995,26 +1109,34 @@ func (client *IntegrationRuntimesClient) syncCredentialsCreateRequest(ctx contex // Update - Updates an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// updateIntegrationRuntimeRequest - The parameters for updating an integration runtime. -// options - IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - updateIntegrationRuntimeRequest - The parameters for updating an integration runtime. +// - options - IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update +// method. func (client *IntegrationRuntimesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, updateIntegrationRuntimeRequest UpdateIntegrationRuntimeRequest, options *IntegrationRuntimesClientUpdateOptions) (IntegrationRuntimesClientUpdateResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.updateCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest, options) if err != nil { return IntegrationRuntimesClientUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -1036,7 +1158,7 @@ func (client *IntegrationRuntimesClient) updateCreateRequest(ctx context.Context return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -1044,7 +1166,10 @@ func (client *IntegrationRuntimesClient) updateCreateRequest(ctx context.Context reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, updateIntegrationRuntimeRequest) + if err := runtime.MarshalAsJSON(req, updateIntegrationRuntimeRequest); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. @@ -1058,23 +1183,30 @@ func (client *IntegrationRuntimesClient) updateHandleResponse(resp *http.Respons // Upgrade - Upgrade self-hosted integration runtime to latest version if availability. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade +// method. func (client *IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientUpgradeOptions) (IntegrationRuntimesClientUpgradeResponse, error) { + var err error + const operationName = "IntegrationRuntimesClient.Upgrade" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.upgradeCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { return IntegrationRuntimesClientUpgradeResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return IntegrationRuntimesClientUpgradeResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return IntegrationRuntimesClientUpgradeResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return IntegrationRuntimesClientUpgradeResponse{}, err } return IntegrationRuntimesClientUpgradeResponse{}, nil } @@ -1098,7 +1230,7 @@ func (client *IntegrationRuntimesClient) upgradeCreateRequest(ctx context.Contex return nil, errors.New("parameter integrationRuntimeName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/interfaces.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/interfaces.go new file mode 100644 index 00000000..504b9b6b --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/interfaces.go @@ -0,0 +1,385 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armdatafactory + +// ActivityClassification provides polymorphic access to related types. +// Call the interface's GetActivity() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *Activity, *AppendVariableActivity, *AzureDataExplorerCommandActivity, *AzureFunctionActivity, *AzureMLBatchExecutionActivity, +// - *AzureMLExecutePipelineActivity, *AzureMLUpdateResourceActivity, *ControlActivity, *CopyActivity, *CustomActivity, *DataLakeAnalyticsUSQLActivity, +// - *DatabricksNotebookActivity, *DatabricksSparkJarActivity, *DatabricksSparkPythonActivity, *DeleteActivity, *ExecuteDataFlowActivity, +// - *ExecutePipelineActivity, *ExecuteSSISPackageActivity, *ExecuteWranglingDataflowActivity, *ExecutionActivity, *FailActivity, +// - *FilterActivity, *ForEachActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, +// - *HDInsightSparkActivity, *HDInsightStreamingActivity, *IfConditionActivity, *LookupActivity, *SQLServerStoredProcedureActivity, +// - *ScriptActivity, *SetVariableActivity, *SwitchActivity, *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, +// - *UntilActivity, *ValidationActivity, *WaitActivity, *WebActivity, *WebHookActivity +type ActivityClassification interface { + // GetActivity returns the Activity content of the underlying type. + GetActivity() *Activity +} + +// CompressionReadSettingsClassification provides polymorphic access to related types. +// Call the interface's GetCompressionReadSettings() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *CompressionReadSettings, *TarGZipReadSettings, *TarReadSettings, *ZipDeflateReadSettings +type CompressionReadSettingsClassification interface { + // GetCompressionReadSettings returns the CompressionReadSettings content of the underlying type. + GetCompressionReadSettings() *CompressionReadSettings +} + +// ControlActivityClassification provides polymorphic access to related types. +// Call the interface's GetControlActivity() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AppendVariableActivity, *ControlActivity, *ExecutePipelineActivity, *FailActivity, *FilterActivity, *ForEachActivity, +// - *IfConditionActivity, *SetVariableActivity, *SwitchActivity, *UntilActivity, *ValidationActivity, *WaitActivity, *WebHookActivity +type ControlActivityClassification interface { + ActivityClassification + // GetControlActivity returns the ControlActivity content of the underlying type. + GetControlActivity() *ControlActivity +} + +// CopySinkClassification provides polymorphic access to related types. +// Call the interface's GetCopySink() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AvroSink, *AzureBlobFSSink, *AzureDataExplorerSink, *AzureDataLakeStoreSink, *AzureDatabricksDeltaLakeSink, *AzureMySQLSink, +// - *AzurePostgreSQLSink, *AzureQueueSink, *AzureSQLSink, *AzureSearchIndexSink, *AzureTableSink, *BinarySink, *BlobSink, +// - *CommonDataServiceForAppsSink, *CopySink, *CosmosDbMongoDbAPISink, *CosmosDbSQLAPISink, *DelimitedTextSink, *DocumentDbCollectionSink, +// - *DynamicsCrmSink, *DynamicsSink, *FileSystemSink, *InformixSink, *JSONSink, *LakeHouseTableSink, *MicrosoftAccessSink, +// - *MongoDbAtlasSink, *MongoDbV2Sink, *OdbcSink, *OracleSink, *OrcSink, *ParquetSink, *RestSink, *SQLDWSink, *SQLMISink, +// - *SQLServerSink, *SQLSink, *SalesforceServiceCloudSink, *SalesforceServiceCloudV2Sink, *SalesforceSink, *SalesforceV2Sink, +// - *SapCloudForCustomerSink, *SnowflakeSink, *SnowflakeV2Sink, *WarehouseSink +type CopySinkClassification interface { + // GetCopySink returns the CopySink content of the underlying type. + GetCopySink() *CopySink +} + +// CopySourceClassification provides polymorphic access to related types. +// Call the interface's GetCopySource() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AmazonMWSSource, *AmazonRdsForOracleSource, *AmazonRdsForSQLServerSource, *AmazonRedshiftSource, *AvroSource, *AzureBlobFSSource, +// - *AzureDataExplorerSource, *AzureDataLakeStoreSource, *AzureDatabricksDeltaLakeSource, *AzureMariaDBSource, *AzureMySQLSource, +// - *AzurePostgreSQLSource, *AzureSQLSource, *AzureTableSource, *BinarySource, *BlobSource, *CassandraSource, *CommonDataServiceForAppsSource, +// - *ConcurSource, *CopySource, *CosmosDbMongoDbAPISource, *CosmosDbSQLAPISource, *CouchbaseSource, *Db2Source, *DelimitedTextSource, +// - *DocumentDbCollectionSource, *DrillSource, *DynamicsAXSource, *DynamicsCrmSource, *DynamicsSource, *EloquaSource, *ExcelSource, +// - *FileSystemSource, *GoogleAdWordsSource, *GoogleBigQuerySource, *GoogleBigQueryV2Source, *GreenplumSource, *HBaseSource, +// - *HTTPSource, *HdfsSource, *HiveSource, *HubspotSource, *ImpalaSource, *InformixSource, *JSONSource, *JiraSource, *LakeHouseTableSource, +// - *MagentoSource, *MariaDBSource, *MarketoSource, *MicrosoftAccessSource, *MongoDbAtlasSource, *MongoDbSource, *MongoDbV2Source, +// - *MySQLSource, *NetezzaSource, *ODataSource, *OdbcSource, *Office365Source, *OracleServiceCloudSource, *OracleSource, +// - *OrcSource, *ParquetSource, *PaypalSource, *PhoenixSource, *PostgreSQLSource, *PostgreSQLV2Source, *PrestoSource, *QuickBooksSource, +// - *RelationalSource, *ResponsysSource, *RestSource, *SQLDWSource, *SQLMISource, *SQLServerSource, *SQLSource, *SalesforceMarketingCloudSource, +// - *SalesforceServiceCloudSource, *SalesforceServiceCloudV2Source, *SalesforceSource, *SalesforceV2Source, *SapBwSource, +// - *SapCloudForCustomerSource, *SapEccSource, *SapHanaSource, *SapOdpSource, *SapOpenHubSource, *SapTableSource, *ServiceNowSource, +// - *ServiceNowV2Source, *SharePointOnlineListSource, *ShopifySource, *SnowflakeSource, *SnowflakeV2Source, *SparkSource, +// - *SquareSource, *SybaseSource, *TabularSource, *TeradataSource, *VerticaSource, *WarehouseSource, *WebSource, *XMLSource, +// - *XeroSource, *ZohoSource +type CopySourceClassification interface { + // GetCopySource returns the CopySource content of the underlying type. + GetCopySource() *CopySource +} + +// CredentialClassification provides polymorphic access to related types. +// Call the interface's GetCredential() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *Credential, *ManagedIdentityCredential, *ServicePrincipalCredential +type CredentialClassification interface { + // GetCredential returns the Credential content of the underlying type. + GetCredential() *Credential +} + +// CustomSetupBaseClassification provides polymorphic access to related types. +// Call the interface's GetCustomSetupBase() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AzPowerShellSetup, *CmdkeySetup, *ComponentSetup, *CustomSetupBase, *EnvironmentVariableSetup +type CustomSetupBaseClassification interface { + // GetCustomSetupBase returns the CustomSetupBase content of the underlying type. + GetCustomSetupBase() *CustomSetupBase +} + +// DataFlowClassification provides polymorphic access to related types. +// Call the interface's GetDataFlow() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *DataFlow, *Flowlet, *MappingDataFlow, *WranglingDataFlow +type DataFlowClassification interface { + // GetDataFlow returns the DataFlow content of the underlying type. + GetDataFlow() *DataFlow +} + +// DatasetClassification provides polymorphic access to related types. +// Call the interface's GetDataset() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AmazonMWSObjectDataset, *AmazonRdsForOracleTableDataset, *AmazonRdsForSQLServerTableDataset, *AmazonRedshiftTableDataset, +// - *AmazonS3Dataset, *AvroDataset, *AzureBlobDataset, *AzureBlobFSDataset, *AzureDataExplorerTableDataset, *AzureDataLakeStoreDataset, +// - *AzureDatabricksDeltaLakeDataset, *AzureMariaDBTableDataset, *AzureMySQLTableDataset, *AzurePostgreSQLTableDataset, *AzureSQLDWTableDataset, +// - *AzureSQLMITableDataset, *AzureSQLTableDataset, *AzureSearchIndexDataset, *AzureTableDataset, *BinaryDataset, *CassandraTableDataset, +// - *CommonDataServiceForAppsEntityDataset, *ConcurObjectDataset, *CosmosDbMongoDbAPICollectionDataset, *CosmosDbSQLAPICollectionDataset, +// - *CouchbaseTableDataset, *CustomDataset, *Dataset, *Db2TableDataset, *DelimitedTextDataset, *DocumentDbCollectionDataset, +// - *DrillTableDataset, *DynamicsAXResourceDataset, *DynamicsCrmEntityDataset, *DynamicsEntityDataset, *EloquaObjectDataset, +// - *ExcelDataset, *FileShareDataset, *GoogleAdWordsObjectDataset, *GoogleBigQueryObjectDataset, *GoogleBigQueryV2ObjectDataset, +// - *GreenplumTableDataset, *HBaseObjectDataset, *HTTPDataset, *HiveObjectDataset, *HubspotObjectDataset, *ImpalaObjectDataset, +// - *InformixTableDataset, *JSONDataset, *JiraObjectDataset, *LakeHouseTableDataset, *MagentoObjectDataset, *MariaDBTableDataset, +// - *MarketoObjectDataset, *MicrosoftAccessTableDataset, *MongoDbAtlasCollectionDataset, *MongoDbCollectionDataset, *MongoDbV2CollectionDataset, +// - *MySQLTableDataset, *NetezzaTableDataset, *ODataResourceDataset, *OdbcTableDataset, *Office365Dataset, *OracleServiceCloudObjectDataset, +// - *OracleTableDataset, *OrcDataset, *ParquetDataset, *PaypalObjectDataset, *PhoenixObjectDataset, *PostgreSQLTableDataset, +// - *PostgreSQLV2TableDataset, *PrestoObjectDataset, *QuickBooksObjectDataset, *RelationalTableDataset, *ResponsysObjectDataset, +// - *RestResourceDataset, *SQLServerTableDataset, *SalesforceMarketingCloudObjectDataset, *SalesforceObjectDataset, *SalesforceServiceCloudObjectDataset, +// - *SalesforceServiceCloudV2ObjectDataset, *SalesforceV2ObjectDataset, *SapBwCubeDataset, *SapCloudForCustomerResourceDataset, +// - *SapEccResourceDataset, *SapHanaTableDataset, *SapOdpResourceDataset, *SapOpenHubTableDataset, *SapTableResourceDataset, +// - *ServiceNowObjectDataset, *ServiceNowV2ObjectDataset, *SharePointOnlineListResourceDataset, *ShopifyObjectDataset, *SnowflakeDataset, +// - *SnowflakeV2Dataset, *SparkObjectDataset, *SquareObjectDataset, *SybaseTableDataset, *TeradataTableDataset, *VerticaTableDataset, +// - *WarehouseTableDataset, *WebTableDataset, *XMLDataset, *XeroObjectDataset, *ZohoObjectDataset +type DatasetClassification interface { + // GetDataset returns the Dataset content of the underlying type. + GetDataset() *Dataset +} + +// DatasetLocationClassification provides polymorphic access to related types. +// Call the interface's GetDatasetLocation() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AmazonS3CompatibleLocation, *AmazonS3Location, *AzureBlobFSLocation, *AzureBlobStorageLocation, *AzureDataLakeStoreLocation, +// - *AzureFileStorageLocation, *DatasetLocation, *FileServerLocation, *FtpServerLocation, *GoogleCloudStorageLocation, *HTTPServerLocation, +// - *HdfsLocation, *LakeHouseLocation, *OracleCloudStorageLocation, *SftpLocation +type DatasetLocationClassification interface { + // GetDatasetLocation returns the DatasetLocation content of the underlying type. + GetDatasetLocation() *DatasetLocation +} + +// DatasetStorageFormatClassification provides polymorphic access to related types. +// Call the interface's GetDatasetStorageFormat() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AvroFormat, *DatasetStorageFormat, *JSONFormat, *OrcFormat, *ParquetFormat, *TextFormat +type DatasetStorageFormatClassification interface { + // GetDatasetStorageFormat returns the DatasetStorageFormat content of the underlying type. + GetDatasetStorageFormat() *DatasetStorageFormat +} + +// DependencyReferenceClassification provides polymorphic access to related types. +// Call the interface's GetDependencyReference() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *DependencyReference, *SelfDependencyTumblingWindowTriggerReference, *TriggerDependencyReference, *TumblingWindowTriggerDependencyReference +type DependencyReferenceClassification interface { + // GetDependencyReference returns the DependencyReference content of the underlying type. + GetDependencyReference() *DependencyReference +} + +// ExecutionActivityClassification provides polymorphic access to related types. +// Call the interface's GetExecutionActivity() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AzureDataExplorerCommandActivity, *AzureFunctionActivity, *AzureMLBatchExecutionActivity, *AzureMLExecutePipelineActivity, +// - *AzureMLUpdateResourceActivity, *CopyActivity, *CustomActivity, *DataLakeAnalyticsUSQLActivity, *DatabricksNotebookActivity, +// - *DatabricksSparkJarActivity, *DatabricksSparkPythonActivity, *DeleteActivity, *ExecuteDataFlowActivity, *ExecuteSSISPackageActivity, +// - *ExecutionActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, +// - *HDInsightSparkActivity, *HDInsightStreamingActivity, *LookupActivity, *SQLServerStoredProcedureActivity, *ScriptActivity, +// - *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, *WebActivity +type ExecutionActivityClassification interface { + ActivityClassification + // GetExecutionActivity returns the ExecutionActivity content of the underlying type. + GetExecutionActivity() *ExecutionActivity +} + +// ExportSettingsClassification provides polymorphic access to related types. +// Call the interface's GetExportSettings() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AzureDatabricksDeltaLakeExportCommand, *ExportSettings, *SnowflakeExportCopyCommand +type ExportSettingsClassification interface { + // GetExportSettings returns the ExportSettings content of the underlying type. + GetExportSettings() *ExportSettings +} + +// FactoryRepoConfigurationClassification provides polymorphic access to related types. +// Call the interface's GetFactoryRepoConfiguration() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *FactoryGitHubConfiguration, *FactoryRepoConfiguration, *FactoryVSTSConfiguration +type FactoryRepoConfigurationClassification interface { + // GetFactoryRepoConfiguration returns the FactoryRepoConfiguration content of the underlying type. + GetFactoryRepoConfiguration() *FactoryRepoConfiguration +} + +// FormatReadSettingsClassification provides polymorphic access to related types. +// Call the interface's GetFormatReadSettings() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *BinaryReadSettings, *DelimitedTextReadSettings, *FormatReadSettings, *JSONReadSettings, *ParquetReadSettings, *XMLReadSettings +type FormatReadSettingsClassification interface { + // GetFormatReadSettings returns the FormatReadSettings content of the underlying type. + GetFormatReadSettings() *FormatReadSettings +} + +// FormatWriteSettingsClassification provides polymorphic access to related types. +// Call the interface's GetFormatWriteSettings() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AvroWriteSettings, *DelimitedTextWriteSettings, *FormatWriteSettings, *JSONWriteSettings, *OrcWriteSettings, *ParquetWriteSettings +type FormatWriteSettingsClassification interface { + // GetFormatWriteSettings returns the FormatWriteSettings content of the underlying type. + GetFormatWriteSettings() *FormatWriteSettings +} + +// ImportSettingsClassification provides polymorphic access to related types. +// Call the interface's GetImportSettings() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AzureDatabricksDeltaLakeImportCommand, *ImportSettings, *SnowflakeImportCopyCommand +type ImportSettingsClassification interface { + // GetImportSettings returns the ImportSettings content of the underlying type. + GetImportSettings() *ImportSettings +} + +// IntegrationRuntimeClassification provides polymorphic access to related types. +// Call the interface's GetIntegrationRuntime() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *IntegrationRuntime, *ManagedIntegrationRuntime, *SelfHostedIntegrationRuntime +type IntegrationRuntimeClassification interface { + // GetIntegrationRuntime returns the IntegrationRuntime content of the underlying type. + GetIntegrationRuntime() *IntegrationRuntime +} + +// IntegrationRuntimeStatusClassification provides polymorphic access to related types. +// Call the interface's GetIntegrationRuntimeStatus() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *IntegrationRuntimeStatus, *ManagedIntegrationRuntimeStatus, *SelfHostedIntegrationRuntimeStatus +type IntegrationRuntimeStatusClassification interface { + // GetIntegrationRuntimeStatus returns the IntegrationRuntimeStatus content of the underlying type. + GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus +} + +// LinkedIntegrationRuntimeTypeClassification provides polymorphic access to related types. +// Call the interface's GetLinkedIntegrationRuntimeType() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *LinkedIntegrationRuntimeKeyAuthorization, *LinkedIntegrationRuntimeRbacAuthorization, *LinkedIntegrationRuntimeType +type LinkedIntegrationRuntimeTypeClassification interface { + // GetLinkedIntegrationRuntimeType returns the LinkedIntegrationRuntimeType content of the underlying type. + GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType +} + +// LinkedServiceClassification provides polymorphic access to related types. +// Call the interface's GetLinkedService() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AmazonMWSLinkedService, *AmazonRdsForOracleLinkedService, *AmazonRdsForSQLServerLinkedService, *AmazonRedshiftLinkedService, +// - *AmazonS3CompatibleLinkedService, *AmazonS3LinkedService, *AppFiguresLinkedService, *AsanaLinkedService, *AzureBatchLinkedService, +// - *AzureBlobFSLinkedService, *AzureBlobStorageLinkedService, *AzureDataExplorerLinkedService, *AzureDataLakeAnalyticsLinkedService, +// - *AzureDataLakeStoreLinkedService, *AzureDatabricksDeltaLakeLinkedService, *AzureDatabricksLinkedService, *AzureFileStorageLinkedService, +// - *AzureFunctionLinkedService, *AzureKeyVaultLinkedService, *AzureMLLinkedService, *AzureMLServiceLinkedService, *AzureMariaDBLinkedService, +// - *AzureMySQLLinkedService, *AzurePostgreSQLLinkedService, *AzureSQLDWLinkedService, *AzureSQLDatabaseLinkedService, *AzureSQLMILinkedService, +// - *AzureSearchLinkedService, *AzureStorageLinkedService, *AzureSynapseArtifactsLinkedService, *AzureTableStorageLinkedService, +// - *CassandraLinkedService, *CommonDataServiceForAppsLinkedService, *ConcurLinkedService, *CosmosDbLinkedService, *CosmosDbMongoDbAPILinkedService, +// - *CouchbaseLinkedService, *CustomDataSourceLinkedService, *DataworldLinkedService, *Db2LinkedService, *DrillLinkedService, +// - *DynamicsAXLinkedService, *DynamicsCrmLinkedService, *DynamicsLinkedService, *EloquaLinkedService, *FileServerLinkedService, +// - *FtpServerLinkedService, *GoogleAdWordsLinkedService, *GoogleBigQueryLinkedService, *GoogleBigQueryV2LinkedService, *GoogleCloudStorageLinkedService, +// - *GoogleSheetsLinkedService, *GreenplumLinkedService, *HBaseLinkedService, *HDInsightLinkedService, *HDInsightOnDemandLinkedService, +// - *HTTPLinkedService, *HdfsLinkedService, *HiveLinkedService, *HubspotLinkedService, *ImpalaLinkedService, *InformixLinkedService, +// - *JiraLinkedService, *LakeHouseLinkedService, *LinkedService, *MagentoLinkedService, *MariaDBLinkedService, *MarketoLinkedService, +// - *MicrosoftAccessLinkedService, *MongoDbAtlasLinkedService, *MongoDbLinkedService, *MongoDbV2LinkedService, *MySQLLinkedService, +// - *NetezzaLinkedService, *ODataLinkedService, *OdbcLinkedService, *Office365LinkedService, *OracleCloudStorageLinkedService, +// - *OracleLinkedService, *OracleServiceCloudLinkedService, *PaypalLinkedService, *PhoenixLinkedService, *PostgreSQLLinkedService, +// - *PostgreSQLV2LinkedService, *PrestoLinkedService, *QuickBooksLinkedService, *QuickbaseLinkedService, *ResponsysLinkedService, +// - *RestServiceLinkedService, *SQLServerLinkedService, *SalesforceLinkedService, *SalesforceMarketingCloudLinkedService, +// - *SalesforceServiceCloudLinkedService, *SalesforceServiceCloudV2LinkedService, *SalesforceV2LinkedService, *SapBWLinkedService, +// - *SapCloudForCustomerLinkedService, *SapEccLinkedService, *SapHanaLinkedService, *SapOdpLinkedService, *SapOpenHubLinkedService, +// - *SapTableLinkedService, *ServiceNowLinkedService, *ServiceNowV2LinkedService, *SftpServerLinkedService, *SharePointOnlineListLinkedService, +// - *ShopifyLinkedService, *SmartsheetLinkedService, *SnowflakeLinkedService, *SnowflakeV2LinkedService, *SparkLinkedService, +// - *SquareLinkedService, *SybaseLinkedService, *TeamDeskLinkedService, *TeradataLinkedService, *TwilioLinkedService, *VerticaLinkedService, +// - *WarehouseLinkedService, *WebLinkedService, *XeroLinkedService, *ZendeskLinkedService, *ZohoLinkedService +type LinkedServiceClassification interface { + // GetLinkedService returns the LinkedService content of the underlying type. + GetLinkedService() *LinkedService +} + +// MultiplePipelineTriggerClassification provides polymorphic access to related types. +// Call the interface's GetMultiplePipelineTrigger() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *BlobEventsTrigger, *BlobTrigger, *CustomEventsTrigger, *MultiplePipelineTrigger, *ScheduleTrigger +type MultiplePipelineTriggerClassification interface { + TriggerClassification + // GetMultiplePipelineTrigger returns the MultiplePipelineTrigger content of the underlying type. + GetMultiplePipelineTrigger() *MultiplePipelineTrigger +} + +// SecretBaseClassification provides polymorphic access to related types. +// Call the interface's GetSecretBase() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AzureKeyVaultSecretReference, *SecretBase, *SecureString +type SecretBaseClassification interface { + // GetSecretBase returns the SecretBase content of the underlying type. + GetSecretBase() *SecretBase +} + +// SsisObjectMetadataClassification provides polymorphic access to related types. +// Call the interface's GetSsisObjectMetadata() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *SsisEnvironment, *SsisFolder, *SsisObjectMetadata, *SsisPackage, *SsisProject +type SsisObjectMetadataClassification interface { + // GetSsisObjectMetadata returns the SsisObjectMetadata content of the underlying type. + GetSsisObjectMetadata() *SsisObjectMetadata +} + +// StoreReadSettingsClassification provides polymorphic access to related types. +// Call the interface's GetStoreReadSettings() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AmazonS3CompatibleReadSettings, *AmazonS3ReadSettings, *AzureBlobFSReadSettings, *AzureBlobStorageReadSettings, *AzureDataLakeStoreReadSettings, +// - *AzureFileStorageReadSettings, *FileServerReadSettings, *FtpReadSettings, *GoogleCloudStorageReadSettings, *HTTPReadSettings, +// - *HdfsReadSettings, *LakeHouseReadSettings, *OracleCloudStorageReadSettings, *SftpReadSettings, *StoreReadSettings +type StoreReadSettingsClassification interface { + // GetStoreReadSettings returns the StoreReadSettings content of the underlying type. + GetStoreReadSettings() *StoreReadSettings +} + +// StoreWriteSettingsClassification provides polymorphic access to related types. +// Call the interface's GetStoreWriteSettings() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AzureBlobFSWriteSettings, *AzureBlobStorageWriteSettings, *AzureDataLakeStoreWriteSettings, *AzureFileStorageWriteSettings, +// - *FileServerWriteSettings, *LakeHouseWriteSettings, *SftpWriteSettings, *StoreWriteSettings +type StoreWriteSettingsClassification interface { + // GetStoreWriteSettings returns the StoreWriteSettings content of the underlying type. + GetStoreWriteSettings() *StoreWriteSettings +} + +// 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: +// - *AmazonMWSSource, *AmazonRdsForSQLServerSource, *AmazonRedshiftSource, *AzureMariaDBSource, *AzureMySQLSource, *AzurePostgreSQLSource, +// - *AzureSQLSource, *AzureTableSource, *CassandraSource, *ConcurSource, *CouchbaseSource, *Db2Source, *DrillSource, *DynamicsAXSource, +// - *EloquaSource, *GoogleAdWordsSource, *GoogleBigQuerySource, *GoogleBigQueryV2Source, *GreenplumSource, *HBaseSource, +// - *HiveSource, *HubspotSource, *ImpalaSource, *InformixSource, *JiraSource, *MagentoSource, *MariaDBSource, *MarketoSource, +// - *MySQLSource, *NetezzaSource, *OdbcSource, *OracleServiceCloudSource, *PaypalSource, *PhoenixSource, *PostgreSQLSource, +// - *PostgreSQLV2Source, *PrestoSource, *QuickBooksSource, *ResponsysSource, *SQLDWSource, *SQLMISource, *SQLServerSource, +// - *SQLSource, *SalesforceMarketingCloudSource, *SalesforceSource, *SalesforceV2Source, *SapBwSource, *SapCloudForCustomerSource, +// - *SapEccSource, *SapHanaSource, *SapOdpSource, *SapOpenHubSource, *SapTableSource, *ServiceNowSource, *ServiceNowV2Source, +// - *ShopifySource, *SparkSource, *SquareSource, *SybaseSource, *TabularSource, *TeradataSource, *VerticaSource, *WarehouseSource, +// - *XeroSource, *ZohoSource +type TabularSourceClassification interface { + CopySourceClassification + // GetTabularSource returns the TabularSource content of the underlying type. + GetTabularSource() *TabularSource +} + +// TriggerClassification provides polymorphic access to related types. +// Call the interface's GetTrigger() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *BlobEventsTrigger, *BlobTrigger, *ChainingTrigger, *CustomEventsTrigger, *MultiplePipelineTrigger, *RerunTumblingWindowTrigger, +// - *ScheduleTrigger, *Trigger, *TumblingWindowTrigger +type TriggerClassification interface { + // GetTrigger returns the Trigger content of the underlying type. + GetTrigger() *Trigger +} + +// TriggerDependencyReferenceClassification provides polymorphic access to related types. +// Call the interface's GetTriggerDependencyReference() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *TriggerDependencyReference, *TumblingWindowTriggerDependencyReference +type TriggerDependencyReferenceClassification interface { + DependencyReferenceClassification + // GetTriggerDependencyReference returns the TriggerDependencyReference content of the underlying type. + GetTriggerDependencyReference() *TriggerDependencyReference +} + +// WebLinkedServiceTypePropertiesClassification provides polymorphic access to related types. +// Call the interface's GetWebLinkedServiceTypeProperties() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *WebAnonymousAuthentication, *WebBasicAuthentication, *WebClientCertificateAuthentication, *WebLinkedServiceTypeProperties +type WebLinkedServiceTypePropertiesClassification interface { + // GetWebLinkedServiceTypeProperties returns the WebLinkedServiceTypeProperties content of the underlying type. + GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/linkedservices_client.go similarity index 74% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/linkedservices_client.go index b50a0700..6fe6edd0 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/linkedservices_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,57 +23,56 @@ import ( // LinkedServicesClient contains the methods for the LinkedServices group. // Don't use this type directly, use NewLinkedServicesClient() instead. type LinkedServicesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewLinkedServicesClient creates a new instance of LinkedServicesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewLinkedServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LinkedServicesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &LinkedServicesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a linked service. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// linkedServiceName - The linked service name. -// linkedService - Linked service resource definition. -// options - LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - linkedServiceName - The linked service name. +// - linkedService - Linked service resource definition. +// - options - LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate +// method. func (client *LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, linkedService LinkedServiceResource, options *LinkedServicesClientCreateOrUpdateOptions) (LinkedServicesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "LinkedServicesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, linkedServiceName, linkedService, options) if err != nil { return LinkedServicesClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return LinkedServicesClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return LinkedServicesClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return LinkedServicesClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -98,18 +94,21 @@ func (client *LinkedServicesClient) createOrUpdateCreateRequest(ctx context.Cont return nil, errors.New("parameter linkedServiceName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{linkedServiceName}", url.PathEscape(linkedServiceName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, linkedService) + if err := runtime.MarshalAsJSON(req, linkedService); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -123,22 +122,29 @@ func (client *LinkedServicesClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Deletes a linked service. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// linkedServiceName - The linked service name. -// options - LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - linkedServiceName - The linked service name. +// - options - LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. func (client *LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, options *LinkedServicesClientDeleteOptions) (LinkedServicesClientDeleteResponse, error) { + var err error + const operationName = "LinkedServicesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, linkedServiceName, options) if err != nil { return LinkedServicesClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return LinkedServicesClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return LinkedServicesClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return LinkedServicesClientDeleteResponse{}, err } return LinkedServicesClientDeleteResponse{}, nil } @@ -162,7 +168,7 @@ func (client *LinkedServicesClient) deleteCreateRequest(ctx context.Context, res return nil, errors.New("parameter linkedServiceName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{linkedServiceName}", url.PathEscape(linkedServiceName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -175,24 +181,32 @@ func (client *LinkedServicesClient) deleteCreateRequest(ctx context.Context, res // Get - Gets a linked service. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// linkedServiceName - The linked service name. -// options - LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - linkedServiceName - The linked service name. +// - options - LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. func (client *LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, options *LinkedServicesClientGetOptions) (LinkedServicesClientGetResponse, error) { + var err error + const operationName = "LinkedServicesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, linkedServiceName, options) if err != nil { return LinkedServicesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return LinkedServicesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotModified) { - return LinkedServicesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNotModified) { + err = runtime.NewResponseError(httpResp) + return LinkedServicesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -214,17 +228,17 @@ func (client *LinkedServicesClient) getCreateRequest(ctx context.Context, resour return nil, errors.New("parameter linkedServiceName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{linkedServiceName}", url.PathEscape(linkedServiceName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -238,37 +252,32 @@ func (client *LinkedServicesClient) getHandleResponse(resp *http.Response) (Link } // NewListByFactoryPager - Lists linked services. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.NewListByFactoryPager +// method. func (client *LinkedServicesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *LinkedServicesClientListByFactoryOptions) *runtime.Pager[LinkedServicesClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[LinkedServicesClientListByFactoryResponse]{ More: func(page LinkedServicesClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *LinkedServicesClientListByFactoryResponse) (LinkedServicesClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "LinkedServicesClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return LinkedServicesClientListByFactoryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return LinkedServicesClientListByFactoryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return LinkedServicesClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -287,7 +296,7 @@ func (client *LinkedServicesClient) listByFactoryCreateRequest(ctx context.Conte return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/managedprivateendpoints_client.go similarity index 76% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/managedprivateendpoints_client.go index a716fde9..c8f2702c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/managedprivateendpoints_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,58 +23,57 @@ import ( // ManagedPrivateEndpointsClient contains the methods for the ManagedPrivateEndpoints group. // Don't use this type directly, use NewManagedPrivateEndpointsClient() instead. type ManagedPrivateEndpointsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewManagedPrivateEndpointsClient creates a new instance of ManagedPrivateEndpointsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewManagedPrivateEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedPrivateEndpointsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &ManagedPrivateEndpointsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedPrivateEndpointName - Managed private endpoint name -// managedPrivateEndpoint - Managed private endpoint resource definition. -// options - ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedPrivateEndpointName - Managed private endpoint name +// - managedPrivateEndpoint - Managed private endpoint resource definition. +// - options - ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate +// method. func (client *ManagedPrivateEndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedPrivateEndpointName string, managedPrivateEndpoint ManagedPrivateEndpointResource, options *ManagedPrivateEndpointsClientCreateOrUpdateOptions) (ManagedPrivateEndpointsClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ManagedPrivateEndpointsClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, managedPrivateEndpoint, options) if err != nil { return ManagedPrivateEndpointsClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ManagedPrivateEndpointsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ManagedPrivateEndpointsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedPrivateEndpointsClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -103,18 +99,21 @@ func (client *ManagedPrivateEndpointsClient) createOrUpdateCreateRequest(ctx con return nil, errors.New("parameter managedPrivateEndpointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{managedPrivateEndpointName}", url.PathEscape(managedPrivateEndpointName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, managedPrivateEndpoint) + if err := runtime.MarshalAsJSON(req, managedPrivateEndpoint); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -128,24 +127,31 @@ func (client *ManagedPrivateEndpointsClient) createOrUpdateHandleResponse(resp * // Delete - Deletes a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedPrivateEndpointName - Managed private endpoint name -// options - ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedPrivateEndpointName - Managed private endpoint name +// - options - ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete +// method. func (client *ManagedPrivateEndpointsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientDeleteOptions) (ManagedPrivateEndpointsClientDeleteResponse, error) { + var err error + const operationName = "ManagedPrivateEndpointsClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, options) if err != nil { return ManagedPrivateEndpointsClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ManagedPrivateEndpointsClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return ManagedPrivateEndpointsClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return ManagedPrivateEndpointsClientDeleteResponse{}, err } return ManagedPrivateEndpointsClientDeleteResponse{}, nil } @@ -173,7 +179,7 @@ func (client *ManagedPrivateEndpointsClient) deleteCreateRequest(ctx context.Con return nil, errors.New("parameter managedPrivateEndpointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{managedPrivateEndpointName}", url.PathEscape(managedPrivateEndpointName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -186,26 +192,34 @@ func (client *ManagedPrivateEndpointsClient) deleteCreateRequest(ctx context.Con // Get - Gets a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedPrivateEndpointName - Managed private endpoint name -// options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedPrivateEndpointName - Managed private endpoint name +// - options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get +// method. func (client *ManagedPrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientGetOptions) (ManagedPrivateEndpointsClientGetResponse, error) { + var err error + const operationName = "ManagedPrivateEndpointsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, options) if err != nil { return ManagedPrivateEndpointsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ManagedPrivateEndpointsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ManagedPrivateEndpointsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedPrivateEndpointsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -231,17 +245,17 @@ func (client *ManagedPrivateEndpointsClient) getCreateRequest(ctx context.Contex return nil, errors.New("parameter managedPrivateEndpointName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{managedPrivateEndpointName}", url.PathEscape(managedPrivateEndpointName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -255,38 +269,33 @@ func (client *ManagedPrivateEndpointsClient) getHandleResponse(resp *http.Respon } // NewListByFactoryPager - Lists managed private endpoints. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// options - ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - options - ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListByFactoryPager +// method. func (client *ManagedPrivateEndpointsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, managedVirtualNetworkName string, options *ManagedPrivateEndpointsClientListByFactoryOptions) *runtime.Pager[ManagedPrivateEndpointsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[ManagedPrivateEndpointsClientListByFactoryResponse]{ More: func(page ManagedPrivateEndpointsClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *ManagedPrivateEndpointsClientListByFactoryResponse) (ManagedPrivateEndpointsClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagedPrivateEndpointsClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, options) + }, nil) if err != nil { return ManagedPrivateEndpointsClientListByFactoryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return ManagedPrivateEndpointsClientListByFactoryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ManagedPrivateEndpointsClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -309,7 +318,7 @@ func (client *ManagedPrivateEndpointsClient) listByFactoryCreateRequest(ctx cont return nil, errors.New("parameter managedVirtualNetworkName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{managedVirtualNetworkName}", url.PathEscape(managedVirtualNetworkName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/managedvirtualnetworks_client.go similarity index 75% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/managedvirtualnetworks_client.go index fcd3edf4..0dbfc35e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/managedvirtualnetworks_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,57 +23,56 @@ import ( // ManagedVirtualNetworksClient contains the methods for the ManagedVirtualNetworks group. // Don't use this type directly, use NewManagedVirtualNetworksClient() instead. type ManagedVirtualNetworksClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewManagedVirtualNetworksClient creates a new instance of ManagedVirtualNetworksClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewManagedVirtualNetworksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedVirtualNetworksClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &ManagedVirtualNetworksClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a managed Virtual Network. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedVirtualNetwork - Managed Virtual Network resource definition. -// options - ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedVirtualNetwork - Managed Virtual Network resource definition. +// - options - ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate +// method. func (client *ManagedVirtualNetworksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedVirtualNetwork ManagedVirtualNetworkResource, options *ManagedVirtualNetworksClientCreateOrUpdateOptions) (ManagedVirtualNetworksClientCreateOrUpdateResponse, error) { + var err error + const operationName = "ManagedVirtualNetworksClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedVirtualNetwork, options) if err != nil { return ManagedVirtualNetworksClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ManagedVirtualNetworksClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ManagedVirtualNetworksClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedVirtualNetworksClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -98,18 +94,21 @@ func (client *ManagedVirtualNetworksClient) createOrUpdateCreateRequest(ctx cont return nil, errors.New("parameter managedVirtualNetworkName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{managedVirtualNetworkName}", url.PathEscape(managedVirtualNetworkName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, managedVirtualNetwork) + if err := runtime.MarshalAsJSON(req, managedVirtualNetwork); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -123,25 +122,33 @@ func (client *ManagedVirtualNetworksClient) createOrUpdateHandleResponse(resp *h // Get - Gets a managed Virtual Network. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// options - ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - options - ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get +// method. func (client *ManagedVirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, options *ManagedVirtualNetworksClientGetOptions) (ManagedVirtualNetworksClientGetResponse, error) { + var err error + const operationName = "ManagedVirtualNetworksClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, options) if err != nil { return ManagedVirtualNetworksClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return ManagedVirtualNetworksClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ManagedVirtualNetworksClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return ManagedVirtualNetworksClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -163,17 +170,17 @@ func (client *ManagedVirtualNetworksClient) getCreateRequest(ctx context.Context return nil, errors.New("parameter managedVirtualNetworkName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{managedVirtualNetworkName}", url.PathEscape(managedVirtualNetworkName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -187,37 +194,32 @@ func (client *ManagedVirtualNetworksClient) getHandleResponse(resp *http.Respons } // NewListByFactoryPager - Lists managed Virtual Networks. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.NewListByFactoryPager +// method. func (client *ManagedVirtualNetworksClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *ManagedVirtualNetworksClientListByFactoryOptions) *runtime.Pager[ManagedVirtualNetworksClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[ManagedVirtualNetworksClientListByFactoryResponse]{ More: func(page ManagedVirtualNetworksClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *ManagedVirtualNetworksClientListByFactoryResponse) (ManagedVirtualNetworksClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagedVirtualNetworksClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return ManagedVirtualNetworksClientListByFactoryResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return ManagedVirtualNetworksClientListByFactoryResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ManagedVirtualNetworksClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -236,7 +238,7 @@ func (client *ManagedVirtualNetworksClient) listByFactoryCreateRequest(ctx conte return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/models.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/models.go similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/models.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/models.go index 9cf02479..48c9d158 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/models.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,50 +13,41 @@ import "time" // AccessPolicyResponse - Get Data Plane read only token response definition. type AccessPolicyResponse struct { // Data Plane read only access token. - AccessToken *string `json:"accessToken,omitempty"` + AccessToken *string // Data Plane service base URL. - DataPlaneURL *string `json:"dataPlaneUrl,omitempty"` + DataPlaneURL *string // The user access policy. - Policy *UserAccessPolicy `json:"policy,omitempty"` -} - -// ActivityClassification provides polymorphic access to related types. -// Call the interface's GetActivity() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *Activity, *AppendVariableActivity, *AzureDataExplorerCommandActivity, *AzureFunctionActivity, *AzureMLBatchExecutionActivity, -// - *AzureMLExecutePipelineActivity, *AzureMLUpdateResourceActivity, *ControlActivity, *CopyActivity, *CustomActivity, *DataLakeAnalyticsUSQLActivity, -// - *DatabricksNotebookActivity, *DatabricksSparkJarActivity, *DatabricksSparkPythonActivity, *DeleteActivity, *ExecuteDataFlowActivity, -// - *ExecutePipelineActivity, *ExecuteSSISPackageActivity, *ExecuteWranglingDataflowActivity, *ExecutionActivity, *FailActivity, -// - *FilterActivity, *ForEachActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, -// - *HDInsightSparkActivity, *HDInsightStreamingActivity, *IfConditionActivity, *LookupActivity, *SQLServerStoredProcedureActivity, -// - *ScriptActivity, *SetVariableActivity, *SwitchActivity, *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, -// - *UntilActivity, *ValidationActivity, *WaitActivity, *WebActivity, *WebHookActivity -type ActivityClassification interface { - // GetActivity returns the Activity content of the underlying type. - GetActivity() *Activity + Policy *UserAccessPolicy } // Activity - A pipeline activity. type Activity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type Activity. @@ -66,336 +56,321 @@ func (a *Activity) GetActivity() *Activity { return a } // ActivityDependency - Activity dependency information. type ActivityDependency struct { // REQUIRED; Activity name. - Activity *string `json:"activity,omitempty"` + Activity *string // REQUIRED; Match-Condition for the dependency. - DependencyConditions []*DependencyCondition `json:"dependencyConditions,omitempty"` + DependencyConditions []*DependencyCondition // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // ActivityPolicy - Execution policy for an activity. type ActivityPolicy struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Retry interface{} `json:"retry,omitempty"` + Retry any // Interval between each retry attempt (in seconds). The default is 30 sec. - RetryIntervalInSeconds *int32 `json:"retryIntervalInSeconds,omitempty"` + RetryIntervalInSeconds *int32 // When set to true, Input from activity is considered as secure and will not be logged to monitoring. - SecureInput *bool `json:"secureInput,omitempty"` + SecureInput *bool // When set to true, Output from activity is considered as secure and will not be logged to monitoring. - SecureOutput *bool `json:"secureOutput,omitempty"` + SecureOutput *bool // Specifies the timeout for the activity to run. The default timeout is 7 days. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` + Timeout any } // ActivityRun - Information about an activity run in a pipeline. type ActivityRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The name of the activity. - ActivityName *string `json:"activityName,omitempty" azure:"ro"` + ActivityName *string // READ-ONLY; The end time of the activity run in 'ISO 8601' format. - ActivityRunEnd *time.Time `json:"activityRunEnd,omitempty" azure:"ro"` + ActivityRunEnd *time.Time // READ-ONLY; The id of the activity run. - ActivityRunID *string `json:"activityRunId,omitempty" azure:"ro"` + ActivityRunID *string // READ-ONLY; The start time of the activity run in 'ISO 8601' format. - ActivityRunStart *time.Time `json:"activityRunStart,omitempty" azure:"ro"` + ActivityRunStart *time.Time // READ-ONLY; The type of the activity. - ActivityType *string `json:"activityType,omitempty" azure:"ro"` + ActivityType *string // READ-ONLY; The duration of the activity run. - DurationInMs *int32 `json:"durationInMs,omitempty" azure:"ro"` + DurationInMs *int32 // READ-ONLY; The error if any from the activity run. - Error interface{} `json:"error,omitempty" azure:"ro"` + Error any // READ-ONLY; The input for the activity. - Input interface{} `json:"input,omitempty" azure:"ro"` + Input any // READ-ONLY; The name of the compute linked service. - LinkedServiceName *string `json:"linkedServiceName,omitempty" azure:"ro"` + LinkedServiceName *string // READ-ONLY; The output for the activity. - Output interface{} `json:"output,omitempty" azure:"ro"` + Output any // READ-ONLY; The name of the pipeline. - PipelineName *string `json:"pipelineName,omitempty" azure:"ro"` + PipelineName *string // READ-ONLY; The id of the pipeline run. - PipelineRunID *string `json:"pipelineRunId,omitempty" azure:"ro"` + PipelineRunID *string // READ-ONLY; The status of the activity run. - Status *string `json:"status,omitempty" azure:"ro"` -} - -// ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun -// method. -type ActivityRunsClientQueryByPipelineRunOptions struct { - // placeholder for future optional parameters + Status *string } // ActivityRunsQueryResponse - A list activity runs. type ActivityRunsQueryResponse struct { // REQUIRED; List of activity runs. - Value []*ActivityRun `json:"value,omitempty"` + Value []*ActivityRun // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` + ContinuationToken *string } // AddDataFlowToDebugSessionResponse - Response body structure for starting data flow debug session. type AddDataFlowToDebugSessionResponse struct { // The ID of data flow debug job version. - JobVersion *string `json:"jobVersion,omitempty"` -} - -// AdditionalColumns - Specify the column name and value of additional columns. -type AdditionalColumns struct { - // Additional column name. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - - // Additional column value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + JobVersion *string } // AmazonMWSLinkedService - Amazon Marketplace Web Service linked service. type AmazonMWSLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Amazon Marketplace Web Service linked service properties. - TypeProperties *AmazonMWSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonMWSLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonMWSLinkedService. func (a *AmazonMWSLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AmazonMWSLinkedServiceTypeProperties - Amazon Marketplace Web Service linked service properties. type AmazonMWSLinkedServiceTypeProperties struct { // REQUIRED; The access key id used to access data. - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any // REQUIRED; The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // REQUIRED; The Amazon Marketplace ID you want to retrieve data from. To retrieve data from multiple Marketplace IDs, separate // them with a comma (,). (i.e. A2EUQ1WTGCTBG2) - MarketplaceID interface{} `json:"marketplaceID,omitempty"` + MarketplaceID any // REQUIRED; The Amazon seller ID. - SellerID interface{} `json:"sellerID,omitempty"` + SellerID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Amazon MWS authentication token. - MwsAuthToken SecretBaseClassification `json:"mwsAuthToken,omitempty"` + MwsAuthToken SecretBaseClassification // The secret key used to access data. - SecretKey SecretBaseClassification `json:"secretKey,omitempty"` + SecretKey SecretBaseClassification // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // AmazonMWSObjectDataset - Amazon Marketplace Web Service dataset. type AmazonMWSObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AmazonMWSObjectDataset. func (a *AmazonMWSObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AmazonMWSSource - A copy activity Amazon Marketplace Web Service source. type AmazonMWSSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AmazonMWSSource. func (a *AmazonMWSSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AmazonMWSSource. func (a *AmazonMWSSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AmazonRdsForLinkedServiceTypeProperties - AmazonRdsForOracle database linked service properties. type AmazonRdsForLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification } // AmazonRdsForOracleLinkedService - AmazonRdsForOracle database. type AmazonRdsForOracleLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; AmazonRdsForOracle database linked service properties. - TypeProperties *AmazonRdsForLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonRdsForLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonRdsForOracleLinkedService. func (a *AmazonRdsForOracleLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -403,530 +378,535 @@ func (a *AmazonRdsForOracleLinkedService) GetLinkedService() *LinkedService { type AmazonRdsForOraclePartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any // Names of the physical partitions of AmazonRdsForOracle table. - PartitionNames interface{} `json:"partitionNames,omitempty"` + PartitionNames any // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any } // AmazonRdsForOracleSource - A copy activity AmazonRdsForOracle source. type AmazonRdsForOracleSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // AmazonRdsForOracle reader query. Type: string (or Expression with resultType string). - OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` + OracleReaderQuery any // The partition mechanism that will be used for AmazonRdsForOracle read in parallel. Type: string (or Expression with resultType // string). - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any // The settings that will be leveraged for AmazonRdsForOracle source partitioning. - PartitionSettings *AmazonRdsForOraclePartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *AmazonRdsForOraclePartitionSettings // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AmazonRdsForOracleSource. func (a *AmazonRdsForOracleSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AmazonRdsForOracleTableDataset - The AmazonRdsForOracle database dataset. type AmazonRdsForOracleTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // AmazonRdsForOracle dataset properties. - TypeProperties *AmazonRdsForOracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonRdsForOracleTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AmazonRdsForOracleTableDataset. func (a *AmazonRdsForOracleTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AmazonRdsForOracleTableDatasetTypeProperties - AmazonRdsForOracle dataset properties. type AmazonRdsForOracleTableDatasetTypeProperties struct { // The schema name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any } // AmazonRdsForSQLServerLinkedService - Amazon RDS for SQL Server linked service. type AmazonRdsForSQLServerLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Amazon RDS for SQL Server linked service properties. - TypeProperties *AmazonRdsForSQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonRdsForSQLServerLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonRdsForSQLServerLinkedService. func (a *AmazonRdsForSQLServerLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AmazonRdsForSQLServerLinkedServiceTypeProperties - Amazon Rds for SQL Server linked service properties. type AmazonRdsForSQLServerLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The on-premises Windows authentication password. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // AmazonRdsForSQLServerSource - A copy activity Amazon RDS for SQL Server source. type AmazonRdsForSQLServerSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any + + // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. + // The default value is ReadCommitted. Type: string (or + // Expression with resultType string). + IsolationLevel any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any // The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SQLPartitionSettings // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any } // GetCopySource implements the CopySourceClassification interface for type AmazonRdsForSQLServerSource. func (a *AmazonRdsForSQLServerSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AmazonRdsForSQLServerSource. func (a *AmazonRdsForSQLServerSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AmazonRdsForSQLServerTableDataset - The Amazon RDS for SQL Server dataset. type AmazonRdsForSQLServerTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // The Amazon RDS for SQL Server dataset properties. - TypeProperties *AmazonRdsForSQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonRdsForSQLServerTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AmazonRdsForSQLServerTableDataset. func (a *AmazonRdsForSQLServerTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AmazonRdsForSQLServerTableDatasetTypeProperties - The Amazon RDS for SQL Server dataset properties. type AmazonRdsForSQLServerTableDatasetTypeProperties struct { // The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any } // AmazonRedshiftLinkedService - Linked service for Amazon Redshift. type AmazonRedshiftLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Amazon Redshift linked service properties. - TypeProperties *AmazonRedshiftLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonRedshiftLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonRedshiftLinkedService. func (a *AmazonRedshiftLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AmazonRedshiftLinkedServiceTypeProperties - Amazon Redshift linked service properties. type AmazonRedshiftLinkedServiceTypeProperties struct { // REQUIRED; The database name of the Amazon Redshift source. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any // REQUIRED; The name of the Amazon Redshift server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password of the Amazon Redshift source. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: // integer (or Expression with resultType integer). - Port interface{} `json:"port,omitempty"` + Port any // The username of the Amazon Redshift source. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // AmazonRedshiftSource - A copy activity source for Amazon Redshift Source. type AmazonRedshiftSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with unload. With this, data // from Amazon Redshift source will be unloaded into S3 first and then copied into // the targeted sink from the interim S3. - RedshiftUnloadSettings *RedshiftUnloadSettings `json:"redshiftUnloadSettings,omitempty"` + RedshiftUnloadSettings *RedshiftUnloadSettings // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AmazonRedshiftSource. func (a *AmazonRedshiftSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AmazonRedshiftSource. func (a *AmazonRedshiftSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AmazonRedshiftTableDataset - The Amazon Redshift table dataset. type AmazonRedshiftTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Amazon Redshift table dataset properties. - TypeProperties *AmazonRedshiftTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonRedshiftTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AmazonRedshiftTableDataset. func (a *AmazonRedshiftTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AmazonRedshiftTableDatasetTypeProperties - Amazon Redshift table dataset properties. type AmazonRedshiftTableDatasetTypeProperties struct { // The Amazon Redshift schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The Amazon Redshift table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // AmazonS3CompatibleLinkedService - Linked service for Amazon S3 Compatible. type AmazonS3CompatibleLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Amazon S3 Compatible linked service properties. - TypeProperties *AmazonS3CompatibleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonS3CompatibleLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonS3CompatibleLinkedService. func (a *AmazonS3CompatibleLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -934,223 +914,223 @@ func (a *AmazonS3CompatibleLinkedService) GetLinkedService() *LinkedService { type AmazonS3CompatibleLinkedServiceTypeProperties struct { // The access key identifier of the Amazon S3 Compatible Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // If true, use S3 path-style access instead of virtual hosted-style access. Default value is false. Type: boolean (or Expression // with resultType boolean). - ForcePathStyle interface{} `json:"forcePathStyle,omitempty"` + ForcePathStyle any // The secret access key of the Amazon S3 Compatible Identity and Access Management (IAM) user. - SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` + SecretAccessKey SecretBaseClassification // This value specifies the endpoint to access with the Amazon S3 Compatible Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + ServiceURL any } // AmazonS3CompatibleLocation - The location of Amazon S3 Compatible dataset. type AmazonS3CompatibleLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // Specify the version of Amazon S3 Compatible. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any } // GetDatasetLocation implements the DatasetLocationClassification interface for type AmazonS3CompatibleLocation. func (a *AmazonS3CompatibleLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: a.Type, - FolderPath: a.FolderPath, - FileName: a.FileName, AdditionalProperties: a.AdditionalProperties, + FileName: a.FileName, + FolderPath: a.FolderPath, + Type: a.Type, } } // AmazonS3CompatibleReadSettings - Amazon S3 Compatible read settings. type AmazonS3CompatibleReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // The prefix filter for the S3 Compatible object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Amazon S3 Compatible wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AmazonS3CompatibleReadSettings. func (a *AmazonS3CompatibleReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Type: a.Type, } } // AmazonS3Dataset - A single Amazon Simple Storage Service (S3) object or a set of S3 objects. type AmazonS3Dataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Amazon S3 dataset properties. - TypeProperties *AmazonS3DatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonS3DatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type AmazonS3Dataset. func (a *AmazonS3Dataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AmazonS3DatasetTypeProperties - Amazon S3 dataset properties. type AmazonS3DatasetTypeProperties struct { // REQUIRED; The name of the Amazon S3 bucket. Type: string (or Expression with resultType string). - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any // The data compression method used for the Amazon S3 object. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // The format of files. - Format DatasetStorageFormatClassification `json:"format,omitempty"` + Format DatasetStorageFormatClassification // The key of the Amazon S3 object. Type: string (or Expression with resultType string). - Key interface{} `json:"key,omitempty"` + Key any // The end of S3 object's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of S3 object's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // The prefix filter for the S3 object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any // The version for the S3 object. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any } // AmazonS3LinkedService - Linked service for Amazon S3. type AmazonS3LinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Amazon S3 linked service properties. - TypeProperties *AmazonS3LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AmazonS3LinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonS3LinkedService. func (a *AmazonS3LinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -1158,483 +1138,495 @@ func (a *AmazonS3LinkedService) GetLinkedService() *LinkedService { type AmazonS3LinkedServiceTypeProperties struct { // The access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: string (or Expression with // resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any // The authentication type of S3. Allowed value: AccessKey (default) or TemporarySecurityCredentials. Type: string (or Expression // with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The secret access key of the Amazon S3 Identity and Access Management (IAM) user. - SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` + SecretAccessKey SecretBaseClassification // This value specifies the endpoint to access with the S3 Connector. This is an optional property; change it only if you // want to try a different service endpoint or want to switch between https and // http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + ServiceURL any // The session token for the S3 temporary security credential. - SessionToken SecretBaseClassification `json:"sessionToken,omitempty"` + SessionToken SecretBaseClassification } // AmazonS3Location - The location of amazon S3 dataset. type AmazonS3Location struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the bucketName of amazon S3. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // Specify the version of amazon S3. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any } // GetDatasetLocation implements the DatasetLocationClassification interface for type AmazonS3Location. func (a *AmazonS3Location) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: a.Type, - FolderPath: a.FolderPath, - FileName: a.FileName, AdditionalProperties: a.AdditionalProperties, + FileName: a.FileName, + FolderPath: a.FolderPath, + Type: a.Type, } } // AmazonS3ReadSettings - Amazon S3 read settings. type AmazonS3ReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // The prefix filter for the S3 object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // AmazonS3 wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AmazonS3ReadSettings. func (a *AmazonS3ReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Type: a.Type, } } // AppFiguresLinkedService - Linked service for AppFigures. type AppFiguresLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; AppFigures linked service properties. - TypeProperties *AppFiguresLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AppFiguresLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AppFiguresLinkedService. func (a *AppFiguresLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AppFiguresLinkedServiceTypeProperties - AppFigures linked service type properties. type AppFiguresLinkedServiceTypeProperties struct { // REQUIRED; The client key for the AppFigures source. - ClientKey SecretBaseClassification `json:"clientKey,omitempty"` + ClientKey SecretBaseClassification // REQUIRED; The password of the AppFigures source. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification - // REQUIRED; The username of the Appfigures source. - UserName interface{} `json:"userName,omitempty"` + // REQUIRED; The username of the Appfigures source. Type: string (or Expression with resultType string). + UserName any } // AppendVariableActivity - Append value for a Variable of type Array. type AppendVariableActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Append Variable activity properties. - TypeProperties *AppendVariableActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AppendVariableActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type AppendVariableActivity. func (a *AppendVariableActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type AppendVariableActivity. func (a *AppendVariableActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } // AppendVariableActivityTypeProperties - AppendVariable activity properties. type AppendVariableActivityTypeProperties struct { - // Value to be appended. Could be a static value or Expression - Value interface{} `json:"value,omitempty"` + // Value to be appended. Type: could be a static value matching type of the variable item or Expression with resultType matching + // type of the variable item + Value any // Name of the variable whose value needs to be appended to. - VariableName *string `json:"variableName,omitempty"` + VariableName *string } // ArmIDWrapper - A wrapper for an ARM resource id type ArmIDWrapper struct { // READ-ONLY - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // AsanaLinkedService - Linked service for Asana. type AsanaLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Asana linked service properties. - TypeProperties *AsanaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AsanaLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AsanaLinkedService. func (a *AsanaLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AsanaLinkedServiceTypeProperties - Asana linked service type properties. type AsanaLinkedServiceTypeProperties struct { // REQUIRED; The api token for the Asana source. - APIToken SecretBaseClassification `json:"apiToken,omitempty"` + APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // AvroDataset - Avro dataset. type AvroDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Avro dataset properties. - TypeProperties *AvroDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AvroDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AvroDataset. func (a *AvroDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AvroDatasetTypeProperties - Avro dataset properties. type AvroDatasetTypeProperties struct { // REQUIRED; The location of the avro storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The data avroCompressionCodec. Type: string (or Expression with resultType string). - AvroCompressionCodec interface{} `json:"avroCompressionCodec,omitempty"` - AvroCompressionLevel *int32 `json:"avroCompressionLevel,omitempty"` + AvroCompressionCodec any + AvroCompressionLevel *int32 } // AvroFormat - The data stored in Avro format. type AvroFormat struct { // REQUIRED; Type of dataset storage format. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type AvroFormat. func (a *AvroFormat) GetDatasetStorageFormat() *DatasetStorageFormat { return &DatasetStorageFormat{ - Type: a.Type, - Serializer: a.Serializer, - Deserializer: a.Deserializer, AdditionalProperties: a.AdditionalProperties, + Deserializer: a.Deserializer, + Serializer: a.Serializer, + Type: a.Type, } } // AvroSink - A copy activity Avro sink. type AvroSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Avro format settings. - FormatSettings *AvroWriteSettings `json:"formatSettings,omitempty"` + FormatSettings *AvroWriteSettings // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Avro store settings. - StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreWriteSettingsClassification // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AvroSink. func (a *AvroSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AvroSource - A copy activity Avro source. type AvroSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Avro store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type AvroSource. func (a *AvroSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AvroWriteSettings - Avro write settings. type AvroWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any // Top level record name in write result, which is required in AVRO spec. - RecordName *string `json:"recordName,omitempty"` + RecordName *string // Record namespace in the write result. - RecordNamespace *string `json:"recordNamespace,omitempty"` + RecordNamespace *string } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type AvroWriteSettings. func (a *AvroWriteSettings) GetFormatWriteSettings() *FormatWriteSettings { return &FormatWriteSettings{ - Type: a.Type, AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzPowerShellSetup - The express custom setup of installing Azure PowerShell. type AzPowerShellSetup struct { // REQUIRED; The type of custom setup. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Install Azure PowerShell type properties. - TypeProperties *AzPowerShellSetupTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzPowerShellSetupTypeProperties } // GetCustomSetupBase implements the CustomSetupBaseClassification interface for type AzPowerShellSetup. @@ -1647,743 +1639,775 @@ func (a *AzPowerShellSetup) GetCustomSetupBase() *CustomSetupBase { // AzPowerShellSetupTypeProperties - Installation of Azure PowerShell type properties. type AzPowerShellSetupTypeProperties struct { // REQUIRED; The required version of Azure PowerShell to install. - Version *string `json:"version,omitempty"` + Version *string } // AzureBatchLinkedService - Azure Batch linked service. type AzureBatchLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Batch linked service properties. - TypeProperties *AzureBatchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureBatchLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureBatchLinkedService. func (a *AzureBatchLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureBatchLinkedServiceTypeProperties - Azure Batch linked service properties. type AzureBatchLinkedServiceTypeProperties struct { // REQUIRED; The Azure Batch account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` + AccountName any // REQUIRED; The Azure Batch URI. Type: string (or Expression with resultType string). - BatchURI interface{} `json:"batchUri,omitempty"` + BatchURI any // REQUIRED; The Azure Storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; The Azure Batch pool name. Type: string (or Expression with resultType string). - PoolName interface{} `json:"poolName,omitempty"` + PoolName any // The Azure Batch account access key. - AccessKey SecretBaseClassification `json:"accessKey,omitempty"` + AccessKey SecretBaseClassification // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // AzureBlobDataset - The Azure Blob storage. type AzureBlobDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Azure Blob dataset properties. - TypeProperties *AzureBlobDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureBlobDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureBlobDataset. func (a *AzureBlobDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureBlobDatasetTypeProperties - Azure Blob dataset properties. type AzureBlobDatasetTypeProperties struct { // The data compression method used for the blob storage. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // The name of the Azure Blob. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // The path of the Azure Blob storage. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // The format of the Azure Blob storage. - Format DatasetStorageFormatClassification `json:"format,omitempty"` + Format DatasetStorageFormatClassification // The end of Azure Blob's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of Azure Blob's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // The root of blob path. Type: string (or Expression with resultType string). - TableRootLocation interface{} `json:"tableRootLocation,omitempty"` + TableRootLocation any } // AzureBlobFSDataset - The Azure Data Lake Storage Gen2 storage. type AzureBlobFSDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Azure Data Lake Storage Gen2 dataset properties. - TypeProperties *AzureBlobFSDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureBlobFSDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureBlobFSDataset. func (a *AzureBlobFSDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureBlobFSDatasetTypeProperties - Azure Data Lake Storage Gen2 dataset properties. type AzureBlobFSDatasetTypeProperties struct { // The data compression method used for the blob storage. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // The format of the Azure Data Lake Storage Gen2 storage. - Format DatasetStorageFormatClassification `json:"format,omitempty"` + Format DatasetStorageFormatClassification } // AzureBlobFSLinkedService - Azure Data Lake Storage Gen2 linked service. type AzureBlobFSLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Data Lake Storage Gen2 linked service properties. - TypeProperties *AzureBlobFSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureBlobFSLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureBlobFSLinkedService. func (a *AzureBlobFSLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureBlobFSLinkedServiceTypeProperties - Azure Data Lake Storage Gen2 linked service properties. type AzureBlobFSLinkedServiceTypeProperties struct { - // REQUIRED; Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). - AccountKey interface{} `json:"accountKey,omitempty"` + AccountKey any // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string + + // The Azure key vault secret reference of sasToken in sas uri. + SasToken SecretBaseClassification + + // SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference. + SasURI any // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. - ServicePrincipalCredential SecretBaseClassification `json:"servicePrincipalCredential,omitempty"` + ServicePrincipalCredential SecretBaseClassification // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any // The ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any + + // Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). + URL any } // AzureBlobFSLocation - The location of azure blobFS dataset. type AzureBlobFSLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string). - FileSystem interface{} `json:"fileSystem,omitempty"` + FileSystem any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureBlobFSLocation. func (a *AzureBlobFSLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: a.Type, - FolderPath: a.FolderPath, - FileName: a.FileName, AdditionalProperties: a.AdditionalProperties, + FileName: a.FileName, + FolderPath: a.FolderPath, + Type: a.Type, } } // AzureBlobFSReadSettings - Azure blobFS read settings. type AzureBlobFSReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Azure blobFS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureBlobFSReadSettings. func (a *AzureBlobFSReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Type: a.Type, } } // AzureBlobFSSink - A copy activity Azure Data Lake Storage Gen2 sink. type AzureBlobFSSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any - // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // The type of copy behavior for copy sink. Type: string (or Expression with resultType string). + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). - Metadata []*MetadataItem `json:"metadata,omitempty"` + Metadata []*MetadataItem // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzureBlobFSSink. func (a *AzureBlobFSSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureBlobFSSource - A copy activity Azure BlobFS source. type AzureBlobFSSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). - SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` + SkipHeaderLineCount any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Treat empty as null. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + TreatEmptyAsNull any } // GetCopySource implements the CopySourceClassification interface for type AzureBlobFSSource. func (a *AzureBlobFSSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureBlobFSWriteSettings - Azure blobFS write settings. type AzureBlobFSWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). - BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` + BlockSizeInMB any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any + + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureBlobFSWriteSettings. func (a *AzureBlobFSWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return &StoreWriteSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - CopyBehavior: a.CopyBehavior, AdditionalProperties: a.AdditionalProperties, + CopyBehavior: a.CopyBehavior, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Metadata: a.Metadata, + Type: a.Type, } } // AzureBlobStorageLinkedService - The azure blob storage linked service. type AzureBlobStorageLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Blob Storage linked service properties. - TypeProperties *AzureBlobStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureBlobStorageLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureBlobStorageLinkedService. func (a *AzureBlobStorageLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureBlobStorageLinkedServiceTypeProperties - Azure Blob Storage linked service properties. type AzureBlobStorageLinkedServiceTypeProperties struct { // The Azure key vault secret reference of accountKey in connection string. - AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` + AccountKey *AzureKeyVaultSecretReference // Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), StorageV2 (general purpose // v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with // resultType string). - AccountKind *string `json:"accountKind,omitempty"` + AccountKind any + + // The type used for authentication. Type: string. + AuthenticationType *AzureStorageAuthenticationType // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any + + // Container uri of the Azure Blob Storage resource only support for anonymous access. Type: string (or Expression with resultType + // string). + ContainerURI any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of sasToken in sas uri. - SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` + SasToken *AzureKeyVaultSecretReference // SAS URI of the Azure Blob Storage resource. It is mutually exclusive with connectionString, serviceEndpoint property. Type: // string, SecureString or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` + SasURI any // Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. - ServiceEndpoint *string `json:"serviceEndpoint,omitempty"` + ServiceEndpoint any // The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against Azure SQL Data Warehouse. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // AzureBlobStorageLocation - The location of azure blob dataset. type AzureBlobStorageLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the container of azure blob. Type: string (or Expression with resultType string). - Container interface{} `json:"container,omitempty"` + Container any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureBlobStorageLocation. func (a *AzureBlobStorageLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: a.Type, - FolderPath: a.FolderPath, - FileName: a.FileName, AdditionalProperties: a.AdditionalProperties, + FileName: a.FileName, + FolderPath: a.FolderPath, + Type: a.Type, } } // AzureBlobStorageReadSettings - Azure blob read settings. type AzureBlobStorageReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // The prefix filter for the Azure Blob name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Azure blob wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Azure blob wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureBlobStorageReadSettings. func (a *AzureBlobStorageReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Type: a.Type, } } // AzureBlobStorageWriteSettings - Azure blob write settings. type AzureBlobStorageWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). - BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` + BlockSizeInMB any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any + + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureBlobStorageWriteSettings. func (a *AzureBlobStorageWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return &StoreWriteSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - CopyBehavior: a.CopyBehavior, AdditionalProperties: a.AdditionalProperties, + CopyBehavior: a.CopyBehavior, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Metadata: a.Metadata, + Type: a.Type, } } // AzureDataExplorerCommandActivity - Azure Data Explorer command activity. type AzureDataExplorerCommandActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Data Explorer command activity properties. - TypeProperties *AzureDataExplorerCommandActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDataExplorerCommandActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type AzureDataExplorerCommandActivity. func (a *AzureDataExplorerCommandActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureDataExplorerCommandActivity. func (a *AzureDataExplorerCommandActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, LinkedServiceName: a.LinkedServiceName, - Policy: a.Policy, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + Policy: a.Policy, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } @@ -2391,862 +2415,866 @@ func (a *AzureDataExplorerCommandActivity) GetExecutionActivity() *ExecutionActi type AzureDataExplorerCommandActivityTypeProperties struct { // REQUIRED; A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType // string). - Command interface{} `json:"command,omitempty"` + Command any // Control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) - CommandTimeout interface{} `json:"commandTimeout,omitempty"` + CommandTimeout any } // AzureDataExplorerDatasetTypeProperties - Azure Data Explorer (Kusto) dataset properties. type AzureDataExplorerDatasetTypeProperties struct { // The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any } // AzureDataExplorerLinkedService - Azure Data Explorer (Kusto) linked service. type AzureDataExplorerLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Data Explorer (Kusto) linked service properties. - TypeProperties *AzureDataExplorerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDataExplorerLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDataExplorerLinkedService. func (a *AzureDataExplorerLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDataExplorerLinkedServiceTypeProperties - Azure Data Explorer (Kusto) linked service properties. type AzureDataExplorerLinkedServiceTypeProperties struct { // REQUIRED; Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any // REQUIRED; The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format https://..kusto.windows.net. // Type: string (or Expression with resultType string) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against Kusto. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // AzureDataExplorerSink - A copy activity Azure Data Explorer sink. type AzureDataExplorerSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // If set to true, any aggregation will be skipped. Default is false. Type: boolean. - FlushImmediately interface{} `json:"flushImmediately,omitempty"` + FlushImmediately any // An explicit column mapping description provided in a json format. Type: string. - IngestionMappingAsJSON interface{} `json:"ingestionMappingAsJson,omitempty"` + IngestionMappingAsJSON any // A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. - IngestionMappingName interface{} `json:"ingestionMappingName,omitempty"` + IngestionMappingName any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzureDataExplorerSink. func (a *AzureDataExplorerSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureDataExplorerSource - A copy activity Azure Data Explorer (Kusto) source. type AzureDataExplorerSource struct { // REQUIRED; Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The name of the Boolean option that controls whether truncation is applied to result-sets that go beyond a certain row-count // limit. - NoTruncation interface{} `json:"noTruncation,omitempty"` + NoTruncation any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AzureDataExplorerSource. func (a *AzureDataExplorerSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDataExplorerTableDataset - The Azure Data Explorer (Kusto) dataset. type AzureDataExplorerTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Data Explorer (Kusto) dataset properties. - TypeProperties *AzureDataExplorerDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDataExplorerDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type AzureDataExplorerTableDataset. func (a *AzureDataExplorerTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureDataLakeAnalyticsLinkedService - Azure Data Lake Analytics linked service. type AzureDataLakeAnalyticsLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Data Lake Analytics linked service properties. - TypeProperties *AzureDataLakeAnalyticsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDataLakeAnalyticsLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDataLakeAnalyticsLinkedService. func (a *AzureDataLakeAnalyticsLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { // REQUIRED; The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` + AccountName any // REQUIRED; The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType // string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any // Azure Data Lake Analytics URI Type: string (or Expression with resultType string). - DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` + DataLakeAnalyticsURI any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + ResourceGroupName any // The ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The Key of the application used to authenticate against the Azure Data Lake Analytics account. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with // resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` + SubscriptionID any } // AzureDataLakeStoreDataset - Azure Data Lake Store dataset. type AzureDataLakeStoreDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Azure Data Lake Store dataset properties. - TypeProperties *AzureDataLakeStoreDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDataLakeStoreDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureDataLakeStoreDataset. func (a *AzureDataLakeStoreDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. type AzureDataLakeStoreDatasetTypeProperties struct { // The data compression method used for the item(s) in the Azure Data Lake Store. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // The format of the Data Lake Store. - Format DatasetStorageFormatClassification `json:"format,omitempty"` + Format DatasetStorageFormatClassification } // AzureDataLakeStoreLinkedService - Azure Data Lake Store linked service. type AzureDataLakeStoreLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Data Lake Store linked service properties. - TypeProperties *AzureDataLakeStoreLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDataLakeStoreLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDataLakeStoreLinkedService. func (a *AzureDataLakeStoreLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. type AzureDataLakeStoreLinkedServiceTypeProperties struct { // REQUIRED; Data Lake Store service URI. Type: string (or Expression with resultType string). - DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` + DataLakeStoreURI any // Data Lake Store account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` + AccountName any // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + ResourceGroupName any // The ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The Key of the application used to authenticate against the Azure Data Lake Store account. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType // string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` + SubscriptionID any // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // AzureDataLakeStoreLocation - The location of azure data lake store dataset. type AzureDataLakeStoreLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureDataLakeStoreLocation. func (a *AzureDataLakeStoreLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: a.Type, - FolderPath: a.FolderPath, - FileName: a.FileName, AdditionalProperties: a.AdditionalProperties, + FileName: a.FileName, + FolderPath: a.FolderPath, + Type: a.Type, } } // AzureDataLakeStoreReadSettings - Azure data lake store read settings. type AzureDataLakeStoreReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // Lists files after the value (exclusive) based on file/folder names’ lexicographical order. Applies under the folderPath // in data set, and filter files/sub-folders under the folderPath. Type: string (or // Expression with resultType string). - ListAfter interface{} `json:"listAfter,omitempty"` + ListAfter any // Lists files before the value (inclusive) based on file/folder names’ lexicographical order. Applies under the folderPath // in data set, and filter files/sub-folders under the folderPath. Type: string // (or Expression with resultType string). - ListBefore interface{} `json:"listBefore,omitempty"` + ListBefore any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // ADLS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // ADLS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureDataLakeStoreReadSettings. func (a *AzureDataLakeStoreReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Type: a.Type, } } // AzureDataLakeStoreSink - A copy activity Azure Data Lake Store sink. type AzureDataLakeStoreSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any - // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // The type of copy behavior for copy sink. Type: string (or Expression with resultType string). + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Single File Parallel. - EnableAdlsSingleFileParallel interface{} `json:"enableAdlsSingleFileParallel,omitempty"` + EnableAdlsSingleFileParallel any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzureDataLakeStoreSink. func (a *AzureDataLakeStoreSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureDataLakeStoreSource - A copy activity Azure Data Lake source. type AzureDataLakeStoreSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AzureDataLakeStoreSource. func (a *AzureDataLakeStoreSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDataLakeStoreWriteSettings - Azure data lake store write settings. type AzureDataLakeStoreWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". - // Default value is NULL. Type: integer (or Expression with resultType - // integer). - ExpiryDateTime interface{} `json:"expiryDateTime,omitempty"` + // Default value is NULL. Type: string (or Expression with resultType + // string). + ExpiryDateTime any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any + + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureDataLakeStoreWriteSettings. func (a *AzureDataLakeStoreWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return &StoreWriteSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - CopyBehavior: a.CopyBehavior, AdditionalProperties: a.AdditionalProperties, + CopyBehavior: a.CopyBehavior, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Metadata: a.Metadata, + Type: a.Type, } } // AzureDatabricksDeltaLakeDataset - Azure Databricks Delta Lake dataset. type AzureDatabricksDeltaLakeDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *AzureDatabricksDeltaLakeDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDatabricksDeltaLakeDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureDatabricksDeltaLakeDataset. func (a *AzureDatabricksDeltaLakeDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureDatabricksDeltaLakeDatasetTypeProperties - Azure Databricks Delta Lake Dataset Properties type AzureDatabricksDeltaLakeDatasetTypeProperties struct { // The database name of delta table. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any // The name of delta table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any } // AzureDatabricksDeltaLakeExportCommand - Azure Databricks Delta Lake export command settings. type AzureDatabricksDeltaLakeExportCommand struct { // REQUIRED; The export setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - DateFormat interface{} `json:"dateFormat,omitempty"` + DateFormat any // Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType // string). - TimestampFormat interface{} `json:"timestampFormat,omitempty"` + TimestampFormat any } // GetExportSettings implements the ExportSettingsClassification interface for type AzureDatabricksDeltaLakeExportCommand. func (a *AzureDatabricksDeltaLakeExportCommand) GetExportSettings() *ExportSettings { return &ExportSettings{ - Type: a.Type, AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDatabricksDeltaLakeImportCommand - Azure Databricks Delta Lake import command settings. type AzureDatabricksDeltaLakeImportCommand struct { // REQUIRED; The import setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - DateFormat interface{} `json:"dateFormat,omitempty"` + DateFormat any // Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - TimestampFormat interface{} `json:"timestampFormat,omitempty"` + TimestampFormat any } // GetImportSettings implements the ImportSettingsClassification interface for type AzureDatabricksDeltaLakeImportCommand. func (a *AzureDatabricksDeltaLakeImportCommand) GetImportSettings() *ImportSettings { return &ImportSettings{ - Type: a.Type, AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDatabricksDeltaLakeLinkedService - Azure Databricks Delta Lake linked service. type AzureDatabricksDeltaLakeLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Databricks Delta Lake linked service properties. - TypeProperties *AzureDatabricksDetltaLakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDatabricksDetltaLakeLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDatabricksDeltaLakeLinkedService. func (a *AzureDatabricksDeltaLakeLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureDatabricksDeltaLakeSink - A copy activity Azure Databricks Delta Lake sink. type AzureDatabricksDeltaLakeSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Azure Databricks Delta Lake import settings. - ImportSettings *AzureDatabricksDeltaLakeImportCommand `json:"importSettings,omitempty"` + ImportSettings *AzureDatabricksDeltaLakeImportCommand // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzureDatabricksDeltaLakeSink. func (a *AzureDatabricksDeltaLakeSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureDatabricksDeltaLakeSource - A copy activity Azure Databricks Delta Lake source. type AzureDatabricksDeltaLakeSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Azure Databricks Delta Lake export settings. - ExportSettings *AzureDatabricksDeltaLakeExportCommand `json:"exportSettings,omitempty"` + ExportSettings *AzureDatabricksDeltaLakeExportCommand // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AzureDatabricksDeltaLakeSource. func (a *AzureDatabricksDeltaLakeSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -3254,60 +3282,60 @@ func (a *AzureDatabricksDeltaLakeSource) GetCopySource() *CopySource { type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { // REQUIRED; .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType // string). - Domain interface{} `json:"domain,omitempty"` + Domain any // Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, // SecureString or AzureKeyVaultSecretReference. - AccessToken SecretBaseClassification `json:"accessToken,omitempty"` + AccessToken SecretBaseClassification // The id of an existing interactive cluster that will be used for all runs of this job. Type: string (or Expression with // resultType string). - ClusterID interface{} `json:"clusterId,omitempty"` + ClusterID any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` + WorkspaceResourceID any } // AzureDatabricksLinkedService - Azure Databricks linked service. type AzureDatabricksLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Databricks linked service properties. - TypeProperties *AzureDatabricksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureDatabricksLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDatabricksLinkedService. func (a *AzureDatabricksLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -3315,318 +3343,333 @@ func (a *AzureDatabricksLinkedService) GetLinkedService() *LinkedService { type AzureDatabricksLinkedServiceTypeProperties struct { // REQUIRED; .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType // string). - Domain interface{} `json:"domain,omitempty"` + Domain any // Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string // (or Expression with resultType string). - AccessToken SecretBaseClassification `json:"accessToken,omitempty"` + AccessToken SecretBaseClassification // Required to specify MSI, if using Workspace resource id for databricks REST API. Type: string (or Expression with resultType // string). - Authentication interface{} `json:"authentication,omitempty"` + Authentication any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The id of an existing interactive cluster that will be used for all runs of this activity. Type: string (or Expression // with resultType string). - ExistingClusterID interface{} `json:"existingClusterId,omitempty"` + ExistingClusterID any // The id of an existing instance pool that will be used for all runs of this activity. Type: string (or Expression with resultType // string). - InstancePoolID interface{} `json:"instancePoolId,omitempty"` + InstancePoolID any // Additional tags for cluster resources. This property is ignored in instance pool configurations. - NewClusterCustomTags map[string]interface{} `json:"newClusterCustomTags,omitempty"` + NewClusterCustomTags map[string]any // The driver node type for the new job cluster. This property is ignored in instance pool configurations. Type: string (or // Expression with resultType string). - NewClusterDriverNodeType interface{} `json:"newClusterDriverNodeType,omitempty"` + NewClusterDriverNodeType any // Enable the elastic disk on the new cluster. This property is now ignored, and takes the default elastic disk behavior in // Databricks (elastic disks are always enabled). Type: boolean (or Expression // with resultType boolean). - NewClusterEnableElasticDisk interface{} `json:"newClusterEnableElasticDisk,omitempty"` + NewClusterEnableElasticDisk any // User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of // strings). - NewClusterInitScripts interface{} `json:"newClusterInitScripts,omitempty"` + NewClusterInitScripts any // Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType string). - NewClusterLogDestination interface{} `json:"newClusterLogDestination,omitempty"` + NewClusterLogDestination any // The node type of the new job cluster. This property is required if newClusterVersion is specified and instancePoolId is // not specified. If instancePoolId is specified, this property is ignored. Type: // string (or Expression with resultType string). - NewClusterNodeType interface{} `json:"newClusterNodeType,omitempty"` + NewClusterNodeType any // If not using an existing interactive cluster, this specifies the number of worker nodes to use for the new job cluster // or instance pool. For new job clusters, this a string-formatted Int32, like '1' // means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, this is a string-formatted // Int32, and can only specify a fixed number of worker nodes, such as '2'. // Required if newClusterVersion is specified. Type: string (or Expression with resultType string). - NewClusterNumOfWorker interface{} `json:"newClusterNumOfWorker,omitempty"` + NewClusterNumOfWorker any // A set of optional, user-specified Spark configuration key-value pairs. - NewClusterSparkConf map[string]interface{} `json:"newClusterSparkConf,omitempty"` + NewClusterSparkConf map[string]any // A set of optional, user-specified Spark environment variables key-value pairs. - NewClusterSparkEnvVars map[string]interface{} `json:"newClusterSparkEnvVars,omitempty"` + NewClusterSparkEnvVars map[string]any // If not using an existing interactive cluster, this specifies the Spark version of a new job cluster or instance pool nodes // created for each run of this activity. Required if instancePoolId is // specified. Type: string (or Expression with resultType string). - NewClusterVersion interface{} `json:"newClusterVersion,omitempty"` + NewClusterVersion any // The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression // with resultType string). - PolicyID interface{} `json:"policyId,omitempty"` + PolicyID any // Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` + WorkspaceResourceID any } // AzureFileStorageLinkedService - Azure File Storage linked service. type AzureFileStorageLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure File Storage linked service properties. - TypeProperties *AzureFileStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureFileStorageLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureFileStorageLinkedService. func (a *AzureFileStorageLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureFileStorageLinkedServiceTypeProperties - Azure File Storage linked service properties. type AzureFileStorageLinkedServiceTypeProperties struct { // The Azure key vault secret reference of accountKey in connection string. - AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` + AccountKey *AzureKeyVaultSecretReference // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The azure file share name. It is required when auth with accountKey/sasToken. Type: string (or Expression with resultType // string). - FileShare interface{} `json:"fileShare,omitempty"` + FileShare any // Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any // Password to logon the server. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The Azure key vault secret reference of sasToken in sas uri. - SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` + SasToken *AzureKeyVaultSecretReference // SAS URI of the Azure File resource. It is mutually exclusive with connectionString property. Type: string, SecureString // or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` + SasURI any // The azure file share snapshot version. Type: string (or Expression with resultType string). - Snapshot interface{} `json:"snapshot,omitempty"` + Snapshot any // User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` + UserID any } // AzureFileStorageLocation - The location of file server dataset. type AzureFileStorageLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureFileStorageLocation. func (a *AzureFileStorageLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: a.Type, - FolderPath: a.FolderPath, - FileName: a.FileName, AdditionalProperties: a.AdditionalProperties, + FileName: a.FileName, + FolderPath: a.FolderPath, + Type: a.Type, } } // AzureFileStorageReadSettings - Azure File Storage read settings. type AzureFileStorageReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // The prefix filter for the Azure File name starting from root path. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Azure File Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Azure File Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureFileStorageReadSettings. func (a *AzureFileStorageReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Type: a.Type, } } // AzureFileStorageWriteSettings - Azure File Storage write settings. type AzureFileStorageWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any + + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureFileStorageWriteSettings. func (a *AzureFileStorageWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return &StoreWriteSettings{ - Type: a.Type, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - CopyBehavior: a.CopyBehavior, AdditionalProperties: a.AdditionalProperties, + CopyBehavior: a.CopyBehavior, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + Metadata: a.Metadata, + Type: a.Type, } } // AzureFunctionActivity - Azure Function activity. type AzureFunctionActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Function activity properties. - TypeProperties *AzureFunctionActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureFunctionActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type AzureFunctionActivity. func (a *AzureFunctionActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureFunctionActivity. func (a *AzureFunctionActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, LinkedServiceName: a.LinkedServiceName, - Policy: a.Policy, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + Policy: a.Policy, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } @@ -3634,113 +3677,114 @@ func (a *AzureFunctionActivity) GetExecutionActivity() *ExecutionActivity { type AzureFunctionActivityTypeProperties struct { // REQUIRED; Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType // string) - FunctionName interface{} `json:"functionName,omitempty"` + FunctionName any // REQUIRED; Rest API method for target endpoint. - Method *AzureFunctionActivityMethod `json:"method,omitempty"` + Method *AzureFunctionActivityMethod // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). - Body interface{} `json:"body,omitempty"` + Body any // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). - Headers interface{} `json:"headers,omitempty"` + Headers map[string]any } // AzureFunctionLinkedService - Azure Function linked service. type AzureFunctionLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Function linked service properties. - TypeProperties *AzureFunctionLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureFunctionLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureFunctionLinkedService. func (a *AzureFunctionLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureFunctionLinkedServiceTypeProperties - Azure Function linked service properties. type AzureFunctionLinkedServiceTypeProperties struct { - // REQUIRED; The endpoint of the Azure Function App. URL will be in the format https://.azurewebsites.net. - FunctionAppURL interface{} `json:"functionAppUrl,omitempty"` + // REQUIRED; The endpoint of the Azure Function App. URL will be in the format https://.azurewebsites.net. Type: string (or + // Expression with resultType string). + FunctionAppURL any // Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string (or Expression with resultType // string). - Authentication interface{} `json:"authentication,omitempty"` + Authentication any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Function or Host key for Azure Function App. - FunctionKey SecretBaseClassification `json:"functionKey,omitempty"` + FunctionKey SecretBaseClassification - // Allowed token audiences for azure function. - ResourceID interface{} `json:"resourceId,omitempty"` + // Allowed token audiences for azure function. Type: string (or Expression with resultType string). + ResourceID any } // AzureKeyVaultLinkedService - Azure Key Vault linked service. type AzureKeyVaultLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Key Vault linked service properties. - TypeProperties *AzureKeyVaultLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureKeyVaultLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureKeyVaultLinkedService. func (a *AzureKeyVaultLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -3748,26 +3792,26 @@ func (a *AzureKeyVaultLinkedService) GetLinkedService() *LinkedService { type AzureKeyVaultLinkedServiceTypeProperties struct { // REQUIRED; The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string (or Expression with resultType // string). - BaseURL interface{} `json:"baseUrl,omitempty"` + BaseURL any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference } // AzureKeyVaultSecretReference - Azure Key Vault secret reference. type AzureKeyVaultSecretReference struct { // REQUIRED; The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). - SecretName interface{} `json:"secretName,omitempty"` + SecretName any // REQUIRED; The Azure Key Vault linked service reference. - Store *LinkedServiceReference `json:"store,omitempty"` + Store *LinkedServiceReference // REQUIRED; Type of the secret. - Type *string `json:"type,omitempty"` + Type *string // The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression // with resultType string). - SecretVersion interface{} `json:"secretVersion,omitempty"` + SecretVersion any } // GetSecretBase implements the SecretBaseClassification interface for type AzureKeyVaultSecretReference. @@ -3780,56 +3824,67 @@ func (a *AzureKeyVaultSecretReference) GetSecretBase() *SecretBase { // AzureMLBatchExecutionActivity - Azure ML Batch Execution activity. type AzureMLBatchExecutionActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure ML Batch Execution activity properties. - TypeProperties *AzureMLBatchExecutionActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMLBatchExecutionActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type AzureMLBatchExecutionActivity. func (a *AzureMLBatchExecutionActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureMLBatchExecutionActivity. func (a *AzureMLBatchExecutionActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, LinkedServiceName: a.LinkedServiceName, - Policy: a.Policy, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + Policy: a.Policy, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } @@ -3838,72 +3893,83 @@ type AzureMLBatchExecutionActivityTypeProperties struct { // Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web service // parameters defined in the published Azure ML web service. Values will be passed // in the GlobalParameters property of the Azure ML batch execution request. - GlobalParameters map[string]interface{} `json:"globalParameters,omitempty"` + GlobalParameters map[string]any // Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects specifying // the input Blob locations.. This information will be passed in the // WebServiceInputs property of the Azure ML batch execution request. - WebServiceInputs map[string]*AzureMLWebServiceFile `json:"webServiceInputs,omitempty"` + WebServiceInputs map[string]*AzureMLWebServiceFile // Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects specifying // the output Blob locations. This information will be passed in the // WebServiceOutputs property of the Azure ML batch execution request. - WebServiceOutputs map[string]*AzureMLWebServiceFile `json:"webServiceOutputs,omitempty"` + WebServiceOutputs map[string]*AzureMLWebServiceFile } // AzureMLExecutePipelineActivity - Azure ML Execute Pipeline activity. type AzureMLExecutePipelineActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure ML Execute Pipeline activity properties. - TypeProperties *AzureMLExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMLExecutePipelineActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type AzureMLExecutePipelineActivity. func (a *AzureMLExecutePipelineActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureMLExecutePipelineActivity. func (a *AzureMLExecutePipelineActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, LinkedServiceName: a.LinkedServiceName, - Policy: a.Policy, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + Policy: a.Policy, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } @@ -3912,222 +3978,237 @@ type AzureMLExecutePipelineActivityTypeProperties struct { // Whether to continue execution of other steps in the PipelineRun if a step fails. This information will be passed in the // continueOnStepFailure property of the published pipeline execution request. // Type: boolean (or Expression with resultType boolean). - ContinueOnStepFailure interface{} `json:"continueOnStepFailure,omitempty"` + ContinueOnStepFailure any // Dictionary used for changing data path assignments without retraining. Values will be passed in the dataPathAssignments - // property of the published pipeline execution request. Type: object with key - // value pairs (or Expression with resultType object). - DataPathAssignments interface{} `json:"dataPathAssignments,omitempty"` + // property of the published pipeline execution request. Type: object (or + // Expression with resultType object). + DataPathAssignments any // Run history experiment name of the pipeline run. This information will be passed in the ExperimentName property of the // published pipeline execution request. Type: string (or Expression with resultType // string). - ExperimentName interface{} `json:"experimentName,omitempty"` + ExperimentName any // The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId property of the published // pipeline execution request. Type: string (or Expression with resultType // string). - MlParentRunID interface{} `json:"mlParentRunId,omitempty"` + MlParentRunID any // ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - MlPipelineEndpointID interface{} `json:"mlPipelineEndpointId,omitempty"` + MlPipelineEndpointID any // ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). - MlPipelineID interface{} `json:"mlPipelineId,omitempty"` + MlPipelineID any // Key,Value pairs to be passed to the published Azure ML pipeline endpoint. Keys must match the names of pipeline parameters // defined in the published pipeline. Values will be passed in the // ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression // with resultType object). - MlPipelineParameters interface{} `json:"mlPipelineParameters,omitempty"` + MlPipelineParameters any // Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any } // AzureMLLinkedService - Azure ML Studio Web Service linked service. type AzureMLLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure ML Studio Web Service linked service properties. - TypeProperties *AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMLLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMLLinkedService. func (a *AzureMLLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureMLLinkedServiceTypeProperties - Azure ML Studio Web Service linked service properties. type AzureMLLinkedServiceTypeProperties struct { // REQUIRED; The API key for accessing the Azure ML model endpoint. - APIKey SecretBaseClassification `json:"apiKey,omitempty"` + APIKey SecretBaseClassification // REQUIRED; The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType // string). - MlEndpoint interface{} `json:"mlEndpoint,omitempty"` + MlEndpoint any // Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType // string). - Authentication interface{} `json:"authentication,omitempty"` + Authentication any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio // web service. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio // web service. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any // The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). - UpdateResourceEndpoint interface{} `json:"updateResourceEndpoint,omitempty"` + UpdateResourceEndpoint any } // AzureMLServiceLinkedService - Azure ML Service linked service. type AzureMLServiceLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure ML Service linked service properties. - TypeProperties *AzureMLServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMLServiceLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMLServiceLinkedService. func (a *AzureMLServiceLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties. type AzureMLServiceLinkedServiceTypeProperties struct { // REQUIRED; Azure ML Service workspace name. Type: string (or Expression with resultType string). - MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"` + MlWorkspaceName any // REQUIRED; Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + ResourceGroupName any // REQUIRED; Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` + SubscriptionID any + + // Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType + // string). + Authentication any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: // string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // AzureMLUpdateResourceActivity - Azure ML Update Resource management activity. type AzureMLUpdateResourceActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure ML Update Resource management activity properties. - TypeProperties *AzureMLUpdateResourceActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMLUpdateResourceActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type AzureMLUpdateResourceActivity. func (a *AzureMLUpdateResourceActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type AzureMLUpdateResourceActivity. func (a *AzureMLUpdateResourceActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: a.AdditionalProperties, + DependsOn: a.DependsOn, + Description: a.Description, LinkedServiceName: a.LinkedServiceName, - Policy: a.Policy, Name: a.Name, + OnInactiveMarkAs: a.OnInactiveMarkAs, + Policy: a.Policy, + State: a.State, Type: a.Type, - Description: a.Description, - DependsOn: a.DependsOn, UserProperties: a.UserProperties, - AdditionalProperties: a.AdditionalProperties, } } @@ -4135,675 +4216,675 @@ func (a *AzureMLUpdateResourceActivity) GetExecutionActivity() *ExecutionActivit type AzureMLUpdateResourceActivityTypeProperties struct { // REQUIRED; The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by // the update operation. Type: string (or Expression with resultType string). - TrainedModelFilePath interface{} `json:"trainedModelFilePath,omitempty"` + TrainedModelFilePath any // REQUIRED; Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. - TrainedModelLinkedServiceName *LinkedServiceReference `json:"trainedModelLinkedServiceName,omitempty"` + TrainedModelLinkedServiceName *LinkedServiceReference // REQUIRED; Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with // resultType string). - TrainedModelName interface{} `json:"trainedModelName,omitempty"` + TrainedModelName any } // AzureMLWebServiceFile - Azure ML WebService Input/Output file type AzureMLWebServiceFile struct { // REQUIRED; The relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: // string (or Expression with resultType string). - FilePath interface{} `json:"filePath,omitempty"` + FilePath any // REQUIRED; Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference } // AzureMariaDBLinkedService - Azure Database for MariaDB linked service. type AzureMariaDBLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Database for MariaDB linked service properties. - TypeProperties *AzureMariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMariaDBLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMariaDBLinkedService. func (a *AzureMariaDBLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureMariaDBLinkedServiceTypeProperties - Azure Database for MariaDB linked service properties. type AzureMariaDBLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + Pwd *AzureKeyVaultSecretReference } // AzureMariaDBSource - A copy activity Azure MariaDB source. type AzureMariaDBSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AzureMariaDBSource. func (a *AzureMariaDBSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AzureMariaDBSource. func (a *AzureMariaDBSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureMariaDBTableDataset - Azure Database for MariaDB dataset. type AzureMariaDBTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureMariaDBTableDataset. func (a *AzureMariaDBTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureMySQLLinkedService - Azure MySQL database linked service. type AzureMySQLLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure MySQL database linked service properties. - TypeProperties *AzureMySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMySQLLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMySQLLinkedService. func (a *AzureMySQLLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureMySQLLinkedServiceTypeProperties - Azure MySQL database linked service properties. type AzureMySQLLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference } // AzureMySQLSink - A copy activity Azure MySql sink. type AzureMySQLSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzureMySQLSink. func (a *AzureMySQLSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureMySQLSource - A copy activity Azure MySQL source. type AzureMySQLSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AzureMySQLSource. func (a *AzureMySQLSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AzureMySQLSource. func (a *AzureMySQLSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureMySQLTableDataset - The Azure MySQL database dataset. type AzureMySQLTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure MySQL database dataset properties. - TypeProperties *AzureMySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureMySQLTableDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type AzureMySQLTableDataset. func (a *AzureMySQLTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureMySQLTableDatasetTypeProperties - Azure MySQL database dataset properties. type AzureMySQLTableDatasetTypeProperties struct { // The name of Azure MySQL database table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // The Azure MySQL database table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // AzurePostgreSQLLinkedService - Azure PostgreSQL linked service. type AzurePostgreSQLLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure PostgreSQL linked service properties. - TypeProperties *AzurePostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzurePostgreSQLLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzurePostgreSQLLinkedService. func (a *AzurePostgreSQLLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzurePostgreSQLLinkedServiceTypeProperties - Azure PostgreSQL linked service properties. type AzurePostgreSQLLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference } // AzurePostgreSQLSink - A copy activity Azure PostgreSQL sink. type AzurePostgreSQLSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzurePostgreSQLSink. func (a *AzurePostgreSQLSink) GetCopySink() *CopySink { return &CopySink{ - Type: a.Type, - WriteBatchSize: a.WriteBatchSize, - WriteBatchTimeout: a.WriteBatchTimeout, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SinkRetryCount: a.SinkRetryCount, SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, + WriteBatchSize: a.WriteBatchSize, + WriteBatchTimeout: a.WriteBatchTimeout, } } // AzurePostgreSQLSource - A copy activity Azure PostgreSQL source. type AzurePostgreSQLSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AzurePostgreSQLSource. func (a *AzurePostgreSQLSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AzurePostgreSQLSource. func (a *AzurePostgreSQLSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzurePostgreSQLTableDataset - Azure PostgreSQL dataset. type AzurePostgreSQLTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *AzurePostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzurePostgreSQLTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzurePostgreSQLTableDataset. func (a *AzurePostgreSQLTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzurePostgreSQLTableDatasetTypeProperties - Azure PostgreSQL dataset properties. type AzurePostgreSQLTableDatasetTypeProperties struct { // The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // The table name of the Azure PostgreSQL database which includes both schema and table. Type: string (or Expression with // resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // AzureQueueSink - A copy activity Azure Queue sink. type AzureQueueSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzureQueueSink. func (a *AzureQueueSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureSQLDWLinkedService - Azure SQL Data Warehouse linked service. type AzureSQLDWLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure SQL Data Warehouse linked service properties. - TypeProperties *AzureSQLDWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSQLDWLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLDWLinkedService. func (a *AzureSQLDWLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -4811,737 +4892,742 @@ func (a *AzureSQLDWLinkedService) GetLinkedService() *LinkedService { type AzureSQLDWLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString // or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference // The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against Azure SQL Data Warehouse. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // AzureSQLDWTableDataset - The Azure SQL Data Warehouse dataset. type AzureSQLDWTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Azure SQL Data Warehouse dataset properties. - TypeProperties *AzureSQLDWTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSQLDWTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureSQLDWTableDataset. func (a *AzureSQLDWTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. type AzureSQLDWTableDatasetTypeProperties struct { // The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // AzureSQLDatabaseLinkedService - Microsoft Azure SQL Database linked service. type AzureSQLDatabaseLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure SQL Database linked service properties. - TypeProperties *AzureSQLDatabaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSQLDatabaseLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLDatabaseLinkedService. func (a *AzureSQLDatabaseLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureSQLDatabaseLinkedServiceTypeProperties - Azure SQL Database linked service properties. type AzureSQLDatabaseLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference // The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against Azure SQL Database. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // AzureSQLMILinkedService - Azure SQL Managed Instance linked service. type AzureSQLMILinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure SQL Managed Instance linked service properties. - TypeProperties *AzureSQLMILinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSQLMILinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLMILinkedService. func (a *AzureSQLMILinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureSQLMILinkedServiceTypeProperties - Azure SQL Managed Instance linked service properties. type AzureSQLMILinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference // The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against Azure SQL Managed Instance. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // AzureSQLMITableDataset - The Azure SQL Managed Instance dataset. type AzureSQLMITableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Azure SQL Managed Instance dataset properties. - TypeProperties *AzureSQLMITableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSQLMITableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureSQLMITableDataset. func (a *AzureSQLMITableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureSQLMITableDatasetTypeProperties - Azure SQL Managed Instance dataset properties. type AzureSQLMITableDatasetTypeProperties struct { // The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // AzureSQLSink - A copy activity Azure SQL sink. type AzureSQLSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any // SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + UpsertSettings *SQLUpsertSettings // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type AzureSQLSink. func (a *AzureSQLSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureSQLSource - A copy activity Azure SQL source. type AzureSQLSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any + + // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. + // The default value is ReadCommitted. Type: string (or + // Expression with resultType string). + IsolationLevel any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", - // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + // "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption any // The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SQLPartitionSettings // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any } // GetCopySource implements the CopySourceClassification interface for type AzureSQLSource. func (a *AzureSQLSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AzureSQLSource. func (a *AzureSQLSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureSQLTableDataset - The Azure SQL Server database dataset. type AzureSQLTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Azure SQL dataset properties. - TypeProperties *AzureSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSQLTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type AzureSQLTableDataset. func (a *AzureSQLTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. type AzureSQLTableDatasetTypeProperties struct { // The schema name of the Azure SQL database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Azure SQL database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // AzureSearchIndexDataset - The Azure Search Index. type AzureSearchIndexDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to this dataset type. - TypeProperties *AzureSearchIndexDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSearchIndexDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type AzureSearchIndexDataset. func (a *AzureSearchIndexDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. type AzureSearchIndexDatasetTypeProperties struct { // REQUIRED; The name of the Azure Search Index. Type: string (or Expression with resultType string). - IndexName interface{} `json:"indexName,omitempty"` + IndexName any } // AzureSearchIndexSink - A copy activity Azure Search Index sink. type AzureSearchIndexSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Specify the write behavior when upserting documents into Azure Search Index. - WriteBehavior *AzureSearchIndexWriteBehaviorType `json:"writeBehavior,omitempty"` + WriteBehavior *AzureSearchIndexWriteBehaviorType } // GetCopySink implements the CopySinkClassification interface for type AzureSearchIndexSink. func (a *AzureSearchIndexSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureSearchLinkedService - Linked service for Windows Azure Search Service. type AzureSearchLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Windows Azure Search Service linked service properties. - TypeProperties *AzureSearchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSearchLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSearchLinkedService. func (a *AzureSearchLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. type AzureSearchLinkedServiceTypeProperties struct { // REQUIRED; URL for Azure Search service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Admin Key for Azure Search service - Key SecretBaseClassification `json:"key,omitempty"` + Key SecretBaseClassification } // AzureStorageLinkedService - The storage account linked service. type AzureStorageLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Storage linked service properties. - TypeProperties *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureStorageLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureStorageLinkedService. func (a *AzureStorageLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureStorageLinkedServiceTypeProperties - Azure Storage linked service properties. type AzureStorageLinkedServiceTypeProperties struct { // The Azure key vault secret reference of accountKey in connection string. - AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` + AccountKey *AzureKeyVaultSecretReference // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of sasToken in sas uri. - SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` + SasToken *AzureKeyVaultSecretReference // SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString // or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` + SasURI any } // AzureSynapseArtifactsLinkedService - Azure Synapse Analytics (Artifacts) linked service. type AzureSynapseArtifactsLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Synapse Analytics (Artifacts) linked service properties. - TypeProperties *AzureSynapseArtifactsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureSynapseArtifactsLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSynapseArtifactsLinkedService. func (a *AzureSynapseArtifactsLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } @@ -5549,798 +5635,803 @@ func (a *AzureSynapseArtifactsLinkedService) GetLinkedService() *LinkedService { 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"` + Endpoint any // 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"` + Authentication any + + // The resource ID of the Synapse workspace. The format should be: /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. + // Type: string (or + // Expression with resultType string). + WorkspaceResourceID any } // AzureTableDataset - The Azure Table storage dataset. type AzureTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Table dataset properties. - TypeProperties *AzureTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureTableDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type AzureTableDataset. func (a *AzureTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, Description: a.Description, - Structure: a.Structure, - Schema: a.Schema, + Folder: a.Folder, LinkedServiceName: a.LinkedServiceName, Parameters: a.Parameters, - Annotations: a.Annotations, - Folder: a.Folder, - AdditionalProperties: a.AdditionalProperties, + Schema: a.Schema, + Structure: a.Structure, + Type: a.Type, } } // AzureTableDatasetTypeProperties - Azure Table dataset properties. type AzureTableDatasetTypeProperties struct { // REQUIRED; The table name of the Azure Table storage. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // AzureTableSink - A copy activity Azure Table sink. type AzureTableSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Azure Table default partition key value. Type: string (or Expression with resultType string). - AzureTableDefaultPartitionKeyValue interface{} `json:"azureTableDefaultPartitionKeyValue,omitempty"` + AzureTableDefaultPartitionKeyValue any // Azure Table insert type. Type: string (or Expression with resultType string). - AzureTableInsertType interface{} `json:"azureTableInsertType,omitempty"` + AzureTableInsertType any // Azure Table partition key name. Type: string (or Expression with resultType string). - AzureTablePartitionKeyName interface{} `json:"azureTablePartitionKeyName,omitempty"` + AzureTablePartitionKeyName any // Azure Table row key name. Type: string (or Expression with resultType string). - AzureTableRowKeyName interface{} `json:"azureTableRowKeyName,omitempty"` + AzureTableRowKeyName any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type AzureTableSink. func (a *AzureTableSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + SinkRetryCount: a.SinkRetryCount, + SinkRetryWait: a.SinkRetryWait, Type: a.Type, WriteBatchSize: a.WriteBatchSize, WriteBatchTimeout: a.WriteBatchTimeout, - SinkRetryCount: a.SinkRetryCount, - SinkRetryWait: a.SinkRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, } } // AzureTableSource - A copy activity Azure Table source. type AzureTableSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). - AzureTableSourceIgnoreTableNotFound interface{} `json:"azureTableSourceIgnoreTableNotFound,omitempty"` + AzureTableSourceIgnoreTableNotFound any // Azure Table source query. Type: string (or Expression with resultType string). - AzureTableSourceQuery interface{} `json:"azureTableSourceQuery,omitempty"` + AzureTableSourceQuery any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type AzureTableSource. func (a *AzureTableSource) GetCopySource() *CopySource { return &CopySource{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type AzureTableSource. func (a *AzureTableSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: a.QueryTimeout, AdditionalColumns: a.AdditionalColumns, - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + DisableMetricsCollection: a.DisableMetricsCollection, + MaxConcurrentConnections: a.MaxConcurrentConnections, + QueryTimeout: a.QueryTimeout, SourceRetryCount: a.SourceRetryCount, SourceRetryWait: a.SourceRetryWait, - MaxConcurrentConnections: a.MaxConcurrentConnections, - DisableMetricsCollection: a.DisableMetricsCollection, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // AzureTableStorageLinkedService - The azure table storage linked service. type AzureTableStorageLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Azure Table Storage linked service properties. - TypeProperties *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *AzureStorageLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type AzureTableStorageLinkedService. func (a *AzureTableStorageLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: a.Type, + AdditionalProperties: a.AdditionalProperties, + Annotations: a.Annotations, ConnectVia: a.ConnectVia, Description: a.Description, Parameters: a.Parameters, - Annotations: a.Annotations, - AdditionalProperties: a.AdditionalProperties, + Type: a.Type, } } // 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"` + ReferenceName any // REQUIRED; Big data pool reference type. - Type *BigDataPoolReferenceType `json:"type,omitempty"` + Type *BigDataPoolReferenceType } // BinaryDataset - Binary dataset. type BinaryDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Binary dataset properties. - TypeProperties *BinaryDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *BinaryDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type BinaryDataset. func (b *BinaryDataset) GetDataset() *Dataset { return &Dataset{ - Type: b.Type, + AdditionalProperties: b.AdditionalProperties, + Annotations: b.Annotations, Description: b.Description, - Structure: b.Structure, - Schema: b.Schema, + Folder: b.Folder, LinkedServiceName: b.LinkedServiceName, Parameters: b.Parameters, - Annotations: b.Annotations, - Folder: b.Folder, - AdditionalProperties: b.AdditionalProperties, + Schema: b.Schema, + Structure: b.Structure, + Type: b.Type, } } // BinaryDatasetTypeProperties - Binary dataset properties. type BinaryDatasetTypeProperties struct { // REQUIRED; The location of the Binary storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The data compression method used for the binary dataset. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression } // BinaryReadSettings - Binary read settings. type BinaryReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. - CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` + CompressionProperties CompressionReadSettingsClassification } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type BinaryReadSettings. func (b *BinaryReadSettings) GetFormatReadSettings() *FormatReadSettings { return &FormatReadSettings{ - Type: b.Type, AdditionalProperties: b.AdditionalProperties, + Type: b.Type, } } // BinarySink - A copy activity Binary sink. type BinarySink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Binary store settings. - StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreWriteSettingsClassification // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type BinarySink. func (b *BinarySink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: b.AdditionalProperties, + DisableMetricsCollection: b.DisableMetricsCollection, + MaxConcurrentConnections: b.MaxConcurrentConnections, + SinkRetryCount: b.SinkRetryCount, + SinkRetryWait: b.SinkRetryWait, Type: b.Type, WriteBatchSize: b.WriteBatchSize, WriteBatchTimeout: b.WriteBatchTimeout, - SinkRetryCount: b.SinkRetryCount, - SinkRetryWait: b.SinkRetryWait, - MaxConcurrentConnections: b.MaxConcurrentConnections, - DisableMetricsCollection: b.DisableMetricsCollection, - AdditionalProperties: b.AdditionalProperties, } } // BinarySource - A copy activity Binary source. type BinarySource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Binary format settings. - FormatSettings *BinaryReadSettings `json:"formatSettings,omitempty"` + FormatSettings *BinaryReadSettings // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Binary store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type BinarySource. func (b *BinarySource) GetCopySource() *CopySource { return &CopySource{ - Type: b.Type, - SourceRetryCount: b.SourceRetryCount, - SourceRetryWait: b.SourceRetryWait, - MaxConcurrentConnections: b.MaxConcurrentConnections, - DisableMetricsCollection: b.DisableMetricsCollection, AdditionalProperties: b.AdditionalProperties, + DisableMetricsCollection: b.DisableMetricsCollection, + MaxConcurrentConnections: b.MaxConcurrentConnections, + SourceRetryCount: b.SourceRetryCount, + SourceRetryWait: b.SourceRetryWait, + Type: b.Type, } } // BlobEventsTrigger - Trigger that runs every time a Blob event occurs. type BlobEventsTrigger struct { // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Blob Events Trigger properties. - TypeProperties *BlobEventsTriggerTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *BlobEventsTriggerTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // Pipelines that need to be started. - Pipelines []*TriggerPipelineReference `json:"pipelines,omitempty"` + Pipelines []*TriggerPipelineReference // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type BlobEventsTrigger. func (b *BlobEventsTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger { return &MultiplePipelineTrigger{ - Pipelines: b.Pipelines, - Type: b.Type, + AdditionalProperties: b.AdditionalProperties, + Annotations: b.Annotations, Description: b.Description, + Pipelines: b.Pipelines, RuntimeState: b.RuntimeState, - Annotations: b.Annotations, - AdditionalProperties: b.AdditionalProperties, + Type: b.Type, } } // GetTrigger implements the TriggerClassification interface for type BlobEventsTrigger. func (b *BlobEventsTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: b.Type, + AdditionalProperties: b.AdditionalProperties, + Annotations: b.Annotations, Description: b.Description, RuntimeState: b.RuntimeState, - Annotations: b.Annotations, - AdditionalProperties: b.AdditionalProperties, + Type: b.Type, } } // BlobEventsTriggerTypeProperties - Blob Events Trigger properties. type BlobEventsTriggerTypeProperties struct { // REQUIRED; The type of events that cause this trigger to fire. - Events []*BlobEventTypes `json:"events,omitempty"` + Events []*BlobEventTypes // REQUIRED; The ARM resource ID of the Storage Account. - Scope *string `json:"scope,omitempty"` + Scope *string // The blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only // fire the trigger for blobs in the december folder under the records container. // At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - BlobPathBeginsWith *string `json:"blobPathBeginsWith,omitempty"` + BlobPathBeginsWith *string // The blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire // the trigger for blobs named boxes in a december folder. At least one of these // must be provided: blobPathBeginsWith, blobPathEndsWith. - BlobPathEndsWith *string `json:"blobPathEndsWith,omitempty"` + BlobPathEndsWith *string // If set to true, blobs with zero bytes will be ignored. - IgnoreEmptyBlobs *bool `json:"ignoreEmptyBlobs,omitempty"` + IgnoreEmptyBlobs *bool } // BlobSink - A copy activity Azure Blob sink. type BlobSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Blob writer add header. Type: boolean (or Expression with resultType boolean). - BlobWriterAddHeader interface{} `json:"blobWriterAddHeader,omitempty"` + BlobWriterAddHeader any // Blob writer date time format. Type: string (or Expression with resultType string). - BlobWriterDateTimeFormat interface{} `json:"blobWriterDateTimeFormat,omitempty"` + BlobWriterDateTimeFormat any // Blob writer overwrite files. Type: boolean (or Expression with resultType boolean). - BlobWriterOverwriteFiles interface{} `json:"blobWriterOverwriteFiles,omitempty"` + BlobWriterOverwriteFiles any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). - Metadata []*MetadataItem `json:"metadata,omitempty"` + Metadata []*MetadataItem // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type BlobSink. func (b *BlobSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: b.AdditionalProperties, + DisableMetricsCollection: b.DisableMetricsCollection, + MaxConcurrentConnections: b.MaxConcurrentConnections, + SinkRetryCount: b.SinkRetryCount, + SinkRetryWait: b.SinkRetryWait, Type: b.Type, WriteBatchSize: b.WriteBatchSize, WriteBatchTimeout: b.WriteBatchTimeout, - SinkRetryCount: b.SinkRetryCount, - SinkRetryWait: b.SinkRetryWait, - MaxConcurrentConnections: b.MaxConcurrentConnections, - DisableMetricsCollection: b.DisableMetricsCollection, - AdditionalProperties: b.AdditionalProperties, } } // BlobSource - A copy activity Azure Blob source. type BlobSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). - SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` + SkipHeaderLineCount any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Treat empty as null. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + TreatEmptyAsNull any } // GetCopySource implements the CopySourceClassification interface for type BlobSource. func (b *BlobSource) GetCopySource() *CopySource { return &CopySource{ - Type: b.Type, + AdditionalProperties: b.AdditionalProperties, + DisableMetricsCollection: b.DisableMetricsCollection, + MaxConcurrentConnections: b.MaxConcurrentConnections, SourceRetryCount: b.SourceRetryCount, SourceRetryWait: b.SourceRetryWait, - MaxConcurrentConnections: b.MaxConcurrentConnections, - DisableMetricsCollection: b.DisableMetricsCollection, - AdditionalProperties: b.AdditionalProperties, + Type: b.Type, } } // BlobTrigger - Trigger that runs every time the selected Blob container changes. type BlobTrigger struct { // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Blob Trigger properties. - TypeProperties *BlobTriggerTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *BlobTriggerTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // Pipelines that need to be started. - Pipelines []*TriggerPipelineReference `json:"pipelines,omitempty"` + Pipelines []*TriggerPipelineReference // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type BlobTrigger. func (b *BlobTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger { return &MultiplePipelineTrigger{ - Pipelines: b.Pipelines, - Type: b.Type, + AdditionalProperties: b.AdditionalProperties, + Annotations: b.Annotations, Description: b.Description, + Pipelines: b.Pipelines, RuntimeState: b.RuntimeState, - Annotations: b.Annotations, - AdditionalProperties: b.AdditionalProperties, + Type: b.Type, } } // GetTrigger implements the TriggerClassification interface for type BlobTrigger. func (b *BlobTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: b.Type, + AdditionalProperties: b.AdditionalProperties, + Annotations: b.Annotations, Description: b.Description, RuntimeState: b.RuntimeState, - Annotations: b.Annotations, - AdditionalProperties: b.AdditionalProperties, + Type: b.Type, } } // BlobTriggerTypeProperties - Blob Trigger properties. type BlobTriggerTypeProperties struct { // REQUIRED; The path of the container/folder that will trigger the pipeline. - FolderPath *string `json:"folderPath,omitempty"` + FolderPath *string // REQUIRED; The Azure Storage linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + LinkedService *LinkedServiceReference // REQUIRED; The max number of parallel files to handle when it is triggered. - MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` + MaxConcurrency *int32 } // CMKIdentityDefinition - Managed Identity used for CMK. type CMKIdentityDefinition struct { // The resource id of the user assigned identity to authenticate to customer's key vault. - UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` + UserAssignedIdentity *string } // CassandraLinkedService - Linked service for Cassandra data source. type CassandraLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Cassandra linked service properties. - TypeProperties *CassandraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CassandraLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type CassandraLinkedService. func (c *CassandraLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, ConnectVia: c.ConnectVia, Description: c.Description, Parameters: c.Parameters, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CassandraLinkedServiceTypeProperties - Cassandra linked service properties. type CassandraLinkedServiceTypeProperties struct { // REQUIRED; Host name for connection. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any // AuthenticationType to be used for connection. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The port for the connection. Type: integer (or Expression with resultType integer). - Port interface{} `json:"port,omitempty"` + Port any // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // CassandraSource - A copy activity source for a Cassandra database. type CassandraSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The consistency level specifies how many Cassandra servers must respond to a read request before returning data to the // client application. Cassandra checks the specified number of Cassandra servers // for data to satisfy the read request. Must be one of cassandraSourceReadConsistencyLevels. The default value is 'ONE'. // It is case-insensitive. - ConsistencyLevel *CassandraSourceReadConsistencyLevels `json:"consistencyLevel,omitempty"` + ConsistencyLevel *CassandraSourceReadConsistencyLevels // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) command. Type: string (or Expression // with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type CassandraSource. func (c *CassandraSource) GetCopySource() *CopySource { return &CopySource{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type CassandraSource. func (c *CassandraSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: c.QueryTimeout, AdditionalColumns: c.AdditionalColumns, - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, + QueryTimeout: c.QueryTimeout, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CassandraTableDataset - The Cassandra database dataset. type CassandraTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Cassandra dataset properties. - TypeProperties *CassandraTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CassandraTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type CassandraTableDataset. func (c *CassandraTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, - Structure: c.Structure, - Schema: c.Schema, + Folder: c.Folder, LinkedServiceName: c.LinkedServiceName, Parameters: c.Parameters, - Annotations: c.Annotations, - Folder: c.Folder, - AdditionalProperties: c.AdditionalProperties, + Schema: c.Schema, + Structure: c.Structure, + Type: c.Type, } } // CassandraTableDatasetTypeProperties - Cassandra dataset properties. type CassandraTableDatasetTypeProperties struct { // The keyspace of the Cassandra database. Type: string (or Expression with resultType string). - Keyspace interface{} `json:"keyspace,omitempty"` + Keyspace any // The table name of the Cassandra database. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // ChainingTrigger - Trigger that allows the referenced pipeline to depend on other pipeline runs based on runDimension Name/Value @@ -6349,75 +6440,115 @@ type CassandraTableDatasetTypeProperties struct { // match for all upstream pipeline runs. type ChainingTrigger struct { // REQUIRED; Pipeline for which runs are created when all upstream pipelines complete successfully. - Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` + Pipeline *TriggerPipelineReference // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Chaining Trigger properties. - TypeProperties *ChainingTriggerTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ChainingTriggerTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetTrigger implements the TriggerClassification interface for type ChainingTrigger. func (c *ChainingTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, RuntimeState: c.RuntimeState, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // ChainingTriggerTypeProperties - Chaining Trigger properties. type ChainingTriggerTypeProperties struct { // REQUIRED; Upstream Pipelines. - DependsOn []*PipelineReference `json:"dependsOn,omitempty"` + DependsOn []*PipelineReference // REQUIRED; Run Dimension property that needs to be emitted by upstream pipelines. - RunDimension *string `json:"runDimension,omitempty"` + RunDimension *string +} + +// ChangeDataCapture - A Azure Data Factory object which automatically detects data changes at the source and then sends the +// updated data to the destination. +type ChangeDataCapture struct { + // REQUIRED; CDC policy + Policy *MapperPolicy + + // REQUIRED; List of sources connections that can be used as sources in the CDC. + SourceConnectionsInfo []*MapperSourceConnectionsInfo + + // REQUIRED; List of target connections that can be used as sources in the CDC. + TargetConnectionsInfo []*MapperTargetConnectionsInfo + + // A boolean to determine if the vnet configuration needs to be overwritten. + AllowVNetOverride *bool + + // The description of the change data capture. + Description *string + + // The folder that this CDC is in. If not specified, CDC will appear at the root level. + Folder *ChangeDataCaptureFolder + + // Status of the CDC as to if it is running or stopped. + Status *string +} + +// ChangeDataCaptureFolder - The folder that this CDC is in. If not specified, CDC will appear at the root level. +type ChangeDataCaptureFolder struct { + // The name of the folder that this CDC is in. + Name *string } -// CloudError - The object that defines the structure of an Azure Data Factory error response. -type CloudError struct { - // REQUIRED; Error data - Error *CloudErrorBody `json:"error,omitempty"` +// ChangeDataCaptureListResponse - A list of change data capture resources. +type ChangeDataCaptureListResponse struct { + // REQUIRED; Lists all resources of type change data capture. + Value []*ChangeDataCaptureResource + + // The link to the next page of results, if any remaining results exist. + NextLink *string } -// CloudErrorBody - The object that defines the structure of an Azure Data Factory error. -type CloudErrorBody struct { - // REQUIRED; Error code. - Code *string `json:"code,omitempty"` +// ChangeDataCaptureResource - Change data capture resource type. +type ChangeDataCaptureResource struct { + // REQUIRED; Properties of the change data capture. + Properties *ChangeDataCapture + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // READ-ONLY; Etag identifies change in the resource. + Etag *string - // REQUIRED; Error message. - Message *string `json:"message,omitempty"` + // READ-ONLY; The resource identifier. + ID *string - // Array with additional error details. - Details []*CloudError `json:"details,omitempty"` + // READ-ONLY; The resource name. + Name *string - // Property name/path in request associated with error. - Target *string `json:"target,omitempty"` + // READ-ONLY; The resource type. + Type *string } // CmdkeySetup - The custom setup of running cmdkey commands. type CmdkeySetup struct { // REQUIRED; The type of custom setup. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Cmdkey command custom setup type properties. - TypeProperties *CmdkeySetupTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CmdkeySetupTypeProperties } // GetCustomSetupBase implements the CustomSetupBaseClassification interface for type CmdkeySetup. @@ -6430,103 +6561,103 @@ func (c *CmdkeySetup) GetCustomSetupBase() *CustomSetupBase { // CmdkeySetupTypeProperties - Cmdkey command custom setup type properties. type CmdkeySetupTypeProperties struct { // REQUIRED; The password of data source access. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification - // REQUIRED; The server name of data source access. - TargetName interface{} `json:"targetName,omitempty"` + // REQUIRED; The server name of data source access. Type: string. + TargetName any - // REQUIRED; The user name of data source access. - UserName interface{} `json:"userName,omitempty"` + // REQUIRED; The user name of data source access. Type: string. + UserName any } // CommonDataServiceForAppsEntityDataset - The Common Data Service for Apps entity dataset. type CommonDataServiceForAppsEntityDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Common Data Service for Apps entity dataset properties. - TypeProperties *CommonDataServiceForAppsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CommonDataServiceForAppsEntityDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type CommonDataServiceForAppsEntityDataset. func (c *CommonDataServiceForAppsEntityDataset) GetDataset() *Dataset { return &Dataset{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, - Structure: c.Structure, - Schema: c.Schema, + Folder: c.Folder, LinkedServiceName: c.LinkedServiceName, Parameters: c.Parameters, - Annotations: c.Annotations, - Folder: c.Folder, - AdditionalProperties: c.AdditionalProperties, + Schema: c.Schema, + Structure: c.Structure, + Type: c.Type, } } // CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. type CommonDataServiceForAppsEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` + EntityName any } // CommonDataServiceForAppsLinkedService - Common Data Service for Apps linked service. type CommonDataServiceForAppsLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Common Data Service for Apps linked service properties. - TypeProperties *CommonDataServiceForAppsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CommonDataServiceForAppsLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type CommonDataServiceForAppsLinkedService. func (c *CommonDataServiceForAppsLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, ConnectVia: c.ConnectVia, Description: c.Description, Parameters: c.Parameters, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } @@ -6535,157 +6666,157 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' // for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server // authentication in online scenario. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // REQUIRED; The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online // and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: // string (or Expression with resultType string). - DeploymentType interface{} `json:"deploymentType,omitempty"` + DeploymentType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed // for online. Type: string (or Expression with resultType string). - HostName interface{} `json:"hostName,omitempty"` + HostName any // The organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for // online when there are more than one Common Data Service for Apps instances // associated with the user. Type: string (or Expression with resultType string). - OrganizationName interface{} `json:"organizationName,omitempty"` + OrganizationName any // Password to access the Common Data Service for Apps instance. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. // Default is 443. Type: integer (or Expression with resultType integer), // minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. - ServicePrincipalCredential SecretBaseClassification `json:"servicePrincipalCredential,omitempty"` + ServicePrincipalCredential SecretBaseClassification // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The URL to the Microsoft Common Data Service for Apps server. The property is required for on-line and not allowed for // on-prem. Type: string (or Expression with resultType string). - ServiceURI interface{} `json:"serviceUri,omitempty"` + ServiceURI any // User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // CommonDataServiceForAppsSink - A copy activity Common Data Service for Apps sink. type CommonDataServiceForAppsSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; The write behavior for the operation. - WriteBehavior *DynamicsSinkWriteBehavior `json:"writeBehavior,omitempty"` + WriteBehavior *DynamicsSinkWriteBehavior // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` + AlternateKeyName any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default // is false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type CommonDataServiceForAppsSink. func (c *CommonDataServiceForAppsSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, + SinkRetryCount: c.SinkRetryCount, + SinkRetryWait: c.SinkRetryWait, Type: c.Type, WriteBatchSize: c.WriteBatchSize, WriteBatchTimeout: c.WriteBatchTimeout, - SinkRetryCount: c.SinkRetryCount, - SinkRetryWait: c.SinkRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, } } // CommonDataServiceForAppsSource - A copy activity Common Data Service for Apps source. type CommonDataServiceForAppsSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // FetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). // Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type CommonDataServiceForAppsSource. func (c *CommonDataServiceForAppsSource) GetCopySource() *CopySource { return &CopySource{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // ComponentSetup - The custom setup of installing 3rd party components. type ComponentSetup struct { // REQUIRED; The type of custom setup. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Install 3rd party component type properties. - TypeProperties *LicensedComponentSetupTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *LicensedComponentSetupTypeProperties } // GetCustomSetupBase implements the CustomSetupBaseClassification interface for type ComponentSetup. @@ -6695,22 +6826,13 @@ func (c *ComponentSetup) GetCustomSetupBase() *CustomSetupBase { } } -// CompressionReadSettingsClassification provides polymorphic access to related types. -// Call the interface's GetCompressionReadSettings() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *CompressionReadSettings, *TarGZipReadSettings, *TarReadSettings, *ZipDeflateReadSettings -type CompressionReadSettingsClassification interface { - // GetCompressionReadSettings returns the CompressionReadSettings content of the underlying type. - GetCompressionReadSettings() *CompressionReadSettings -} - // CompressionReadSettings - Compression read settings. type CompressionReadSettings struct { // REQUIRED; The Compression setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type CompressionReadSettings. @@ -6719,227 +6841,225 @@ func (c *CompressionReadSettings) GetCompressionReadSettings() *CompressionReadS // ConcurLinkedService - Concur Service linked service. type ConcurLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Concur Service linked service properties. - TypeProperties *ConcurLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ConcurLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ConcurLinkedService. func (c *ConcurLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, ConnectVia: c.ConnectVia, Description: c.Description, Parameters: c.Parameters, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // ConcurLinkedServiceTypeProperties - Concur Service linked service properties. type ConcurLinkedServiceTypeProperties struct { // REQUIRED; Application client_id supplied by Concur App Management. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // REQUIRED; The user name that you use to access Concur Service. - Username interface{} `json:"username,omitempty"` + Username any // Properties used to connect to Concur. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password corresponding to the user name that you provided in the username field. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // ConcurObjectDataset - Concur Service dataset. type ConcurObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ConcurObjectDataset. func (c *ConcurObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, - Structure: c.Structure, - Schema: c.Schema, + Folder: c.Folder, LinkedServiceName: c.LinkedServiceName, Parameters: c.Parameters, - Annotations: c.Annotations, - Folder: c.Folder, - AdditionalProperties: c.AdditionalProperties, + Schema: c.Schema, + Structure: c.Structure, + Type: c.Type, } } // ConcurSource - A copy activity Concur Service source. type ConcurSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type ConcurSource. func (c *ConcurSource) GetCopySource() *CopySource { return &CopySource{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type ConcurSource. func (c *ConcurSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: c.QueryTimeout, AdditionalColumns: c.AdditionalColumns, - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, + QueryTimeout: c.QueryTimeout, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // ConnectionStateProperties - The connection state of a managed private endpoint type ConnectionStateProperties struct { // READ-ONLY; The actions required on the managed private endpoint - ActionsRequired *string `json:"actionsRequired,omitempty" azure:"ro"` + ActionsRequired *string // READ-ONLY; The managed private endpoint description - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The approval status - Status *string `json:"status,omitempty" azure:"ro"` -} - -// ControlActivityClassification provides polymorphic access to related types. -// Call the interface's GetControlActivity() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AppendVariableActivity, *ControlActivity, *ExecutePipelineActivity, *FailActivity, *FilterActivity, *ForEachActivity, -// - *IfConditionActivity, *SetVariableActivity, *SwitchActivity, *UntilActivity, *ValidationActivity, *WaitActivity, *WebHookActivity -type ControlActivityClassification interface { - ActivityClassification - // GetControlActivity returns the ControlActivity content of the underlying type. - GetControlActivity() *ControlActivity + Status *string } // ControlActivity - Base class for all control activities like IfCondition, ForEach , Until. type ControlActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ControlActivity. func (c *ControlActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: c.AdditionalProperties, + DependsOn: c.DependsOn, + Description: c.Description, Name: c.Name, + OnInactiveMarkAs: c.OnInactiveMarkAs, + State: c.State, Type: c.Type, - Description: c.Description, - DependsOn: c.DependsOn, UserProperties: c.UserProperties, - AdditionalProperties: c.AdditionalProperties, } } @@ -6949,408 +7069,373 @@ func (c *ControlActivity) GetControlActivity() *ControlActivity { return c } // CopyActivity - Copy activity. type CopyActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Copy activity properties. - TypeProperties *CopyActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CopyActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // List of inputs for the activity. - Inputs []*DatasetReference `json:"inputs,omitempty"` + Inputs []*DatasetReference // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // List of outputs for the activity. - Outputs []*DatasetReference `json:"outputs,omitempty"` + Outputs []*DatasetReference // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type CopyActivity. func (c *CopyActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: c.AdditionalProperties, + DependsOn: c.DependsOn, + Description: c.Description, Name: c.Name, + OnInactiveMarkAs: c.OnInactiveMarkAs, + State: c.State, Type: c.Type, - Description: c.Description, - DependsOn: c.DependsOn, UserProperties: c.UserProperties, - AdditionalProperties: c.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type CopyActivity. func (c *CopyActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: c.AdditionalProperties, + DependsOn: c.DependsOn, + Description: c.Description, LinkedServiceName: c.LinkedServiceName, - Policy: c.Policy, Name: c.Name, + OnInactiveMarkAs: c.OnInactiveMarkAs, + Policy: c.Policy, + State: c.State, Type: c.Type, - Description: c.Description, - DependsOn: c.DependsOn, UserProperties: c.UserProperties, - AdditionalProperties: c.AdditionalProperties, } } // CopyActivityLogSettings - Settings for copy activity log. type CopyActivityLogSettings struct { // Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). - EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` + EnableReliableLogging any // Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). - LogLevel interface{} `json:"logLevel,omitempty"` + LogLevel any } // CopyActivityTypeProperties - Copy activity properties. type CopyActivityTypeProperties struct { // REQUIRED; Copy activity sink. - Sink CopySinkClassification `json:"sink,omitempty"` + Sink CopySinkClassification // REQUIRED; Copy activity source. - Source CopySourceClassification `json:"source,omitempty"` + Source CopySourceClassification // Maximum number of data integration units that can be used to perform this data movement. Type: integer (or Expression with // resultType integer), minimum: 0. - DataIntegrationUnits interface{} `json:"dataIntegrationUnits,omitempty"` + DataIntegrationUnits any // Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). - EnableSkipIncompatibleRow interface{} `json:"enableSkipIncompatibleRow,omitempty"` + EnableSkipIncompatibleRow any // Specifies whether to copy data via an interim staging. Default value is false. Type: boolean (or Expression with resultType // boolean). - EnableStaging interface{} `json:"enableStaging,omitempty"` + EnableStaging any // Log settings customer needs provide when enabling log. - LogSettings *LogSettings `json:"logSettings,omitempty"` + LogSettings *LogSettings // (Deprecated. Please use LogSettings) Log storage settings customer need to provide when enabling session log. - LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` + LogStorageSettings *LogStorageSettings // Maximum number of concurrent sessions opened on the source or sink to avoid overloading the data store. Type: integer (or // Expression with resultType integer), minimum: 0. - ParallelCopies interface{} `json:"parallelCopies,omitempty"` + ParallelCopies any // Preserve rules. - Preserve []interface{} `json:"preserve,omitempty"` + Preserve []any // Preserve Rules. - PreserveRules []interface{} `json:"preserveRules,omitempty"` + PreserveRules []any // Redirect incompatible row settings when EnableSkipIncompatibleRow is true. - RedirectIncompatibleRowSettings *RedirectIncompatibleRowSettings `json:"redirectIncompatibleRowSettings,omitempty"` + RedirectIncompatibleRowSettings *RedirectIncompatibleRowSettings // Specify the fault tolerance for data consistency. - SkipErrorFile *SkipErrorFile `json:"skipErrorFile,omitempty"` + SkipErrorFile *SkipErrorFile // Specifies interim staging settings when EnableStaging is true. - StagingSettings *StagingSettings `json:"stagingSettings,omitempty"` + StagingSettings *StagingSettings // Copy activity translator. If not specified, tabular translator is used. - Translator interface{} `json:"translator,omitempty"` + Translator any // Whether to enable Data Consistency validation. Type: boolean (or Expression with resultType boolean). - ValidateDataConsistency interface{} `json:"validateDataConsistency,omitempty"` + ValidateDataConsistency any } -// CopySinkClassification provides polymorphic access to related types. -// Call the interface's GetCopySink() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AvroSink, *AzureBlobFSSink, *AzureDataExplorerSink, *AzureDataLakeStoreSink, *AzureDatabricksDeltaLakeSink, *AzureMySQLSink, -// - *AzurePostgreSQLSink, *AzureQueueSink, *AzureSQLSink, *AzureSearchIndexSink, *AzureTableSink, *BinarySink, *BlobSink, -// - *CommonDataServiceForAppsSink, *CopySink, *CosmosDbMongoDbAPISink, *CosmosDbSQLAPISink, *DelimitedTextSink, *DocumentDbCollectionSink, -// - *DynamicsCrmSink, *DynamicsSink, *FileSystemSink, *InformixSink, *JSONSink, *MicrosoftAccessSink, *MongoDbAtlasSink, -// - *MongoDbV2Sink, *OdbcSink, *OracleSink, *OrcSink, *ParquetSink, *RestSink, *SQLDWSink, *SQLMISink, *SQLServerSink, *SQLSink, -// - *SalesforceServiceCloudSink, *SalesforceSink, *SapCloudForCustomerSink, *SnowflakeSink -type CopySinkClassification interface { - // GetCopySink returns the CopySink content of the underlying type. - GetCopySink() *CopySink +// CopyComputeScaleProperties - CopyComputeScale properties for managed integration runtime. +type CopyComputeScaleProperties struct { + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // DIU number setting reserved for copy activity execution. Supported values are multiples of 4 in range 4-256. + DataIntegrationUnit *int32 + + // Time to live (in minutes) setting of integration runtime which will execute copy activity. + TimeToLive *int32 } // CopySink - A copy activity sink. type CopySink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type CopySink. func (c *CopySink) GetCopySink() *CopySink { return c } -// CopySourceClassification provides polymorphic access to related types. -// Call the interface's GetCopySource() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AmazonMWSSource, *AmazonRdsForOracleSource, *AmazonRdsForSQLServerSource, *AmazonRedshiftSource, *AvroSource, *AzureBlobFSSource, -// - *AzureDataExplorerSource, *AzureDataLakeStoreSource, *AzureDatabricksDeltaLakeSource, *AzureMariaDBSource, *AzureMySQLSource, -// - *AzurePostgreSQLSource, *AzureSQLSource, *AzureTableSource, *BinarySource, *BlobSource, *CassandraSource, *CommonDataServiceForAppsSource, -// - *ConcurSource, *CopySource, *CosmosDbMongoDbAPISource, *CosmosDbSQLAPISource, *CouchbaseSource, *Db2Source, *DelimitedTextSource, -// - *DocumentDbCollectionSource, *DrillSource, *DynamicsAXSource, *DynamicsCrmSource, *DynamicsSource, *EloquaSource, *ExcelSource, -// - *FileSystemSource, *GoogleAdWordsSource, *GoogleBigQuerySource, *GreenplumSource, *HBaseSource, *HTTPSource, *HdfsSource, -// - *HiveSource, *HubspotSource, *ImpalaSource, *InformixSource, *JSONSource, *JiraSource, *MagentoSource, *MariaDBSource, -// - *MarketoSource, *MicrosoftAccessSource, *MongoDbAtlasSource, *MongoDbSource, *MongoDbV2Source, *MySQLSource, *NetezzaSource, -// - *ODataSource, *OdbcSource, *Office365Source, *OracleServiceCloudSource, *OracleSource, *OrcSource, *ParquetSource, *PaypalSource, -// - *PhoenixSource, *PostgreSQLSource, *PrestoSource, *QuickBooksSource, *RelationalSource, *ResponsysSource, *RestSource, -// - *SQLDWSource, *SQLMISource, *SQLServerSource, *SQLSource, *SalesforceMarketingCloudSource, *SalesforceServiceCloudSource, -// - *SalesforceSource, *SapBwSource, *SapCloudForCustomerSource, *SapEccSource, *SapHanaSource, *SapOdpSource, *SapOpenHubSource, -// - *SapTableSource, *ServiceNowSource, *SharePointOnlineListSource, *ShopifySource, *SnowflakeSource, *SparkSource, *SquareSource, -// - *SybaseSource, *TabularSource, *TeradataSource, *VerticaSource, *WebSource, *XMLSource, *XeroSource, *ZohoSource -type CopySourceClassification interface { - // GetCopySource returns the CopySource content of the underlying type. - GetCopySource() *CopySource -} - // CopySource - A copy activity source. type CopySource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type CopySource. func (c *CopySource) GetCopySource() *CopySource { return c } -// CopyTranslatorClassification provides polymorphic access to related types. -// Call the interface's GetCopyTranslator() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *CopyTranslator, *TabularTranslator -type CopyTranslatorClassification interface { - // GetCopyTranslator returns the CopyTranslator content of the underlying type. - GetCopyTranslator() *CopyTranslator -} - -// CopyTranslator - A copy activity translator. -type CopyTranslator struct { - // REQUIRED; Copy translator type. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} -} - -// GetCopyTranslator implements the CopyTranslatorClassification interface for type CopyTranslator. -func (c *CopyTranslator) GetCopyTranslator() *CopyTranslator { return c } - // CosmosDbLinkedService - Microsoft Azure Cosmos Database (CosmosDB) linked service. type CosmosDbLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; CosmosDB linked service properties. - TypeProperties *CosmosDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CosmosDbLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type CosmosDbLinkedService. func (c *CosmosDbLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, ConnectVia: c.ConnectVia, Description: c.Description, Parameters: c.Parameters, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CosmosDbLinkedServiceTypeProperties - CosmosDB linked service properties. type CosmosDbLinkedServiceTypeProperties struct { // The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string) - AccountEndpoint interface{} `json:"accountEndpoint,omitempty"` + AccountEndpoint any // The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference. - AccountKey SecretBaseClassification `json:"accountKey,omitempty"` + AccountKey SecretBaseClassification // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any - // The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string). - ConnectionMode *CosmosDbConnectionMode `json:"connectionMode,omitempty"` + // The connection mode used to access CosmosDB account. Type: string. + ConnectionMode *CosmosDbConnectionMode // The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The name of the database. Type: string (or Expression with resultType string) - Database interface{} `json:"database,omitempty"` + Database any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. - ServicePrincipalCredential SecretBaseClassification `json:"servicePrincipalCredential,omitempty"` + ServicePrincipalCredential SecretBaseClassification // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, - // 'ServicePrincipalCert' for certificate. Type: string (or Expression with - // resultType string). - ServicePrincipalCredentialType *CosmosDbServicePrincipalCredentialType `json:"servicePrincipalCredentialType,omitempty"` + // 'ServicePrincipalCert' for certificate. Type: string. + ServicePrincipalCredentialType any // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // CosmosDbMongoDbAPICollectionDataset - The CosmosDB (MongoDB API) database dataset. type CosmosDbMongoDbAPICollectionDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; CosmosDB (MongoDB API) database dataset properties. - TypeProperties *CosmosDbMongoDbAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CosmosDbMongoDbAPICollectionDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type CosmosDbMongoDbAPICollectionDataset. func (c *CosmosDbMongoDbAPICollectionDataset) GetDataset() *Dataset { return &Dataset{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, - Structure: c.Structure, - Schema: c.Schema, + Folder: c.Folder, LinkedServiceName: c.LinkedServiceName, Parameters: c.Parameters, - Annotations: c.Annotations, - Folder: c.Folder, - AdditionalProperties: c.AdditionalProperties, + Schema: c.Schema, + Structure: c.Structure, + Type: c.Type, } } // CosmosDbMongoDbAPICollectionDatasetTypeProperties - CosmosDB (MongoDB API) database dataset properties. type CosmosDbMongoDbAPICollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` + Collection any } // CosmosDbMongoDbAPILinkedService - Linked service for CosmosDB (MongoDB API) data source. type CosmosDbMongoDbAPILinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; CosmosDB (MongoDB API) linked service properties. - TypeProperties *CosmosDbMongoDbAPILinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CosmosDbMongoDbAPILinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type CosmosDbMongoDbAPILinkedService. func (c *CosmosDbMongoDbAPILinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, ConnectVia: c.ConnectVia, Description: c.Description, Parameters: c.Parameters, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } @@ -7358,774 +7443,776 @@ func (c *CosmosDbMongoDbAPILinkedService) GetLinkedService() *LinkedService { type CosmosDbMongoDbAPILinkedServiceTypeProperties struct { // REQUIRED; The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // REQUIRED; The name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or Expression with resultType // string). - Database interface{} `json:"database,omitempty"` + Database any // Whether the CosmosDB (MongoDB API) server version is higher than 3.2. The default value is false. Type: boolean (or Expression // with resultType boolean). - IsServerVersionAbove32 interface{} `json:"isServerVersionAbove32,omitempty"` + IsServerVersionAbove32 any } // CosmosDbMongoDbAPISink - A copy activity sink for a CosmosDB (MongoDB API) database. type CosmosDbMongoDbAPISink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type CosmosDbMongoDbAPISink. func (c *CosmosDbMongoDbAPISink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, + SinkRetryCount: c.SinkRetryCount, + SinkRetryWait: c.SinkRetryWait, Type: c.Type, WriteBatchSize: c.WriteBatchSize, WriteBatchTimeout: c.WriteBatchTimeout, - SinkRetryCount: c.SinkRetryCount, - SinkRetryWait: c.SinkRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, } } // CosmosDbMongoDbAPISource - A copy activity source for a CosmosDB (MongoDB API) database. type CosmosDbMongoDbAPISource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying // the batch size will not affect the user or the application. This property's // main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any // Cursor methods for Mongodb query. - CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` + CursorMethods *MongoDbCursorMethodsProperties // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). - Filter interface{} `json:"filter,omitempty"` + Filter any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type CosmosDbMongoDbAPISource. func (c *CosmosDbMongoDbAPISource) GetCopySource() *CopySource { return &CopySource{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CosmosDbSQLAPICollectionDataset - Microsoft Azure CosmosDB (SQL API) Collection dataset. type CosmosDbSQLAPICollectionDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; CosmosDB (SQL API) Collection dataset properties. - TypeProperties *CosmosDbSQLAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CosmosDbSQLAPICollectionDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type CosmosDbSQLAPICollectionDataset. func (c *CosmosDbSQLAPICollectionDataset) GetDataset() *Dataset { return &Dataset{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, - Structure: c.Structure, - Schema: c.Schema, + Folder: c.Folder, LinkedServiceName: c.LinkedServiceName, Parameters: c.Parameters, - Annotations: c.Annotations, - Folder: c.Folder, - AdditionalProperties: c.AdditionalProperties, + Schema: c.Schema, + Structure: c.Structure, + Type: c.Type, } } // CosmosDbSQLAPICollectionDatasetTypeProperties - CosmosDB (SQL API) Collection dataset properties. type CosmosDbSQLAPICollectionDatasetTypeProperties struct { // REQUIRED; CosmosDB (SQL API) collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` + CollectionName any } // CosmosDbSQLAPISink - A copy activity Azure CosmosDB (SQL API) Collection sink. type CosmosDbSQLAPISink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert // and upsert. - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type CosmosDbSQLAPISink. func (c *CosmosDbSQLAPISink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, + SinkRetryCount: c.SinkRetryCount, + SinkRetryWait: c.SinkRetryWait, Type: c.Type, WriteBatchSize: c.WriteBatchSize, WriteBatchTimeout: c.WriteBatchTimeout, - SinkRetryCount: c.SinkRetryCount, - SinkRetryWait: c.SinkRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, } } // CosmosDbSQLAPISource - A copy activity Azure CosmosDB (SQL API) Collection source. type CosmosDbSQLAPISource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Whether detect primitive values as datetime values. Type: boolean (or Expression with resultType boolean). - DetectDatetime interface{} `json:"detectDatetime,omitempty"` + DetectDatetime any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Page size of the result. Type: integer (or Expression with resultType integer). - PageSize interface{} `json:"pageSize,omitempty"` + PageSize any // Preferred regions. Type: array of strings (or Expression with resultType array of strings). - PreferredRegions interface{} `json:"preferredRegions,omitempty"` + PreferredRegions any // SQL API query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type CosmosDbSQLAPISource. func (c *CosmosDbSQLAPISource) GetCopySource() *CopySource { return &CopySource{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CouchbaseLinkedService - Couchbase server linked service. type CouchbaseLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Couchbase server linked service properties. - TypeProperties *CouchbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CouchbaseLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type CouchbaseLinkedService. func (c *CouchbaseLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, ConnectVia: c.ConnectVia, Description: c.Description, Parameters: c.Parameters, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CouchbaseLinkedServiceTypeProperties - Couchbase server linked service properties. type CouchbaseLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The Azure key vault secret reference of credString in connection string. - CredString *AzureKeyVaultSecretReference `json:"credString,omitempty"` + CredString *AzureKeyVaultSecretReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // CouchbaseSource - A copy activity Couchbase server source. type CouchbaseSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type CouchbaseSource. func (c *CouchbaseSource) GetCopySource() *CopySource { return &CopySource{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type CouchbaseSource. func (c *CouchbaseSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: c.QueryTimeout, AdditionalColumns: c.AdditionalColumns, - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + DisableMetricsCollection: c.DisableMetricsCollection, + MaxConcurrentConnections: c.MaxConcurrentConnections, + QueryTimeout: c.QueryTimeout, SourceRetryCount: c.SourceRetryCount, SourceRetryWait: c.SourceRetryWait, - MaxConcurrentConnections: c.MaxConcurrentConnections, - DisableMetricsCollection: c.DisableMetricsCollection, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CouchbaseTableDataset - Couchbase server dataset. type CouchbaseTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type CouchbaseTableDataset. func (c *CouchbaseTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, - Structure: c.Structure, - Schema: c.Schema, + Folder: c.Folder, LinkedServiceName: c.LinkedServiceName, Parameters: c.Parameters, - Annotations: c.Annotations, - Folder: c.Folder, - AdditionalProperties: c.AdditionalProperties, + Schema: c.Schema, + Structure: c.Structure, + Type: c.Type, } } // CreateDataFlowDebugSessionRequest - Request body structure for creating data flow debug session. type CreateDataFlowDebugSessionRequest struct { // Compute type of the cluster. The value will be overwritten by the same setting in integration runtime if provided. - ComputeType *string `json:"computeType,omitempty"` + ComputeType *string // Core count of the cluster. The value will be overwritten by the same setting in integration runtime if provided. - CoreCount *int32 `json:"coreCount,omitempty"` + CoreCount *int32 // Set to use integration runtime setting for data flow debug session. - IntegrationRuntime *IntegrationRuntimeDebugResource `json:"integrationRuntime,omitempty"` + IntegrationRuntime *IntegrationRuntimeDebugResource // Time to live setting of the cluster in minutes. - TimeToLive *int32 `json:"timeToLive,omitempty"` + TimeToLive *int32 } // CreateDataFlowDebugSessionResponse - Response body structure for creating data flow debug session. type CreateDataFlowDebugSessionResponse struct { // The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` + SessionID *string // The state of the debug session. - Status *string `json:"status,omitempty"` + Status *string } // CreateLinkedIntegrationRuntimeRequest - The linked integration runtime information. type CreateLinkedIntegrationRuntimeRequest struct { // The location of the data factory that the linked integration runtime belongs to. - DataFactoryLocation *string `json:"dataFactoryLocation,omitempty"` + DataFactoryLocation *string // The name of the data factory that the linked integration runtime belongs to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` + DataFactoryName *string // The name of the linked integration runtime. - Name *string `json:"name,omitempty"` + Name *string // The ID of the subscription that the linked integration runtime belongs to. - SubscriptionID *string `json:"subscriptionId,omitempty"` + SubscriptionID *string } // CreateRunResponse - Response body with a run identifier. type CreateRunResponse struct { // REQUIRED; Identifier of a run. - RunID *string `json:"runId,omitempty"` -} - -// CredentialClassification provides polymorphic access to related types. -// Call the interface's GetCredential() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *Credential, *ManagedIdentityCredential, *ServicePrincipalCredential -type CredentialClassification interface { - // GetCredential returns the Credential content of the underlying type. - GetCredential() *Credential + RunID *string } // Credential - The Azure Data Factory nested object which contains the information and credential which can be used to connect // with related store or compute resource. type Credential struct { // REQUIRED; Type of credential. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Credential. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Credential description. - Description *string `json:"description,omitempty"` + Description *string } // GetCredential implements the CredentialClassification interface for type Credential. func (c *Credential) GetCredential() *Credential { return c } +// CredentialListResponse - A list of credential resources. +type CredentialListResponse struct { + // REQUIRED; List of credentials. + Value []*CredentialResource + + // The link to the next page of results, if any remaining results exist. + NextLink *string +} + // CredentialReference - Credential reference type. type CredentialReference struct { // REQUIRED; Reference credential name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Credential reference type. - Type *CredentialReferenceType `json:"type,omitempty"` + Type *CredentialReferenceType // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // CredentialResource - Credential resource type. type CredentialResource struct { // REQUIRED; Properties of credentials. - Properties CredentialClassification `json:"properties,omitempty"` + Properties CredentialClassification // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CustomActivity - Custom activity type. type CustomActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Custom activity properties. - TypeProperties *CustomActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CustomActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type CustomActivity. func (c *CustomActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: c.AdditionalProperties, + DependsOn: c.DependsOn, + Description: c.Description, Name: c.Name, + OnInactiveMarkAs: c.OnInactiveMarkAs, + State: c.State, Type: c.Type, - Description: c.Description, - DependsOn: c.DependsOn, UserProperties: c.UserProperties, - AdditionalProperties: c.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type CustomActivity. func (c *CustomActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: c.AdditionalProperties, + DependsOn: c.DependsOn, + Description: c.Description, LinkedServiceName: c.LinkedServiceName, - Policy: c.Policy, Name: c.Name, + OnInactiveMarkAs: c.OnInactiveMarkAs, + Policy: c.Policy, + State: c.State, Type: c.Type, - Description: c.Description, - DependsOn: c.DependsOn, UserProperties: c.UserProperties, - AdditionalProperties: c.AdditionalProperties, } } // CustomActivityReferenceObject - Reference objects for custom activity type CustomActivityReferenceObject struct { // Dataset references. - Datasets []*DatasetReference `json:"datasets,omitempty"` + Datasets []*DatasetReference // Linked service references. - LinkedServices []*LinkedServiceReference `json:"linkedServices,omitempty"` + LinkedServices []*LinkedServiceReference } // CustomActivityTypeProperties - Custom activity properties. type CustomActivityTypeProperties struct { // REQUIRED; Command for custom activity Type: string (or Expression with resultType string). - Command interface{} `json:"command,omitempty"` + Command any // Elevation level and scope for the user, default is nonadmin task. Type: string (or Expression with resultType double). - AutoUserSpecification interface{} `json:"autoUserSpecification,omitempty"` + AutoUserSpecification any // User defined property bag. There is no restriction on the keys or values that can be used. The user specified custom activity // has the full responsibility to consume and interpret the content defined. - ExtendedProperties map[string]interface{} `json:"extendedProperties,omitempty"` + ExtendedProperties map[string]any // Folder path for resource files Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // Reference objects - ReferenceObjects *CustomActivityReferenceObject `json:"referenceObjects,omitempty"` + ReferenceObjects *CustomActivityReferenceObject // Resource linked service reference. - ResourceLinkedService *LinkedServiceReference `json:"resourceLinkedService,omitempty"` + ResourceLinkedService *LinkedServiceReference // The retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). - RetentionTimeInDays interface{} `json:"retentionTimeInDays,omitempty"` + RetentionTimeInDays any } // CustomDataSourceLinkedService - Custom linked service. type CustomDataSourceLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Custom linked service properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` + TypeProperties any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type CustomDataSourceLinkedService. func (c *CustomDataSourceLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, ConnectVia: c.ConnectVia, Description: c.Description, Parameters: c.Parameters, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CustomDataset - The custom dataset. type CustomDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Custom dataset properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` + TypeProperties any } // GetDataset implements the DatasetClassification interface for type CustomDataset. func (c *CustomDataset) GetDataset() *Dataset { return &Dataset{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, - Structure: c.Structure, - Schema: c.Schema, + Folder: c.Folder, LinkedServiceName: c.LinkedServiceName, Parameters: c.Parameters, - Annotations: c.Annotations, - Folder: c.Folder, - AdditionalProperties: c.AdditionalProperties, + Schema: c.Schema, + Structure: c.Structure, + Type: c.Type, } } // CustomEventsTrigger - Trigger that runs every time a custom event is received. type CustomEventsTrigger struct { // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Custom Events Trigger properties. - TypeProperties *CustomEventsTriggerTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *CustomEventsTriggerTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // Pipelines that need to be started. - Pipelines []*TriggerPipelineReference `json:"pipelines,omitempty"` + Pipelines []*TriggerPipelineReference // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type CustomEventsTrigger. func (c *CustomEventsTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger { return &MultiplePipelineTrigger{ - Pipelines: c.Pipelines, - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, + Pipelines: c.Pipelines, RuntimeState: c.RuntimeState, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // GetTrigger implements the TriggerClassification interface for type CustomEventsTrigger. func (c *CustomEventsTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: c.Type, + AdditionalProperties: c.AdditionalProperties, + Annotations: c.Annotations, Description: c.Description, RuntimeState: c.RuntimeState, - Annotations: c.Annotations, - AdditionalProperties: c.AdditionalProperties, + Type: c.Type, } } // CustomEventsTriggerTypeProperties - Custom Events Trigger properties. type CustomEventsTriggerTypeProperties struct { // REQUIRED; The list of event types that cause this trigger to fire. - Events []interface{} `json:"events,omitempty"` + Events []any // REQUIRED; The ARM resource ID of the Azure Event Grid Topic. - Scope *string `json:"scope,omitempty"` + Scope *string // The event subject must begin with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, // subjectEndsWith. - SubjectBeginsWith *string `json:"subjectBeginsWith,omitempty"` + SubjectBeginsWith *string // The event subject must end with the pattern provided for trigger to fire. At least one of these must be provided: subjectBeginsWith, // subjectEndsWith. - SubjectEndsWith *string `json:"subjectEndsWith,omitempty"` -} - -// CustomSetupBaseClassification provides polymorphic access to related types. -// Call the interface's GetCustomSetupBase() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AzPowerShellSetup, *CmdkeySetup, *ComponentSetup, *CustomSetupBase, *EnvironmentVariableSetup -type CustomSetupBaseClassification interface { - // GetCustomSetupBase returns the CustomSetupBase content of the underlying type. - GetCustomSetupBase() *CustomSetupBase + SubjectEndsWith *string } // CustomSetupBase - The base definition of the custom setup. type CustomSetupBase struct { // REQUIRED; The type of custom setup. - Type *string `json:"type,omitempty"` + Type *string } // GetCustomSetupBase implements the CustomSetupBaseClassification interface for type CustomSetupBase. @@ -8134,10 +8221,10 @@ func (c *CustomSetupBase) GetCustomSetupBase() *CustomSetupBase { return c } // DWCopyCommandDefaultValue - Default value. type DWCopyCommandDefaultValue struct { // Column name. Type: object (or Expression with resultType string). - ColumnName interface{} `json:"columnName,omitempty"` + ColumnName any // The default value of the column. Type: object (or Expression with resultType string). - DefaultValue interface{} `json:"defaultValue,omitempty"` + DefaultValue any } // DWCopyCommandSettings - DW Copy Command settings. @@ -8145,36 +8232,27 @@ type DWCopyCommandSettings struct { // Additional options directly passed to SQL DW in Copy Command. Type: key value pairs (value should be string type) (or Expression // with resultType object). Example: "additionalOptions": { "MAXERRORS": // "1000", "DATEFORMAT": "'ymd'" } - AdditionalOptions map[string]*string `json:"additionalOptions,omitempty"` + AdditionalOptions map[string]*string // Specifies the default values for each target column in SQL DW. The default values in the property overwrite the DEFAULT // constraint set in the DB, and identity column cannot have a default value. Type: // array of objects (or Expression with resultType array of objects). - DefaultValues []*DWCopyCommandDefaultValue `json:"defaultValues,omitempty"` -} - -// DataFlowClassification provides polymorphic access to related types. -// Call the interface's GetDataFlow() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *DataFlow, *Flowlet, *MappingDataFlow, *WranglingDataFlow -type DataFlowClassification interface { - // GetDataFlow returns the DataFlow content of the underlying type. - GetDataFlow() *DataFlow + DefaultValues []*DWCopyCommandDefaultValue } // DataFlow - Azure Data Factory nested object which contains a flow with data movements and transformations. type DataFlow struct { // REQUIRED; Type of data flow. - Type *string `json:"type,omitempty"` + Type *string // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The description of the data flow. - Description *string `json:"description,omitempty"` + Description *string // The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` + Folder *DataFlowFolder } // GetDataFlow implements the DataFlowClassification interface for type DataFlow. @@ -8183,429 +8261,414 @@ func (d *DataFlow) GetDataFlow() *DataFlow { return d } // DataFlowDebugCommandPayload - Structure of command payload. type DataFlowDebugCommandPayload struct { // REQUIRED; The stream name which is used for preview. - StreamName *string `json:"streamName,omitempty"` + StreamName *string // Array of column names. - Columns []*string `json:"columns,omitempty"` + Columns []*string // The expression which is used for preview. - Expression *string `json:"expression,omitempty"` + Expression *string // Row limits for preview response. - RowLimits *int32 `json:"rowLimits,omitempty"` + RowLimits *int32 } // DataFlowDebugCommandRequest - Request body structure for data flow debug command. type DataFlowDebugCommandRequest struct { // The command type. - Command *DataFlowDebugCommandType `json:"command,omitempty"` + Command *DataFlowDebugCommandType // The command payload object. - CommandPayload *DataFlowDebugCommandPayload `json:"commandPayload,omitempty"` + CommandPayload *DataFlowDebugCommandPayload // The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` + SessionID *string } // DataFlowDebugCommandResponse - Response body structure of data flow result for data preview, statistics or expression preview. type DataFlowDebugCommandResponse struct { // The result data of data preview, statistics or expression preview. - Data *string `json:"data,omitempty"` + Data *string // The run status of data preview, statistics or expression preview. - Status *string `json:"status,omitempty"` + Status *string } // DataFlowDebugPackage - Request body structure for starting data flow debug session. type DataFlowDebugPackage struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Data flow instance. - DataFlow *DataFlowDebugResource `json:"dataFlow,omitempty"` + DataFlow *DataFlowDebugResource // List of Data flows - DataFlows []*DataFlowDebugResource `json:"dataFlows,omitempty"` + DataFlows []*DataFlowDebugResource // List of datasets. - Datasets []*DatasetDebugResource `json:"datasets,omitempty"` + Datasets []*DatasetDebugResource // Data flow debug settings. - DebugSettings *DataFlowDebugPackageDebugSettings `json:"debugSettings,omitempty"` + DebugSettings *DataFlowDebugPackageDebugSettings // List of linked services. - LinkedServices []*LinkedServiceDebugResource `json:"linkedServices,omitempty"` + LinkedServices []*LinkedServiceDebugResource // The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` + SessionID *string // Staging info for debug session. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` + Staging *DataFlowStagingInfo } // DataFlowDebugPackageDebugSettings - Data flow debug settings. type DataFlowDebugPackageDebugSettings struct { // Parameters for dataset. - DatasetParameters interface{} `json:"datasetParameters,omitempty"` + DatasetParameters any // Data flow parameters. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any // Source setting for data flow debug. - SourceSettings []*DataFlowSourceSetting `json:"sourceSettings,omitempty"` + SourceSettings []*DataFlowSourceSetting } // DataFlowDebugResource - Data flow debug resource. type DataFlowDebugResource struct { // REQUIRED; Data flow properties. - Properties DataFlowClassification `json:"properties,omitempty"` + Properties DataFlowClassification // The resource name. - Name *string `json:"name,omitempty"` -} - -// DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow -// method. -type DataFlowDebugSessionClientAddDataFlowOptions struct { - // placeholder for future optional parameters -} - -// DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate -// method. -type DataFlowDebugSessionClientBeginCreateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand -// method. -type DataFlowDebugSessionClientBeginExecuteCommandOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete method. -type DataFlowDebugSessionClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.QueryByFactory -// method. -type DataFlowDebugSessionClientQueryByFactoryOptions struct { - // placeholder for future optional parameters + Name *string } // DataFlowDebugSessionInfo - Data flow debug session info. type DataFlowDebugSessionInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compute type of the cluster. - ComputeType *string `json:"computeType,omitempty"` + ComputeType *string // Core count of the cluster. - CoreCount *int32 `json:"coreCount,omitempty"` + CoreCount *int32 // The name of the data flow. - DataFlowName *string `json:"dataFlowName,omitempty"` + DataFlowName *string // Attached integration runtime name of data flow debug session. - IntegrationRuntimeName *string `json:"integrationRuntimeName,omitempty"` + IntegrationRuntimeName *string // Last activity time of data flow debug session. - LastActivityTime *string `json:"lastActivityTime,omitempty"` + LastActivityTime *string // Node count of the cluster. (deprecated property) - NodeCount *int32 `json:"nodeCount,omitempty"` + NodeCount *int32 // The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` + SessionID *string // Start time of data flow debug session. - StartTime *string `json:"startTime,omitempty"` + StartTime *string // Compute type of the cluster. - TimeToLiveInMinutes *int32 `json:"timeToLiveInMinutes,omitempty"` + TimeToLiveInMinutes *int32 } // DataFlowFolder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. type DataFlowFolder struct { // The name of the folder that this data flow is in. - Name *string `json:"name,omitempty"` + Name *string } // DataFlowListResponse - A list of data flow resources. type DataFlowListResponse struct { // REQUIRED; List of data flows. - Value []*DataFlowResource `json:"value,omitempty"` + Value []*DataFlowResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // DataFlowReference - Data flow reference type. type DataFlowReference struct { // REQUIRED; Reference data flow name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Data flow reference type. - Type *DataFlowReferenceType `json:"type,omitempty"` + Type *DataFlowReferenceType // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Reference data flow parameters from dataset. - DatasetParameters interface{} `json:"datasetParameters,omitempty"` + DatasetParameters any // Data flow parameters - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any } // DataFlowResource - Data flow resource type. type DataFlowResource struct { // REQUIRED; Data flow properties. - Properties DataFlowClassification `json:"properties,omitempty"` + Properties DataFlowClassification // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DataFlowSink - Transformation for data flow sink. type DataFlowSink struct { // REQUIRED; Transformation name. - Name *string `json:"name,omitempty"` + Name *string // Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Transformation description. - Description *string `json:"description,omitempty"` + Description *string // Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` + Flowlet *DataFlowReference // Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + LinkedService *LinkedServiceReference // Rejected data linked service reference. - RejectedDataLinkedService *LinkedServiceReference `json:"rejectedDataLinkedService,omitempty"` + RejectedDataLinkedService *LinkedServiceReference // Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + SchemaLinkedService *LinkedServiceReference } // DataFlowSource - Transformation for data flow source. type DataFlowSource struct { // REQUIRED; Transformation name. - Name *string `json:"name,omitempty"` + Name *string // Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Transformation description. - Description *string `json:"description,omitempty"` + Description *string // Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` + Flowlet *DataFlowReference // Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + LinkedService *LinkedServiceReference // Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + SchemaLinkedService *LinkedServiceReference } // DataFlowSourceSetting - Definition of data flow source setting for debug. type DataFlowSourceSetting struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Defines the row limit of data flow source in debug. - RowLimit *int32 `json:"rowLimit,omitempty"` + RowLimit *int32 // The data flow source name. - SourceName *string `json:"sourceName,omitempty"` + SourceName *string } // DataFlowStagingInfo - Staging info for execute data flow activity. type DataFlowStagingInfo struct { // Folder path for staging blob. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // Staging linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` -} - -// DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate method. -type DataFlowsClientCreateOrUpdateOptions struct { - // ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be - // * for unconditional update. - IfMatch *string -} - -// DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. -type DataFlowsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. -type DataFlowsClientGetOptions struct { - // ETag of the data flow entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was - // provided, then no content will be returned. - IfNoneMatch *string -} - -// DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.ListByFactory method. -type DataFlowsClientListByFactoryOptions struct { - // placeholder for future optional parameters + LinkedService *LinkedServiceReference } // DataLakeAnalyticsUSQLActivity - Data Lake Analytics U-SQL activity. type DataLakeAnalyticsUSQLActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Data Lake Analytics U-SQL activity properties. - TypeProperties *DataLakeAnalyticsUSQLActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DataLakeAnalyticsUSQLActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type DataLakeAnalyticsUSQLActivity. func (d *DataLakeAnalyticsUSQLActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type DataLakeAnalyticsUSQLActivity. func (d *DataLakeAnalyticsUSQLActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, LinkedServiceName: d.LinkedServiceName, - Policy: d.Policy, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + Policy: d.Policy, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } // DataLakeAnalyticsUSQLActivityTypeProperties - DataLakeAnalyticsU-SQL activity properties. type DataLakeAnalyticsUSQLActivityTypeProperties struct { // REQUIRED; Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` + ScriptLinkedService *LinkedServiceReference // REQUIRED; Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` + ScriptPath any // Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with // resultType string). - CompilationMode interface{} `json:"compilationMode,omitempty"` + CompilationMode any // The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType // integer), minimum: 1. - DegreeOfParallelism interface{} `json:"degreeOfParallelism,omitempty"` + DegreeOfParallelism any // Parameters for U-SQL job request. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any // Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the // priority. Default value is 1000. Type: integer (or Expression with resultType // integer), minimum: 1. - Priority interface{} `json:"priority,omitempty"` + Priority any // Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). - RuntimeVersion interface{} `json:"runtimeVersion,omitempty"` + RuntimeVersion any +} + +// DataMapperMapping - Source and target table mapping details. +type DataMapperMapping struct { + // This holds the user provided attribute mapping information. + AttributeMappingInfo *MapperAttributeMappings + + // The connection reference for the source connection. + SourceConnectionReference *MapperConnectionReference + + // This holds the source denormalization information used while joining multiple sources. + SourceDenormalizeInfo any + + // Name of the source table + SourceEntityName *string + + // Name of the target table + TargetEntityName *string } // DatabricksNotebookActivity - DatabricksNotebook activity. type DatabricksNotebookActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Databricks Notebook activity properties. - TypeProperties *DatabricksNotebookActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DatabricksNotebookActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type DatabricksNotebookActivity. func (d *DatabricksNotebookActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type DatabricksNotebookActivity. func (d *DatabricksNotebookActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, LinkedServiceName: d.LinkedServiceName, - Policy: d.Policy, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + Policy: d.Policy, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } @@ -8613,69 +8676,80 @@ func (d *DatabricksNotebookActivity) GetExecutionActivity() *ExecutionActivity { type DatabricksNotebookActivityTypeProperties struct { // REQUIRED; The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: // string (or Expression with resultType string). - NotebookPath interface{} `json:"notebookPath,omitempty"` + NotebookPath any // Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default // value from the notebook will be used. - BaseParameters map[string]interface{} `json:"baseParameters,omitempty"` + BaseParameters map[string]any // A list of libraries to be installed on the cluster that will execute the job. - Libraries []map[string]interface{} `json:"libraries,omitempty"` + Libraries []map[string]any } // DatabricksSparkJarActivity - DatabricksSparkJar activity. type DatabricksSparkJarActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Databricks SparkJar activity properties. - TypeProperties *DatabricksSparkJarActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DatabricksSparkJarActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type DatabricksSparkJarActivity. func (d *DatabricksSparkJarActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type DatabricksSparkJarActivity. func (d *DatabricksSparkJarActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, LinkedServiceName: d.LinkedServiceName, - Policy: d.Policy, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + Policy: d.Policy, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } @@ -8683,68 +8757,79 @@ func (d *DatabricksSparkJarActivity) GetExecutionActivity() *ExecutionActivity { type DatabricksSparkJarActivityTypeProperties struct { // REQUIRED; The full name of the class containing the main method to be executed. This class must be contained in a JAR provided // as a library. Type: string (or Expression with resultType string). - MainClassName interface{} `json:"mainClassName,omitempty"` + MainClassName any // A list of libraries to be installed on the cluster that will execute the job. - Libraries []map[string]interface{} `json:"libraries,omitempty"` + Libraries []map[string]any // Parameters that will be passed to the main method. - Parameters []interface{} `json:"parameters,omitempty"` + Parameters []any } // DatabricksSparkPythonActivity - DatabricksSparkPython activity. type DatabricksSparkPythonActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Databricks SparkPython activity properties. - TypeProperties *DatabricksSparkPythonActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DatabricksSparkPythonActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type DatabricksSparkPythonActivity. func (d *DatabricksSparkPythonActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type DatabricksSparkPythonActivity. func (d *DatabricksSparkPythonActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, LinkedServiceName: d.LinkedServiceName, - Policy: d.Policy, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + Policy: d.Policy, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } @@ -8752,72 +8837,45 @@ func (d *DatabricksSparkPythonActivity) GetExecutionActivity() *ExecutionActivit type DatabricksSparkPythonActivityTypeProperties struct { // REQUIRED; The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType // string). - PythonFile interface{} `json:"pythonFile,omitempty"` + PythonFile any // A list of libraries to be installed on the cluster that will execute the job. - Libraries []map[string]interface{} `json:"libraries,omitempty"` + Libraries []map[string]any // Command line parameters that will be passed to the Python file. - Parameters []interface{} `json:"parameters,omitempty"` -} - -// DatasetClassification provides polymorphic access to related types. -// Call the interface's GetDataset() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AmazonMWSObjectDataset, *AmazonRdsForOracleTableDataset, *AmazonRdsForSQLServerTableDataset, *AmazonRedshiftTableDataset, -// - *AmazonS3Dataset, *AvroDataset, *AzureBlobDataset, *AzureBlobFSDataset, *AzureDataExplorerTableDataset, *AzureDataLakeStoreDataset, -// - *AzureDatabricksDeltaLakeDataset, *AzureMariaDBTableDataset, *AzureMySQLTableDataset, *AzurePostgreSQLTableDataset, *AzureSQLDWTableDataset, -// - *AzureSQLMITableDataset, *AzureSQLTableDataset, *AzureSearchIndexDataset, *AzureTableDataset, *BinaryDataset, *CassandraTableDataset, -// - *CommonDataServiceForAppsEntityDataset, *ConcurObjectDataset, *CosmosDbMongoDbAPICollectionDataset, *CosmosDbSQLAPICollectionDataset, -// - *CouchbaseTableDataset, *CustomDataset, *Dataset, *Db2TableDataset, *DelimitedTextDataset, *DocumentDbCollectionDataset, -// - *DrillTableDataset, *DynamicsAXResourceDataset, *DynamicsCrmEntityDataset, *DynamicsEntityDataset, *EloquaObjectDataset, -// - *ExcelDataset, *FileShareDataset, *GoogleAdWordsObjectDataset, *GoogleBigQueryObjectDataset, *GreenplumTableDataset, -// - *HBaseObjectDataset, *HTTPDataset, *HiveObjectDataset, *HubspotObjectDataset, *ImpalaObjectDataset, *InformixTableDataset, -// - *JSONDataset, *JiraObjectDataset, *MagentoObjectDataset, *MariaDBTableDataset, *MarketoObjectDataset, *MicrosoftAccessTableDataset, -// - *MongoDbAtlasCollectionDataset, *MongoDbCollectionDataset, *MongoDbV2CollectionDataset, *MySQLTableDataset, *NetezzaTableDataset, -// - *ODataResourceDataset, *OdbcTableDataset, *Office365Dataset, *OracleServiceCloudObjectDataset, *OracleTableDataset, *OrcDataset, -// - *ParquetDataset, *PaypalObjectDataset, *PhoenixObjectDataset, *PostgreSQLTableDataset, *PrestoObjectDataset, *QuickBooksObjectDataset, -// - *RelationalTableDataset, *ResponsysObjectDataset, *RestResourceDataset, *SQLServerTableDataset, *SalesforceMarketingCloudObjectDataset, -// - *SalesforceObjectDataset, *SalesforceServiceCloudObjectDataset, *SapBwCubeDataset, *SapCloudForCustomerResourceDataset, -// - *SapEccResourceDataset, *SapHanaTableDataset, *SapOdpResourceDataset, *SapOpenHubTableDataset, *SapTableResourceDataset, -// - *ServiceNowObjectDataset, *SharePointOnlineListResourceDataset, *ShopifyObjectDataset, *SnowflakeDataset, *SparkObjectDataset, -// - *SquareObjectDataset, *SybaseTableDataset, *TeradataTableDataset, *VerticaTableDataset, *WebTableDataset, *XMLDataset, -// - *XeroObjectDataset, *ZohoObjectDataset -type DatasetClassification interface { - // GetDataset returns the Dataset content of the underlying type. - GetDataset() *Dataset + Parameters []any } // Dataset - The Azure Data Factory nested object which identifies data within different data stores, such as tables, files, // folders, and documents. type Dataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type Dataset. @@ -8826,72 +8884,52 @@ func (d *Dataset) GetDataset() *Dataset { return d } // DatasetCompression - The compression method used on a dataset. type DatasetCompression struct { // REQUIRED; Type of dataset compression. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` + Type any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The dataset compression level. Type: string (or Expression with resultType string). - Level interface{} `json:"level,omitempty"` -} - -// DatasetDataElement - Columns that define the structure of the dataset. -type DatasetDataElement struct { - // Name of the column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - - // Type of the column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` + Level any } // DatasetDebugResource - Dataset debug resource. type DatasetDebugResource struct { // REQUIRED; Dataset properties. - Properties DatasetClassification `json:"properties,omitempty"` + Properties DatasetClassification // The resource name. - Name *string `json:"name,omitempty"` + Name *string } // DatasetFolder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. type DatasetFolder struct { // The name of the folder that this Dataset is in. - Name *string `json:"name,omitempty"` + Name *string } // DatasetListResponse - A list of dataset resources. type DatasetListResponse struct { // REQUIRED; List of datasets. - Value []*DatasetResource `json:"value,omitempty"` + Value []*DatasetResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// DatasetLocationClassification provides polymorphic access to related types. -// Call the interface's GetDatasetLocation() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AmazonS3CompatibleLocation, *AmazonS3Location, *AzureBlobFSLocation, *AzureBlobStorageLocation, *AzureDataLakeStoreLocation, -// - *AzureFileStorageLocation, *DatasetLocation, *FileServerLocation, *FtpServerLocation, *GoogleCloudStorageLocation, *HTTPServerLocation, -// - *HdfsLocation, *OracleCloudStorageLocation, *SftpLocation -type DatasetLocationClassification interface { - // GetDatasetLocation returns the DatasetLocation content of the underlying type. - GetDatasetLocation() *DatasetLocation + NextLink *string } // DatasetLocation - Dataset location. type DatasetLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type DatasetLocation. @@ -8900,665 +8938,621 @@ func (d *DatasetLocation) GetDatasetLocation() *DatasetLocation { return d } // DatasetReference - Dataset reference type. type DatasetReference struct { // REQUIRED; Reference dataset name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Dataset reference type. - Type *DatasetReferenceType `json:"type,omitempty"` + Type *DatasetReferenceType // Arguments for dataset. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any } // DatasetResource - Dataset resource type. type DatasetResource struct { // REQUIRED; Dataset properties. - Properties DatasetClassification `json:"properties,omitempty"` + Properties DatasetClassification // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// DatasetSchemaDataElement - Columns that define the physical type schema of the dataset. -type DatasetSchemaDataElement struct { - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // Name of the schema column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - - // Type of the schema column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` -} - -// DatasetStorageFormatClassification provides polymorphic access to related types. -// Call the interface's GetDatasetStorageFormat() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AvroFormat, *DatasetStorageFormat, *JSONFormat, *OrcFormat, *ParquetFormat, *TextFormat -type DatasetStorageFormatClassification interface { - // GetDatasetStorageFormat returns the DatasetStorageFormat content of the underlying type. - GetDatasetStorageFormat() *DatasetStorageFormat + Type *string } // DatasetStorageFormat - The format definition of a storage. type DatasetStorageFormat struct { // REQUIRED; Type of dataset storage format. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type DatasetStorageFormat. func (d *DatasetStorageFormat) GetDatasetStorageFormat() *DatasetStorageFormat { return d } -// DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. -type DatasetsClientCreateOrUpdateOptions struct { - // ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * - // for unconditional update. - IfMatch *string -} - -// DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. -type DatasetsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. -type DatasetsClientGetOptions struct { - // ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was - // provided, then no content will be returned. - IfNoneMatch *string -} - -// DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.ListByFactory method. -type DatasetsClientListByFactoryOptions struct { - // placeholder for future optional parameters -} - // DataworldLinkedService - Linked service for Dataworld. type DataworldLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Dataworld linked service properties. - TypeProperties *DataworldLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DataworldLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type DataworldLinkedService. func (d *DataworldLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, ConnectVia: d.ConnectVia, Description: d.Description, Parameters: d.Parameters, - Annotations: d.Annotations, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DataworldLinkedServiceTypeProperties - Dataworld linked service type properties. type DataworldLinkedServiceTypeProperties struct { // REQUIRED; The api token for the Dataworld source. - APIToken SecretBaseClassification `json:"apiToken,omitempty"` + APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // Db2LinkedService - Linked service for DB2 data source. type Db2LinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; DB2 linked service properties. - TypeProperties *Db2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *Db2LinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type Db2LinkedService. func (d *Db2LinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, ConnectVia: d.ConnectVia, Description: d.Description, Parameters: d.Parameters, - Annotations: d.Annotations, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // Db2LinkedServiceTypeProperties - DB2 linked service properties. type Db2LinkedServiceTypeProperties struct { // AuthenticationType to be used for connection. It is mutually exclusive with connectionString property. - AuthenticationType *Db2AuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *Db2AuthenticationType // Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or // Expression with resultType string). - CertificateCommonName interface{} `json:"certificateCommonName,omitempty"` + CertificateCommonName any // The connection string. It is mutually exclusive with server, database, authenticationType, userName, packageCollection // and certificateCommonName property. Type: string, SecureString or // AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with // resultType string). - Database interface{} `json:"database,omitempty"` + Database any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // It is mutually exclusive with connectionString property. Type: string (or - // Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // It is mutually exclusive with connectionString property. Type: string. + EncryptedCredential *string // Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: // string (or Expression with resultType string). - PackageCollection interface{} `json:"packageCollection,omitempty"` + PackageCollection any // Password for authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType // string). - Server interface{} `json:"server,omitempty"` + Server any // Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with // resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // Db2Source - A copy activity source for Db2 databases. type Db2Source struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type Db2Source. func (d *Db2Source) GetCopySource() *CopySource { return &CopySource{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type Db2Source. func (d *Db2Source) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: d.QueryTimeout, AdditionalColumns: d.AdditionalColumns, - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, + QueryTimeout: d.QueryTimeout, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // Db2TableDataset - The Db2 table dataset. type Db2TableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Db2 table dataset properties. - TypeProperties *Db2TableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *Db2TableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type Db2TableDataset. func (d *Db2TableDataset) GetDataset() *Dataset { return &Dataset{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, Description: d.Description, - Structure: d.Structure, - Schema: d.Schema, + Folder: d.Folder, LinkedServiceName: d.LinkedServiceName, Parameters: d.Parameters, - Annotations: d.Annotations, - Folder: d.Folder, - AdditionalProperties: d.AdditionalProperties, + Schema: d.Schema, + Structure: d.Structure, + Type: d.Type, } } // Db2TableDatasetTypeProperties - Db2 table dataset properties. type Db2TableDatasetTypeProperties struct { // The Db2 schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The Db2 table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // DeleteActivity - Delete activity. type DeleteActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Delete activity properties. - TypeProperties *DeleteActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DeleteActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type DeleteActivity. func (d *DeleteActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type DeleteActivity. func (d *DeleteActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: d.AdditionalProperties, + DependsOn: d.DependsOn, + Description: d.Description, LinkedServiceName: d.LinkedServiceName, - Policy: d.Policy, Name: d.Name, + OnInactiveMarkAs: d.OnInactiveMarkAs, + Policy: d.Policy, + State: d.State, Type: d.Type, - Description: d.Description, - DependsOn: d.DependsOn, UserProperties: d.UserProperties, - AdditionalProperties: d.AdditionalProperties, } } // DeleteActivityTypeProperties - Delete activity properties. type DeleteActivityTypeProperties struct { // REQUIRED; Delete activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with // resultType boolean). - EnableLogging interface{} `json:"enableLogging,omitempty"` + EnableLogging any // Log storage settings customer need to provide when enableLogging is true. - LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` + LogStorageSettings *LogStorageSettings // The max concurrent connections to connect data source at the same time. - MaxConcurrentConnections *int32 `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections *int32 // If true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or // Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Delete activity store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // DeleteDataFlowDebugSessionRequest - Request body structure for deleting data flow debug session. type DeleteDataFlowDebugSessionRequest struct { // The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` + SessionID *string } // DelimitedTextDataset - Delimited text dataset. type DelimitedTextDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Delimited text dataset properties. - TypeProperties *DelimitedTextDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DelimitedTextDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type DelimitedTextDataset. func (d *DelimitedTextDataset) GetDataset() *Dataset { return &Dataset{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, Description: d.Description, - Structure: d.Structure, - Schema: d.Schema, + Folder: d.Folder, LinkedServiceName: d.LinkedServiceName, Parameters: d.Parameters, - Annotations: d.Annotations, - Folder: d.Folder, - AdditionalProperties: d.AdditionalProperties, + Schema: d.Schema, + Structure: d.Structure, + Type: d.Type, } } // DelimitedTextDatasetTypeProperties - DelimitedText dataset properties. type DelimitedTextDatasetTypeProperties struct { // REQUIRED; The location of the delimited text storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` + ColumnDelimiter any // The data compressionCodec. Type: string (or Expression with resultType string). - CompressionCodec interface{} `json:"compressionCodec,omitempty"` + CompressionCodec any // The data compression method used for DelimitedText. - CompressionLevel interface{} `json:"compressionLevel,omitempty"` + CompressionLevel any // The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. // Refer to the name column of the table in the following link to set // supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType // string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any // The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` + EscapeChar any // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + FirstRowAsHeader any // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any // The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` + QuoteChar any // The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` + RowDelimiter any } // DelimitedTextReadSettings - Delimited text read settings. type DelimitedTextReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. - CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` + CompressionProperties CompressionReadSettingsClassification // Indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType // integer). - SkipLineCount interface{} `json:"skipLineCount,omitempty"` + SkipLineCount any } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type DelimitedTextReadSettings. func (d *DelimitedTextReadSettings) GetFormatReadSettings() *FormatReadSettings { return &FormatReadSettings{ - Type: d.Type, AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DelimitedTextSink - A copy activity DelimitedText sink. type DelimitedTextSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // DelimitedText format settings. - FormatSettings *DelimitedTextWriteSettings `json:"formatSettings,omitempty"` + FormatSettings *DelimitedTextWriteSettings // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // DelimitedText store settings. - StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreWriteSettingsClassification // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type DelimitedTextSink. func (d *DelimitedTextSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, + SinkRetryCount: d.SinkRetryCount, + SinkRetryWait: d.SinkRetryWait, Type: d.Type, WriteBatchSize: d.WriteBatchSize, WriteBatchTimeout: d.WriteBatchTimeout, - SinkRetryCount: d.SinkRetryCount, - SinkRetryWait: d.SinkRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, } } // DelimitedTextSource - A copy activity DelimitedText source. type DelimitedTextSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // DelimitedText format settings. - FormatSettings *DelimitedTextReadSettings `json:"formatSettings,omitempty"` + FormatSettings *DelimitedTextReadSettings // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // DelimitedText store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type DelimitedTextSource. func (d *DelimitedTextSource) GetCopySource() *CopySource { return &CopySource{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DelimitedTextWriteSettings - Delimited text write settings. type DelimitedTextWriteSettings struct { // REQUIRED; The file extension used to create the files. Type: string (or Expression with resultType string). - FileExtension interface{} `json:"fileExtension,omitempty"` + FileExtension any // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any // Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). - QuoteAllText interface{} `json:"quoteAllText,omitempty"` + QuoteAllText any } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type DelimitedTextWriteSettings. func (d *DelimitedTextWriteSettings) GetFormatWriteSettings() *FormatWriteSettings { return &FormatWriteSettings{ - Type: d.Type, AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } -// DependencyReferenceClassification provides polymorphic access to related types. -// Call the interface's GetDependencyReference() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *DependencyReference, *SelfDependencyTumblingWindowTriggerReference, *TriggerDependencyReference, *TumblingWindowTriggerDependencyReference -type DependencyReferenceClassification interface { - // GetDependencyReference returns the DependencyReference content of the underlying type. - GetDependencyReference() *DependencyReference -} - // DependencyReference - Referenced dependency. type DependencyReference struct { // REQUIRED; The type of dependency reference. - Type *string `json:"type,omitempty"` + Type *string } // GetDependencyReference implements the DependencyReferenceClassification interface for type DependencyReference. @@ -9567,600 +9561,600 @@ func (d *DependencyReference) GetDependencyReference() *DependencyReference { re // DistcpSettings - Distcp settings. type DistcpSettings struct { // REQUIRED; Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). - ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` + ResourceManagerEndpoint any // REQUIRED; Specifies an existing folder path which will be used to store temp Distcp command script. The script file is // generated by ADF and will be removed after Copy job finished. Type: string (or Expression // with resultType string). - TempScriptPath interface{} `json:"tempScriptPath,omitempty"` + TempScriptPath any // Specifies the Distcp options. Type: string (or Expression with resultType string). - DistcpOptions interface{} `json:"distcpOptions,omitempty"` + DistcpOptions any } // DocumentDbCollectionDataset - Microsoft Azure Document Database Collection dataset. type DocumentDbCollectionDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; DocumentDB Collection dataset properties. - TypeProperties *DocumentDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DocumentDbCollectionDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type DocumentDbCollectionDataset. func (d *DocumentDbCollectionDataset) GetDataset() *Dataset { return &Dataset{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, Description: d.Description, - Structure: d.Structure, - Schema: d.Schema, + Folder: d.Folder, LinkedServiceName: d.LinkedServiceName, Parameters: d.Parameters, - Annotations: d.Annotations, - Folder: d.Folder, - AdditionalProperties: d.AdditionalProperties, + Schema: d.Schema, + Structure: d.Structure, + Type: d.Type, } } // DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. type DocumentDbCollectionDatasetTypeProperties struct { // REQUIRED; Document Database collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` + CollectionName any } // DocumentDbCollectionSink - A copy activity Document Database Collection sink. type DocumentDbCollectionSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + NestingSeparator any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert // and upsert. - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type DocumentDbCollectionSink. func (d *DocumentDbCollectionSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, + SinkRetryCount: d.SinkRetryCount, + SinkRetryWait: d.SinkRetryWait, Type: d.Type, WriteBatchSize: d.WriteBatchSize, WriteBatchTimeout: d.WriteBatchTimeout, - SinkRetryCount: d.SinkRetryCount, - SinkRetryWait: d.SinkRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, } } // DocumentDbCollectionSource - A copy activity Document Database Collection source. type DocumentDbCollectionSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Nested properties separator. Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + NestingSeparator any // Documents query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type DocumentDbCollectionSource. func (d *DocumentDbCollectionSource) GetCopySource() *CopySource { return &CopySource{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DrillDatasetTypeProperties - Drill Dataset Properties type DrillDatasetTypeProperties struct { // The schema name of the Drill. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Drill. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // DrillLinkedService - Drill server linked service. type DrillLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Drill server linked service properties. - TypeProperties *DrillLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DrillLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type DrillLinkedService. func (d *DrillLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, ConnectVia: d.ConnectVia, Description: d.Description, Parameters: d.Parameters, - Annotations: d.Annotations, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DrillLinkedServiceTypeProperties - Drill server linked service properties. type DrillLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + Pwd *AzureKeyVaultSecretReference } // DrillSource - A copy activity Drill server source. type DrillSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type DrillSource. func (d *DrillSource) GetCopySource() *CopySource { return &CopySource{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type DrillSource. func (d *DrillSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: d.QueryTimeout, AdditionalColumns: d.AdditionalColumns, - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, + QueryTimeout: d.QueryTimeout, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DrillTableDataset - Drill server dataset. type DrillTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *DrillDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DrillDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type DrillTableDataset. func (d *DrillTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, Description: d.Description, - Structure: d.Structure, - Schema: d.Schema, + Folder: d.Folder, LinkedServiceName: d.LinkedServiceName, Parameters: d.Parameters, - Annotations: d.Annotations, - Folder: d.Folder, - AdditionalProperties: d.AdditionalProperties, + Schema: d.Schema, + Structure: d.Structure, + Type: d.Type, } } // DynamicsAXLinkedService - Dynamics AX linked service. type DynamicsAXLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Dynamics AX linked service properties. - TypeProperties *DynamicsAXLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DynamicsAXLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type DynamicsAXLinkedService. func (d *DynamicsAXLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, ConnectVia: d.ConnectVia, Description: d.Description, Parameters: d.Parameters, - Annotations: d.Annotations, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DynamicsAXLinkedServiceTypeProperties - Dynamics AX linked service properties. type DynamicsAXLinkedServiceTypeProperties struct { // REQUIRED; Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). - AADResourceID interface{} `json:"aadResourceId,omitempty"` + AADResourceID any // REQUIRED; Specify the application's client ID. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // REQUIRED; Specify the application's key. Mark this field as a SecureString to store it securely in Data Factory, or reference // a secret stored in Azure Key Vault. Type: string (or Expression with resultType // string). - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // REQUIRED; Specify the tenant information (domain name or tenant ID) under which your application resides. Retrieve it by // hovering the mouse in the top-right corner of the Azure portal. Type: string (or // Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any // REQUIRED; The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - URL interface{} `json:"url,omitempty"` + URL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // DynamicsAXResourceDataset - The path of the Dynamics AX OData entity. type DynamicsAXResourceDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Dynamics AX OData resource dataset properties. - TypeProperties *DynamicsAXResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DynamicsAXResourceDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type DynamicsAXResourceDataset. func (d *DynamicsAXResourceDataset) GetDataset() *Dataset { return &Dataset{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, Description: d.Description, - Structure: d.Structure, - Schema: d.Schema, + Folder: d.Folder, LinkedServiceName: d.LinkedServiceName, Parameters: d.Parameters, - Annotations: d.Annotations, - Folder: d.Folder, - AdditionalProperties: d.AdditionalProperties, + Schema: d.Schema, + Structure: d.Structure, + Type: d.Type, } } // DynamicsAXResourceDatasetTypeProperties - Dynamics AX OData resource dataset properties. type DynamicsAXResourceDatasetTypeProperties struct { // REQUIRED; The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any } // DynamicsAXSource - A copy activity Dynamics AX source. type DynamicsAXSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type DynamicsAXSource. func (d *DynamicsAXSource) GetCopySource() *CopySource { return &CopySource{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type DynamicsAXSource. func (d *DynamicsAXSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: d.QueryTimeout, AdditionalColumns: d.AdditionalColumns, - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, + QueryTimeout: d.QueryTimeout, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DynamicsCrmEntityDataset - The Dynamics CRM entity dataset. type DynamicsCrmEntityDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Dynamics CRM entity dataset properties. - TypeProperties *DynamicsCrmEntityDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DynamicsCrmEntityDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type DynamicsCrmEntityDataset. func (d *DynamicsCrmEntityDataset) GetDataset() *Dataset { return &Dataset{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, Description: d.Description, - Structure: d.Structure, - Schema: d.Schema, + Folder: d.Folder, LinkedServiceName: d.LinkedServiceName, Parameters: d.Parameters, - Annotations: d.Annotations, - Folder: d.Folder, - AdditionalProperties: d.AdditionalProperties, + Schema: d.Schema, + Structure: d.Structure, + Type: d.Type, } } // DynamicsCrmEntityDatasetTypeProperties - Dynamics CRM entity dataset properties. type DynamicsCrmEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` + EntityName any } // DynamicsCrmLinkedService - Dynamics CRM linked service. type DynamicsCrmLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Dynamics CRM linked service properties. - TypeProperties *DynamicsCrmLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DynamicsCrmLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type DynamicsCrmLinkedService. func (d *DynamicsCrmLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, ConnectVia: d.ConnectVia, Description: d.Description, Parameters: d.Parameters, - Annotations: d.Annotations, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } @@ -10169,236 +10163,236 @@ type DynamicsCrmLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online // scenario. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // REQUIRED; The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for // Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). - DeploymentType interface{} `json:"deploymentType,omitempty"` + DeploymentType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. // Type: string (or Expression with resultType string). - HostName interface{} `json:"hostName,omitempty"` + HostName any // The organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there // are more than one Dynamics CRM instances associated with the user. Type: // string (or Expression with resultType string). - OrganizationName interface{} `json:"organizationName,omitempty"` + OrganizationName any // Password to access the Dynamics CRM instance. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The port of on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Default is // 443. Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. - ServicePrincipalCredential SecretBaseClassification `json:"servicePrincipalCredential,omitempty"` + ServicePrincipalCredential SecretBaseClassification // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The URL to the Microsoft Dynamics CRM server. The property is required for on-line and not allowed for on-prem. Type: string // (or Expression with resultType string). - ServiceURI interface{} `json:"serviceUri,omitempty"` + ServiceURI any // User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // DynamicsCrmSink - A copy activity Dynamics CRM sink. type DynamicsCrmSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; The write behavior for the operation. - WriteBehavior *DynamicsSinkWriteBehavior `json:"writeBehavior,omitempty"` + WriteBehavior *DynamicsSinkWriteBehavior // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` + AlternateKeyName any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default // is false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type DynamicsCrmSink. func (d *DynamicsCrmSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, + SinkRetryCount: d.SinkRetryCount, + SinkRetryWait: d.SinkRetryWait, Type: d.Type, WriteBatchSize: d.WriteBatchSize, WriteBatchTimeout: d.WriteBatchTimeout, - SinkRetryCount: d.SinkRetryCount, - SinkRetryWait: d.SinkRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, } } // DynamicsCrmSource - A copy activity Dynamics CRM source. type DynamicsCrmSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or // Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type DynamicsCrmSource. func (d *DynamicsCrmSource) GetCopySource() *CopySource { return &CopySource{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // DynamicsEntityDataset - The Dynamics entity dataset. type DynamicsEntityDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Dynamics entity dataset properties. - TypeProperties *DynamicsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DynamicsEntityDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type DynamicsEntityDataset. func (d *DynamicsEntityDataset) GetDataset() *Dataset { return &Dataset{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, Description: d.Description, - Structure: d.Structure, - Schema: d.Schema, + Folder: d.Folder, LinkedServiceName: d.LinkedServiceName, Parameters: d.Parameters, - Annotations: d.Annotations, - Folder: d.Folder, - AdditionalProperties: d.AdditionalProperties, + Schema: d.Schema, + Structure: d.Structure, + Type: d.Type, } } // DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. type DynamicsEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` + EntityName any } // DynamicsLinkedService - Dynamics linked service. type DynamicsLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Dynamics linked service properties. - TypeProperties *DynamicsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *DynamicsLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type DynamicsLinkedService. func (d *DynamicsLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + Annotations: d.Annotations, ConnectVia: d.ConnectVia, Description: d.Description, Parameters: d.Parameters, - Annotations: d.Annotations, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } @@ -10407,351 +10401,351 @@ type DynamicsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online // scenario. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // REQUIRED; The deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics // on-premises with Ifd. Type: string (or Expression with resultType string). - DeploymentType interface{} `json:"deploymentType,omitempty"` + DeploymentType any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The host name of the on-premises Dynamics server. The property is required for on-prem and not allowed for online. Type: // string (or Expression with resultType string). - HostName interface{} `json:"hostName,omitempty"` + HostName any // The organization name of the Dynamics instance. The property is required for on-prem and required for online when there // are more than one Dynamics instances associated with the user. Type: string (or // Expression with resultType string). - OrganizationName interface{} `json:"organizationName,omitempty"` + OrganizationName any // Password to access the Dynamics instance. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The port of on-premises Dynamics server. The property is required for on-prem and not allowed for online. Default is 443. // Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can // only be AzureKeyVaultSecretReference. - ServicePrincipalCredential SecretBaseClassification `json:"servicePrincipalCredential,omitempty"` + ServicePrincipalCredential SecretBaseClassification // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The URL to the Microsoft Dynamics server. The property is required for on-line and not allowed for on-prem. Type: string // (or Expression with resultType string). - ServiceURI interface{} `json:"serviceUri,omitempty"` + ServiceURI any // User name to access the Dynamics instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // DynamicsSink - A copy activity Dynamics sink. type DynamicsSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; The write behavior for the operation. - WriteBehavior *DynamicsSinkWriteBehavior `json:"writeBehavior,omitempty"` + WriteBehavior *DynamicsSinkWriteBehavior // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` + AlternateKeyName any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is // false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type DynamicsSink. func (d *DynamicsSink) GetCopySink() *CopySink { return &CopySink{ - Type: d.Type, - WriteBatchSize: d.WriteBatchSize, - WriteBatchTimeout: d.WriteBatchTimeout, - SinkRetryCount: d.SinkRetryCount, - SinkRetryWait: d.SinkRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, + SinkRetryCount: d.SinkRetryCount, + SinkRetryWait: d.SinkRetryWait, + Type: d.Type, + WriteBatchSize: d.WriteBatchSize, + WriteBatchTimeout: d.WriteBatchTimeout, } } // DynamicsSource - A copy activity Dynamics source. type DynamicsSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression // with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type DynamicsSource. func (d *DynamicsSource) GetCopySource() *CopySource { return &CopySource{ - Type: d.Type, + AdditionalProperties: d.AdditionalProperties, + DisableMetricsCollection: d.DisableMetricsCollection, + MaxConcurrentConnections: d.MaxConcurrentConnections, SourceRetryCount: d.SourceRetryCount, SourceRetryWait: d.SourceRetryWait, - MaxConcurrentConnections: d.MaxConcurrentConnections, - DisableMetricsCollection: d.DisableMetricsCollection, - AdditionalProperties: d.AdditionalProperties, + Type: d.Type, } } // EloquaLinkedService - Eloqua server linked service. type EloquaLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Eloqua server linked service properties. - TypeProperties *EloquaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *EloquaLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type EloquaLinkedService. func (e *EloquaLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: e.Type, + AdditionalProperties: e.AdditionalProperties, + Annotations: e.Annotations, ConnectVia: e.ConnectVia, Description: e.Description, Parameters: e.Parameters, - Annotations: e.Annotations, - AdditionalProperties: e.AdditionalProperties, + Type: e.Type, } } // EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. type EloquaLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Eloqua server. (i.e. eloqua.example.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // REQUIRED; The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) - Username interface{} `json:"username,omitempty"` + Username any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password corresponding to the user name. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // EloquaObjectDataset - Eloqua server dataset. type EloquaObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type EloquaObjectDataset. func (e *EloquaObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: e.Type, + AdditionalProperties: e.AdditionalProperties, + Annotations: e.Annotations, Description: e.Description, - Structure: e.Structure, - Schema: e.Schema, + Folder: e.Folder, LinkedServiceName: e.LinkedServiceName, Parameters: e.Parameters, - Annotations: e.Annotations, - Folder: e.Folder, - AdditionalProperties: e.AdditionalProperties, + Schema: e.Schema, + Structure: e.Structure, + Type: e.Type, } } // EloquaSource - A copy activity Eloqua server source. type EloquaSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type EloquaSource. func (e *EloquaSource) GetCopySource() *CopySource { return &CopySource{ - Type: e.Type, + AdditionalProperties: e.AdditionalProperties, + DisableMetricsCollection: e.DisableMetricsCollection, + MaxConcurrentConnections: e.MaxConcurrentConnections, SourceRetryCount: e.SourceRetryCount, SourceRetryWait: e.SourceRetryWait, - MaxConcurrentConnections: e.MaxConcurrentConnections, - DisableMetricsCollection: e.DisableMetricsCollection, - AdditionalProperties: e.AdditionalProperties, + Type: e.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type EloquaSource. func (e *EloquaSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: e.QueryTimeout, AdditionalColumns: e.AdditionalColumns, - Type: e.Type, + AdditionalProperties: e.AdditionalProperties, + DisableMetricsCollection: e.DisableMetricsCollection, + MaxConcurrentConnections: e.MaxConcurrentConnections, + QueryTimeout: e.QueryTimeout, SourceRetryCount: e.SourceRetryCount, SourceRetryWait: e.SourceRetryWait, - MaxConcurrentConnections: e.MaxConcurrentConnections, - DisableMetricsCollection: e.DisableMetricsCollection, - AdditionalProperties: e.AdditionalProperties, + Type: e.Type, } } // EncryptionConfiguration - Definition of CMK for the factory. type EncryptionConfiguration struct { // REQUIRED; The name of the key in Azure Key Vault to use as Customer Managed Key. - KeyName *string `json:"keyName,omitempty"` + KeyName *string // REQUIRED; The url of the Azure Key Vault used for CMK. - VaultBaseURL *string `json:"vaultBaseUrl,omitempty"` + VaultBaseURL *string // User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be // used. - Identity *CMKIdentityDefinition `json:"identity,omitempty"` + Identity *CMKIdentityDefinition // The version of the key used for CMK. If not provided, latest version will be used. - KeyVersion *string `json:"keyVersion,omitempty"` + KeyVersion *string } // EntityReference - The entity reference. type EntityReference struct { // The name of this referenced entity. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // The type of this referenced entity. - Type *IntegrationRuntimeEntityReferenceType `json:"type,omitempty"` + Type *IntegrationRuntimeEntityReferenceType } // EnvironmentVariableSetup - The custom setup of setting environment variable. type EnvironmentVariableSetup struct { // REQUIRED; The type of custom setup. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Add environment variable type properties. - TypeProperties *EnvironmentVariableSetupTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *EnvironmentVariableSetupTypeProperties } // GetCustomSetupBase implements the CustomSetupBaseClassification interface for type EnvironmentVariableSetup. @@ -10764,540 +10758,567 @@ func (e *EnvironmentVariableSetup) GetCustomSetupBase() *CustomSetupBase { // EnvironmentVariableSetupTypeProperties - Environment variable custom setup type properties. type EnvironmentVariableSetupTypeProperties struct { // REQUIRED; The name of the environment variable. - VariableName *string `json:"variableName,omitempty"` + VariableName *string // REQUIRED; The value of the environment variable. - VariableValue *string `json:"variableValue,omitempty"` + VariableValue *string } // ExcelDataset - Excel dataset. type ExcelDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Excel dataset properties. - TypeProperties *ExcelDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ExcelDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ExcelDataset. func (e *ExcelDataset) GetDataset() *Dataset { return &Dataset{ - Type: e.Type, + AdditionalProperties: e.AdditionalProperties, + Annotations: e.Annotations, Description: e.Description, - Structure: e.Structure, - Schema: e.Schema, + Folder: e.Folder, LinkedServiceName: e.LinkedServiceName, Parameters: e.Parameters, - Annotations: e.Annotations, - Folder: e.Folder, - AdditionalProperties: e.AdditionalProperties, + Schema: e.Schema, + Structure: e.Structure, + Type: e.Type, } } // ExcelDatasetTypeProperties - Excel dataset properties. type ExcelDatasetTypeProperties struct { // REQUIRED; The location of the excel storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The data compression method used for the json dataset. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + FirstRowAsHeader any // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any // The partial data of one sheet. Type: string (or Expression with resultType string). - Range interface{} `json:"range,omitempty"` + Range any // The sheet index of excel file and default value is 0. Type: integer (or Expression with resultType integer) - SheetIndex interface{} `json:"sheetIndex,omitempty"` + SheetIndex any // The sheet name of excel file. Type: string (or Expression with resultType string). - SheetName interface{} `json:"sheetName,omitempty"` + SheetName any } // ExcelSource - A copy activity excel source. type ExcelSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Excel store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type ExcelSource. func (e *ExcelSource) GetCopySource() *CopySource { return &CopySource{ - Type: e.Type, + AdditionalProperties: e.AdditionalProperties, + DisableMetricsCollection: e.DisableMetricsCollection, + MaxConcurrentConnections: e.MaxConcurrentConnections, SourceRetryCount: e.SourceRetryCount, SourceRetryWait: e.SourceRetryWait, - MaxConcurrentConnections: e.MaxConcurrentConnections, - DisableMetricsCollection: e.DisableMetricsCollection, - AdditionalProperties: e.AdditionalProperties, + Type: e.Type, } } // ExecuteDataFlowActivity - Execute data flow activity. type ExecuteDataFlowActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Execute data flow activity properties. - TypeProperties *ExecuteDataFlowActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ExecuteDataFlowActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ExecuteDataFlowActivity. func (e *ExecuteDataFlowActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type ExecuteDataFlowActivity. func (e *ExecuteDataFlowActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, LinkedServiceName: e.LinkedServiceName, - Policy: e.Policy, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + Policy: e.Policy, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } // ExecuteDataFlowActivityTypeProperties - Execute data flow activity properties. type ExecuteDataFlowActivityTypeProperties struct { // REQUIRED; Data flow reference. - DataFlow *DataFlowReference `json:"dataFlow,omitempty"` + DataFlow *DataFlowReference // Compute properties for data flow activity. - Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` + Compute *ExecuteDataFlowActivityTypePropertiesCompute // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) - ContinueOnError interface{} `json:"continueOnError,omitempty"` + ContinueOnError any // The integration runtime reference. - IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` + IntegrationRuntime *IntegrationRuntimeReference // Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. // Type: boolean (or Expression with resultType boolean) - RunConcurrently interface{} `json:"runConcurrently,omitempty"` + RunConcurrently any // Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) - SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` + SourceStagingConcurrency any // Staging info for execute data flow activity. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` + Staging *DataFlowStagingInfo // Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string // (or Expression with resultType string) - TraceLevel interface{} `json:"traceLevel,omitempty"` + TraceLevel any } // ExecuteDataFlowActivityTypePropertiesCompute - Compute properties for data flow activity. type ExecuteDataFlowActivityTypePropertiesCompute struct { // Compute type of the cluster which will execute data flow job. Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. // Type: string (or Expression with resultType string) - ComputeType interface{} `json:"computeType,omitempty"` + ComputeType any // Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. Type: // integer (or Expression with resultType integer) - CoreCount interface{} `json:"coreCount,omitempty"` + CoreCount any } // ExecutePipelineActivity - Execute pipeline activity. type ExecutePipelineActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Execute pipeline activity properties. - TypeProperties *ExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ExecutePipelineActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Execute pipeline activity policy. - Policy *ExecutePipelineActivityPolicy `json:"policy,omitempty"` + Policy *ExecutePipelineActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ExecutePipelineActivity. func (e *ExecutePipelineActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type ExecutePipelineActivity. func (e *ExecutePipelineActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } // ExecutePipelineActivityPolicy - Execution policy for an execute pipeline activity. type ExecutePipelineActivityPolicy struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // When set to true, Input from activity is considered as secure and will not be logged to monitoring. - SecureInput *bool `json:"secureInput,omitempty"` + SecureInput *bool } // ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. type ExecutePipelineActivityTypeProperties struct { // REQUIRED; Pipeline reference. - Pipeline *PipelineReference `json:"pipeline,omitempty"` + Pipeline *PipelineReference // Pipeline parameters. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any // Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. - WaitOnCompletion *bool `json:"waitOnCompletion,omitempty"` + WaitOnCompletion *bool } // ExecutePowerQueryActivityTypeProperties - Execute power query data flow activity properties. type ExecutePowerQueryActivityTypeProperties struct { // REQUIRED; Data flow reference. - DataFlow *DataFlowReference `json:"dataFlow,omitempty"` + DataFlow *DataFlowReference // Compute properties for data flow activity. - Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` + Compute *ExecuteDataFlowActivityTypePropertiesCompute // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) - ContinueOnError interface{} `json:"continueOnError,omitempty"` + ContinueOnError any // The integration runtime reference. - IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` + IntegrationRuntime *IntegrationRuntimeReference // List of mapping for Power Query mashup query to sink dataset(s). - Queries []*PowerQuerySinkMapping `json:"queries,omitempty"` + Queries []*PowerQuerySinkMapping // Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. // Type: boolean (or Expression with resultType boolean) - RunConcurrently interface{} `json:"runConcurrently,omitempty"` + RunConcurrently any // (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName. - Sinks map[string]*PowerQuerySink `json:"sinks,omitempty"` + Sinks map[string]*PowerQuerySink // Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) - SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` + SourceStagingConcurrency any // Staging info for execute data flow activity. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` + Staging *DataFlowStagingInfo // Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string // (or Expression with resultType string) - TraceLevel interface{} `json:"traceLevel,omitempty"` + TraceLevel any } // ExecuteSSISPackageActivity - Execute SSIS package activity. type ExecuteSSISPackageActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Execute SSIS package activity properties. - TypeProperties *ExecuteSSISPackageActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ExecuteSSISPackageActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ExecuteSSISPackageActivity. func (e *ExecuteSSISPackageActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type ExecuteSSISPackageActivity. func (e *ExecuteSSISPackageActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, LinkedServiceName: e.LinkedServiceName, - Policy: e.Policy, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + Policy: e.Policy, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } // ExecuteSSISPackageActivityTypeProperties - Execute SSIS package activity properties. type ExecuteSSISPackageActivityTypeProperties struct { // REQUIRED; The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // REQUIRED; SSIS package location. - PackageLocation *SSISPackageLocation `json:"packageLocation,omitempty"` + PackageLocation *SSISPackageLocation // The environment path to execute the SSIS package. Type: string (or Expression with resultType string). - EnvironmentPath interface{} `json:"environmentPath,omitempty"` + EnvironmentPath any // The package execution credential. - ExecutionCredential *SSISExecutionCredential `json:"executionCredential,omitempty"` + ExecutionCredential *SSISExecutionCredential // SSIS package execution log location. - LogLocation *SSISLogLocation `json:"logLocation,omitempty"` + LogLocation *SSISLogLocation // The logging level of SSIS package execution. Type: string (or Expression with resultType string). - LoggingLevel interface{} `json:"loggingLevel,omitempty"` + LoggingLevel any // The package level connection managers to execute the SSIS package. - PackageConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"packageConnectionManagers,omitempty"` + PackageConnectionManagers map[string]map[string]*SSISExecutionParameter // The package level parameters to execute the SSIS package. - PackageParameters map[string]*SSISExecutionParameter `json:"packageParameters,omitempty"` + PackageParameters map[string]*SSISExecutionParameter // The project level connection managers to execute the SSIS package. - ProjectConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"projectConnectionManagers,omitempty"` + ProjectConnectionManagers map[string]map[string]*SSISExecutionParameter // The project level parameters to execute the SSIS package. - ProjectParameters map[string]*SSISExecutionParameter `json:"projectParameters,omitempty"` + ProjectParameters map[string]*SSISExecutionParameter // The property overrides to execute the SSIS package. - PropertyOverrides map[string]*SSISPropertyOverride `json:"propertyOverrides,omitempty"` + PropertyOverrides map[string]*SSISPropertyOverride // Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType // string). - Runtime interface{} `json:"runtime,omitempty"` + Runtime any } // ExecuteWranglingDataflowActivity - Execute power query activity. type ExecuteWranglingDataflowActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Execute power query activity properties. - TypeProperties *ExecutePowerQueryActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ExecutePowerQueryActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ExecuteWranglingDataflowActivity. func (e *ExecuteWranglingDataflowActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } -// ExecutionActivityClassification provides polymorphic access to related types. -// Call the interface's GetExecutionActivity() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AzureDataExplorerCommandActivity, *AzureFunctionActivity, *AzureMLBatchExecutionActivity, *AzureMLExecutePipelineActivity, -// - *AzureMLUpdateResourceActivity, *CopyActivity, *CustomActivity, *DataLakeAnalyticsUSQLActivity, *DatabricksNotebookActivity, -// - *DatabricksSparkJarActivity, *DatabricksSparkPythonActivity, *DeleteActivity, *ExecuteDataFlowActivity, *ExecuteSSISPackageActivity, -// - *ExecutionActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, -// - *HDInsightSparkActivity, *HDInsightStreamingActivity, *LookupActivity, *SQLServerStoredProcedureActivity, *ScriptActivity, -// - *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, *WebActivity -type ExecutionActivityClassification interface { - ActivityClassification - // GetExecutionActivity returns the ExecutionActivity content of the underlying type. - GetExecutionActivity() *ExecutionActivity -} - // ExecutionActivity - Base class for all execution activities. type ExecutionActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ExecutionActivity. func (e *ExecutionActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: e.AdditionalProperties, + DependsOn: e.DependsOn, + Description: e.Description, Name: e.Name, + OnInactiveMarkAs: e.OnInactiveMarkAs, + State: e.State, Type: e.Type, - Description: e.Description, - DependsOn: e.DependsOn, UserProperties: e.UserProperties, - AdditionalProperties: e.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type ExecutionActivity. func (e *ExecutionActivity) GetExecutionActivity() *ExecutionActivity { return e } -// ExportSettingsClassification provides polymorphic access to related types. -// Call the interface's GetExportSettings() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AzureDatabricksDeltaLakeExportCommand, *ExportSettings, *SnowflakeExportCopyCommand -type ExportSettingsClassification interface { - // GetExportSettings returns the ExportSettings content of the underlying type. - GetExportSettings() *ExportSettings -} - // ExportSettings - Export command settings. type ExportSettings struct { // REQUIRED; The export setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetExportSettings implements the ExportSettingsClassification interface for type ExportSettings. @@ -11306,263 +11327,206 @@ func (e *ExportSettings) GetExportSettings() *ExportSettings { return e } // ExposureControlBatchRequest - A list of exposure control features. type ExposureControlBatchRequest struct { // REQUIRED; List of exposure control features. - ExposureControlRequests []*ExposureControlRequest `json:"exposureControlRequests,omitempty"` + ExposureControlRequests []*ExposureControlRequest } // ExposureControlBatchResponse - A list of exposure control feature values. type ExposureControlBatchResponse struct { // REQUIRED; List of exposure control feature values. - ExposureControlResponses []*ExposureControlResponse `json:"exposureControlResponses,omitempty"` -} - -// ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory -// method. -type ExposureControlClientGetFeatureValueByFactoryOptions struct { - // placeholder for future optional parameters -} - -// ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue -// method. -type ExposureControlClientGetFeatureValueOptions struct { - // placeholder for future optional parameters -} - -// ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory -// method. -type ExposureControlClientQueryFeatureValuesByFactoryOptions struct { - // placeholder for future optional parameters + ExposureControlResponses []*ExposureControlResponse } // ExposureControlRequest - The exposure control request. type ExposureControlRequest struct { // The feature name. - FeatureName *string `json:"featureName,omitempty"` + FeatureName *string // The feature type. - FeatureType *string `json:"featureType,omitempty"` + FeatureType *string } // ExposureControlResponse - The exposure control response. type ExposureControlResponse struct { // READ-ONLY; The feature name. - FeatureName *string `json:"featureName,omitempty" azure:"ro"` + FeatureName *string // READ-ONLY; The feature value. - Value *string `json:"value,omitempty" azure:"ro"` + Value *string } // Expression - Azure Data Factory expression definition. type Expression struct { // REQUIRED; Expression type. - Type *ExpressionType `json:"type,omitempty"` + Type *ExpressionType // REQUIRED; Expression value. - Value *string `json:"value,omitempty"` -} - -// FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo -// method. -type FactoriesClientConfigureFactoryRepoOptions struct { - // placeholder for future optional parameters -} - -// FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate method. -type FactoriesClientCreateOrUpdateOptions struct { - // ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * - // for unconditional update. - IfMatch *string -} - -// FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. -type FactoriesClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess method. -type FactoriesClientGetDataPlaneAccessOptions struct { - // placeholder for future optional parameters -} - -// FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken -// method. -type FactoriesClientGetGitHubAccessTokenOptions struct { - // placeholder for future optional parameters + Value *string } -// FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. -type FactoriesClientGetOptions struct { - // ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was - // provided, then no content will be returned. - IfNoneMatch *string -} +// ExpressionV2 - Nested representation of a complex expression. +type ExpressionV2 struct { + // List of nested expressions. + Operands []*ExpressionV2 -// FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.ListByResourceGroup -// method. -type FactoriesClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} + // Expression operator value Type: string. + Operator *string -// FactoriesClientListOptions contains the optional parameters for the FactoriesClient.List method. -type FactoriesClientListOptions struct { - // placeholder for future optional parameters -} + // Type of expressions supported by the system. Type: string. + Type *ExpressionV2Type -// FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. -type FactoriesClientUpdateOptions struct { - // placeholder for future optional parameters + // Value for Constant/Field Type: string. + Value *string } // Factory resource type. type Factory struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` + Identity *FactoryIdentity // The resource location. - Location *string `json:"location,omitempty"` + Location *string // Properties of the factory. - Properties *FactoryProperties `json:"properties,omitempty"` + Properties *FactoryProperties // The resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Etag identifies change in the resource. - ETag *string `json:"eTag,omitempty" azure:"ro"` + ETag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // FactoryGitHubConfiguration - Factory's GitHub repo information. type FactoryGitHubConfiguration struct { // REQUIRED; Account name. - AccountName *string `json:"accountName,omitempty"` + AccountName *string // REQUIRED; Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` + CollaborationBranch *string // REQUIRED; Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` + RepositoryName *string // REQUIRED; Root folder. - RootFolder *string `json:"rootFolder,omitempty"` + RootFolder *string // REQUIRED; Type of repo configuration. - Type *string `json:"type,omitempty"` + Type *string // GitHub bring your own app client id. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // GitHub bring your own app client secret information. - ClientSecret *GitHubClientSecret `json:"clientSecret,omitempty"` + ClientSecret *GitHubClientSecret + + // Disable manual publish operation in ADF studio to favor automated publish. + DisablePublish *bool // GitHub Enterprise host name. For example: https://github.mydomain.com - HostName *string `json:"hostName,omitempty"` + HostName *string // Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` + LastCommitID *string } // GetFactoryRepoConfiguration implements the FactoryRepoConfigurationClassification interface for type FactoryGitHubConfiguration. func (f *FactoryGitHubConfiguration) GetFactoryRepoConfiguration() *FactoryRepoConfiguration { return &FactoryRepoConfiguration{ - Type: f.Type, AccountName: f.AccountName, - RepositoryName: f.RepositoryName, CollaborationBranch: f.CollaborationBranch, - RootFolder: f.RootFolder, + DisablePublish: f.DisablePublish, LastCommitID: f.LastCommitID, + RepositoryName: f.RepositoryName, + RootFolder: f.RootFolder, + Type: f.Type, } } // FactoryIdentity - Identity properties of the factory resource. type FactoryIdentity struct { // REQUIRED; The identity type. - Type *FactoryIdentityType `json:"type,omitempty"` + Type *FactoryIdentityType // List of user assigned identities for the factory. - UserAssignedIdentities map[string]interface{} `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]any // READ-ONLY; The principal id of the identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The client tenant id of the identity. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // FactoryListResponse - A list of factory resources. type FactoryListResponse struct { // REQUIRED; List of factories. - Value []*Factory `json:"value,omitempty"` + Value []*Factory // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // FactoryProperties - Factory resource properties. type FactoryProperties struct { // Properties to enable Customer Managed Key for the factory. - Encryption *EncryptionConfiguration `json:"encryption,omitempty"` + Encryption *EncryptionConfiguration // List of parameters for factory. - GlobalParameters map[string]*GlobalParameterSpecification `json:"globalParameters,omitempty"` + GlobalParameters map[string]*GlobalParameterSpecification // Whether or not public network access is allowed for the data factory. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // Purview information of the factory. - PurviewConfiguration *PurviewConfiguration `json:"purviewConfiguration,omitempty"` + PurviewConfiguration *PurviewConfiguration // Git repo information of the factory. - RepoConfiguration FactoryRepoConfigurationClassification `json:"repoConfiguration,omitempty"` + RepoConfiguration FactoryRepoConfigurationClassification // READ-ONLY; Time the factory was created in ISO8601 format. - CreateTime *time.Time `json:"createTime,omitempty" azure:"ro"` + CreateTime *time.Time // READ-ONLY; Factory provisioning state, example Succeeded. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Version of the factory. - Version *string `json:"version,omitempty" azure:"ro"` -} - -// FactoryRepoConfigurationClassification provides polymorphic access to related types. -// Call the interface's GetFactoryRepoConfiguration() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *FactoryGitHubConfiguration, *FactoryRepoConfiguration, *FactoryVSTSConfiguration -type FactoryRepoConfigurationClassification interface { - // GetFactoryRepoConfiguration returns the FactoryRepoConfiguration content of the underlying type. - GetFactoryRepoConfiguration() *FactoryRepoConfiguration + Version *string } // FactoryRepoConfiguration - Factory's git repo information. type FactoryRepoConfiguration struct { // REQUIRED; Account name. - AccountName *string `json:"accountName,omitempty"` + AccountName *string // REQUIRED; Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` + CollaborationBranch *string // REQUIRED; Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` + RepositoryName *string // REQUIRED; Root folder. - RootFolder *string `json:"rootFolder,omitempty"` + RootFolder *string // REQUIRED; Type of repo configuration. - Type *string `json:"type,omitempty"` + Type *string + + // Disable manual publish operation in ADF studio to favor automated publish. + DisablePublish *bool // Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` + LastCommitID *string } // GetFactoryRepoConfiguration implements the FactoryRepoConfigurationClassification interface for type FactoryRepoConfiguration. @@ -11571,66 +11535,70 @@ func (f *FactoryRepoConfiguration) GetFactoryRepoConfiguration() *FactoryRepoCon // FactoryRepoUpdate - Factory's git repo information. type FactoryRepoUpdate struct { // The factory resource id. - FactoryResourceID *string `json:"factoryResourceId,omitempty"` + FactoryResourceID *string // Git repo information of the factory. - RepoConfiguration FactoryRepoConfigurationClassification `json:"repoConfiguration,omitempty"` + RepoConfiguration FactoryRepoConfigurationClassification } // FactoryUpdateParameters - Parameters for updating a factory resource. type FactoryUpdateParameters struct { // Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` + Identity *FactoryIdentity // Properties of update the factory. - Properties *FactoryUpdateProperties `json:"properties,omitempty"` + Properties *FactoryUpdateProperties // The resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // FactoryUpdateProperties - Factory update resource properties. type FactoryUpdateProperties struct { // Whether or not public network access is allowed for the data factory. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess } // FactoryVSTSConfiguration - Factory's VSTS repo information. type FactoryVSTSConfiguration struct { // REQUIRED; Account name. - AccountName *string `json:"accountName,omitempty"` + AccountName *string // REQUIRED; Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` + CollaborationBranch *string // REQUIRED; VSTS project name. - ProjectName *string `json:"projectName,omitempty"` + ProjectName *string // REQUIRED; Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` + RepositoryName *string // REQUIRED; Root folder. - RootFolder *string `json:"rootFolder,omitempty"` + RootFolder *string // REQUIRED; Type of repo configuration. - Type *string `json:"type,omitempty"` + Type *string + + // Disable manual publish operation in ADF studio to favor automated publish. + DisablePublish *bool // Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` + LastCommitID *string // VSTS tenant id. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // GetFactoryRepoConfiguration implements the FactoryRepoConfigurationClassification interface for type FactoryVSTSConfiguration. func (f *FactoryVSTSConfiguration) GetFactoryRepoConfiguration() *FactoryRepoConfiguration { return &FactoryRepoConfiguration{ - Type: f.Type, AccountName: f.AccountName, - RepositoryName: f.RepositoryName, CollaborationBranch: f.CollaborationBranch, - RootFolder: f.RootFolder, + DisablePublish: f.DisablePublish, LastCommitID: f.LastCommitID, + RepositoryName: f.RepositoryName, + RootFolder: f.RootFolder, + Type: f.Type, } } @@ -11640,48 +11608,59 @@ func (f *FactoryVSTSConfiguration) GetFactoryRepoConfiguration() *FactoryRepoCon // until), if the fail activity is contained in it. type FailActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Fail activity properties. - TypeProperties *FailActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *FailActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type FailActivity. func (f *FailActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: f.AdditionalProperties, + DependsOn: f.DependsOn, + Description: f.Description, Name: f.Name, + OnInactiveMarkAs: f.OnInactiveMarkAs, + State: f.State, Type: f.Type, - Description: f.Description, - DependsOn: f.DependsOn, UserProperties: f.UserProperties, - AdditionalProperties: f.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type FailActivity. func (f *FailActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: f.AdditionalProperties, + DependsOn: f.DependsOn, + Description: f.Description, Name: f.Name, + OnInactiveMarkAs: f.OnInactiveMarkAs, + State: f.State, Type: f.Type, - Description: f.Description, - DependsOn: f.DependsOn, UserProperties: f.UserProperties, - AdditionalProperties: f.AdditionalProperties, } } @@ -11690,540 +11669,548 @@ type FailActivityTypeProperties struct { // REQUIRED; The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated // to a non empty/blank string at runtime. Type: string (or Expression with resultType // string). - ErrorCode interface{} `json:"errorCode,omitempty"` + ErrorCode any // REQUIRED; The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank // string at runtime. Type: string (or Expression with resultType string). - Message interface{} `json:"message,omitempty"` + Message any } // FileServerLinkedService - File system linked service. type FileServerLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; File system linked service properties. - TypeProperties *FileServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *FileServerLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type FileServerLinkedService. func (f *FileServerLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: f.Type, + AdditionalProperties: f.AdditionalProperties, + Annotations: f.Annotations, ConnectVia: f.ConnectVia, Description: f.Description, Parameters: f.Parameters, - Annotations: f.Annotations, - AdditionalProperties: f.AdditionalProperties, + Type: f.Type, } } // FileServerLinkedServiceTypeProperties - File system linked service properties. type FileServerLinkedServiceTypeProperties struct { // REQUIRED; Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password to logon the server. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` + UserID any } // FileServerLocation - The location of file server dataset. type FileServerLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type FileServerLocation. func (f *FileServerLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: f.Type, - FolderPath: f.FolderPath, - FileName: f.FileName, AdditionalProperties: f.AdditionalProperties, + FileName: f.FileName, + FolderPath: f.FolderPath, + Type: f.Type, } } // FileServerReadSettings - File server read settings. type FileServerReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression // with resultType string). - FileFilter interface{} `json:"fileFilter,omitempty"` + FileFilter any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // FileServer wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // FileServer wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type FileServerReadSettings. func (f *FileServerReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: f.Type, - MaxConcurrentConnections: f.MaxConcurrentConnections, - DisableMetricsCollection: f.DisableMetricsCollection, AdditionalProperties: f.AdditionalProperties, + DisableMetricsCollection: f.DisableMetricsCollection, + MaxConcurrentConnections: f.MaxConcurrentConnections, + Type: f.Type, } } // FileServerWriteSettings - File server write settings. type FileServerWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any + + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type FileServerWriteSettings. func (f *FileServerWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return &StoreWriteSettings{ - Type: f.Type, - MaxConcurrentConnections: f.MaxConcurrentConnections, - DisableMetricsCollection: f.DisableMetricsCollection, - CopyBehavior: f.CopyBehavior, AdditionalProperties: f.AdditionalProperties, + CopyBehavior: f.CopyBehavior, + DisableMetricsCollection: f.DisableMetricsCollection, + MaxConcurrentConnections: f.MaxConcurrentConnections, + Metadata: f.Metadata, + Type: f.Type, } } // FileShareDataset - An on-premises file system dataset. type FileShareDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // On-premises file system dataset properties. - TypeProperties *FileShareDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *FileShareDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type FileShareDataset. func (f *FileShareDataset) GetDataset() *Dataset { return &Dataset{ - Type: f.Type, + AdditionalProperties: f.AdditionalProperties, + Annotations: f.Annotations, Description: f.Description, - Structure: f.Structure, - Schema: f.Schema, + Folder: f.Folder, LinkedServiceName: f.LinkedServiceName, Parameters: f.Parameters, - Annotations: f.Annotations, - Folder: f.Folder, - AdditionalProperties: f.AdditionalProperties, + Schema: f.Schema, + Structure: f.Structure, + Type: f.Type, } } // FileShareDatasetTypeProperties - On-premises file system dataset properties. type FileShareDatasetTypeProperties struct { // The data compression method used for the file system. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression // with resultType string). - FileFilter interface{} `json:"fileFilter,omitempty"` + FileFilter any // The name of the on-premises file system. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // The path of the on-premises file system. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // The format of the files. - Format DatasetStorageFormatClassification `json:"format,omitempty"` + Format DatasetStorageFormatClassification // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any } // FileSystemSink - A copy activity file system sink. type FileSystemSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type FileSystemSink. func (f *FileSystemSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: f.AdditionalProperties, + DisableMetricsCollection: f.DisableMetricsCollection, + MaxConcurrentConnections: f.MaxConcurrentConnections, + SinkRetryCount: f.SinkRetryCount, + SinkRetryWait: f.SinkRetryWait, Type: f.Type, WriteBatchSize: f.WriteBatchSize, WriteBatchTimeout: f.WriteBatchTimeout, - SinkRetryCount: f.SinkRetryCount, - SinkRetryWait: f.SinkRetryWait, - MaxConcurrentConnections: f.MaxConcurrentConnections, - DisableMetricsCollection: f.DisableMetricsCollection, - AdditionalProperties: f.AdditionalProperties, } } // FileSystemSource - A copy activity file system source. type FileSystemSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type FileSystemSource. func (f *FileSystemSource) GetCopySource() *CopySource { return &CopySource{ - Type: f.Type, + AdditionalProperties: f.AdditionalProperties, + DisableMetricsCollection: f.DisableMetricsCollection, + MaxConcurrentConnections: f.MaxConcurrentConnections, SourceRetryCount: f.SourceRetryCount, SourceRetryWait: f.SourceRetryWait, - MaxConcurrentConnections: f.MaxConcurrentConnections, - DisableMetricsCollection: f.DisableMetricsCollection, - AdditionalProperties: f.AdditionalProperties, + Type: f.Type, } } // FilterActivity - Filter and return results from input array based on the conditions. type FilterActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Filter activity properties. - TypeProperties *FilterActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *FilterActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type FilterActivity. func (f *FilterActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: f.AdditionalProperties, + DependsOn: f.DependsOn, + Description: f.Description, Name: f.Name, + OnInactiveMarkAs: f.OnInactiveMarkAs, + State: f.State, Type: f.Type, - Description: f.Description, - DependsOn: f.DependsOn, UserProperties: f.UserProperties, - AdditionalProperties: f.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type FilterActivity. func (f *FilterActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: f.AdditionalProperties, + DependsOn: f.DependsOn, + Description: f.Description, Name: f.Name, + OnInactiveMarkAs: f.OnInactiveMarkAs, + State: f.State, Type: f.Type, - Description: f.Description, - DependsOn: f.DependsOn, UserProperties: f.UserProperties, - AdditionalProperties: f.AdditionalProperties, } } // FilterActivityTypeProperties - Filter activity properties. type FilterActivityTypeProperties struct { // REQUIRED; Condition to be used for filtering the input. - Condition *Expression `json:"condition,omitempty"` + Condition *Expression // REQUIRED; Input array on which filter should be applied. - Items *Expression `json:"items,omitempty"` + Items *Expression } // Flowlet - Data flow flowlet type Flowlet struct { // REQUIRED; Type of data flow. - Type *string `json:"type,omitempty"` + Type *string // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The description of the data flow. - Description *string `json:"description,omitempty"` + Description *string // The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` + Folder *DataFlowFolder // Flowlet type properties. - TypeProperties *FlowletTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *FlowletTypeProperties } // GetDataFlow implements the DataFlowClassification interface for type Flowlet. func (f *Flowlet) GetDataFlow() *DataFlow { return &DataFlow{ - Type: f.Type, - Description: f.Description, Annotations: f.Annotations, + Description: f.Description, Folder: f.Folder, + Type: f.Type, } } // FlowletTypeProperties - Flowlet type properties. type FlowletTypeProperties struct { // Flowlet script. - Script *string `json:"script,omitempty"` + Script *string // Flowlet script lines. - ScriptLines []*string `json:"scriptLines,omitempty"` + ScriptLines []*string // List of sinks in Flowlet. - Sinks []*DataFlowSink `json:"sinks,omitempty"` + Sinks []*DataFlowSink // List of sources in Flowlet. - Sources []*DataFlowSource `json:"sources,omitempty"` + Sources []*DataFlowSource // List of transformations in Flowlet. - Transformations []*Transformation `json:"transformations,omitempty"` + Transformations []*Transformation } // ForEachActivity - This activity is used for iterating over a collection and execute given activities. type ForEachActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; ForEach activity properties. - TypeProperties *ForEachActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ForEachActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ForEachActivity. func (f *ForEachActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: f.AdditionalProperties, + DependsOn: f.DependsOn, + Description: f.Description, Name: f.Name, + OnInactiveMarkAs: f.OnInactiveMarkAs, + State: f.State, Type: f.Type, - Description: f.Description, - DependsOn: f.DependsOn, UserProperties: f.UserProperties, - AdditionalProperties: f.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type ForEachActivity. func (f *ForEachActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: f.AdditionalProperties, + DependsOn: f.DependsOn, + Description: f.Description, Name: f.Name, + OnInactiveMarkAs: f.OnInactiveMarkAs, + State: f.State, Type: f.Type, - Description: f.Description, - DependsOn: f.DependsOn, UserProperties: f.UserProperties, - AdditionalProperties: f.AdditionalProperties, } } // ForEachActivityTypeProperties - ForEach activity properties. type ForEachActivityTypeProperties struct { // REQUIRED; List of activities to execute . - Activities []ActivityClassification `json:"activities,omitempty"` + Activities []ActivityClassification // REQUIRED; Collection to iterate. - Items *Expression `json:"items,omitempty"` + Items *Expression // Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). - BatchCount *int32 `json:"batchCount,omitempty"` + BatchCount *int32 // Should the loop be executed in sequence or in parallel (max 50) - IsSequential *bool `json:"isSequential,omitempty"` -} - -// FormatReadSettingsClassification provides polymorphic access to related types. -// Call the interface's GetFormatReadSettings() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *BinaryReadSettings, *DelimitedTextReadSettings, *FormatReadSettings, *JSONReadSettings, *XMLReadSettings -type FormatReadSettingsClassification interface { - // GetFormatReadSettings returns the FormatReadSettings content of the underlying type. - GetFormatReadSettings() *FormatReadSettings + IsSequential *bool } // FormatReadSettings - Format read settings. type FormatReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type FormatReadSettings. func (f *FormatReadSettings) GetFormatReadSettings() *FormatReadSettings { return f } -// FormatWriteSettingsClassification provides polymorphic access to related types. -// Call the interface's GetFormatWriteSettings() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AvroWriteSettings, *DelimitedTextWriteSettings, *FormatWriteSettings, *JSONWriteSettings, *OrcWriteSettings, *ParquetWriteSettings -type FormatWriteSettingsClassification interface { - // GetFormatWriteSettings returns the FormatWriteSettings content of the underlying type. - GetFormatWriteSettings() *FormatWriteSettings -} - // FormatWriteSettings - Format write settings. type FormatWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type FormatWriteSettings. @@ -12232,563 +12219,563 @@ func (f *FormatWriteSettings) GetFormatWriteSettings() *FormatWriteSettings { re // FtpReadSettings - Ftp read settings. type FtpReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - DisableChunking interface{} `json:"disableChunking,omitempty"` + DisableChunking any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any - // Specify whether to use binary transfer mode for FTP stores. - UseBinaryTransfer *bool `json:"useBinaryTransfer,omitempty"` + // Specify whether to use binary transfer mode for FTP stores. Type: boolean (or Expression with resultType boolean). + UseBinaryTransfer any // Ftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Ftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type FtpReadSettings. func (f *FtpReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: f.Type, - MaxConcurrentConnections: f.MaxConcurrentConnections, - DisableMetricsCollection: f.DisableMetricsCollection, AdditionalProperties: f.AdditionalProperties, + DisableMetricsCollection: f.DisableMetricsCollection, + MaxConcurrentConnections: f.MaxConcurrentConnections, + Type: f.Type, } } // FtpServerLinkedService - A FTP server Linked Service. type FtpServerLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to this linked service type. - TypeProperties *FtpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *FtpServerLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type FtpServerLinkedService. func (f *FtpServerLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: f.Type, + AdditionalProperties: f.AdditionalProperties, + Annotations: f.Annotations, ConnectVia: f.ConnectVia, Description: f.Description, Parameters: f.Parameters, - Annotations: f.Annotations, - AdditionalProperties: f.AdditionalProperties, + Type: f.Type, } } // FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. type FtpServerLinkedServiceTypeProperties struct { // REQUIRED; Host name of the FTP server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any // The authentication type to be used to connect to the FTP server. - AuthenticationType *FtpAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *FtpAuthenticationType // If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType // boolean). - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // If true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean // (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` + EnableServerCertificateValidation any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password to logon the FTP server. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port number that the FTP server uses to listen for client connections. Default value is 21. Type: integer (or Expression // with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any // Username to logon the FTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // FtpServerLocation - The location of ftp server dataset. type FtpServerLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type FtpServerLocation. func (f *FtpServerLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: f.Type, - FolderPath: f.FolderPath, - FileName: f.FileName, AdditionalProperties: f.AdditionalProperties, + FileName: f.FileName, + FolderPath: f.FolderPath, + Type: f.Type, } } // GenericDatasetTypeProperties - Properties specific to this dataset type. type GenericDatasetTypeProperties struct { // The table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// GetDataFactoryOperationStatusResponse - Response body structure for get data factory operation status. -type GetDataFactoryOperationStatusResponse struct { - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // Status of the operation. - Status *string `json:"status,omitempty"` + TableName any } // GetMetadataActivity - Activity to get metadata of dataset type GetMetadataActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; GetMetadata activity properties. - TypeProperties *GetMetadataActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GetMetadataActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type GetMetadataActivity. func (g *GetMetadataActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: g.AdditionalProperties, + DependsOn: g.DependsOn, + Description: g.Description, Name: g.Name, + OnInactiveMarkAs: g.OnInactiveMarkAs, + State: g.State, Type: g.Type, - Description: g.Description, - DependsOn: g.DependsOn, UserProperties: g.UserProperties, - AdditionalProperties: g.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type GetMetadataActivity. func (g *GetMetadataActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: g.AdditionalProperties, + DependsOn: g.DependsOn, + Description: g.Description, LinkedServiceName: g.LinkedServiceName, - Policy: g.Policy, Name: g.Name, + OnInactiveMarkAs: g.OnInactiveMarkAs, + Policy: g.Policy, + State: g.State, Type: g.Type, - Description: g.Description, - DependsOn: g.DependsOn, UserProperties: g.UserProperties, - AdditionalProperties: g.AdditionalProperties, } } // GetMetadataActivityTypeProperties - GetMetadata activity properties. type GetMetadataActivityTypeProperties struct { // REQUIRED; GetMetadata activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Fields of metadata to get from dataset. - FieldList []interface{} `json:"fieldList,omitempty"` + FieldList []any // GetMetadata activity format settings. - FormatSettings FormatReadSettingsClassification `json:"formatSettings,omitempty"` + FormatSettings FormatReadSettingsClassification // GetMetadata activity store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetSsisObjectMetadataRequest - The request payload of get SSIS object metadata. type GetSsisObjectMetadataRequest struct { // Metadata path. - MetadataPath *string `json:"metadataPath,omitempty"` + MetadataPath *string } // GitHubAccessTokenRequest - Get GitHub access token request definition. type GitHubAccessTokenRequest struct { // REQUIRED; GitHub access code. - GitHubAccessCode *string `json:"gitHubAccessCode,omitempty"` + GitHubAccessCode *string // REQUIRED; GitHub access token base URL. - GitHubAccessTokenBaseURL *string `json:"gitHubAccessTokenBaseUrl,omitempty"` + GitHubAccessTokenBaseURL *string // GitHub application client ID. - GitHubClientID *string `json:"gitHubClientId,omitempty"` + GitHubClientID *string // GitHub bring your own app client secret information. - GitHubClientSecret *GitHubClientSecret `json:"gitHubClientSecret,omitempty"` + GitHubClientSecret *GitHubClientSecret } // GitHubAccessTokenResponse - Get GitHub access token response definition. type GitHubAccessTokenResponse struct { // GitHub access token. - GitHubAccessToken *string `json:"gitHubAccessToken,omitempty"` + GitHubAccessToken *string } // GitHubClientSecret - Client secret information for factory's bring your own app repository configuration. type GitHubClientSecret struct { // Bring your own app client secret AKV URL. - ByoaSecretAkvURL *string `json:"byoaSecretAkvUrl,omitempty"` + ByoaSecretAkvURL *string // Bring your own app client secret name in AKV. - ByoaSecretName *string `json:"byoaSecretName,omitempty"` + ByoaSecretName *string } // GlobalParameterListResponse - A list of Global parameters. type GlobalParameterListResponse struct { // REQUIRED; List of global parameters. - Value []*GlobalParameterResource `json:"value,omitempty"` + Value []*GlobalParameterResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // GlobalParameterResource - Global parameters resource type. type GlobalParameterResource struct { // REQUIRED; Properties of the global parameter. - Properties map[string]*GlobalParameterSpecification `json:"properties,omitempty"` + Properties map[string]*GlobalParameterSpecification // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GlobalParameterSpecification - Definition of a single parameter for an entity. type GlobalParameterSpecification struct { // REQUIRED; Global Parameter type. - Type *GlobalParameterType `json:"type,omitempty"` + Type *GlobalParameterType // REQUIRED; Value of parameter. - Value interface{} `json:"value,omitempty"` -} - -// GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate -// method. -type GlobalParametersClientCreateOrUpdateOptions struct { - // placeholder for future optional parameters -} - -// GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. -type GlobalParametersClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. -type GlobalParametersClientGetOptions struct { - // placeholder for future optional parameters -} - -// GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.ListByFactory -// method. -type GlobalParametersClientListByFactoryOptions struct { - // placeholder for future optional parameters + Value any } // GoogleAdWordsLinkedService - Google AdWords service linked service. type GoogleAdWordsLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Google AdWords service linked service properties. - TypeProperties *GoogleAdWordsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GoogleAdWordsLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleAdWordsLinkedService. func (g *GoogleAdWordsLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, ConnectVia: g.ConnectVia, Description: g.Description, Parameters: g.Parameters, - Annotations: g.Annotations, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GoogleAdWordsLinkedServiceTypeProperties - Google AdWords service linked service properties. type GoogleAdWordsLinkedServiceTypeProperties struct { // The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. - AuthenticationType *GoogleAdWordsAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *GoogleAdWordsAuthenticationType - // The Client customer ID of the AdWords account that you want to fetch report data for. - ClientCustomerID interface{} `json:"clientCustomerID,omitempty"` + // The Client customer ID of the AdWords account that you want to fetch report data for. Type: string (or Expression with + // resultType string). + ClientCustomerID any // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType // string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The client secret of the google application used to acquire the refresh token. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification - // Properties used to connect to GoogleAds. It is mutually exclusive with any other properties in the linked service. Type: - // object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + // (Deprecated) Properties used to connect to GoogleAds. It is mutually exclusive with any other properties in the linked + // service. Type: object. + ConnectionProperties any // The developer token associated with the manager account that you use to grant access to the AdWords API. - DeveloperToken SecretBaseClassification `json:"developerToken,omitempty"` + DeveloperToken SecretBaseClassification - // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. - Email interface{} `json:"email,omitempty"` + // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. Type: string + // (or Expression with resultType string). + Email any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string - // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used - // on self-hosted IR. - KeyFilePath interface{} `json:"keyFilePath,omitempty"` + // The Google Ads API major version such as v14. The supported major versions could be found on https://developers.google.com/google-ads/api/docs/release-notes. + // Type: string (or Expression with + // resultType string). + GoogleAdsAPIVersion any + + // (Deprecated) The full path to the .p12 key file that is used to authenticate the service account email address and can + // only be used on self-hosted IR. Type: string (or Expression with resultType + // string). + KeyFilePath any + + // The customer ID of the Google Ads Manager account through which you want to fetch report data of specific Customer. Type: + // string (or Expression with resultType string). + LoginCustomerID any + + // The private key that is used to authenticate the service account email address and can only be used on self-hosted IR. + PrivateKey SecretBaseClassification // The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. - RefreshToken SecretBaseClassification `json:"refreshToken,omitempty"` + RefreshToken SecretBaseClassification - // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This - // property can only be set when using SSL on self-hosted IR. The default value - // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + // Specifies whether to use the legacy data type mappings, which maps float, int32 and int64 from Google to string. Do not + // set this to true unless you want to keep backward compatibility with legacy + // driver's data type mappings. Type: boolean (or Expression with resultType boolean). + SupportLegacyDataTypes any - // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is - // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + // (Deprecated) The full path of the .pem file containing trusted CA certificates for verifying the server when connecting + // over SSL. This property can only be set when using SSL on self-hosted IR. The + // default value is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string). + TrustedCertPath any + + // (Deprecated) Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default + // value is false. Type: boolean (or Expression with resultType boolean). + UseSystemTrustStore any } // GoogleAdWordsObjectDataset - Google AdWords service dataset. type GoogleAdWordsObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type GoogleAdWordsObjectDataset. func (g *GoogleAdWordsObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, Description: g.Description, - Structure: g.Structure, - Schema: g.Schema, + Folder: g.Folder, LinkedServiceName: g.LinkedServiceName, Parameters: g.Parameters, - Annotations: g.Annotations, - Folder: g.Folder, - AdditionalProperties: g.AdditionalProperties, + Schema: g.Schema, + Structure: g.Structure, + Type: g.Type, } } // GoogleAdWordsSource - A copy activity Google AdWords service source. type GoogleAdWordsSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type GoogleAdWordsSource. func (g *GoogleAdWordsSource) GetCopySource() *CopySource { return &CopySource{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, SourceRetryCount: g.SourceRetryCount, SourceRetryWait: g.SourceRetryWait, - MaxConcurrentConnections: g.MaxConcurrentConnections, - DisableMetricsCollection: g.DisableMetricsCollection, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type GoogleAdWordsSource. func (g *GoogleAdWordsSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: g.QueryTimeout, AdditionalColumns: g.AdditionalColumns, - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, + QueryTimeout: g.QueryTimeout, SourceRetryCount: g.SourceRetryCount, SourceRetryWait: g.SourceRetryWait, - MaxConcurrentConnections: g.MaxConcurrentConnections, - DisableMetricsCollection: g.DisableMetricsCollection, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GoogleBigQueryDatasetTypeProperties - Google BigQuery Dataset Properties type GoogleBigQueryDatasetTypeProperties struct { // The database name of the Google BigQuery. Type: string (or Expression with resultType string). - Dataset interface{} `json:"dataset,omitempty"` + Dataset any // The table name of the Google BigQuery. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using database + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // GoogleBigQueryLinkedService - Google BigQuery service linked service. type GoogleBigQueryLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Google BigQuery service linked service properties. - TypeProperties *GoogleBigQueryLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GoogleBigQueryLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleBigQueryLinkedService. func (g *GoogleBigQueryLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, ConnectVia: g.ConnectVia, Description: g.Description, Parameters: g.Parameters, - Annotations: g.Annotations, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } @@ -12796,1205 +12783,1428 @@ func (g *GoogleBigQueryLinkedService) GetLinkedService() *LinkedService { type GoogleBigQueryLinkedServiceTypeProperties struct { // REQUIRED; The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted // IR. - AuthenticationType *GoogleBigQueryAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *GoogleBigQueryAuthenticationType - // REQUIRED; The default BigQuery project to query against. - Project interface{} `json:"project,omitempty"` + // REQUIRED; The default BigQuery project to query against. Type: string (or Expression with resultType string). + Project any - // A comma-separated list of public BigQuery projects to access. - AdditionalProjects interface{} `json:"additionalProjects,omitempty"` + // A comma-separated list of public BigQuery projects to access. Type: string (or Expression with resultType string). + AdditionalProjects any // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType // string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The client secret of the google application used to acquire the refresh token. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification - // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. - Email interface{} `json:"email,omitempty"` + // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. Type: string + // (or Expression with resultType string). + Email any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used - // on self-hosted IR. - KeyFilePath interface{} `json:"keyFilePath,omitempty"` + // on self-hosted IR. Type: string (or Expression with resultType string). + KeyFilePath any // The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. - RefreshToken SecretBaseClassification `json:"refreshToken,omitempty"` + RefreshToken SecretBaseClassification // Whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine - // BigQuery data with data from Google Drive. The default value is false. - RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` + // BigQuery data with data from Google Drive. The default value is false. Type: + // string (or Expression with resultType string). + RequestGoogleDriveScope any // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value - // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + // is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string). + TrustedCertPath any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is - // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + // false.Type: boolean (or Expression with resultType boolean). + UseSystemTrustStore any } // GoogleBigQueryObjectDataset - Google BigQuery service dataset. type GoogleBigQueryObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GoogleBigQueryDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GoogleBigQueryDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type GoogleBigQueryObjectDataset. func (g *GoogleBigQueryObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, Description: g.Description, - Structure: g.Structure, - Schema: g.Schema, + Folder: g.Folder, LinkedServiceName: g.LinkedServiceName, Parameters: g.Parameters, - Annotations: g.Annotations, - Folder: g.Folder, - AdditionalProperties: g.AdditionalProperties, + Schema: g.Schema, + Structure: g.Structure, + Type: g.Type, } } // GoogleBigQuerySource - A copy activity Google BigQuery service source. type GoogleBigQuerySource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type GoogleBigQuerySource. func (g *GoogleBigQuerySource) GetCopySource() *CopySource { return &CopySource{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, SourceRetryCount: g.SourceRetryCount, SourceRetryWait: g.SourceRetryWait, - MaxConcurrentConnections: g.MaxConcurrentConnections, - DisableMetricsCollection: g.DisableMetricsCollection, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type GoogleBigQuerySource. func (g *GoogleBigQuerySource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: g.QueryTimeout, AdditionalColumns: g.AdditionalColumns, - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, + QueryTimeout: g.QueryTimeout, SourceRetryCount: g.SourceRetryCount, SourceRetryWait: g.SourceRetryWait, - MaxConcurrentConnections: g.MaxConcurrentConnections, - DisableMetricsCollection: g.DisableMetricsCollection, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } -// GoogleCloudStorageLinkedService - Linked service for Google Cloud Storage. -type GoogleCloudStorageLinkedService struct { +// GoogleBigQueryV2DatasetTypeProperties - Google BigQuery Dataset Properties +type GoogleBigQueryV2DatasetTypeProperties struct { + // The database name of the Google BigQuery. Type: string (or Expression with resultType string). + Dataset any + + // The table name of the Google BigQuery. Type: string (or Expression with resultType string). + Table any +} + +// GoogleBigQueryV2LinkedService - Google BigQuery service linked service. +type GoogleBigQueryV2LinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string - // REQUIRED; Google Cloud Storage linked service properties. - TypeProperties *GoogleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // REQUIRED; Google BigQuery service linked service properties. + TypeProperties *GoogleBigQueryV2LinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } -// GetLinkedService implements the LinkedServiceClassification interface for type GoogleCloudStorageLinkedService. -func (g *GoogleCloudStorageLinkedService) GetLinkedService() *LinkedService { +// GetLinkedService implements the LinkedServiceClassification interface for type GoogleBigQueryV2LinkedService. +func (g *GoogleBigQueryV2LinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, ConnectVia: g.ConnectVia, Description: g.Description, Parameters: g.Parameters, - Annotations: g.Annotations, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } -// GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties. -type GoogleCloudStorageLinkedServiceTypeProperties struct { - // The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression - // with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` +// GoogleBigQueryV2LinkedServiceTypeProperties - Google BigQuery service linked service properties. +type GoogleBigQueryV2LinkedServiceTypeProperties struct { + // REQUIRED; The OAuth 2.0 authentication mechanism used for authentication. + AuthenticationType *GoogleBigQueryV2AuthenticationType + + // REQUIRED; The default BigQuery project id to query against. Type: string (or Expression with resultType string). + ProjectID any + + // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType + // string). + ClientID any + + // The client secret of the google application used to acquire the refresh token. + ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string - // The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. - SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` + // The content of the .json key file that is used to authenticate the service account. Type: string (or Expression with resultType + // string). + KeyFileContent SecretBaseClassification - // This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an optional property; change - // it only if you want to try a different service endpoint or want to switch - // between https and http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + // The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. + RefreshToken SecretBaseClassification } -// GoogleCloudStorageLocation - The location of Google Cloud Storage dataset. -type GoogleCloudStorageLocation struct { - // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` +// GoogleBigQueryV2ObjectDataset - Google BigQuery service dataset. +type GoogleBigQueryV2ObjectDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any - // Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + // List of tags that can be used for describing the Dataset. + Annotations []any - // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + // Dataset description. + Description *string - // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder - // Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any + + // Properties specific to this dataset type. + TypeProperties *GoogleBigQueryV2DatasetTypeProperties } -// GetDatasetLocation implements the DatasetLocationClassification interface for type GoogleCloudStorageLocation. -func (g *GoogleCloudStorageLocation) GetDatasetLocation() *DatasetLocation { - return &DatasetLocation{ - Type: g.Type, - FolderPath: g.FolderPath, - FileName: g.FileName, +// GetDataset implements the DatasetClassification interface for type GoogleBigQueryV2ObjectDataset. +func (g *GoogleBigQueryV2ObjectDataset) GetDataset() *Dataset { + return &Dataset{ AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, + Description: g.Description, + Folder: g.Folder, + LinkedServiceName: g.LinkedServiceName, + Parameters: g.Parameters, + Schema: g.Schema, + Structure: g.Structure, + Type: g.Type, } } -// GoogleCloudStorageReadSettings - Google Cloud Storage read settings. -type GoogleCloudStorageReadSettings struct { - // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` +// GoogleBigQueryV2Source - A copy activity Google BigQuery service source. +type GoogleBigQueryV2Source struct { + // REQUIRED; Copy source type. + Type *string - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any - // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression - // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - - // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. - // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any + + // A query to retrieve data from source. Type: string (or Expression with resultType string). + Query any + + // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any +} + +// GetCopySource implements the CopySourceClassification interface for type GoogleBigQueryV2Source. +func (g *GoogleBigQueryV2Source) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, + SourceRetryCount: g.SourceRetryCount, + SourceRetryWait: g.SourceRetryWait, + Type: g.Type, + } +} + +// GetTabularSource implements the TabularSourceClassification interface for type GoogleBigQueryV2Source. +func (g *GoogleBigQueryV2Source) GetTabularSource() *TabularSource { + return &TabularSource{ + AdditionalColumns: g.AdditionalColumns, + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, + QueryTimeout: g.QueryTimeout, + SourceRetryCount: g.SourceRetryCount, + SourceRetryWait: g.SourceRetryWait, + Type: g.Type, + } +} + +// GoogleCloudStorageLinkedService - Linked service for Google Cloud Storage. +type GoogleCloudStorageLinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; Google Cloud Storage linked service properties. + TypeProperties *GoogleCloudStorageLinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type GoogleCloudStorageLinkedService. +func (g *GoogleCloudStorageLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, + ConnectVia: g.ConnectVia, + Description: g.Description, + Parameters: g.Parameters, + Type: g.Type, + } +} + +// GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties. +type GoogleCloudStorageLinkedServiceTypeProperties struct { + // The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression + // with resultType string). + AccessKeyID any + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. + SecretAccessKey SecretBaseClassification + + // This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an optional property; change + // it only if you want to try a different service endpoint or want to switch + // between https and http. Type: string (or Expression with resultType string). + ServiceURL any +} + +// GoogleCloudStorageLocation - The location of Google Cloud Storage dataset. +type GoogleCloudStorageLocation struct { + // REQUIRED; Type of dataset storage location. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) + BucketName any + + // Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName any + + // Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath any + + // Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). + Version any +} + +// GetDatasetLocation implements the DatasetLocationClassification interface for type GoogleCloudStorageLocation. +func (g *GoogleCloudStorageLocation) GetDatasetLocation() *DatasetLocation { + return &DatasetLocation{ + AdditionalProperties: g.AdditionalProperties, + FileName: g.FileName, + FolderPath: g.FolderPath, + Type: g.Type, + } +} + +// GoogleCloudStorageReadSettings - Google Cloud Storage read settings. +type GoogleCloudStorageReadSettings struct { + // REQUIRED; The read setting type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression + // with resultType boolean). + DeleteFilesAfterCompletion any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any + + // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. + // Type: string (or Expression with resultType string). + FileListPath any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type GoogleCloudStorageReadSettings. func (g *GoogleCloudStorageReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: g.Type, - MaxConcurrentConnections: g.MaxConcurrentConnections, - DisableMetricsCollection: g.DisableMetricsCollection, AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, + Type: g.Type, } } // GoogleSheetsLinkedService - Linked service for GoogleSheets. type GoogleSheetsLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; GoogleSheets linked service properties. - TypeProperties *GoogleSheetsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GoogleSheetsLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleSheetsLinkedService. func (g *GoogleSheetsLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, ConnectVia: g.ConnectVia, Description: g.Description, Parameters: g.Parameters, - Annotations: g.Annotations, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GoogleSheetsLinkedServiceTypeProperties - GoogleSheets linked service type properties. type GoogleSheetsLinkedServiceTypeProperties struct { // REQUIRED; The api token for the GoogleSheets source. - APIToken SecretBaseClassification `json:"apiToken,omitempty"` + APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // GreenplumDatasetTypeProperties - Greenplum Dataset Properties type GreenplumDatasetTypeProperties struct { // The schema name of Greenplum. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of Greenplum. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // GreenplumLinkedService - Greenplum Database linked service. type GreenplumLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Greenplum Database linked service properties. - TypeProperties *GreenplumLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GreenplumLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type GreenplumLinkedService. func (g *GreenplumLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, ConnectVia: g.ConnectVia, Description: g.Description, Parameters: g.Parameters, - Annotations: g.Annotations, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. type GreenplumLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + Pwd *AzureKeyVaultSecretReference } // GreenplumSource - A copy activity Greenplum Database source. type GreenplumSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type GreenplumSource. func (g *GreenplumSource) GetCopySource() *CopySource { return &CopySource{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, SourceRetryCount: g.SourceRetryCount, SourceRetryWait: g.SourceRetryWait, - MaxConcurrentConnections: g.MaxConcurrentConnections, - DisableMetricsCollection: g.DisableMetricsCollection, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type GreenplumSource. func (g *GreenplumSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: g.QueryTimeout, AdditionalColumns: g.AdditionalColumns, - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + DisableMetricsCollection: g.DisableMetricsCollection, + MaxConcurrentConnections: g.MaxConcurrentConnections, + QueryTimeout: g.QueryTimeout, SourceRetryCount: g.SourceRetryCount, SourceRetryWait: g.SourceRetryWait, - MaxConcurrentConnections: g.MaxConcurrentConnections, - DisableMetricsCollection: g.DisableMetricsCollection, - AdditionalProperties: g.AdditionalProperties, + Type: g.Type, } } // GreenplumTableDataset - Greenplum Database dataset. type GreenplumTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GreenplumDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GreenplumDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type GreenplumTableDataset. func (g *GreenplumTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: g.Type, + AdditionalProperties: g.AdditionalProperties, + Annotations: g.Annotations, Description: g.Description, - Structure: g.Structure, - Schema: g.Schema, + Folder: g.Folder, LinkedServiceName: g.LinkedServiceName, Parameters: g.Parameters, - Annotations: g.Annotations, - Folder: g.Folder, - AdditionalProperties: g.AdditionalProperties, + Schema: g.Schema, + Structure: g.Structure, + Type: g.Type, } } // HBaseLinkedService - HBase server linked service. type HBaseLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HBase server linked service properties. - TypeProperties *HBaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HBaseLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type HBaseLinkedService. func (h *HBaseLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, ConnectVia: h.ConnectVia, Description: h.Description, Parameters: h.Parameters, - Annotations: h.Annotations, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HBaseLinkedServiceTypeProperties - HBase server linked service properties. type HBaseLinkedServiceTypeProperties struct { // REQUIRED; The authentication mechanism to use to connect to the HBase server. - AuthenticationType *HBaseAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *HBaseAuthenticationType // REQUIRED; The IP address or host name of the HBase server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any // The password corresponding to the user name. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. - Port interface{} `json:"port,omitempty"` + Port any // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any // The user name used to connect to the HBase instance. - Username interface{} `json:"username,omitempty"` + Username any } // HBaseObjectDataset - HBase server dataset. type HBaseObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type HBaseObjectDataset. func (h *HBaseObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, Description: h.Description, - Structure: h.Structure, - Schema: h.Schema, + Folder: h.Folder, LinkedServiceName: h.LinkedServiceName, Parameters: h.Parameters, - Annotations: h.Annotations, - Folder: h.Folder, - AdditionalProperties: h.AdditionalProperties, + Schema: h.Schema, + Structure: h.Structure, + Type: h.Type, } } // HBaseSource - A copy activity HBase server source. type HBaseSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type HBaseSource. func (h *HBaseSource) GetCopySource() *CopySource { return &CopySource{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type HBaseSource. func (h *HBaseSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: h.QueryTimeout, AdditionalColumns: h.AdditionalColumns, - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, + QueryTimeout: h.QueryTimeout, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HDInsightHiveActivity - HDInsight Hive activity type. type HDInsightHiveActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDInsight Hive activity properties. - TypeProperties *HDInsightHiveActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HDInsightHiveActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type HDInsightHiveActivity. func (h *HDInsightHiveActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightHiveActivity. func (h *HDInsightHiveActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, LinkedServiceName: h.LinkedServiceName, - Policy: h.Policy, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + Policy: h.Policy, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // HDInsightHiveActivityTypeProperties - HDInsight Hive activity properties. type HDInsightHiveActivityTypeProperties struct { // User specified arguments to HDInsightActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any // Allows user to specify defines for Hive job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any // Debug info option. - GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + GetDebugInfo *HDInsightActivityDebugInfoOption // Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package) - QueryTimeout *int32 `json:"queryTimeout,omitempty"` + QueryTimeout *int32 // Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` + ScriptLinkedService *LinkedServiceReference // Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` + ScriptPath any // Storage linked service references. - StorageLinkedServices []*LinkedServiceReference `json:"storageLinkedServices,omitempty"` + StorageLinkedServices []*LinkedServiceReference // User specified arguments under hivevar namespace. - Variables []interface{} `json:"variables,omitempty"` + Variables map[string]any } // HDInsightLinkedService - HDInsight linked service. type HDInsightLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDInsight linked service properties. - TypeProperties *HDInsightLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HDInsightLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type HDInsightLinkedService. func (h *HDInsightLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, ConnectVia: h.ConnectVia, Description: h.Description, Parameters: h.Parameters, - Annotations: h.Annotations, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HDInsightLinkedServiceTypeProperties - HDInsight linked service properties. type HDInsightLinkedServiceTypeProperties struct { // REQUIRED; HDInsight cluster URI. Type: string (or Expression with resultType string). - ClusterURI interface{} `json:"clusterUri,omitempty"` + ClusterURI any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType // string). - FileSystem interface{} `json:"fileSystem,omitempty"` + FileSystem any // A reference to the Azure SQL linked service that points to the HCatalog database. - HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` + HcatalogLinkedServiceName *LinkedServiceReference // Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. - IsEspEnabled interface{} `json:"isEspEnabled,omitempty"` + IsEspEnabled any // The Azure Storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // HDInsight cluster password. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // HDInsight cluster user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // HDInsightMapReduceActivity - HDInsight MapReduce activity type. type HDInsightMapReduceActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDInsight MapReduce activity properties. - TypeProperties *HDInsightMapReduceActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HDInsightMapReduceActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type HDInsightMapReduceActivity. func (h *HDInsightMapReduceActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightMapReduceActivity. func (h *HDInsightMapReduceActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, LinkedServiceName: h.LinkedServiceName, - Policy: h.Policy, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + Policy: h.Policy, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // HDInsightMapReduceActivityTypeProperties - HDInsight MapReduce activity properties. type HDInsightMapReduceActivityTypeProperties struct { // REQUIRED; Class name. Type: string (or Expression with resultType string). - ClassName interface{} `json:"className,omitempty"` + ClassName any // REQUIRED; Jar path. Type: string (or Expression with resultType string). - JarFilePath interface{} `json:"jarFilePath,omitempty"` + JarFilePath any // User specified arguments to HDInsightActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any // Allows user to specify defines for the MapReduce job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any // Debug info option. - GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + GetDebugInfo *HDInsightActivityDebugInfoOption // Jar libs. - JarLibs []interface{} `json:"jarLibs,omitempty"` + JarLibs []any // Jar linked service reference. - JarLinkedService *LinkedServiceReference `json:"jarLinkedService,omitempty"` + JarLinkedService *LinkedServiceReference // Storage linked service references. - StorageLinkedServices []*LinkedServiceReference `json:"storageLinkedServices,omitempty"` + StorageLinkedServices []*LinkedServiceReference } // HDInsightOnDemandLinkedService - HDInsight ondemand linked service. type HDInsightOnDemandLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDInsight ondemand linked service properties. - TypeProperties *HDInsightOnDemandLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HDInsightOnDemandLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type HDInsightOnDemandLinkedService. func (h *HDInsightOnDemandLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, ConnectVia: h.ConnectVia, Description: h.Description, Parameters: h.Parameters, - Annotations: h.Annotations, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HDInsightOnDemandLinkedServiceTypeProperties - HDInsight ondemand linked service properties. type HDInsightOnDemandLinkedServiceTypeProperties struct { // REQUIRED; The resource group where the cluster belongs. Type: string (or Expression with resultType string). - ClusterResourceGroup interface{} `json:"clusterResourceGroup,omitempty"` + ClusterResourceGroup any - // REQUIRED; Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType - // string). - ClusterSize interface{} `json:"clusterSize,omitempty"` + // REQUIRED; Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int (or Expression with resultType int). + ClusterSize any // REQUIRED; The customer’s subscription to host the cluster. Type: string (or Expression with resultType string). - HostSubscriptionID interface{} `json:"hostSubscriptionId,omitempty"` + HostSubscriptionID any // REQUIRED; Azure Storage linked service to be used by the on-demand cluster for storing and processing data. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; The Tenant id/name to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any // REQUIRED; The allowed idle time for the on-demand HDInsight cluster. Specifies how long the on-demand HDInsight cluster // stays alive after completion of an activity run if there are no other active jobs in the // cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - TimeToLive interface{} `json:"timeToLive,omitempty"` + TimeToLive any // REQUIRED; Version of the HDInsight cluster. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any // Specifies additional storage accounts for the HDInsight linked service so that the Data Factory service can register them // on your behalf. - AdditionalLinkedServiceNames []*LinkedServiceReference `json:"additionalLinkedServiceNames,omitempty"` + AdditionalLinkedServiceNames []*LinkedServiceReference // The prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). - ClusterNamePrefix interface{} `json:"clusterNamePrefix,omitempty"` + ClusterNamePrefix any // The password to access the cluster. - ClusterPassword SecretBaseClassification `json:"clusterPassword,omitempty"` + ClusterPassword SecretBaseClassification // The password to SSH remotely connect cluster’s node (for Linux). - ClusterSSHPassword SecretBaseClassification `json:"clusterSshPassword,omitempty"` + ClusterSSHPassword SecretBaseClassification // The username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). - ClusterSSHUserName interface{} `json:"clusterSshUserName,omitempty"` + ClusterSSHUserName any // The cluster type. Type: string (or Expression with resultType string). - ClusterType interface{} `json:"clusterType,omitempty"` + ClusterType any // The username to access the cluster. Type: string (or Expression with resultType string). - ClusterUserName interface{} `json:"clusterUserName,omitempty"` + ClusterUserName any // Specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. - CoreConfiguration interface{} `json:"coreConfiguration,omitempty"` + CoreConfiguration any // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // Specifies the size of the data node for the HDInsight cluster. - DataNodeSize interface{} `json:"dataNodeSize,omitempty"` + DataNodeSize any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. - HBaseConfiguration interface{} `json:"hBaseConfiguration,omitempty"` + HBaseConfiguration any // The name of Azure SQL linked service that point to the HCatalog database. The on-demand HDInsight cluster is created by // using the Azure SQL database as the metastore. - HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` + HcatalogLinkedServiceName *LinkedServiceReference // Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. - HdfsConfiguration interface{} `json:"hdfsConfiguration,omitempty"` + HdfsConfiguration any // Specifies the size of the head node for the HDInsight cluster. - HeadNodeSize interface{} `json:"headNodeSize,omitempty"` + HeadNodeSize any // Specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. - HiveConfiguration interface{} `json:"hiveConfiguration,omitempty"` + HiveConfiguration any // Specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. - MapReduceConfiguration interface{} `json:"mapReduceConfiguration,omitempty"` + MapReduceConfiguration any // Specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. - OozieConfiguration interface{} `json:"oozieConfiguration,omitempty"` + OozieConfiguration any // Custom script actions to run on HDI ondemand cluster once it's up. Please refer to // https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - ScriptActions []*ScriptAction `json:"scriptActions,omitempty"` + ScriptActions []*ScriptAction // The service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key for the service principal id. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). - SparkVersion interface{} `json:"sparkVersion,omitempty"` + SparkVersion any // Specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. - StormConfiguration interface{} `json:"stormConfiguration,omitempty"` + StormConfiguration any // The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this property is required. Type: // string (or Expression with resultType string). - SubnetName interface{} `json:"subnetName,omitempty"` + SubnetName any // The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with // resultType string). - VirtualNetworkID interface{} `json:"virtualNetworkId,omitempty"` + VirtualNetworkID any // Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. - YarnConfiguration interface{} `json:"yarnConfiguration,omitempty"` + YarnConfiguration any // Specifies the size of the Zoo Keeper node for the HDInsight cluster. - ZookeeperNodeSize interface{} `json:"zookeeperNodeSize,omitempty"` + ZookeeperNodeSize any } // HDInsightPigActivity - HDInsight Pig activity type. type HDInsightPigActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDInsight Pig activity properties. - TypeProperties *HDInsightPigActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HDInsightPigActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type HDInsightPigActivity. func (h *HDInsightPigActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightPigActivity. func (h *HDInsightPigActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, LinkedServiceName: h.LinkedServiceName, - Policy: h.Policy, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + Policy: h.Policy, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // HDInsightPigActivityTypeProperties - HDInsight Pig activity properties. type HDInsightPigActivityTypeProperties struct { // User specified arguments to HDInsightActivity. Type: array (or Expression with resultType array). - Arguments interface{} `json:"arguments,omitempty"` + Arguments any // Allows user to specify defines for Pig job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any // Debug info option. - GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + GetDebugInfo *HDInsightActivityDebugInfoOption // Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` + ScriptLinkedService *LinkedServiceReference // Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` + ScriptPath any // Storage linked service references. - StorageLinkedServices []*LinkedServiceReference `json:"storageLinkedServices,omitempty"` + StorageLinkedServices []*LinkedServiceReference } // HDInsightSparkActivity - HDInsight Spark activity. type HDInsightSparkActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDInsight spark activity properties. - TypeProperties *HDInsightSparkActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HDInsightSparkActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type HDInsightSparkActivity. func (h *HDInsightSparkActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightSparkActivity. func (h *HDInsightSparkActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, LinkedServiceName: h.LinkedServiceName, - Policy: h.Policy, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + Policy: h.Policy, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } @@ -14002,172 +14212,183 @@ func (h *HDInsightSparkActivity) GetExecutionActivity() *ExecutionActivity { type HDInsightSparkActivityTypeProperties struct { // REQUIRED; The relative path to the root folder of the code/package to be executed. Type: string (or Expression with resultType // string). - EntryFilePath interface{} `json:"entryFilePath,omitempty"` + EntryFilePath any // REQUIRED; The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType // string). - RootPath interface{} `json:"rootPath,omitempty"` + RootPath any // The user-specified arguments to HDInsightSparkActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any // The application's Java/Spark main class. - ClassName *string `json:"className,omitempty"` + ClassName *string // Debug info option. - GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + GetDebugInfo *HDInsightActivityDebugInfoOption // The user to impersonate that will execute the job. Type: string (or Expression with resultType string). - ProxyUser interface{} `json:"proxyUser,omitempty"` + ProxyUser any // Spark configuration property. - SparkConfig map[string]interface{} `json:"sparkConfig,omitempty"` + SparkConfig map[string]any // The storage linked service for uploading the entry file and dependencies, and for receiving logs. - SparkJobLinkedService *LinkedServiceReference `json:"sparkJobLinkedService,omitempty"` + SparkJobLinkedService *LinkedServiceReference } // HDInsightStreamingActivity - HDInsight streaming activity type. type HDInsightStreamingActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDInsight streaming activity properties. - TypeProperties *HDInsightStreamingActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HDInsightStreamingActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type HDInsightStreamingActivity. func (h *HDInsightStreamingActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type HDInsightStreamingActivity. func (h *HDInsightStreamingActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: h.AdditionalProperties, + DependsOn: h.DependsOn, + Description: h.Description, LinkedServiceName: h.LinkedServiceName, - Policy: h.Policy, Name: h.Name, + OnInactiveMarkAs: h.OnInactiveMarkAs, + Policy: h.Policy, + State: h.State, Type: h.Type, - Description: h.Description, - DependsOn: h.DependsOn, UserProperties: h.UserProperties, - AdditionalProperties: h.AdditionalProperties, } } // HDInsightStreamingActivityTypeProperties - HDInsight streaming activity properties. type HDInsightStreamingActivityTypeProperties struct { // REQUIRED; Paths to streaming job files. Can be directories. - FilePaths []interface{} `json:"filePaths,omitempty"` + FilePaths []any // REQUIRED; Input blob path. Type: string (or Expression with resultType string). - Input interface{} `json:"input,omitempty"` + Input any // REQUIRED; Mapper executable name. Type: string (or Expression with resultType string). - Mapper interface{} `json:"mapper,omitempty"` + Mapper any // REQUIRED; Output blob path. Type: string (or Expression with resultType string). - Output interface{} `json:"output,omitempty"` + Output any // REQUIRED; Reducer executable name. Type: string (or Expression with resultType string). - Reducer interface{} `json:"reducer,omitempty"` + Reducer any // User specified arguments to HDInsightActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any // Combiner executable name. Type: string (or Expression with resultType string). - Combiner interface{} `json:"combiner,omitempty"` + Combiner any // Command line environment values. - CommandEnvironment []interface{} `json:"commandEnvironment,omitempty"` + CommandEnvironment []any // Allows user to specify defines for streaming job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any // Linked service reference where the files are located. - FileLinkedService *LinkedServiceReference `json:"fileLinkedService,omitempty"` + FileLinkedService *LinkedServiceReference // Debug info option. - GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + GetDebugInfo *HDInsightActivityDebugInfoOption // Storage linked service references. - StorageLinkedServices []*LinkedServiceReference `json:"storageLinkedServices,omitempty"` + StorageLinkedServices []*LinkedServiceReference } // HTTPDataset - A file in an HTTP web server. type HTTPDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *HTTPDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HTTPDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type HTTPDataset. func (h *HTTPDataset) GetDataset() *Dataset { return &Dataset{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, Description: h.Description, - Structure: h.Structure, - Schema: h.Schema, + Folder: h.Folder, LinkedServiceName: h.LinkedServiceName, Parameters: h.Parameters, - Annotations: h.Annotations, - Folder: h.Folder, - AdditionalProperties: h.AdditionalProperties, + Schema: h.Schema, + Structure: h.Structure, + Type: h.Type, } } @@ -14175,58 +14396,58 @@ func (h *HTTPDataset) GetDataset() *Dataset { type HTTPDatasetTypeProperties struct { // The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 … request-header-name-n:request-header-value-n // Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any // The data compression method used on files. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // The format of files. - Format DatasetStorageFormatClassification `json:"format,omitempty"` + Format DatasetStorageFormatClassification // The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType // string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` + RelativeURL any // The body for the HTTP request. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any // The HTTP method for the HTTP request. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any } // HTTPLinkedService - Linked service for an HTTP source. type HTTPLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to this linked service type. - TypeProperties *HTTPLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HTTPLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type HTTPLinkedService. func (h *HTTPLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, ConnectVia: h.ConnectVia, Description: h.Description, Parameters: h.Parameters, - Annotations: h.Annotations, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } @@ -14234,182 +14455,181 @@ func (h *HTTPLinkedService) GetLinkedService() *LinkedService { type HTTPLinkedServiceTypeProperties struct { // 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"` + URL any - // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType - // object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` + // The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be + // string type). + AuthHeaders any // The authentication type to be used to connect to the HTTP server. - AuthenticationType *HTTPAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *HTTPAuthenticationType // Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with // ClientCertificate authentication, either CertThumbprint or // EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - CertThumbprint interface{} `json:"certThumbprint,omitempty"` + CertThumbprint any // Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, // either CertThumbprint or EmbeddedCertData/Password should be // specified. Type: string (or Expression with resultType string). - EmbeddedCertData interface{} `json:"embeddedCertData,omitempty"` + EmbeddedCertData any // If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType // boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` + EnableServerCertificateValidation any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } -// HTTPReadSettings - Sftp read settings. +// HTTPReadSettings - Http read settings. type HTTPReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string + + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - - // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + MaxConcurrentConnections any // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any - // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. - RequestTimeout interface{} `json:"requestTimeout,omitempty"` + // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. Type: string (or Expression with resultType + // string). + RequestTimeout any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type HTTPReadSettings. func (h *HTTPReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: h.Type, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, + Type: h.Type, } } // HTTPServerLocation - The location of http server. type HTTPServerLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // Specify the relativeUrl of http server. Type: string (or Expression with resultType string) - RelativeURL interface{} `json:"relativeUrl,omitempty"` + RelativeURL any } // GetDatasetLocation implements the DatasetLocationClassification interface for type HTTPServerLocation. func (h *HTTPServerLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: h.Type, - FolderPath: h.FolderPath, - FileName: h.FileName, AdditionalProperties: h.AdditionalProperties, + FileName: h.FileName, + FolderPath: h.FolderPath, + Type: h.Type, } } // HTTPSource - A copy activity source for an HTTP file. type HTTPSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. // Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type HTTPSource. func (h *HTTPSource) GetCopySource() *CopySource { return &CopySource{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HdfsLinkedService - Hadoop Distributed File System (HDFS) linked service. type HdfsLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; HDFS linked service properties. - TypeProperties *HdfsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HdfsLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type HdfsLinkedService. func (h *HdfsLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, ConnectVia: h.ConnectVia, Description: h.Description, Parameters: h.Parameters, - Annotations: h.Annotations, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } @@ -14417,528 +14637,528 @@ func (h *HdfsLinkedService) GetLinkedService() *LinkedService { type HdfsLinkedServiceTypeProperties struct { // REQUIRED; The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with // resultType string). - URL interface{} `json:"url,omitempty"` + URL any // Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression // with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for Windows authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // User name for Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // HdfsLocation - The location of HDFS. type HdfsLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type HdfsLocation. func (h *HdfsLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: h.Type, - FolderPath: h.FolderPath, - FileName: h.FileName, AdditionalProperties: h.AdditionalProperties, + FileName: h.FileName, + FolderPath: h.FolderPath, + Type: h.Type, } } // HdfsReadSettings - HDFS read settings. type HdfsReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies Distcp-related settings. - DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` + DistcpSettings *DistcpSettings - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // HDFS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // HDFS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type HdfsReadSettings. func (h *HdfsReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: h.Type, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, + Type: h.Type, } } // HdfsSource - A copy activity HDFS source. type HdfsSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies Distcp-related settings. - DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` + DistcpSettings *DistcpSettings // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type HdfsSource. func (h *HdfsSource) GetCopySource() *CopySource { return &CopySource{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HiveDatasetTypeProperties - Hive Properties type HiveDatasetTypeProperties struct { // The schema name of the Hive. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Hive. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // HiveLinkedService - Hive Server linked service. type HiveLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Hive Server linked service properties. - TypeProperties *HiveLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HiveLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type HiveLinkedService. func (h *HiveLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, ConnectVia: h.ConnectVia, Description: h.Description, Parameters: h.Parameters, - Annotations: h.Annotations, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HiveLinkedServiceTypeProperties - Hive Server linked service properties. type HiveLinkedServiceTypeProperties struct { // REQUIRED; The authentication method used to access the Hive server. - AuthenticationType *HiveAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *HiveAuthenticationType // REQUIRED; IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode // is enable). - Host interface{} `json:"host,omitempty"` + Host any // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the Hive server. - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any // The password corresponding to the user name that you provided in the Username field - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port that the Hive server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` + Port any // The type of Hive server. - ServerType *HiveServerType `json:"serverType,omitempty"` + ServerType *HiveServerType // true to indicate using the ZooKeeper service, false not. - ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` + ServiceDiscoveryMode any // The transport protocol to use in the Thrift layer. - ThriftTransportProtocol *HiveThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` + ThriftTransportProtocol *HiveThriftTransportProtocol // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any // Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. - UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` + UseNativeQuery any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any // The user name that you use to access Hive Server. - Username interface{} `json:"username,omitempty"` + Username any // The namespace on ZooKeeper under which Hive Server 2 nodes are added. - ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` + ZooKeeperNameSpace any } // HiveObjectDataset - Hive Server dataset. type HiveObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *HiveDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HiveDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type HiveObjectDataset. func (h *HiveObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, Description: h.Description, - Structure: h.Structure, - Schema: h.Schema, + Folder: h.Folder, LinkedServiceName: h.LinkedServiceName, Parameters: h.Parameters, - Annotations: h.Annotations, - Folder: h.Folder, - AdditionalProperties: h.AdditionalProperties, + Schema: h.Schema, + Structure: h.Structure, + Type: h.Type, } } // HiveSource - A copy activity Hive Server source. type HiveSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type HiveSource. func (h *HiveSource) GetCopySource() *CopySource { return &CopySource{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type HiveSource. func (h *HiveSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: h.QueryTimeout, AdditionalColumns: h.AdditionalColumns, - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, + QueryTimeout: h.QueryTimeout, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HubspotLinkedService - Hubspot Service linked service. type HubspotLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Hubspot Service linked service properties. - TypeProperties *HubspotLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *HubspotLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type HubspotLinkedService. func (h *HubspotLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, ConnectVia: h.ConnectVia, Description: h.Description, Parameters: h.Parameters, - Annotations: h.Annotations, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // HubspotLinkedServiceTypeProperties - Hubspot Service linked service properties. type HubspotLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with your Hubspot application. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The access token obtained when initially authenticating your OAuth integration. - AccessToken SecretBaseClassification `json:"accessToken,omitempty"` + AccessToken SecretBaseClassification // The client secret associated with your Hubspot application. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The refresh token obtained when initially authenticating your OAuth integration. - RefreshToken SecretBaseClassification `json:"refreshToken,omitempty"` + RefreshToken SecretBaseClassification // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // HubspotObjectDataset - Hubspot Service dataset. type HubspotObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type HubspotObjectDataset. func (h *HubspotObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + Annotations: h.Annotations, Description: h.Description, - Structure: h.Structure, - Schema: h.Schema, + Folder: h.Folder, LinkedServiceName: h.LinkedServiceName, Parameters: h.Parameters, - Annotations: h.Annotations, - Folder: h.Folder, - AdditionalProperties: h.AdditionalProperties, + Schema: h.Schema, + Structure: h.Structure, + Type: h.Type, } } // HubspotSource - A copy activity Hubspot Service source. type HubspotSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type HubspotSource. func (h *HubspotSource) GetCopySource() *CopySource { return &CopySource{ - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type HubspotSource. func (h *HubspotSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: h.QueryTimeout, AdditionalColumns: h.AdditionalColumns, - Type: h.Type, + AdditionalProperties: h.AdditionalProperties, + DisableMetricsCollection: h.DisableMetricsCollection, + MaxConcurrentConnections: h.MaxConcurrentConnections, + QueryTimeout: h.QueryTimeout, SourceRetryCount: h.SourceRetryCount, SourceRetryWait: h.SourceRetryWait, - MaxConcurrentConnections: h.MaxConcurrentConnections, - DisableMetricsCollection: h.DisableMetricsCollection, - AdditionalProperties: h.AdditionalProperties, + Type: h.Type, } } @@ -14946,48 +15166,59 @@ func (h *HubspotSource) GetTabularSource() *TabularSource { // property or the ifFalseActivities property depending on the result of the expression. type IfConditionActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; IfCondition activity properties. - TypeProperties *IfConditionActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *IfConditionActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type IfConditionActivity. func (i *IfConditionActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: i.AdditionalProperties, + DependsOn: i.DependsOn, + Description: i.Description, Name: i.Name, + OnInactiveMarkAs: i.OnInactiveMarkAs, + State: i.State, Type: i.Type, - Description: i.Description, - DependsOn: i.DependsOn, UserProperties: i.UserProperties, - AdditionalProperties: i.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type IfConditionActivity. func (i *IfConditionActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: i.AdditionalProperties, + DependsOn: i.DependsOn, + Description: i.Description, Name: i.Name, + OnInactiveMarkAs: i.OnInactiveMarkAs, + State: i.State, Type: i.Type, - Description: i.Description, - DependsOn: i.DependsOn, UserProperties: i.UserProperties, - AdditionalProperties: i.AdditionalProperties, } } @@ -14995,228 +15226,219 @@ func (i *IfConditionActivity) GetControlActivity() *ControlActivity { type IfConditionActivityTypeProperties struct { // REQUIRED; An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities // or ifFalseActivities) that will be executed. - Expression *Expression `json:"expression,omitempty"` + Expression *Expression // List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the // activity will exit without any action. - IfFalseActivities []ActivityClassification `json:"ifFalseActivities,omitempty"` + IfFalseActivities []ActivityClassification // List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the // activity will exit without any action. - IfTrueActivities []ActivityClassification `json:"ifTrueActivities,omitempty"` + IfTrueActivities []ActivityClassification } // ImpalaDatasetTypeProperties - Impala Dataset Properties type ImpalaDatasetTypeProperties struct { // The schema name of the Impala. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Impala. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // ImpalaLinkedService - Impala server linked service. type ImpalaLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Impala server linked service properties. - TypeProperties *ImpalaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ImpalaLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ImpalaLinkedService. func (i *ImpalaLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + Annotations: i.Annotations, ConnectVia: i.ConnectVia, Description: i.Description, Parameters: i.Parameters, - Annotations: i.Annotations, - AdditionalProperties: i.AdditionalProperties, + Type: i.Type, } } // ImpalaLinkedServiceTypeProperties - Impala server linked service properties. type ImpalaLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. - AuthenticationType *ImpalaAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *ImpalaAuthenticationType // REQUIRED; The IP address or host name of the Impala server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password corresponding to the user name when using UsernameAndPassword. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port that the Impala server uses to listen for client connections. The default value is 21050. - Port interface{} `json:"port,omitempty"` + Port any // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any // The user name used to access the Impala server. The default value is anonymous when using SASLUsername. - Username interface{} `json:"username,omitempty"` + Username any } // ImpalaObjectDataset - Impala server dataset. type ImpalaObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *ImpalaDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ImpalaDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ImpalaObjectDataset. func (i *ImpalaObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + Annotations: i.Annotations, Description: i.Description, - Structure: i.Structure, - Schema: i.Schema, + Folder: i.Folder, LinkedServiceName: i.LinkedServiceName, Parameters: i.Parameters, - Annotations: i.Annotations, - Folder: i.Folder, - AdditionalProperties: i.AdditionalProperties, + Schema: i.Schema, + Structure: i.Structure, + Type: i.Type, } } // ImpalaSource - A copy activity Impala server source. type ImpalaSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type ImpalaSource. func (i *ImpalaSource) GetCopySource() *CopySource { return &CopySource{ - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + DisableMetricsCollection: i.DisableMetricsCollection, + MaxConcurrentConnections: i.MaxConcurrentConnections, SourceRetryCount: i.SourceRetryCount, SourceRetryWait: i.SourceRetryWait, - MaxConcurrentConnections: i.MaxConcurrentConnections, - DisableMetricsCollection: i.DisableMetricsCollection, - AdditionalProperties: i.AdditionalProperties, + Type: i.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type ImpalaSource. func (i *ImpalaSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: i.QueryTimeout, AdditionalColumns: i.AdditionalColumns, - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + DisableMetricsCollection: i.DisableMetricsCollection, + MaxConcurrentConnections: i.MaxConcurrentConnections, + QueryTimeout: i.QueryTimeout, SourceRetryCount: i.SourceRetryCount, SourceRetryWait: i.SourceRetryWait, - MaxConcurrentConnections: i.MaxConcurrentConnections, - DisableMetricsCollection: i.DisableMetricsCollection, - AdditionalProperties: i.AdditionalProperties, + Type: i.Type, } } -// ImportSettingsClassification provides polymorphic access to related types. -// Call the interface's GetImportSettings() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AzureDatabricksDeltaLakeImportCommand, *ImportSettings, *SnowflakeImportCopyCommand -type ImportSettingsClassification interface { - // GetImportSettings returns the ImportSettings content of the underlying type. - GetImportSettings() *ImportSettings -} - // ImportSettings - Import command settings. type ImportSettings struct { // REQUIRED; The import setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetImportSettings implements the ImportSettingsClassification interface for type ImportSettings. @@ -15225,238 +15447,230 @@ func (i *ImportSettings) GetImportSettings() *ImportSettings { return i } // InformixLinkedService - Informix linked service. type InformixLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Informix linked service properties. - TypeProperties *InformixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *InformixLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type InformixLinkedService. func (i *InformixLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + Annotations: i.Annotations, ConnectVia: i.ConnectVia, Description: i.Description, Parameters: i.Parameters, - Annotations: i.Annotations, - AdditionalProperties: i.AdditionalProperties, + Type: i.Type, } } // InformixLinkedServiceTypeProperties - Informix linked service properties. type InformixLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: - // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + // string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType + // string. + ConnectionString any // Type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: // string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // The access credential portion of the connection string specified in driver-specific property-value format. - Credential SecretBaseClassification `json:"credential,omitempty"` + Credential SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for Basic authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // InformixSink - A copy activity Informix sink. type InformixSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type InformixSink. func (i *InformixSink) GetCopySink() *CopySink { return &CopySink{ - Type: i.Type, - WriteBatchSize: i.WriteBatchSize, - WriteBatchTimeout: i.WriteBatchTimeout, - SinkRetryCount: i.SinkRetryCount, - SinkRetryWait: i.SinkRetryWait, - MaxConcurrentConnections: i.MaxConcurrentConnections, - DisableMetricsCollection: i.DisableMetricsCollection, AdditionalProperties: i.AdditionalProperties, + DisableMetricsCollection: i.DisableMetricsCollection, + MaxConcurrentConnections: i.MaxConcurrentConnections, + SinkRetryCount: i.SinkRetryCount, + SinkRetryWait: i.SinkRetryWait, + Type: i.Type, + WriteBatchSize: i.WriteBatchSize, + WriteBatchTimeout: i.WriteBatchTimeout, } } // InformixSource - A copy activity source for Informix. type InformixSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type InformixSource. func (i *InformixSource) GetCopySource() *CopySource { return &CopySource{ - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + DisableMetricsCollection: i.DisableMetricsCollection, + MaxConcurrentConnections: i.MaxConcurrentConnections, SourceRetryCount: i.SourceRetryCount, SourceRetryWait: i.SourceRetryWait, - MaxConcurrentConnections: i.MaxConcurrentConnections, - DisableMetricsCollection: i.DisableMetricsCollection, - AdditionalProperties: i.AdditionalProperties, + Type: i.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type InformixSource. func (i *InformixSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: i.QueryTimeout, AdditionalColumns: i.AdditionalColumns, - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + DisableMetricsCollection: i.DisableMetricsCollection, + MaxConcurrentConnections: i.MaxConcurrentConnections, + QueryTimeout: i.QueryTimeout, SourceRetryCount: i.SourceRetryCount, SourceRetryWait: i.SourceRetryWait, - MaxConcurrentConnections: i.MaxConcurrentConnections, - DisableMetricsCollection: i.DisableMetricsCollection, - AdditionalProperties: i.AdditionalProperties, + Type: i.Type, } } // InformixTableDataset - The Informix table dataset. type InformixTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Informix table dataset properties. - TypeProperties *InformixTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *InformixTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type InformixTableDataset. func (i *InformixTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: i.Type, + AdditionalProperties: i.AdditionalProperties, + Annotations: i.Annotations, Description: i.Description, - Structure: i.Structure, - Schema: i.Schema, + Folder: i.Folder, LinkedServiceName: i.LinkedServiceName, Parameters: i.Parameters, - Annotations: i.Annotations, - Folder: i.Folder, - AdditionalProperties: i.AdditionalProperties, + Schema: i.Schema, + Structure: i.Structure, + Type: i.Type, } } // InformixTableDatasetTypeProperties - Informix table dataset properties. type InformixTableDatasetTypeProperties struct { // The Informix table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// IntegrationRuntimeClassification provides polymorphic access to related types. -// Call the interface's GetIntegrationRuntime() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *IntegrationRuntime, *ManagedIntegrationRuntime, *SelfHostedIntegrationRuntime -type IntegrationRuntimeClassification interface { - // GetIntegrationRuntime returns the IntegrationRuntime content of the underlying type. - GetIntegrationRuntime() *IntegrationRuntime + TableName any } // IntegrationRuntime - Azure Data Factory nested object which serves as a compute resource for activities. type IntegrationRuntime struct { // REQUIRED; Type of integration runtime. - Type *IntegrationRuntimeType `json:"type,omitempty"` + Type *IntegrationRuntimeType // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. - Description *string `json:"description,omitempty"` + Description *string } // GetIntegrationRuntime implements the IntegrationRuntimeClassification interface for type IntegrationRuntime. @@ -15465,1051 +15679,1200 @@ func (i *IntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime { retur // IntegrationRuntimeAuthKeys - The integration runtime authentication keys. type IntegrationRuntimeAuthKeys struct { // The primary integration runtime authentication key. - AuthKey1 *string `json:"authKey1,omitempty"` + AuthKey1 *string // The secondary integration runtime authentication key. - AuthKey2 *string `json:"authKey2,omitempty"` + AuthKey2 *string } // IntegrationRuntimeComputeProperties - The compute resource properties for managed integration runtime. type IntegrationRuntimeComputeProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any + + // CopyComputeScale properties for managed integration runtime. + CopyComputeScaleProperties *CopyComputeScaleProperties // Data flow properties for managed integration runtime. - DataFlowProperties *IntegrationRuntimeDataFlowProperties `json:"dataFlowProperties,omitempty"` + DataFlowProperties *IntegrationRuntimeDataFlowProperties // The location for managed integration runtime. The supported regions could be found on https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities - Location *string `json:"location,omitempty"` + Location *string // Maximum parallel executions count per node for managed integration runtime. - MaxParallelExecutionsPerNode *int32 `json:"maxParallelExecutionsPerNode,omitempty"` + MaxParallelExecutionsPerNode *int32 // The node size requirement to managed integration runtime. - NodeSize *string `json:"nodeSize,omitempty"` + NodeSize *string // The required number of nodes for managed integration runtime. - NumberOfNodes *int32 `json:"numberOfNodes,omitempty"` + NumberOfNodes *int32 + + // PipelineExternalComputeScale properties for managed integration runtime. + PipelineExternalComputeScaleProperties *PipelineExternalComputeScaleProperties // VNet properties for managed integration runtime. - VNetProperties *IntegrationRuntimeVNetProperties `json:"vNetProperties,omitempty"` + VNetProperties *IntegrationRuntimeVNetProperties } // IntegrationRuntimeConnectionInfo - Connection information for encrypting the on-premises data source credentials. type IntegrationRuntimeConnectionInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The on-premises integration runtime host URL. - HostServiceURI *string `json:"hostServiceUri,omitempty" azure:"ro"` + HostServiceURI *string // READ-ONLY; The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. - IdentityCertThumbprint *string `json:"identityCertThumbprint,omitempty" azure:"ro"` + IdentityCertThumbprint *string // READ-ONLY; Whether the identity certificate is expired. - IsIdentityCertExprired *bool `json:"isIdentityCertExprired,omitempty" azure:"ro"` + IsIdentityCertExprired *bool // READ-ONLY; The public key for encrypting a credential when transferring the credential to the integration runtime. - PublicKey *string `json:"publicKey,omitempty" azure:"ro"` + PublicKey *string // READ-ONLY; The token generated in service. Callers use this token to authenticate to integration runtime. - ServiceToken *string `json:"serviceToken,omitempty" azure:"ro"` + ServiceToken *string // READ-ONLY; The integration runtime version. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // IntegrationRuntimeCustomSetupScriptProperties - Custom setup script properties for a managed dedicated integration runtime. type IntegrationRuntimeCustomSetupScriptProperties struct { // The URI of the Azure blob container that contains the custom setup script. - BlobContainerURI *string `json:"blobContainerUri,omitempty"` + BlobContainerURI *string // The SAS token of the Azure blob container. - SasToken *SecureString `json:"sasToken,omitempty"` + SasToken *SecureString } // IntegrationRuntimeCustomerVirtualNetwork - The definition and properties of virtual network to which Azure-SSIS integration // runtime will join. type IntegrationRuntimeCustomerVirtualNetwork struct { // The ID of subnet to which Azure-SSIS integration runtime will join. - SubnetID *string `json:"subnetId,omitempty"` + SubnetID *string } // IntegrationRuntimeDataFlowProperties - Data flow properties for managed integration runtime. type IntegrationRuntimeDataFlowProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if // this is set as false. Default is true. - Cleanup *bool `json:"cleanup,omitempty"` + Cleanup *bool // Compute type of the cluster which will execute data flow job. - ComputeType *DataFlowComputeType `json:"computeType,omitempty"` + ComputeType *DataFlowComputeType // Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. - CoreCount *int32 `json:"coreCount,omitempty"` + CoreCount *int32 + + // Custom properties are used to tune the data flow runtime performance. + CustomProperties []*IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem // Time to live (in minutes) setting of the cluster which will execute data flow job. - TimeToLive *int32 `json:"timeToLive,omitempty"` + TimeToLive *int32 +} + +type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem struct { + // Name of custom property. + Name *string + + // Value of custom property. + Value *string } // IntegrationRuntimeDataProxyProperties - Data proxy properties for a managed dedicated integration runtime. type IntegrationRuntimeDataProxyProperties struct { // The self-hosted integration runtime reference. - ConnectVia *EntityReference `json:"connectVia,omitempty"` + ConnectVia *EntityReference // The path to contain the staged data in the Blob storage. - Path *string `json:"path,omitempty"` + Path *string // The staging linked service reference. - StagingLinkedService *EntityReference `json:"stagingLinkedService,omitempty"` + StagingLinkedService *EntityReference } // IntegrationRuntimeDebugResource - Integration runtime debug resource. type IntegrationRuntimeDebugResource struct { // REQUIRED; Integration runtime properties. - Properties IntegrationRuntimeClassification `json:"properties,omitempty"` + Properties IntegrationRuntimeClassification // The resource name. - Name *string `json:"name,omitempty"` + Name *string } // IntegrationRuntimeListResponse - A list of integration runtime resources. type IntegrationRuntimeListResponse struct { // REQUIRED; List of integration runtimes. - Value []*IntegrationRuntimeResource `json:"value,omitempty"` + Value []*IntegrationRuntimeResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // IntegrationRuntimeMonitoringData - Get monitoring data response. type IntegrationRuntimeMonitoringData struct { // Integration runtime name. - Name *string `json:"name,omitempty"` + Name *string // Integration runtime node monitoring data. - Nodes []*IntegrationRuntimeNodeMonitoringData `json:"nodes,omitempty"` + Nodes []*IntegrationRuntimeNodeMonitoringData } // IntegrationRuntimeNodeIPAddress - The IP address of self-hosted integration runtime node. type IntegrationRuntimeNodeIPAddress struct { // READ-ONLY; The IP address of self-hosted integration runtime node. - IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` + IPAddress *string } // IntegrationRuntimeNodeMonitoringData - Monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Available memory (MB) on the integration runtime node. - AvailableMemoryInMB *int32 `json:"availableMemoryInMB,omitempty" azure:"ro"` + AvailableMemoryInMB *int32 // READ-ONLY; CPU percentage on the integration runtime node. - CPUUtilization *int32 `json:"cpuUtilization,omitempty" azure:"ro"` + CPUUtilization *int32 // READ-ONLY; Maximum concurrent jobs on the integration runtime node. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty" azure:"ro"` + ConcurrentJobsLimit *int32 // READ-ONLY; The number of jobs currently running on the integration runtime node. - ConcurrentJobsRunning *int32 `json:"concurrentJobsRunning,omitempty" azure:"ro"` + ConcurrentJobsRunning *int32 // READ-ONLY; The maximum concurrent jobs in this integration runtime. - MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty" azure:"ro"` + MaxConcurrentJobs *int32 // READ-ONLY; Name of the integration runtime node. - NodeName *string `json:"nodeName,omitempty" azure:"ro"` + NodeName *string // READ-ONLY; Received bytes on the integration runtime node. - ReceivedBytes *float32 `json:"receivedBytes,omitempty" azure:"ro"` + ReceivedBytes *float32 // READ-ONLY; Sent bytes on the integration runtime node. - SentBytes *float32 `json:"sentBytes,omitempty" azure:"ro"` -} - -// IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete -// method. -type IntegrationRuntimeNodesClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress -// method. -type IntegrationRuntimeNodesClientGetIPAddressOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get method. -type IntegrationRuntimeNodesClientGetOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update -// method. -type IntegrationRuntimeNodesClientUpdateOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh -// method. -type IntegrationRuntimeObjectMetadataClientBeginRefreshOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get -// method. -type IntegrationRuntimeObjectMetadataClientGetOptions struct { - // The parameters for getting a SSIS object metadata. - GetMetadataRequest *GetSsisObjectMetadataRequest + SentBytes *float32 } // IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint - Azure-SSIS integration runtime outbound network dependency // endpoints for one category. type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint struct { // The category of outbound network dependency. - Category *string `json:"category,omitempty"` + Category *string // The endpoints for outbound network dependency. - Endpoints []*IntegrationRuntimeOutboundNetworkDependenciesEndpoint `json:"endpoints,omitempty"` + Endpoints []*IntegrationRuntimeOutboundNetworkDependenciesEndpoint } // IntegrationRuntimeOutboundNetworkDependenciesEndpoint - The endpoint for Azure-SSIS integration runtime outbound network // dependency. type IntegrationRuntimeOutboundNetworkDependenciesEndpoint struct { // The domain name of endpoint. - DomainName *string `json:"domainName,omitempty"` + DomainName *string // The details of endpoint. - EndpointDetails []*IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails `json:"endpointDetails,omitempty"` + EndpointDetails []*IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails } // IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails - The details of Azure-SSIS integration runtime outbound network // dependency endpoint. type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails struct { // The port of endpoint. - Port *int32 `json:"port,omitempty"` + Port *int32 } // IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse - Azure-SSIS integration runtime outbound network dependency // endpoints. type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse struct { // The list of outbound network dependency endpoints. - Value []*IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint `json:"value,omitempty"` + Value []*IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint } // IntegrationRuntimeReference - Integration runtime reference type. type IntegrationRuntimeReference struct { // REQUIRED; Reference integration runtime name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Type of integration runtime. - Type *IntegrationRuntimeReferenceType `json:"type,omitempty"` + Type *IntegrationRuntimeReferenceType // Arguments for integration runtime. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any } // IntegrationRuntimeRegenerateKeyParameters - Parameters to regenerate the authentication key. type IntegrationRuntimeRegenerateKeyParameters struct { // The name of the authentication key to regenerate. - KeyName *IntegrationRuntimeAuthKeyName `json:"keyName,omitempty"` + KeyName *IntegrationRuntimeAuthKeyName } // IntegrationRuntimeResource - Integration runtime resource type. type IntegrationRuntimeResource struct { // REQUIRED; Integration runtime properties. - Properties IntegrationRuntimeClassification `json:"properties,omitempty"` + Properties IntegrationRuntimeClassification // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // IntegrationRuntimeSsisCatalogInfo - Catalog information for managed dedicated integration runtime. type IntegrationRuntimeSsisCatalogInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The password of the administrator user account of the catalog database. - CatalogAdminPassword *SecureString `json:"catalogAdminPassword,omitempty"` + CatalogAdminPassword *SecureString // The administrator user name of catalog database. - CatalogAdminUserName *string `json:"catalogAdminUserName,omitempty"` + CatalogAdminUserName *string // The pricing tier for the catalog database. The valid values could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/ - CatalogPricingTier *IntegrationRuntimeSsisCatalogPricingTier `json:"catalogPricingTier,omitempty"` + CatalogPricingTier *IntegrationRuntimeSsisCatalogPricingTier // The catalog database server URL. - CatalogServerEndpoint *string `json:"catalogServerEndpoint,omitempty"` + CatalogServerEndpoint *string // The dual standby pair name of Azure-SSIS Integration Runtimes to support SSISDB failover. - DualStandbyPairName *string `json:"dualStandbyPairName,omitempty"` + DualStandbyPairName *string } // IntegrationRuntimeSsisProperties - SSIS properties for managed integration runtime. type IntegrationRuntimeSsisProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Catalog information for managed dedicated integration runtime. - CatalogInfo *IntegrationRuntimeSsisCatalogInfo `json:"catalogInfo,omitempty"` + CatalogInfo *IntegrationRuntimeSsisCatalogInfo // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // Custom setup script properties for a managed dedicated integration runtime. - CustomSetupScriptProperties *IntegrationRuntimeCustomSetupScriptProperties `json:"customSetupScriptProperties,omitempty"` + CustomSetupScriptProperties *IntegrationRuntimeCustomSetupScriptProperties // Data proxy properties for a managed dedicated integration runtime. - DataProxyProperties *IntegrationRuntimeDataProxyProperties `json:"dataProxyProperties,omitempty"` + DataProxyProperties *IntegrationRuntimeDataProxyProperties // The edition for the SSIS Integration Runtime - Edition *IntegrationRuntimeEdition `json:"edition,omitempty"` + Edition *IntegrationRuntimeEdition // Custom setup without script properties for a SSIS integration runtime. - ExpressCustomSetupProperties []CustomSetupBaseClassification `json:"expressCustomSetupProperties,omitempty"` + ExpressCustomSetupProperties []CustomSetupBaseClassification // License type for bringing your own license scenario. - LicenseType *IntegrationRuntimeLicenseType `json:"licenseType,omitempty"` + LicenseType *IntegrationRuntimeLicenseType // Package stores for the SSIS Integration Runtime. - PackageStores []*PackageStore `json:"packageStores,omitempty"` -} - -// IntegrationRuntimeStatusClassification provides polymorphic access to related types. -// Call the interface's GetIntegrationRuntimeStatus() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *IntegrationRuntimeStatus, *ManagedIntegrationRuntimeStatus, *SelfHostedIntegrationRuntimeStatus -type IntegrationRuntimeStatusClassification interface { - // GetIntegrationRuntimeStatus returns the IntegrationRuntimeStatus content of the underlying type. - GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus + PackageStores []*PackageStore } // IntegrationRuntimeStatus - Integration runtime status. type IntegrationRuntimeStatus struct { // REQUIRED; Type of integration runtime. - Type *IntegrationRuntimeType `json:"type,omitempty"` + Type *IntegrationRuntimeType // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` + DataFactoryName *string // READ-ONLY; The state of integration runtime. - State *IntegrationRuntimeState `json:"state,omitempty" azure:"ro"` + State *IntegrationRuntimeState } // GetIntegrationRuntimeStatus implements the IntegrationRuntimeStatusClassification interface for type IntegrationRuntimeStatus. func (i *IntegrationRuntimeStatus) GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus { return i } -// IntegrationRuntimeStatusListResponse - A list of integration runtime status. -type IntegrationRuntimeStatusListResponse struct { - // REQUIRED; List of integration runtime status. - Value []*IntegrationRuntimeStatusResponse `json:"value,omitempty"` - - // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - // IntegrationRuntimeStatusResponse - Integration runtime status response. type IntegrationRuntimeStatusResponse struct { // REQUIRED; Integration runtime properties. - Properties IntegrationRuntimeStatusClassification `json:"properties,omitempty"` + Properties IntegrationRuntimeStatusClassification // READ-ONLY; The integration runtime name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // IntegrationRuntimeVNetProperties - VNet properties for managed integration runtime. type IntegrationRuntimeVNetProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Resource IDs of the public IP addresses that this integration runtime will use. - PublicIPs []*string `json:"publicIPs,omitempty"` + PublicIPs []*string // The name of the subnet this integration runtime will join. - Subnet *string `json:"subnet,omitempty"` + Subnet *string // The ID of subnet, to which this Azure-SSIS integration runtime will be joined. - SubnetID *string `json:"subnetId,omitempty"` + SubnetID *string // The ID of the VNet that this integration runtime will join. - VNetID *string `json:"vNetId,omitempty"` -} - -// IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart -// method. -type IntegrationRuntimesClientBeginStartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop -// method. -type IntegrationRuntimesClientBeginStopOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime -// method. -type IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate -// method. -type IntegrationRuntimesClientCreateOrUpdateOptions struct { - // ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity - // or can be * for unconditional update. - IfMatch *string -} - -// IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete method. -type IntegrationRuntimesClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo -// method. -type IntegrationRuntimesClientGetConnectionInfoOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData -// method. -type IntegrationRuntimesClientGetMonitoringDataOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. -type IntegrationRuntimesClientGetOptions struct { - // ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, - // or if * was provided, then no content will be returned. - IfNoneMatch *string -} - -// IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus -// method. -type IntegrationRuntimesClientGetStatusOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys -// method. -type IntegrationRuntimesClientListAuthKeysOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.ListByFactory -// method. -type IntegrationRuntimesClientListByFactoryOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints -// method. -type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey -// method. -type IntegrationRuntimesClientRegenerateAuthKeyOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks -// method. -type IntegrationRuntimesClientRemoveLinksOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials -// method. -type IntegrationRuntimesClientSyncCredentialsOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update method. -type IntegrationRuntimesClientUpdateOptions struct { - // placeholder for future optional parameters -} - -// IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade method. -type IntegrationRuntimesClientUpgradeOptions struct { - // placeholder for future optional parameters + VNetID *string } // JSONDataset - Json dataset. type JSONDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Json dataset properties. - TypeProperties *JSONDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *JSONDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type JSONDataset. func (j *JSONDataset) GetDataset() *Dataset { return &Dataset{ - Type: j.Type, + AdditionalProperties: j.AdditionalProperties, + Annotations: j.Annotations, Description: j.Description, - Structure: j.Structure, - Schema: j.Schema, + Folder: j.Folder, LinkedServiceName: j.LinkedServiceName, Parameters: j.Parameters, - Annotations: j.Annotations, - Folder: j.Folder, - AdditionalProperties: j.AdditionalProperties, + Schema: j.Schema, + Structure: j.Structure, + Type: j.Type, } } // JSONDatasetTypeProperties - Json dataset properties. type JSONDatasetTypeProperties struct { // REQUIRED; The location of the json data storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The data compression method used for the json dataset. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // The code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another // Unicode encoding. Refer to the name column of the table in the following link to // set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType // string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any } // JSONFormat - The data stored in JSON format. type JSONFormat struct { // REQUIRED; Type of dataset storage format. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any // The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark // (BOM) denotes another Unicode encoding. The full list of supported values can be // found in the 'Name' column of the table of encodings in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. // Type: string (or Expression with resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any // File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. // It is case-sensitive. - FilePattern interface{} `json:"filePattern,omitempty"` + FilePattern any // The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType // string). - JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` + JSONNodeReference any // The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields // under root object, start with "$"; for fields inside the array chosen by // jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. // Type: object (or Expression with resultType object). - JSONPathDefinition interface{} `json:"jsonPathDefinition,omitempty"` + JSONPathDefinition any // The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType // string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + NestingSeparator any // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type JSONFormat. func (j *JSONFormat) GetDatasetStorageFormat() *DatasetStorageFormat { return &DatasetStorageFormat{ - Type: j.Type, - Serializer: j.Serializer, - Deserializer: j.Deserializer, AdditionalProperties: j.AdditionalProperties, + Deserializer: j.Deserializer, + Serializer: j.Serializer, + Type: j.Type, } } // JSONReadSettings - Json read settings. type JSONReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. - CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` + CompressionProperties CompressionReadSettingsClassification } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type JSONReadSettings. func (j *JSONReadSettings) GetFormatReadSettings() *FormatReadSettings { return &FormatReadSettings{ - Type: j.Type, AdditionalProperties: j.AdditionalProperties, + Type: j.Type, } } // JSONSink - A copy activity Json sink. type JSONSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Json format settings. - FormatSettings *JSONWriteSettings `json:"formatSettings,omitempty"` + FormatSettings *JSONWriteSettings // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Json store settings. - StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreWriteSettingsClassification // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type JSONSink. func (j *JSONSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: j.AdditionalProperties, + DisableMetricsCollection: j.DisableMetricsCollection, + MaxConcurrentConnections: j.MaxConcurrentConnections, + SinkRetryCount: j.SinkRetryCount, + SinkRetryWait: j.SinkRetryWait, Type: j.Type, WriteBatchSize: j.WriteBatchSize, WriteBatchTimeout: j.WriteBatchTimeout, - SinkRetryCount: j.SinkRetryCount, - SinkRetryWait: j.SinkRetryWait, - MaxConcurrentConnections: j.MaxConcurrentConnections, - DisableMetricsCollection: j.DisableMetricsCollection, - AdditionalProperties: j.AdditionalProperties, } } // JSONSource - A copy activity Json source. type JSONSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Json format settings. - FormatSettings *JSONReadSettings `json:"formatSettings,omitempty"` + FormatSettings *JSONReadSettings // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Json store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type JSONSource. func (j *JSONSource) GetCopySource() *CopySource { return &CopySource{ - Type: j.Type, + AdditionalProperties: j.AdditionalProperties, + DisableMetricsCollection: j.DisableMetricsCollection, + MaxConcurrentConnections: j.MaxConcurrentConnections, SourceRetryCount: j.SourceRetryCount, SourceRetryWait: j.SourceRetryWait, - MaxConcurrentConnections: j.MaxConcurrentConnections, - DisableMetricsCollection: j.DisableMetricsCollection, - AdditionalProperties: j.AdditionalProperties, + Type: j.Type, } } // JSONWriteSettings - Json write settings. type JSONWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is // 'setOfObjects'. It is case-sensitive. - FilePattern interface{} `json:"filePattern,omitempty"` + FilePattern any } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type JSONWriteSettings. func (j *JSONWriteSettings) GetFormatWriteSettings() *FormatWriteSettings { return &FormatWriteSettings{ - Type: j.Type, AdditionalProperties: j.AdditionalProperties, + Type: j.Type, } } // JiraLinkedService - Jira Service linked service. type JiraLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Jira Service linked service properties. - TypeProperties *JiraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *JiraLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type JiraLinkedService. func (j *JiraLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: j.Type, + AdditionalProperties: j.AdditionalProperties, + Annotations: j.Annotations, ConnectVia: j.ConnectVia, Description: j.Description, Parameters: j.Parameters, - Annotations: j.Annotations, - AdditionalProperties: j.AdditionalProperties, + Type: j.Type, } } // JiraLinkedServiceTypeProperties - Jira Service linked service properties. type JiraLinkedServiceTypeProperties struct { // REQUIRED; The IP address or host name of the Jira service. (e.g. jira.example.com) - Host interface{} `json:"host,omitempty"` + Host any // REQUIRED; The user name that you use to access Jira Service. - Username interface{} `json:"username,omitempty"` + Username any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password corresponding to the user name that you provided in the username field. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port that the Jira server uses to listen for client connections. The default value is 443 if connecting through // HTTPS, or 8080 if connecting through HTTP. - Port interface{} `json:"port,omitempty"` + Port any // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // JiraObjectDataset - Jira Service dataset. type JiraObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type JiraObjectDataset. func (j *JiraObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: j.Type, + AdditionalProperties: j.AdditionalProperties, + Annotations: j.Annotations, Description: j.Description, - Structure: j.Structure, - Schema: j.Schema, + Folder: j.Folder, LinkedServiceName: j.LinkedServiceName, Parameters: j.Parameters, - Annotations: j.Annotations, - Folder: j.Folder, - AdditionalProperties: j.AdditionalProperties, + Schema: j.Schema, + Structure: j.Structure, + Type: j.Type, } } // JiraSource - A copy activity Jira Service source. type JiraSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type JiraSource. func (j *JiraSource) GetCopySource() *CopySource { return &CopySource{ - Type: j.Type, + AdditionalProperties: j.AdditionalProperties, + DisableMetricsCollection: j.DisableMetricsCollection, + MaxConcurrentConnections: j.MaxConcurrentConnections, SourceRetryCount: j.SourceRetryCount, SourceRetryWait: j.SourceRetryWait, - MaxConcurrentConnections: j.MaxConcurrentConnections, - DisableMetricsCollection: j.DisableMetricsCollection, - AdditionalProperties: j.AdditionalProperties, + Type: j.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type JiraSource. func (j *JiraSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: j.QueryTimeout, AdditionalColumns: j.AdditionalColumns, - Type: j.Type, + AdditionalProperties: j.AdditionalProperties, + DisableMetricsCollection: j.DisableMetricsCollection, + MaxConcurrentConnections: j.MaxConcurrentConnections, + QueryTimeout: j.QueryTimeout, SourceRetryCount: j.SourceRetryCount, SourceRetryWait: j.SourceRetryWait, - MaxConcurrentConnections: j.MaxConcurrentConnections, - DisableMetricsCollection: j.DisableMetricsCollection, - AdditionalProperties: j.AdditionalProperties, + Type: j.Type, } } -// LicensedComponentSetupTypeProperties - Installation of licensed component setup type properties. -type LicensedComponentSetupTypeProperties struct { - // REQUIRED; The name of the 3rd party component. - ComponentName *string `json:"componentName,omitempty"` - - // The license key to activate the component. - LicenseKey SecretBaseClassification `json:"licenseKey,omitempty"` -} - -// LinkedIntegrationRuntime - The linked integration runtime information. -type LinkedIntegrationRuntime struct { - // READ-ONLY; The creating time of the linked integration runtime. - CreateTime *time.Time `json:"createTime,omitempty" azure:"ro"` +// LakeHouseLinkedService - Microsoft Fabric LakeHouse linked service. +type LakeHouseLinkedService struct { + // REQUIRED; Type of linked service. + Type *string - // READ-ONLY; The location of the data factory for which the linked integration runtime belong to. - DataFactoryLocation *string `json:"dataFactoryLocation,omitempty" azure:"ro"` + // REQUIRED; Microsoft Fabric LakeHouse linked service properties. + TypeProperties *LakeHouseLinkedServiceTypeProperties - // READ-ONLY; The name of the data factory for which the linked integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any - // READ-ONLY; The name of the linked integration runtime. - Name *string `json:"name,omitempty" azure:"ro"` + // List of tags that can be used for describing the linked service. + Annotations []any - // READ-ONLY; The subscription ID for which the linked integration runtime belong to. - SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` -} + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference -// LinkedIntegrationRuntimeKeyAuthorization - The key authorization type integration runtime. -type LinkedIntegrationRuntimeKeyAuthorization struct { - // REQUIRED; The authorization type for integration runtime sharing. - AuthorizationType *string `json:"authorizationType,omitempty"` + // Linked service description. + Description *string - // REQUIRED; The key used for authorization. - Key *SecureString `json:"key,omitempty"` + // Parameters for linked service. + Parameters map[string]*ParameterSpecification } -// GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeKeyAuthorization. -func (l *LinkedIntegrationRuntimeKeyAuthorization) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType { - return &LinkedIntegrationRuntimeType{ - AuthorizationType: l.AuthorizationType, +// GetLinkedService implements the LinkedServiceClassification interface for type LakeHouseLinkedService. +func (l *LakeHouseLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: l.AdditionalProperties, + Annotations: l.Annotations, + ConnectVia: l.ConnectVia, + Description: l.Description, + Parameters: l.Parameters, + Type: l.Type, } } -// LinkedIntegrationRuntimeRbacAuthorization - The role based access control (RBAC) authorization type integration runtime. -type LinkedIntegrationRuntimeRbacAuthorization struct { - // REQUIRED; The authorization type for integration runtime sharing. - AuthorizationType *string `json:"authorizationType,omitempty"` - - // REQUIRED; The resource identifier of the integration runtime to be shared. - ResourceID *string `json:"resourceId,omitempty"` +// LakeHouseLinkedServiceTypeProperties - Microsoft Fabric LakeHouse linked service properties. +type LakeHouseLinkedServiceTypeProperties struct { + // The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with resultType string). + ArtifactID any - // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string -// GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeRbacAuthorization. -func (l *LinkedIntegrationRuntimeRbacAuthorization) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType { - return &LinkedIntegrationRuntimeType{ - AuthorizationType: l.AuthorizationType, - } -} + // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + // servicePrincipalCredential can be SecureString or + // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can + // only be AzureKeyVaultSecretReference. + ServicePrincipalCredential SecretBaseClassification -// LinkedIntegrationRuntimeRequest - Data factory name for linked integration runtime request. -type LinkedIntegrationRuntimeRequest struct { - // REQUIRED; The data factory name for linked integration runtime. - LinkedFactoryName *string `json:"factoryName,omitempty"` -} + // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, + // 'ServicePrincipalCert' for certificate. Type: string (or Expression with + // resultType string). + ServicePrincipalCredentialType any -// LinkedIntegrationRuntimeTypeClassification provides polymorphic access to related types. -// Call the interface's GetLinkedIntegrationRuntimeType() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *LinkedIntegrationRuntimeKeyAuthorization, *LinkedIntegrationRuntimeRbacAuthorization, *LinkedIntegrationRuntimeType -type LinkedIntegrationRuntimeTypeClassification interface { - // GetLinkedIntegrationRuntimeType returns the LinkedIntegrationRuntimeType content of the underlying type. - GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType -} + // The ID of the application used to authenticate against Microsoft Fabric LakeHouse. Type: string (or Expression with resultType + // string). + ServicePrincipalID any -// LinkedIntegrationRuntimeType - The base definition of a linked integration runtime. -type LinkedIntegrationRuntimeType struct { - // REQUIRED; The authorization type for integration runtime sharing. - AuthorizationType *string `json:"authorizationType,omitempty"` -} + // The Key of the application used to authenticate against Microsoft Fabric LakeHouse. + ServicePrincipalKey SecretBaseClassification -// GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeType. -func (l *LinkedIntegrationRuntimeType) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType { - return l -} + // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant any -// LinkedServiceClassification provides polymorphic access to related types. -// Call the interface's GetLinkedService() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AmazonMWSLinkedService, *AmazonRdsForOracleLinkedService, *AmazonRdsForSQLServerLinkedService, *AmazonRedshiftLinkedService, -// - *AmazonS3CompatibleLinkedService, *AmazonS3LinkedService, *AppFiguresLinkedService, *AsanaLinkedService, *AzureBatchLinkedService, -// - *AzureBlobFSLinkedService, *AzureBlobStorageLinkedService, *AzureDataExplorerLinkedService, *AzureDataLakeAnalyticsLinkedService, -// - *AzureDataLakeStoreLinkedService, *AzureDatabricksDeltaLakeLinkedService, *AzureDatabricksLinkedService, *AzureFileStorageLinkedService, -// - *AzureFunctionLinkedService, *AzureKeyVaultLinkedService, *AzureMLLinkedService, *AzureMLServiceLinkedService, *AzureMariaDBLinkedService, -// - *AzureMySQLLinkedService, *AzurePostgreSQLLinkedService, *AzureSQLDWLinkedService, *AzureSQLDatabaseLinkedService, *AzureSQLMILinkedService, -// - *AzureSearchLinkedService, *AzureStorageLinkedService, *AzureSynapseArtifactsLinkedService, *AzureTableStorageLinkedService, -// - *CassandraLinkedService, *CommonDataServiceForAppsLinkedService, *ConcurLinkedService, *CosmosDbLinkedService, *CosmosDbMongoDbAPILinkedService, -// - *CouchbaseLinkedService, *CustomDataSourceLinkedService, *DataworldLinkedService, *Db2LinkedService, *DrillLinkedService, -// - *DynamicsAXLinkedService, *DynamicsCrmLinkedService, *DynamicsLinkedService, *EloquaLinkedService, *FileServerLinkedService, -// - *FtpServerLinkedService, *GoogleAdWordsLinkedService, *GoogleBigQueryLinkedService, *GoogleCloudStorageLinkedService, -// - *GoogleSheetsLinkedService, *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 + // The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). + WorkspaceID any } -// 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"` +// LakeHouseLocation - The location of Microsoft Fabric LakeHouse Files dataset. +type LakeHouseLocation struct { + // REQUIRED; Type of dataset storage location. + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any - // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + // Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName any - // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath any +} + +// GetDatasetLocation implements the DatasetLocationClassification interface for type LakeHouseLocation. +func (l *LakeHouseLocation) GetDatasetLocation() *DatasetLocation { + return &DatasetLocation{ + AdditionalProperties: l.AdditionalProperties, + FileName: l.FileName, + FolderPath: l.FolderPath, + Type: l.Type, + } +} + +// LakeHouseReadSettings - Microsoft Fabric LakeHouse Files read settings. +type LakeHouseReadSettings struct { + // REQUIRED; The read setting type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression + // with resultType boolean). + DeleteFilesAfterCompletion any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any + + // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. + // Type: string (or Expression with resultType string). + FileListPath any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd any + + // The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart any + + // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath any + + // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType + // boolean). + Recursive any + + // Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName any + + // Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath any +} + +// GetStoreReadSettings implements the StoreReadSettingsClassification interface for type LakeHouseReadSettings. +func (l *LakeHouseReadSettings) GetStoreReadSettings() *StoreReadSettings { + return &StoreReadSettings{ + AdditionalProperties: l.AdditionalProperties, + DisableMetricsCollection: l.DisableMetricsCollection, + MaxConcurrentConnections: l.MaxConcurrentConnections, + Type: l.Type, + } +} + +// LakeHouseTableDataset - Microsoft Fabric LakeHouse Table. +type LakeHouseTableDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any + + // Microsoft Fabric LakeHouse Table dataset properties. + TypeProperties *LakeHouseTableDatasetTypeProperties +} + +// GetDataset implements the DatasetClassification interface for type LakeHouseTableDataset. +func (l *LakeHouseTableDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: l.AdditionalProperties, + Annotations: l.Annotations, + Description: l.Description, + Folder: l.Folder, + LinkedServiceName: l.LinkedServiceName, + Parameters: l.Parameters, + Schema: l.Schema, + Structure: l.Structure, + Type: l.Type, + } +} + +// LakeHouseTableDatasetTypeProperties - Microsoft Fabric LakeHouse Table dataset properties. +type LakeHouseTableDatasetTypeProperties struct { + // The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType string). + Table any +} + +// LakeHouseTableSink - A copy activity for Microsoft Fabric LakeHouse Table sink. +type LakeHouseTableSink struct { + // REQUIRED; Copy sink type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Specify the partition column names from sink columns. Type: array of objects (or Expression with resultType array of objects). + PartitionNameList any + + // Create partitions in folder structure based on one or multiple columns. Each distinct column value (pair) will be a new + // partition. Possible values include: "None", "PartitionByKey". + PartitionOption any + + // Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount any + + // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait any + + // The type of table action for LakeHouse Table sink. Possible values include: "None", "Append", "Overwrite". + TableActionOption any + + // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize any + + // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout any +} + +// GetCopySink implements the CopySinkClassification interface for type LakeHouseTableSink. +func (l *LakeHouseTableSink) GetCopySink() *CopySink { + return &CopySink{ + AdditionalProperties: l.AdditionalProperties, + DisableMetricsCollection: l.DisableMetricsCollection, + MaxConcurrentConnections: l.MaxConcurrentConnections, + SinkRetryCount: l.SinkRetryCount, + SinkRetryWait: l.SinkRetryWait, + Type: l.Type, + WriteBatchSize: l.WriteBatchSize, + WriteBatchTimeout: l.WriteBatchTimeout, + } +} + +// LakeHouseTableSource - A copy activity source for Microsoft Fabric LakeHouse Table. +type LakeHouseTableSource struct { + // REQUIRED; Copy source type. + Type *string + + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any + + // Query an older snapshot by timestamp. Type: string (or Expression with resultType string). + TimestampAsOf any + + // Query an older snapshot by version. Type: integer (or Expression with resultType integer). + VersionAsOf any +} + +// GetCopySource implements the CopySourceClassification interface for type LakeHouseTableSource. +func (l *LakeHouseTableSource) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: l.AdditionalProperties, + DisableMetricsCollection: l.DisableMetricsCollection, + MaxConcurrentConnections: l.MaxConcurrentConnections, + SourceRetryCount: l.SourceRetryCount, + SourceRetryWait: l.SourceRetryWait, + Type: l.Type, + } +} + +// LakeHouseWriteSettings - Microsoft Fabric LakeHouse Files write settings. +type LakeHouseWriteSettings struct { + // REQUIRED; The write setting type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // The type of copy behavior for copy sink. + CopyBehavior any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem +} + +// GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type LakeHouseWriteSettings. +func (l *LakeHouseWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { + return &StoreWriteSettings{ + AdditionalProperties: l.AdditionalProperties, + CopyBehavior: l.CopyBehavior, + DisableMetricsCollection: l.DisableMetricsCollection, + MaxConcurrentConnections: l.MaxConcurrentConnections, + Metadata: l.Metadata, + Type: l.Type, + } +} + +// LicensedComponentSetupTypeProperties - Installation of licensed component setup type properties. +type LicensedComponentSetupTypeProperties struct { + // REQUIRED; The name of the 3rd party component. + ComponentName *string + + // The license key to activate the component. + LicenseKey SecretBaseClassification +} + +// LinkedIntegrationRuntime - The linked integration runtime information. +type LinkedIntegrationRuntime struct { + // READ-ONLY; The creating time of the linked integration runtime. + CreateTime *time.Time + + // READ-ONLY; The location of the data factory for which the linked integration runtime belong to. + DataFactoryLocation *string + + // READ-ONLY; The name of the data factory for which the linked integration runtime belong to. + DataFactoryName *string + + // READ-ONLY; The name of the linked integration runtime. + Name *string + + // READ-ONLY; The subscription ID for which the linked integration runtime belong to. + SubscriptionID *string +} + +// LinkedIntegrationRuntimeKeyAuthorization - The key authorization type integration runtime. +type LinkedIntegrationRuntimeKeyAuthorization struct { + // REQUIRED; The authorization type for integration runtime sharing. + AuthorizationType *string + + // REQUIRED; The key used for authorization. + Key *SecureString +} + +// GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeKeyAuthorization. +func (l *LinkedIntegrationRuntimeKeyAuthorization) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType { + return &LinkedIntegrationRuntimeType{ + AuthorizationType: l.AuthorizationType, + } +} + +// LinkedIntegrationRuntimeRbacAuthorization - The role based access control (RBAC) authorization type integration runtime. +type LinkedIntegrationRuntimeRbacAuthorization struct { + // REQUIRED; The authorization type for integration runtime sharing. + AuthorizationType *string + + // REQUIRED; The resource identifier of the integration runtime to be shared. + ResourceID *string + + // The credential reference containing authentication information. + Credential *CredentialReference +} + +// GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeRbacAuthorization. +func (l *LinkedIntegrationRuntimeRbacAuthorization) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType { + return &LinkedIntegrationRuntimeType{ + AuthorizationType: l.AuthorizationType, + } +} + +// LinkedIntegrationRuntimeRequest - Data factory name for linked integration runtime request. +type LinkedIntegrationRuntimeRequest struct { + // REQUIRED; The data factory name for linked integration runtime. + LinkedFactoryName *string +} + +// LinkedIntegrationRuntimeType - The base definition of a linked integration runtime. +type LinkedIntegrationRuntimeType struct { + // REQUIRED; The authorization type for integration runtime sharing. + AuthorizationType *string +} + +// GetLinkedIntegrationRuntimeType implements the LinkedIntegrationRuntimeTypeClassification interface for type LinkedIntegrationRuntimeType. +func (l *LinkedIntegrationRuntimeType) GetLinkedIntegrationRuntimeType() *LinkedIntegrationRuntimeType { + return l +} + +// 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 + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type LinkedService. @@ -16518,1336 +16881,1426 @@ func (l *LinkedService) GetLinkedService() *LinkedService { return l } // LinkedServiceDebugResource - Linked service debug resource. type LinkedServiceDebugResource struct { // REQUIRED; Properties of linked service. - Properties LinkedServiceClassification `json:"properties,omitempty"` + Properties LinkedServiceClassification // The resource name. - Name *string `json:"name,omitempty"` + Name *string } // LinkedServiceListResponse - A list of linked service resources. type LinkedServiceListResponse struct { // REQUIRED; List of linked services. - Value []*LinkedServiceResource `json:"value,omitempty"` + Value []*LinkedServiceResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // LinkedServiceReference - Linked service reference type. type LinkedServiceReference struct { // REQUIRED; Reference LinkedService name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Linked service reference type. - Type *LinkedServiceReferenceType `json:"type,omitempty"` + Type *LinkedServiceReferenceType // Arguments for LinkedService. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any } // LinkedServiceResource - Linked service resource type. type LinkedServiceResource struct { // REQUIRED; Properties of linked service. - Properties LinkedServiceClassification `json:"properties,omitempty"` + Properties LinkedServiceClassification // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate -// method. -type LinkedServicesClientCreateOrUpdateOptions struct { - // ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can - // be * for unconditional update. - IfMatch *string -} - -// LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. -type LinkedServicesClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. -type LinkedServicesClientGetOptions struct { - // ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if - // * was provided, then no content will be returned. - IfNoneMatch *string -} - -// LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.ListByFactory method. -type LinkedServicesClientListByFactoryOptions struct { - // placeholder for future optional parameters + Type *string } // LogLocationSettings - Log location settings. type LogLocationSettings struct { // REQUIRED; Log storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any } // LogSettings - Log settings. type LogSettings struct { // REQUIRED; Log location settings customer needs to provide when enabling log. - LogLocationSettings *LogLocationSettings `json:"logLocationSettings,omitempty"` + LogLocationSettings *LogLocationSettings // Specifies settings for copy activity log. - CopyActivityLogSettings *CopyActivityLogSettings `json:"copyActivityLogSettings,omitempty"` + CopyActivityLogSettings *CopyActivityLogSettings // Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean). - EnableCopyActivityLog interface{} `json:"enableCopyActivityLog,omitempty"` + EnableCopyActivityLog any } // LogStorageSettings - (Deprecated. Please use LogSettings) Log storage settings. type LogStorageSettings struct { // REQUIRED; Log storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). - EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` + EnableReliableLogging any // Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). - LogLevel interface{} `json:"logLevel,omitempty"` + LogLevel any // The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any } // LookupActivity - Lookup activity. type LookupActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Lookup activity properties. - TypeProperties *LookupActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *LookupActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type LookupActivity. func (l *LookupActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: l.AdditionalProperties, + DependsOn: l.DependsOn, + Description: l.Description, Name: l.Name, + OnInactiveMarkAs: l.OnInactiveMarkAs, + State: l.State, Type: l.Type, - Description: l.Description, - DependsOn: l.DependsOn, UserProperties: l.UserProperties, - AdditionalProperties: l.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type LookupActivity. func (l *LookupActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: l.AdditionalProperties, + DependsOn: l.DependsOn, + Description: l.Description, LinkedServiceName: l.LinkedServiceName, - Policy: l.Policy, Name: l.Name, + OnInactiveMarkAs: l.OnInactiveMarkAs, + Policy: l.Policy, + State: l.State, Type: l.Type, - Description: l.Description, - DependsOn: l.DependsOn, UserProperties: l.UserProperties, - AdditionalProperties: l.AdditionalProperties, } } // LookupActivityTypeProperties - Lookup activity properties. type LookupActivityTypeProperties struct { // REQUIRED; Lookup activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // REQUIRED; Dataset-specific source properties, same as copy activity source. - Source CopySourceClassification `json:"source,omitempty"` + Source CopySourceClassification // Whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). - FirstRowOnly interface{} `json:"firstRowOnly,omitempty"` + FirstRowOnly any } // MagentoLinkedService - Magento server linked service. type MagentoLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Magento server linked service properties. - TypeProperties *MagentoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MagentoLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MagentoLinkedService. func (m *MagentoLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MagentoLinkedServiceTypeProperties - Magento server linked service properties. type MagentoLinkedServiceTypeProperties struct { // REQUIRED; The URL of the Magento instance. (i.e. 192.168.222.110/magento3) - Host interface{} `json:"host,omitempty"` + Host any // The access token from Magento. - AccessToken SecretBaseClassification `json:"accessToken,omitempty"` + AccessToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // MagentoObjectDataset - Magento server dataset. type MagentoObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type MagentoObjectDataset. func (m *MagentoObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MagentoSource - A copy activity Magento server source. type MagentoSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MagentoSource. func (m *MagentoSource) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type MagentoSource. func (m *MagentoSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: m.QueryTimeout, AdditionalColumns: m.AdditionalColumns, - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, + QueryTimeout: m.QueryTimeout, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // ManagedIdentityCredential - Managed identity credential. type ManagedIdentityCredential struct { // REQUIRED; Type of credential. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Credential. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Credential description. - Description *string `json:"description,omitempty"` - - // Managed identity credential properties. - TypeProperties *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"` + Description *string } // GetCredential implements the CredentialClassification interface for type ManagedIdentityCredential. func (m *ManagedIdentityCredential) GetCredential() *Credential { return &Credential{ - Type: m.Type, - Description: m.Description, - Annotations: m.Annotations, AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, + Description: m.Description, + Type: m.Type, } } -// ManagedIdentityTypeProperties - Managed identity type properties. -type ManagedIdentityTypeProperties struct { - // The resource id of user assigned managed identity - ResourceID *string `json:"resourceId,omitempty"` -} - // ManagedIntegrationRuntime - Managed integration runtime, including managed elastic and managed dedicated integration runtimes. type ManagedIntegrationRuntime struct { // REQUIRED; Type of integration runtime. - Type *IntegrationRuntimeType `json:"type,omitempty"` + Type *IntegrationRuntimeType // REQUIRED; Managed integration runtime properties. - TypeProperties *ManagedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ManagedIntegrationRuntimeTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. - Description *string `json:"description,omitempty"` + Description *string // Managed Virtual Network reference. - ManagedVirtualNetwork *ManagedVirtualNetworkReference `json:"managedVirtualNetwork,omitempty"` + ManagedVirtualNetwork *ManagedVirtualNetworkReference // READ-ONLY; Integration runtime state, only valid for managed dedicated integration runtime. - State *IntegrationRuntimeState `json:"state,omitempty" azure:"ro"` + State *IntegrationRuntimeState } // GetIntegrationRuntime implements the IntegrationRuntimeClassification interface for type ManagedIntegrationRuntime. func (m *ManagedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime { return &IntegrationRuntime{ - Type: m.Type, - Description: m.Description, AdditionalProperties: m.AdditionalProperties, + Description: m.Description, + Type: m.Type, } } // ManagedIntegrationRuntimeError - Error definition for managed integration runtime. type ManagedIntegrationRuntimeError struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; Error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; Managed integration runtime error parameters. - Parameters []*string `json:"parameters,omitempty" azure:"ro"` + Parameters []*string // READ-ONLY; The time when the error occurred. - Time *time.Time `json:"time,omitempty" azure:"ro"` + Time *time.Time } // ManagedIntegrationRuntimeNode - Properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The errors that occurred on this integration runtime node. - Errors []*ManagedIntegrationRuntimeError `json:"errors,omitempty"` + Errors []*ManagedIntegrationRuntimeError // READ-ONLY; The managed integration runtime node id. - NodeID *string `json:"nodeId,omitempty" azure:"ro"` + NodeID *string // READ-ONLY; The managed integration runtime node status. - Status *ManagedIntegrationRuntimeNodeStatus `json:"status,omitempty" azure:"ro"` + Status *ManagedIntegrationRuntimeNodeStatus } // ManagedIntegrationRuntimeOperationResult - Properties of managed integration runtime operation result. type ManagedIntegrationRuntimeOperationResult struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The activity id for the operation request. - ActivityID *string `json:"activityId,omitempty" azure:"ro"` + ActivityID *string // READ-ONLY; The error code. - ErrorCode *string `json:"errorCode,omitempty" azure:"ro"` + ErrorCode *string // READ-ONLY; Managed integration runtime error parameters. - Parameters []*string `json:"parameters,omitempty" azure:"ro"` + Parameters []*string // READ-ONLY; The operation result. - Result *string `json:"result,omitempty" azure:"ro"` + Result *string // READ-ONLY; The start time of the operation. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time // READ-ONLY; The operation type. Could be start or stop. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ManagedIntegrationRuntimeStatus - Managed integration runtime status. type ManagedIntegrationRuntimeStatus struct { // REQUIRED; Type of integration runtime. - Type *IntegrationRuntimeType `json:"type,omitempty"` + Type *IntegrationRuntimeType // REQUIRED; Managed integration runtime status type properties. - TypeProperties *ManagedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ManagedIntegrationRuntimeStatusTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` + DataFactoryName *string // READ-ONLY; The state of integration runtime. - State *IntegrationRuntimeState `json:"state,omitempty" azure:"ro"` + State *IntegrationRuntimeState } // GetIntegrationRuntimeStatus implements the IntegrationRuntimeStatusClassification interface for type ManagedIntegrationRuntimeStatus. func (m *ManagedIntegrationRuntimeStatus) GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus { return &IntegrationRuntimeStatus{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, DataFactoryName: m.DataFactoryName, State: m.State, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. type ManagedIntegrationRuntimeStatusTypeProperties struct { // READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. - CreateTime *time.Time `json:"createTime,omitempty" azure:"ro"` + CreateTime *time.Time // READ-ONLY; The last operation result that occurred on this integration runtime. - LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty" azure:"ro"` + LastOperation *ManagedIntegrationRuntimeOperationResult // READ-ONLY; The list of nodes for managed integration runtime. - Nodes []*ManagedIntegrationRuntimeNode `json:"nodes,omitempty" azure:"ro"` + Nodes []*ManagedIntegrationRuntimeNode // READ-ONLY; The errors that occurred on this integration runtime. - OtherErrors []*ManagedIntegrationRuntimeError `json:"otherErrors,omitempty" azure:"ro"` + OtherErrors []*ManagedIntegrationRuntimeError } // ManagedIntegrationRuntimeTypeProperties - Managed integration runtime type properties. type ManagedIntegrationRuntimeTypeProperties struct { // The compute resource for managed integration runtime. - ComputeProperties *IntegrationRuntimeComputeProperties `json:"computeProperties,omitempty"` + ComputeProperties *IntegrationRuntimeComputeProperties // The name of virtual network to which Azure-SSIS integration runtime will join - CustomerVirtualNetwork *IntegrationRuntimeCustomerVirtualNetwork `json:"customerVirtualNetwork,omitempty"` + CustomerVirtualNetwork *IntegrationRuntimeCustomerVirtualNetwork // SSIS properties for managed integration runtime. - SsisProperties *IntegrationRuntimeSsisProperties `json:"ssisProperties,omitempty"` + SsisProperties *IntegrationRuntimeSsisProperties } // ManagedPrivateEndpoint - Properties of a managed private endpoint type ManagedPrivateEndpoint struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The managed private endpoint connection state - ConnectionState *ConnectionStateProperties `json:"connectionState,omitempty"` + ConnectionState *ConnectionStateProperties // Fully qualified domain names - Fqdns []*string `json:"fqdns,omitempty"` + Fqdns []*string // The groupId to which the managed private endpoint is created - GroupID *string `json:"groupId,omitempty"` + GroupID *string // The ARM resource ID of the resource to which the managed private endpoint is created - PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + PrivateLinkResourceID *string // READ-ONLY; Denotes whether the managed private endpoint is reserved - IsReserved *bool `json:"isReserved,omitempty" azure:"ro"` + IsReserved *bool // READ-ONLY; The managed private endpoint provisioning state - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // ManagedPrivateEndpointListResponse - A list of managed private endpoint resources. type ManagedPrivateEndpointListResponse struct { // REQUIRED; List of managed private endpoints. - Value []*ManagedPrivateEndpointResource `json:"value,omitempty"` + Value []*ManagedPrivateEndpointResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // ManagedPrivateEndpointResource - Managed private endpoint resource type. type ManagedPrivateEndpointResource struct { // REQUIRED; Managed private endpoint properties. - Properties *ManagedPrivateEndpoint `json:"properties,omitempty"` + Properties *ManagedPrivateEndpoint // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate -// method. -type ManagedPrivateEndpointsClientCreateOrUpdateOptions struct { - // ETag of the managed private endpoint entity. Should only be specified for update, for which it should match existing entity - // or can be * for unconditional update. - IfMatch *string -} - -// ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete -// method. -type ManagedPrivateEndpointsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get method. -type ManagedPrivateEndpointsClientGetOptions struct { - // ETag of the managed private endpoint entity. Should only be specified for get. If the ETag matches the existing entity - // tag, or if * was provided, then no content will be returned. - IfNoneMatch *string -} - -// ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.ListByFactory -// method. -type ManagedPrivateEndpointsClientListByFactoryOptions struct { - // placeholder for future optional parameters + Type *string } // ManagedVirtualNetwork - A managed Virtual Network associated with the Azure Data Factory type ManagedVirtualNetwork struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Managed Virtual Network alias. - Alias *string `json:"alias,omitempty" azure:"ro"` + Alias *string // READ-ONLY; Managed Virtual Network ID. - VNetID *string `json:"vNetId,omitempty" azure:"ro"` + VNetID *string } // ManagedVirtualNetworkListResponse - A list of managed Virtual Network resources. type ManagedVirtualNetworkListResponse struct { // REQUIRED; List of managed Virtual Networks. - Value []*ManagedVirtualNetworkResource `json:"value,omitempty"` + Value []*ManagedVirtualNetworkResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // ManagedVirtualNetworkReference - Managed Virtual Network reference type. type ManagedVirtualNetworkReference struct { // REQUIRED; Reference ManagedVirtualNetwork name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Managed Virtual Network reference type. - Type *ManagedVirtualNetworkReferenceType `json:"type,omitempty"` + Type *ManagedVirtualNetworkReferenceType } // ManagedVirtualNetworkResource - Managed Virtual Network resource type. type ManagedVirtualNetworkResource struct { // REQUIRED; Managed Virtual Network properties. - Properties *ManagedVirtualNetwork `json:"properties,omitempty"` + Properties *ManagedVirtualNetwork // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string +} + +// MapperAttributeMapping - Source and target column mapping details. +type MapperAttributeMapping struct { + // Reference of the source column used in the mapping. It is used for 'Direct' mapping type only. + AttributeReference *MapperAttributeReference + + // List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only. + AttributeReferences []*MapperAttributeReference + + // Expression used for 'Aggregate' and 'Derived' type mapping. + Expression *string + + // Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping. + FunctionName *string + + // Name of the target column. + Name *string + + // Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. + Type *MappingType +} + +// MapperAttributeMappings - Attribute mapping details. +type MapperAttributeMappings struct { + // List of attribute mappings. + AttributeMappings []*MapperAttributeMapping +} + +// MapperAttributeReference - Attribute reference details for the referred column. +type MapperAttributeReference struct { + // Name of the table. + Entity *string + + // The connection reference for the connection. + EntityConnectionReference *MapperConnectionReference + + // Name of the column. + Name *string +} + +// MapperConnection - Source connection details. +type MapperConnection struct { + // REQUIRED; Type of connection via linked service or dataset. + Type *ConnectionType + + // List of name/value pairs for connection properties. + CommonDslConnectorProperties []*MapperDslConnectorProperties + + // A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported. + IsInlineDataset *bool + + // Linked service reference. + LinkedService *LinkedServiceReference + + // Type of the linked service e.g.: AzureBlobFS. + LinkedServiceType *string +} + +// MapperConnectionReference - Source or target connection reference details. +type MapperConnectionReference struct { + // Name of the connection + ConnectionName *string + + // Type of connection via linked service or dataset. + Type *ConnectionType +} + +// MapperDslConnectorProperties - Connector properties of a CDC table in terms of name / value pairs. +type MapperDslConnectorProperties struct { + // Name of the property. + Name *string + + // Value of the property. + Value any +} + +// MapperPolicy - CDC Policy. +type MapperPolicy struct { + // Mode of running the CDC: batch vs continuous. + Mode *string + + // Defines the frequency and interval for running the CDC for batch mode. + Recurrence *MapperPolicyRecurrence +} + +// MapperPolicyRecurrence - CDC policy recurrence details. +type MapperPolicyRecurrence struct { + // Frequency of period in terms of 'Hour', 'Minute' or 'Second'. + Frequency *FrequencyType + + // Actual interval value as per chosen frequency. + Interval *int32 +} + +// MapperSourceConnectionsInfo - A object which contains list of tables and connection details for a source connection. +type MapperSourceConnectionsInfo struct { + // Source connection details. + Connection *MapperConnection + + // List of source tables for a source connection. + SourceEntities []*MapperTable } -// ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate -// method. -type ManagedVirtualNetworksClientCreateOrUpdateOptions struct { - // ETag of the managed Virtual Network entity. Should only be specified for update, for which it should match existing entity - // or can be * for unconditional update. - IfMatch *string +// MapperTable - CDC table details. +type MapperTable struct { + // Name of the table. + Name *string + + // Table properties. + Properties *MapperTableProperties +} + +// MapperTableProperties - Properties for a CDC table. +type MapperTableProperties struct { + // List of name/value pairs for connection properties. + DslConnectorProperties []*MapperDslConnectorProperties + + // List of columns for the source table. + Schema []*MapperTableSchema } -// ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get method. -type ManagedVirtualNetworksClientGetOptions struct { - // ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag matches the existing entity tag, - // or if * was provided, then no content will be returned. - IfNoneMatch *string +// MapperTableSchema - Schema of a CDC table in terms of column names and their corresponding data types. +type MapperTableSchema struct { + // Data type of the column. + DataType *string + + // Name of the column. + Name *string } -// ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.ListByFactory -// method. -type ManagedVirtualNetworksClientListByFactoryOptions struct { - // placeholder for future optional parameters +// MapperTargetConnectionsInfo - A object which contains list of tables and connection details for a target connection. +type MapperTargetConnectionsInfo struct { + // Source connection details. + Connection *MapperConnection + + // List of table mappings. + DataMapperMappings []*DataMapperMapping + + // List of relationship info among the tables. + Relationships []any + + // List of source tables for a target connection. + TargetEntities []*MapperTable } // MappingDataFlow - Mapping data flow. type MappingDataFlow struct { // REQUIRED; Type of data flow. - Type *string `json:"type,omitempty"` + Type *string // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The description of the data flow. - Description *string `json:"description,omitempty"` + Description *string // The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` + Folder *DataFlowFolder // Mapping data flow type properties. - TypeProperties *MappingDataFlowTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MappingDataFlowTypeProperties } // GetDataFlow implements the DataFlowClassification interface for type MappingDataFlow. func (m *MappingDataFlow) GetDataFlow() *DataFlow { return &DataFlow{ - Type: m.Type, - Description: m.Description, Annotations: m.Annotations, + Description: m.Description, Folder: m.Folder, + Type: m.Type, } } // MappingDataFlowTypeProperties - Mapping data flow type properties. type MappingDataFlowTypeProperties struct { // DataFlow script. - Script *string `json:"script,omitempty"` + Script *string // Data flow script lines. - ScriptLines []*string `json:"scriptLines,omitempty"` + ScriptLines []*string // List of sinks in data flow. - Sinks []*DataFlowSink `json:"sinks,omitempty"` + Sinks []*DataFlowSink // List of sources in data flow. - Sources []*DataFlowSource `json:"sources,omitempty"` + Sources []*DataFlowSource // List of transformations in data flow. - Transformations []*Transformation `json:"transformations,omitempty"` + Transformations []*Transformation } // MariaDBLinkedService - MariaDB server linked service. type MariaDBLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MariaDB server linked service properties. - TypeProperties *MariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MariaDBLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MariaDBLinkedService. func (m *MariaDBLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MariaDBLinkedServiceTypeProperties - MariaDB server linked service properties. type MariaDBLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any + + // Database name for connection. Type: string. + Database any + + // The version of the MariaDB driver. Type: string. V1 or empty for legacy driver, V2 for new driver. V1 can support connection + // string and property bag, V2 can only support connection string. + DriverVersion any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + Password *AzureKeyVaultSecretReference + + // The port for the connection. Type: integer. + Port any + + // Server name for connection. Type: string. + Server any + + // Username for authentication. Type: string. + Username any } // MariaDBSource - A copy activity MariaDB server source. type MariaDBSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MariaDBSource. func (m *MariaDBSource) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type MariaDBSource. func (m *MariaDBSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: m.QueryTimeout, AdditionalColumns: m.AdditionalColumns, - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, + QueryTimeout: m.QueryTimeout, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MariaDBTableDataset - MariaDB server dataset. type MariaDBTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type MariaDBTableDataset. func (m *MariaDBTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MarketoLinkedService - Marketo server linked service. type MarketoLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Marketo server linked service properties. - TypeProperties *MarketoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MarketoLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MarketoLinkedService. func (m *MarketoLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MarketoLinkedServiceTypeProperties - Marketo server linked service properties. type MarketoLinkedServiceTypeProperties struct { // REQUIRED; The client Id of your Marketo service. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // REQUIRED; The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // The client secret of your Marketo service. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // MarketoObjectDataset - Marketo server dataset. type MarketoObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type MarketoObjectDataset. func (m *MarketoObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MarketoSource - A copy activity Marketo server source. type MarketoSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MarketoSource. func (m *MarketoSource) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type MarketoSource. func (m *MarketoSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: m.QueryTimeout, AdditionalColumns: m.AdditionalColumns, - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, + QueryTimeout: m.QueryTimeout, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MetadataItem - Specify the name and value of custom metadata item. type MetadataItem struct { // Metadata item key name. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` + Name any // Metadata item value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any } // MicrosoftAccessLinkedService - Microsoft Access linked service. type MicrosoftAccessLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Microsoft Access linked service properties. - TypeProperties *MicrosoftAccessLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MicrosoftAccessLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MicrosoftAccessLinkedService. func (m *MicrosoftAccessLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MicrosoftAccessLinkedServiceTypeProperties - Microsoft Access linked service properties. type MicrosoftAccessLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: - // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + // string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType + // string. + ConnectionString any // Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. // Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // The access credential portion of the connection string specified in driver-specific property-value format. - Credential SecretBaseClassification `json:"credential,omitempty"` + Credential SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for Basic authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // MicrosoftAccessSink - A copy activity Microsoft Access sink. type MicrosoftAccessSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type MicrosoftAccessSink. func (m *MicrosoftAccessSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, + SinkRetryCount: m.SinkRetryCount, + SinkRetryWait: m.SinkRetryWait, Type: m.Type, WriteBatchSize: m.WriteBatchSize, WriteBatchTimeout: m.WriteBatchTimeout, - SinkRetryCount: m.SinkRetryCount, - SinkRetryWait: m.SinkRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, } } // MicrosoftAccessSource - A copy activity source for Microsoft Access. type MicrosoftAccessSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MicrosoftAccessSource. func (m *MicrosoftAccessSource) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MicrosoftAccessTableDataset - The Microsoft Access table dataset. type MicrosoftAccessTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Microsoft Access table dataset properties. - TypeProperties *MicrosoftAccessTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MicrosoftAccessTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type MicrosoftAccessTableDataset. func (m *MicrosoftAccessTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MicrosoftAccessTableDatasetTypeProperties - Microsoft Access table dataset properties. type MicrosoftAccessTableDatasetTypeProperties struct { // The Microsoft Access table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // MongoDbAtlasCollectionDataset - The MongoDB Atlas database dataset. type MongoDbAtlasCollectionDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MongoDB Atlas database dataset properties. - TypeProperties *MongoDbAtlasCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MongoDbAtlasCollectionDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type MongoDbAtlasCollectionDataset. func (m *MongoDbAtlasCollectionDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MongoDbAtlasCollectionDatasetTypeProperties - MongoDB Atlas database dataset properties. type MongoDbAtlasCollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the MongoDB Atlas database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` + Collection any } // MongoDbAtlasLinkedService - Linked service for MongoDB Atlas data source. type MongoDbAtlasLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MongoDB Atlas linked service properties. - TypeProperties *MongoDbAtlasLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MongoDbAtlasLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MongoDbAtlasLinkedService. func (m *MongoDbAtlasLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } @@ -17855,389 +18308,392 @@ func (m *MongoDbAtlasLinkedService) GetLinkedService() *LinkedService { type MongoDbAtlasLinkedServiceTypeProperties struct { // REQUIRED; The MongoDB Atlas connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, // SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // REQUIRED; The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any + + // The driver version that you want to choose. Allowed value are v1 and v2. Type: string (or Expression with resultType string). + DriverVersion any } // MongoDbAtlasSink - A copy activity MongoDB Atlas sink. type MongoDbAtlasSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type MongoDbAtlasSink. func (m *MongoDbAtlasSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, + SinkRetryCount: m.SinkRetryCount, + SinkRetryWait: m.SinkRetryWait, Type: m.Type, WriteBatchSize: m.WriteBatchSize, WriteBatchTimeout: m.WriteBatchTimeout, - SinkRetryCount: m.SinkRetryCount, - SinkRetryWait: m.SinkRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, } } // MongoDbAtlasSource - A copy activity source for a MongoDB Atlas database. type MongoDbAtlasSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the number of documents to return in each batch of the response from MongoDB Atlas instance. In most cases, modifying // the batch size will not affect the user or the application. This // property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any // Cursor methods for Mongodb query - CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` + CursorMethods *MongoDbCursorMethodsProperties // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). - Filter interface{} `json:"filter,omitempty"` + Filter any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MongoDbAtlasSource. func (m *MongoDbAtlasSource) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MongoDbCollectionDataset - The MongoDB database dataset. type MongoDbCollectionDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MongoDB database dataset properties. - TypeProperties *MongoDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MongoDbCollectionDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type MongoDbCollectionDataset. func (m *MongoDbCollectionDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MongoDbCollectionDatasetTypeProperties - MongoDB database dataset properties. type MongoDbCollectionDatasetTypeProperties struct { // REQUIRED; The table name of the MongoDB database. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` + CollectionName any } // MongoDbCursorMethodsProperties - Cursor methods for Mongodb query type MongoDbCursorMethodsProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT statement in a SQL database. // Type: integer (or Expression with resultType integer). - Limit interface{} `json:"limit,omitempty"` + Limit any // Specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, // omit this parameter. Type: string (or Expression with resultType string). - Project interface{} `json:"project,omitempty"` + Project any // Specifies the how many documents skipped and where MongoDB begins returning results. This approach may be useful in implementing // paginated results. Type: integer (or Expression with resultType // integer). - Skip interface{} `json:"skip,omitempty"` + Skip any // Specifies the order in which the query returns matching documents. Type: string (or Expression with resultType string). // Type: string (or Expression with resultType string). - Sort interface{} `json:"sort,omitempty"` + Sort any } // MongoDbLinkedService - Linked service for MongoDb data source. type MongoDbLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MongoDB linked service properties. - TypeProperties *MongoDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MongoDbLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MongoDbLinkedService. func (m *MongoDbLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MongoDbLinkedServiceTypeProperties - MongoDB linked service properties. type MongoDbLinkedServiceTypeProperties struct { // REQUIRED; The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). - DatabaseName interface{} `json:"databaseName,omitempty"` + DatabaseName any // REQUIRED; The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any // Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression // with resultType boolean). - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any // Database to verify the username and password. Type: string (or Expression with resultType string). - AuthSource interface{} `json:"authSource,omitempty"` + AuthSource any // The authentication type to be used to connect to the MongoDB database. - AuthenticationType *MongoDbAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *MongoDbAuthenticationType // Specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or // Expression with resultType boolean). - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer // (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // MongoDbSource - A copy activity source for a MongoDB database. type MongoDbSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MongoDbSource. func (m *MongoDbSource) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MongoDbV2CollectionDataset - The MongoDB database dataset. type MongoDbV2CollectionDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MongoDB database dataset properties. - TypeProperties *MongoDbV2CollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MongoDbV2CollectionDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type MongoDbV2CollectionDataset. func (m *MongoDbV2CollectionDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MongoDbV2CollectionDatasetTypeProperties - MongoDB database dataset properties. type MongoDbV2CollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the MongoDB database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` + Collection any } // MongoDbV2LinkedService - Linked service for MongoDB data source. type MongoDbV2LinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MongoDB linked service properties. - TypeProperties *MongoDbV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MongoDbV2LinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MongoDbV2LinkedService. func (m *MongoDbV2LinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } @@ -18245,139 +18701,129 @@ func (m *MongoDbV2LinkedService) GetLinkedService() *LinkedService { type MongoDbV2LinkedServiceTypeProperties struct { // REQUIRED; The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString // or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // REQUIRED; The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any } // MongoDbV2Sink - A copy activity MongoDB sink. type MongoDbV2Sink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type MongoDbV2Sink. func (m *MongoDbV2Sink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, + SinkRetryCount: m.SinkRetryCount, + SinkRetryWait: m.SinkRetryWait, Type: m.Type, WriteBatchSize: m.WriteBatchSize, WriteBatchTimeout: m.WriteBatchTimeout, - SinkRetryCount: m.SinkRetryCount, - SinkRetryWait: m.SinkRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, } } // MongoDbV2Source - A copy activity source for a MongoDB database. type MongoDbV2Source struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying // the batch size will not affect the user or the application. This property's // main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any // Cursor methods for Mongodb query - CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` + CursorMethods *MongoDbCursorMethodsProperties // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). - Filter interface{} `json:"filter,omitempty"` + Filter any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MongoDbV2Source. func (m *MongoDbV2Source) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } -// MultiplePipelineTriggerClassification provides polymorphic access to related types. -// Call the interface's GetMultiplePipelineTrigger() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *BlobEventsTrigger, *BlobTrigger, *CustomEventsTrigger, *MultiplePipelineTrigger, *ScheduleTrigger -type MultiplePipelineTriggerClassification interface { - TriggerClassification - // GetMultiplePipelineTrigger returns the MultiplePipelineTrigger content of the underlying type. - GetMultiplePipelineTrigger() *MultiplePipelineTrigger -} - // MultiplePipelineTrigger - Base class for all triggers that support one to many model for trigger to pipeline. type MultiplePipelineTrigger struct { // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // Pipelines that need to be started. - Pipelines []*TriggerPipelineReference `json:"pipelines,omitempty"` + Pipelines []*TriggerPipelineReference // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type MultiplePipelineTrigger. @@ -18386,1103 +18832,1122 @@ func (m *MultiplePipelineTrigger) GetMultiplePipelineTrigger() *MultiplePipeline // GetTrigger implements the TriggerClassification interface for type MultiplePipelineTrigger. func (m *MultiplePipelineTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, RuntimeState: m.RuntimeState, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MySQLLinkedService - Linked service for MySQL data source. type MySQLLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; MySQL linked service properties. - TypeProperties *MySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MySQLLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type MySQLLinkedService. func (m *MySQLLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, ConnectVia: m.ConnectVia, Description: m.Description, Parameters: m.Parameters, - Annotations: m.Annotations, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MySQLLinkedServiceTypeProperties - MySQL linked service properties. type MySQLLinkedServiceTypeProperties struct { - // REQUIRED; The connection string. - ConnectionString interface{} `json:"connectionString,omitempty"` + // The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString any + + // Database name for connection. Type: string. + Database any + + // The version of the MySQL driver. Type: string. V1 or empty for legacy driver, V2 for new driver. V1 can support connection + // string and property bag, V2 can only support connection string. + DriverVersion any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference + + // The port for the connection. Type: integer. + Port any + + // SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require, 3: verify-ca, 4: verify-full. + SSLMode any + + // Server name for connection. Type: string. + Server any + + // Use system trust store for connection. Type: integer. 0: enable, 1: disable. + UseSystemTrustStore any + + // Username for authentication. Type: string. + Username any } // MySQLSource - A copy activity source for MySQL databases. type MySQLSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type MySQLSource. func (m *MySQLSource) GetCopySource() *CopySource { return &CopySource{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type MySQLSource. func (m *MySQLSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: m.QueryTimeout, AdditionalColumns: m.AdditionalColumns, - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + DisableMetricsCollection: m.DisableMetricsCollection, + MaxConcurrentConnections: m.MaxConcurrentConnections, + QueryTimeout: m.QueryTimeout, SourceRetryCount: m.SourceRetryCount, SourceRetryWait: m.SourceRetryWait, - MaxConcurrentConnections: m.MaxConcurrentConnections, - DisableMetricsCollection: m.DisableMetricsCollection, - AdditionalProperties: m.AdditionalProperties, + Type: m.Type, } } // MySQLTableDataset - The MySQL table dataset. type MySQLTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // MySQL table dataset properties. - TypeProperties *MySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *MySQLTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type MySQLTableDataset. func (m *MySQLTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: m.Type, + AdditionalProperties: m.AdditionalProperties, + Annotations: m.Annotations, Description: m.Description, - Structure: m.Structure, - Schema: m.Schema, + Folder: m.Folder, LinkedServiceName: m.LinkedServiceName, Parameters: m.Parameters, - Annotations: m.Annotations, - Folder: m.Folder, - AdditionalProperties: m.AdditionalProperties, + Schema: m.Schema, + Structure: m.Structure, + Type: m.Type, } } // MySQLTableDatasetTypeProperties - MySql table dataset properties. type MySQLTableDatasetTypeProperties struct { // The MySQL table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // NetezzaLinkedService - Netezza linked service. type NetezzaLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Netezza linked service properties. - TypeProperties *NetezzaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *NetezzaLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type NetezzaLinkedService. func (n *NetezzaLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: n.Type, + AdditionalProperties: n.AdditionalProperties, + Annotations: n.Annotations, ConnectVia: n.ConnectVia, Description: n.Description, Parameters: n.Parameters, - Annotations: n.Annotations, - AdditionalProperties: n.AdditionalProperties, + Type: n.Type, } } // NetezzaLinkedServiceTypeProperties - Netezza linked service properties. type NetezzaLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + Pwd *AzureKeyVaultSecretReference } // NetezzaPartitionSettings - The settings that will be leveraged for Netezza source partitioning. type NetezzaPartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any } // NetezzaSource - A copy activity Netezza source. type NetezzaSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for Netezza read in parallel. Possible values include: "None", "DataSlice", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any // The settings that will be leveraged for Netezza source partitioning. - PartitionSettings *NetezzaPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *NetezzaPartitionSettings // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type NetezzaSource. func (n *NetezzaSource) GetCopySource() *CopySource { return &CopySource{ - Type: n.Type, + AdditionalProperties: n.AdditionalProperties, + DisableMetricsCollection: n.DisableMetricsCollection, + MaxConcurrentConnections: n.MaxConcurrentConnections, SourceRetryCount: n.SourceRetryCount, SourceRetryWait: n.SourceRetryWait, - MaxConcurrentConnections: n.MaxConcurrentConnections, - DisableMetricsCollection: n.DisableMetricsCollection, - AdditionalProperties: n.AdditionalProperties, + Type: n.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type NetezzaSource. func (n *NetezzaSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: n.QueryTimeout, AdditionalColumns: n.AdditionalColumns, - Type: n.Type, + AdditionalProperties: n.AdditionalProperties, + DisableMetricsCollection: n.DisableMetricsCollection, + MaxConcurrentConnections: n.MaxConcurrentConnections, + QueryTimeout: n.QueryTimeout, SourceRetryCount: n.SourceRetryCount, SourceRetryWait: n.SourceRetryWait, - MaxConcurrentConnections: n.MaxConcurrentConnections, - DisableMetricsCollection: n.DisableMetricsCollection, - AdditionalProperties: n.AdditionalProperties, + Type: n.Type, } } // NetezzaTableDataset - Netezza dataset. type NetezzaTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *NetezzaTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *NetezzaTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type NetezzaTableDataset. func (n *NetezzaTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: n.Type, + AdditionalProperties: n.AdditionalProperties, + Annotations: n.Annotations, Description: n.Description, - Structure: n.Structure, - Schema: n.Schema, + Folder: n.Folder, LinkedServiceName: n.LinkedServiceName, Parameters: n.Parameters, - Annotations: n.Annotations, - Folder: n.Folder, - AdditionalProperties: n.AdditionalProperties, + Schema: n.Schema, + Structure: n.Structure, + Type: n.Type, } } // NetezzaTableDatasetTypeProperties - Netezza dataset properties. type NetezzaTableDatasetTypeProperties struct { // The schema name of the Netezza. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Netezza. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // NotebookParameter - Notebook parameter. type NotebookParameter struct { // Notebook parameter type. - Type *NotebookParameterType `json:"type,omitempty"` + Type *NotebookParameterType // Notebook parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any } // ODataLinkedService - Open Data Protocol (OData) linked service. type ODataLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; OData linked service properties. - TypeProperties *ODataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ODataLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ODataLinkedService. func (o *ODataLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, ConnectVia: o.ConnectVia, Description: o.Description, Parameters: o.Parameters, - Annotations: o.Annotations, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // ODataLinkedServiceTypeProperties - OData linked service properties. type ODataLinkedServiceTypeProperties struct { // REQUIRED; The URL of the OData service endpoint. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any // Specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). - AADResourceID interface{} `json:"aadResourceId,omitempty"` + AADResourceID any // Specify the credential type (key or cert) is used for service principal. - AADServicePrincipalCredentialType *ODataAADServicePrincipalCredentialType `json:"aadServicePrincipalCredentialType,omitempty"` + AADServicePrincipalCredentialType *ODataAADServicePrincipalCredentialType - // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType - // object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` + // The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be + // string type). + AuthHeaders any // Type of authentication used to connect to the OData service. - AuthenticationType *ODataAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *ODataAuthenticationType // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password of the OData service. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression // with resultType string). - ServicePrincipalEmbeddedCert SecretBaseClassification `json:"servicePrincipalEmbeddedCert,omitempty"` + ServicePrincipalEmbeddedCert SecretBaseClassification // Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. // Type: string (or Expression with resultType string). - ServicePrincipalEmbeddedCertPassword SecretBaseClassification `json:"servicePrincipalEmbeddedCertPassword,omitempty"` + ServicePrincipalEmbeddedCertPassword SecretBaseClassification // Specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType // string). - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // Specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression // with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any // User name of the OData service. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // ODataResourceDataset - The Open Data Protocol (OData) resource dataset. type ODataResourceDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // OData dataset properties. - TypeProperties *ODataResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ODataResourceDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ODataResourceDataset. func (o *ODataResourceDataset) GetDataset() *Dataset { return &Dataset{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, Description: o.Description, - Structure: o.Structure, - Schema: o.Schema, + Folder: o.Folder, LinkedServiceName: o.LinkedServiceName, Parameters: o.Parameters, - Annotations: o.Annotations, - Folder: o.Folder, - AdditionalProperties: o.AdditionalProperties, + Schema: o.Schema, + Structure: o.Structure, + Type: o.Type, } } // ODataResourceDatasetTypeProperties - OData dataset properties. type ODataResourceDatasetTypeProperties struct { // The OData resource path. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any } // ODataSource - A copy activity source for OData source. type ODataSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type ODataSource. func (o *ODataSource) GetCopySource() *CopySource { return &CopySource{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OdbcLinkedService - Open Database Connectivity (ODBC) linked service. type OdbcLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; ODBC linked service properties. - TypeProperties *OdbcLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *OdbcLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type OdbcLinkedService. func (o *OdbcLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, ConnectVia: o.ConnectVia, Description: o.Description, Parameters: o.Parameters, - Annotations: o.Annotations, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OdbcLinkedServiceTypeProperties - ODBC linked service properties. type OdbcLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: - // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + // string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType + // string. + ConnectionString any // Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or // Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any // The access credential portion of the connection string specified in driver-specific property-value format. - Credential SecretBaseClassification `json:"credential,omitempty"` + Credential SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for Basic authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // OdbcSink - A copy activity ODBC sink. type OdbcSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type OdbcSink. func (o *OdbcSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, + SinkRetryCount: o.SinkRetryCount, + SinkRetryWait: o.SinkRetryWait, Type: o.Type, WriteBatchSize: o.WriteBatchSize, WriteBatchTimeout: o.WriteBatchTimeout, - SinkRetryCount: o.SinkRetryCount, - SinkRetryWait: o.SinkRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, } } // OdbcSource - A copy activity source for ODBC databases. type OdbcSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type OdbcSource. func (o *OdbcSource) GetCopySource() *CopySource { return &CopySource{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type OdbcSource. func (o *OdbcSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: o.QueryTimeout, AdditionalColumns: o.AdditionalColumns, - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, + QueryTimeout: o.QueryTimeout, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OdbcTableDataset - The ODBC table dataset. type OdbcTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // ODBC table dataset properties. - TypeProperties *OdbcTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *OdbcTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type OdbcTableDataset. func (o *OdbcTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, Description: o.Description, - Structure: o.Structure, - Schema: o.Schema, + Folder: o.Folder, LinkedServiceName: o.LinkedServiceName, Parameters: o.Parameters, - Annotations: o.Annotations, - Folder: o.Folder, - AdditionalProperties: o.AdditionalProperties, + Schema: o.Schema, + Structure: o.Structure, + Type: o.Type, } } // OdbcTableDatasetTypeProperties - ODBC table dataset properties. type OdbcTableDatasetTypeProperties struct { // The ODBC table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // Office365Dataset - The Office365 account. type Office365Dataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Office365 dataset properties. - TypeProperties *Office365DatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *Office365DatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type Office365Dataset. func (o *Office365Dataset) GetDataset() *Dataset { return &Dataset{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, Description: o.Description, - Structure: o.Structure, - Schema: o.Schema, + Folder: o.Folder, LinkedServiceName: o.LinkedServiceName, Parameters: o.Parameters, - Annotations: o.Annotations, - Folder: o.Folder, - AdditionalProperties: o.AdditionalProperties, + Schema: o.Schema, + Structure: o.Structure, + Type: o.Type, } } // Office365DatasetTypeProperties - Office365 dataset properties. type Office365DatasetTypeProperties struct { // REQUIRED; Name of the dataset to extract from Office 365. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any // A predicate expression that can be used to filter the specific rows to extract from Office 365. Type: string (or Expression // with resultType string). - Predicate interface{} `json:"predicate,omitempty"` + Predicate any } // Office365LinkedService - Office365 linked service. type Office365LinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Office365 linked service properties. - TypeProperties *Office365LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *Office365LinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type Office365LinkedService. func (o *Office365LinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, ConnectVia: o.ConnectVia, Description: o.Description, Parameters: o.Parameters, - Annotations: o.Annotations, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // Office365LinkedServiceTypeProperties - Office365 linked service properties. type Office365LinkedServiceTypeProperties struct { // REQUIRED; Azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). - Office365TenantID interface{} `json:"office365TenantId,omitempty"` + Office365TenantID any // REQUIRED; Specify the application's client ID. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // REQUIRED; Specify the application's key. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // REQUIRED; Specify the tenant information under which your Azure AD web application resides. Type: string (or Expression // with resultType string). - ServicePrincipalTenantID interface{} `json:"servicePrincipalTenantId,omitempty"` + ServicePrincipalTenantID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // Office365Source - A copy activity source for an Office 365 service. type Office365Source struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The groups containing all the users. Type: array of strings (or Expression with resultType array of strings). - AllowedGroups interface{} `json:"allowedGroups,omitempty"` + AllowedGroups any // The Column to apply the and . Type: string (or Expression with resultType string). - DateFilterColumn interface{} `json:"dateFilterColumn,omitempty"` + DateFilterColumn any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // End time of the requested range for this dataset. Type: string (or Expression with resultType string). - EndTime interface{} `json:"endTime,omitempty"` + EndTime any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The columns to be read out from the Office 365 table. Type: array of objects (or Expression with resultType array of objects). - // Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ] - OutputColumns interface{} `json:"outputColumns,omitempty"` + // itemType: OutputColumn. Example: [ { "name": "Id" }, { "name": + // "CreatedDateTime" } ] + OutputColumns any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Start time of the requested range for this dataset. Type: string (or Expression with resultType string). - StartTime interface{} `json:"startTime,omitempty"` + StartTime any // The user scope uri. Type: string (or Expression with resultType string). - UserScopeFilterURI interface{} `json:"userScopeFilterUri,omitempty"` + UserScopeFilterURI any } // GetCopySource implements the CopySourceClassification interface for type Office365Source. func (o *Office365Source) GetCopySource() *CopySource { return &CopySource{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // Operation - Azure Data Factory API operation definition. type Operation struct { // Metadata associated with the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string // The intended executor of the operation. - Origin *string `json:"origin,omitempty"` + Origin *string // Additional details about the operation. - Properties *OperationProperties `json:"properties,omitempty"` + Properties *OperationProperties } // OperationDisplay - Metadata associated with the operation. type OperationDisplay struct { // The description of the operation. - Description *string `json:"description,omitempty"` + Description *string // The type of operation: get, read, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // The name of the provider. - Provider *string `json:"provider,omitempty"` + Provider *string // The name of the resource type on which the operation is performed. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResponse - A list of operations that can be performed by the Data Factory service. type OperationListResponse struct { // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of Data Factory operations supported by the Data Factory resource provider. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // OperationLogSpecification - Details about an operation related to logs. type OperationLogSpecification struct { // Blobs created in the customer storage account, per hour. - BlobDuration *string `json:"blobDuration,omitempty"` + BlobDuration *string // Localized display name. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The name of the log category. - Name *string `json:"name,omitempty"` + Name *string } // OperationMetricAvailability - Defines how often data for a metric becomes available. type OperationMetricAvailability struct { // Blob created in the customer storage account, per hour. - BlobDuration *string `json:"blobDuration,omitempty"` + BlobDuration *string // The granularity for the metric. - TimeGrain *string `json:"timeGrain,omitempty"` + TimeGrain *string } // OperationMetricDimension - Defines the metric dimension. type OperationMetricDimension struct { // The display name of the metric dimension. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The name of the dimension for the metric. - Name *string `json:"name,omitempty"` + Name *string // Whether the dimension should be exported to Azure Monitor. - ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` + ToBeExportedForShoebox *bool } // OperationMetricSpecification - Details about an operation related to metrics. type OperationMetricSpecification struct { // The type of metric aggregation. - AggregationType *string `json:"aggregationType,omitempty"` + AggregationType *string // Defines how often data for metrics becomes available. - Availabilities []*OperationMetricAvailability `json:"availabilities,omitempty"` + Availabilities []*OperationMetricAvailability // Defines the metric dimension. - Dimensions []*OperationMetricDimension `json:"dimensions,omitempty"` + Dimensions []*OperationMetricDimension // The description of the metric. - DisplayDescription *string `json:"displayDescription,omitempty"` + DisplayDescription *string // Localized display name of the metric. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Whether or not the service is using regional MDM accounts. - EnableRegionalMdmAccount *string `json:"enableRegionalMdmAccount,omitempty"` + EnableRegionalMdmAccount *string // The name of the metric. - Name *string `json:"name,omitempty"` + Name *string // The name of the MDM account. - SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + SourceMdmAccount *string // The name of the MDM namespace. - SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + SourceMdmNamespace *string // The unit that the metric is measured in. - Unit *string `json:"unit,omitempty"` + Unit *string } // OperationProperties - Additional details about an operation. type OperationProperties struct { // Details about a service operation. - ServiceSpecification *OperationServiceSpecification `json:"serviceSpecification,omitempty"` + ServiceSpecification *OperationServiceSpecification } // OperationServiceSpecification - Details about a service operation. type OperationServiceSpecification struct { // Details about operations related to logs. - LogSpecifications []*OperationLogSpecification `json:"logSpecifications,omitempty"` + LogSpecifications []*OperationLogSpecification // Details about operations related to metrics. - MetricSpecifications []*OperationMetricSpecification `json:"metricSpecifications,omitempty"` -} - -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -type OperationsClientListOptions struct { - // placeholder for future optional parameters + MetricSpecifications []*OperationMetricSpecification } // OracleCloudStorageLinkedService - Linked service for Oracle Cloud Storage. type OracleCloudStorageLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Oracle Cloud Storage linked service properties. - TypeProperties *OracleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *OracleCloudStorageLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type OracleCloudStorageLinkedService. func (o *OracleCloudStorageLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, ConnectVia: o.ConnectVia, Description: o.Description, Parameters: o.Parameters, - Annotations: o.Annotations, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } @@ -19490,2371 +19955,2536 @@ func (o *OracleCloudStorageLinkedService) GetLinkedService() *LinkedService { type OracleCloudStorageLinkedServiceTypeProperties struct { // The access key identifier of the Oracle Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user. - SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` + SecretAccessKey SecretBaseClassification // This value specifies the endpoint to access with the Oracle Cloud Storage Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + ServiceURL any } // OracleCloudStorageLocation - The location of Oracle Cloud Storage dataset. type OracleCloudStorageLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any // Specify the version of Oracle Cloud Storage. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any } // GetDatasetLocation implements the DatasetLocationClassification interface for type OracleCloudStorageLocation. func (o *OracleCloudStorageLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: o.Type, - FolderPath: o.FolderPath, - FileName: o.FileName, AdditionalProperties: o.AdditionalProperties, + FileName: o.FileName, + FolderPath: o.FolderPath, + Type: o.Type, } } // OracleCloudStorageReadSettings - Oracle Cloud Storage read settings. type OracleCloudStorageReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Oracle Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type OracleCloudStorageReadSettings. func (o *OracleCloudStorageReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: o.Type, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, + Type: o.Type, } } // OracleLinkedService - Oracle database. type OracleLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Oracle database linked service properties. - TypeProperties *OracleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *OracleLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type OracleLinkedService. func (o *OracleLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, ConnectVia: o.ConnectVia, Description: o.Description, Parameters: o.Parameters, - Annotations: o.Annotations, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OracleLinkedServiceTypeProperties - Oracle database linked service properties. type OracleLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference } // OraclePartitionSettings - The settings that will be leveraged for Oracle source partitioning. type OraclePartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any // Names of the physical partitions of Oracle table. - PartitionNames interface{} `json:"partitionNames,omitempty"` + PartitionNames any // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any } // OracleServiceCloudLinkedService - Oracle Service Cloud linked service. type OracleServiceCloudLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Oracle Service Cloud linked service properties. - TypeProperties *OracleServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *OracleServiceCloudLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type OracleServiceCloudLinkedService. func (o *OracleServiceCloudLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, ConnectVia: o.ConnectVia, Description: o.Description, Parameters: o.Parameters, - Annotations: o.Annotations, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OracleServiceCloudLinkedServiceTypeProperties - Oracle Service Cloud linked service properties. type OracleServiceCloudLinkedServiceTypeProperties struct { // REQUIRED; The URL of the Oracle Service Cloud instance. - Host interface{} `json:"host,omitempty"` + Host any // REQUIRED; The password corresponding to the user name that you provided in the username key. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // REQUIRED; The user name that you use to access Oracle Service Cloud server. - Username interface{} `json:"username,omitempty"` + Username any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // OracleServiceCloudObjectDataset - Oracle Service Cloud dataset. type OracleServiceCloudObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type OracleServiceCloudObjectDataset. func (o *OracleServiceCloudObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, Description: o.Description, - Structure: o.Structure, - Schema: o.Schema, + Folder: o.Folder, LinkedServiceName: o.LinkedServiceName, Parameters: o.Parameters, - Annotations: o.Annotations, - Folder: o.Folder, - AdditionalProperties: o.AdditionalProperties, + Schema: o.Schema, + Structure: o.Structure, + Type: o.Type, } } // OracleServiceCloudSource - A copy activity Oracle Service Cloud source. type OracleServiceCloudSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type OracleServiceCloudSource. func (o *OracleServiceCloudSource) GetCopySource() *CopySource { return &CopySource{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type OracleServiceCloudSource. func (o *OracleServiceCloudSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: o.QueryTimeout, AdditionalColumns: o.AdditionalColumns, - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, + QueryTimeout: o.QueryTimeout, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OracleSink - A copy activity Oracle sink. type OracleSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type OracleSink. func (o *OracleSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, + SinkRetryCount: o.SinkRetryCount, + SinkRetryWait: o.SinkRetryWait, Type: o.Type, WriteBatchSize: o.WriteBatchSize, WriteBatchTimeout: o.WriteBatchTimeout, - SinkRetryCount: o.SinkRetryCount, - SinkRetryWait: o.SinkRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, } } // OracleSource - A copy activity Oracle source. type OracleSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Oracle reader query. Type: string (or Expression with resultType string). - OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` + OracleReaderQuery any // The partition mechanism that will be used for Oracle read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any // The settings that will be leveraged for Oracle source partitioning. - PartitionSettings *OraclePartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *OraclePartitionSettings // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type OracleSource. func (o *OracleSource) GetCopySource() *CopySource { return &CopySource{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OracleTableDataset - The on-premises Oracle database dataset. type OracleTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // On-premises Oracle dataset properties. - TypeProperties *OracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *OracleTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type OracleTableDataset. func (o *OracleTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, Description: o.Description, - Structure: o.Structure, - Schema: o.Schema, + Folder: o.Folder, LinkedServiceName: o.LinkedServiceName, Parameters: o.Parameters, - Annotations: o.Annotations, - Folder: o.Folder, - AdditionalProperties: o.AdditionalProperties, + Schema: o.Schema, + Structure: o.Structure, + Type: o.Type, } } // OracleTableDatasetTypeProperties - On-premises Oracle dataset properties. type OracleTableDatasetTypeProperties struct { // The schema name of the on-premises Oracle database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the on-premises Oracle database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // OrcDataset - ORC dataset. type OrcDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // ORC dataset properties. - TypeProperties *OrcDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *OrcDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type OrcDataset. func (o *OrcDataset) GetDataset() *Dataset { return &Dataset{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + Annotations: o.Annotations, Description: o.Description, - Structure: o.Structure, - Schema: o.Schema, + Folder: o.Folder, LinkedServiceName: o.LinkedServiceName, Parameters: o.Parameters, - Annotations: o.Annotations, - Folder: o.Folder, - AdditionalProperties: o.AdditionalProperties, + Schema: o.Schema, + Structure: o.Structure, + Type: o.Type, } } // OrcDatasetTypeProperties - ORC dataset properties. type OrcDatasetTypeProperties struct { // REQUIRED; The location of the ORC data storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The data orcCompressionCodec. Type: string (or Expression with resultType string). - OrcCompressionCodec interface{} `json:"orcCompressionCodec,omitempty"` + OrcCompressionCodec any } // OrcFormat - The data stored in Optimized Row Columnar (ORC) format. type OrcFormat struct { // REQUIRED; Type of dataset storage format. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type OrcFormat. func (o *OrcFormat) GetDatasetStorageFormat() *DatasetStorageFormat { return &DatasetStorageFormat{ - Type: o.Type, - Serializer: o.Serializer, - Deserializer: o.Deserializer, AdditionalProperties: o.AdditionalProperties, + Deserializer: o.Deserializer, + Serializer: o.Serializer, + Type: o.Type, } } // OrcSink - A copy activity ORC sink. type OrcSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // ORC format settings. - FormatSettings *OrcWriteSettings `json:"formatSettings,omitempty"` + FormatSettings *OrcWriteSettings // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // ORC store settings. - StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreWriteSettingsClassification // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type OrcSink. func (o *OrcSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, + SinkRetryCount: o.SinkRetryCount, + SinkRetryWait: o.SinkRetryWait, Type: o.Type, WriteBatchSize: o.WriteBatchSize, WriteBatchTimeout: o.WriteBatchTimeout, - SinkRetryCount: o.SinkRetryCount, - SinkRetryWait: o.SinkRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, } } // OrcSource - A copy activity ORC source. type OrcSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // ORC store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type OrcSource. func (o *OrcSource) GetCopySource() *CopySource { return &CopySource{ - Type: o.Type, + AdditionalProperties: o.AdditionalProperties, + DisableMetricsCollection: o.DisableMetricsCollection, + MaxConcurrentConnections: o.MaxConcurrentConnections, SourceRetryCount: o.SourceRetryCount, SourceRetryWait: o.SourceRetryWait, - MaxConcurrentConnections: o.MaxConcurrentConnections, - DisableMetricsCollection: o.DisableMetricsCollection, - AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // OrcWriteSettings - Orc write settings. type OrcWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type OrcWriteSettings. func (o *OrcWriteSettings) GetFormatWriteSettings() *FormatWriteSettings { return &FormatWriteSettings{ - Type: o.Type, AdditionalProperties: o.AdditionalProperties, + Type: o.Type, } } // PackageStore - Package store for the SSIS integration runtime. type PackageStore struct { // REQUIRED; The name of the package store - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The package store linked service reference. - PackageStoreLinkedService *EntityReference `json:"packageStoreLinkedService,omitempty"` + PackageStoreLinkedService *EntityReference } // ParameterSpecification - Definition of a single parameter for an entity. type ParameterSpecification struct { // REQUIRED; Parameter type. - Type *ParameterType `json:"type,omitempty"` + Type *ParameterType // Default value of parameter. - DefaultValue interface{} `json:"defaultValue,omitempty"` + DefaultValue any } // ParquetDataset - Parquet dataset. type ParquetDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Parquet dataset properties. - TypeProperties *ParquetDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ParquetDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ParquetDataset. func (p *ParquetDataset) GetDataset() *Dataset { return &Dataset{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, Description: p.Description, - Structure: p.Structure, - Schema: p.Schema, + Folder: p.Folder, LinkedServiceName: p.LinkedServiceName, Parameters: p.Parameters, - Annotations: p.Annotations, - Folder: p.Folder, - AdditionalProperties: p.AdditionalProperties, + Schema: p.Schema, + Structure: p.Structure, + Type: p.Type, } } // ParquetDatasetTypeProperties - Parquet dataset properties. type ParquetDatasetTypeProperties struct { // REQUIRED; The location of the parquet storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The data compressionCodec. Type: string (or Expression with resultType string). - CompressionCodec interface{} `json:"compressionCodec,omitempty"` + CompressionCodec any } // ParquetFormat - The data stored in Parquet format. type ParquetFormat struct { // REQUIRED; Type of dataset storage format. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type ParquetFormat. func (p *ParquetFormat) GetDatasetStorageFormat() *DatasetStorageFormat { return &DatasetStorageFormat{ - Type: p.Type, - Serializer: p.Serializer, + AdditionalProperties: p.AdditionalProperties, Deserializer: p.Deserializer, + Serializer: p.Serializer, + Type: p.Type, + } +} + +// ParquetReadSettings - Parquet read settings. +type ParquetReadSettings struct { + // REQUIRED; The read setting type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // Compression settings. + CompressionProperties CompressionReadSettingsClassification +} + +// GetFormatReadSettings implements the FormatReadSettingsClassification interface for type ParquetReadSettings. +func (p *ParquetReadSettings) GetFormatReadSettings() *FormatReadSettings { + return &FormatReadSettings{ AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // ParquetSink - A copy activity Parquet sink. type ParquetSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Parquet format settings. - FormatSettings *ParquetWriteSettings `json:"formatSettings,omitempty"` + FormatSettings *ParquetWriteSettings // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Parquet store settings. - StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreWriteSettingsClassification // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type ParquetSink. func (p *ParquetSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, + SinkRetryCount: p.SinkRetryCount, + SinkRetryWait: p.SinkRetryWait, Type: p.Type, WriteBatchSize: p.WriteBatchSize, WriteBatchTimeout: p.WriteBatchTimeout, - SinkRetryCount: p.SinkRetryCount, - SinkRetryWait: p.SinkRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, } } // ParquetSource - A copy activity Parquet source. type ParquetSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any + + // Parquet format settings. + FormatSettings *ParquetReadSettings // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Parquet store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type ParquetSource. func (p *ParquetSource) GetCopySource() *CopySource { return &CopySource{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // ParquetWriteSettings - Parquet write settings. type ParquetWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type ParquetWriteSettings. func (p *ParquetWriteSettings) GetFormatWriteSettings() *FormatWriteSettings { return &FormatWriteSettings{ - Type: p.Type, AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // PaypalLinkedService - Paypal Service linked service. type PaypalLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Paypal Service linked service properties. - TypeProperties *PaypalLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PaypalLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type PaypalLinkedService. func (p *PaypalLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, ConnectVia: p.ConnectVia, Description: p.Description, Parameters: p.Parameters, - Annotations: p.Annotations, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // PaypalLinkedServiceTypeProperties - Paypal Service linked service properties. type PaypalLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with your PayPal application. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // REQUIRED; The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) - Host interface{} `json:"host,omitempty"` + Host any // The client secret associated with your PayPal application. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // PaypalObjectDataset - Paypal Service dataset. type PaypalObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type PaypalObjectDataset. func (p *PaypalObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, Description: p.Description, - Structure: p.Structure, - Schema: p.Schema, + Folder: p.Folder, LinkedServiceName: p.LinkedServiceName, Parameters: p.Parameters, - Annotations: p.Annotations, - Folder: p.Folder, - AdditionalProperties: p.AdditionalProperties, + Schema: p.Schema, + Structure: p.Structure, + Type: p.Type, } } // PaypalSource - A copy activity Paypal Service source. type PaypalSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type PaypalSource. func (p *PaypalSource) GetCopySource() *CopySource { return &CopySource{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type PaypalSource. func (p *PaypalSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: p.QueryTimeout, AdditionalColumns: p.AdditionalColumns, - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, + QueryTimeout: p.QueryTimeout, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // PhoenixDatasetTypeProperties - Phoenix Dataset Properties type PhoenixDatasetTypeProperties struct { // The schema name of the Phoenix. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Phoenix. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // PhoenixLinkedService - Phoenix server linked service. type PhoenixLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Phoenix server linked service properties. - TypeProperties *PhoenixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PhoenixLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type PhoenixLinkedService. func (p *PhoenixLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, ConnectVia: p.ConnectVia, Description: p.Description, Parameters: p.Parameters, - Annotations: p.Annotations, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // PhoenixLinkedServiceTypeProperties - Phoenix server linked service properties. type PhoenixLinkedServiceTypeProperties struct { // REQUIRED; The authentication mechanism used to connect to the Phoenix server. - AuthenticationType *PhoenixAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *PhoenixAuthenticationType // REQUIRED; The IP address or host name of the Phoenix server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). The default value is hbasephoenix // if using WindowsAzureHDInsightService. - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any // The password corresponding to the user name. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. - Port interface{} `json:"port,omitempty"` + Port any // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any // The user name used to connect to the Phoenix server. - Username interface{} `json:"username,omitempty"` + Username any } // PhoenixObjectDataset - Phoenix server dataset. type PhoenixObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *PhoenixDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PhoenixDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type PhoenixObjectDataset. func (p *PhoenixObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, Description: p.Description, - Structure: p.Structure, - Schema: p.Schema, + Folder: p.Folder, LinkedServiceName: p.LinkedServiceName, Parameters: p.Parameters, - Annotations: p.Annotations, - Folder: p.Folder, - AdditionalProperties: p.AdditionalProperties, + Schema: p.Schema, + Structure: p.Structure, + Type: p.Type, } } // PhoenixSource - A copy activity Phoenix server source. type PhoenixSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type PhoenixSource. func (p *PhoenixSource) GetCopySource() *CopySource { return &CopySource{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type PhoenixSource. func (p *PhoenixSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: p.QueryTimeout, AdditionalColumns: p.AdditionalColumns, - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, + QueryTimeout: p.QueryTimeout, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // Pipeline - A data factory pipeline. type Pipeline struct { // List of activities in pipeline. - Activities []ActivityClassification `json:"activities,omitempty"` + Activities []ActivityClassification // List of tags that can be used for describing the Pipeline. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The max number of concurrent runs for the pipeline. - Concurrency *int32 `json:"concurrency,omitempty"` + Concurrency *int32 // The description of the pipeline. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. - Folder *PipelineFolder `json:"folder,omitempty"` + Folder *PipelineFolder // List of parameters for pipeline. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Pipeline Policy. - Policy *PipelinePolicy `json:"policy,omitempty"` + Policy *PipelinePolicy // Dimensions emitted by Pipeline. - RunDimensions map[string]interface{} `json:"runDimensions,omitempty"` + RunDimensions map[string]any // List of variables for pipeline. - Variables map[string]*VariableSpecification `json:"variables,omitempty"` + Variables map[string]*VariableSpecification } // PipelineElapsedTimeMetricPolicy - Pipeline ElapsedTime Metric Policy. type PipelineElapsedTimeMetricPolicy struct { // TimeSpan value, after which an Azure Monitoring Metric is fired. - Duration interface{} `json:"duration,omitempty"` + Duration any +} + +// PipelineExternalComputeScaleProperties - PipelineExternalComputeScale properties for managed integration runtime. +type PipelineExternalComputeScaleProperties struct { + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // Number of the the external nodes, which should be greater than 0 and less than 11. + NumberOfExternalNodes *int32 + + // Number of the pipeline nodes, which should be greater than 0 and less than 11. + NumberOfPipelineNodes *int32 + + // Time to live (in minutes) setting of integration runtime which will execute pipeline and external activity. + TimeToLive *int32 } // PipelineFolder - The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. type PipelineFolder struct { // The name of the folder that this Pipeline is in. - Name *string `json:"name,omitempty"` + Name *string } // PipelineListResponse - A list of pipeline resources. type PipelineListResponse struct { // REQUIRED; List of pipelines. - Value []*PipelineResource `json:"value,omitempty"` + Value []*PipelineResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // PipelinePolicy - Pipeline Policy. type PipelinePolicy struct { // Pipeline ElapsedTime Metric Policy. - ElapsedTimeMetric *PipelineElapsedTimeMetricPolicy `json:"elapsedTimeMetric,omitempty"` + ElapsedTimeMetric *PipelineElapsedTimeMetricPolicy } // PipelineReference - Pipeline reference type. type PipelineReference struct { // REQUIRED; Reference pipeline name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Pipeline reference type. - Type *PipelineReferenceType `json:"type,omitempty"` + Type *PipelineReferenceType // Reference name. - Name *string `json:"name,omitempty"` + Name *string } // PipelineResource - Pipeline resource type. type PipelineResource struct { // REQUIRED; Properties of the pipeline. - Properties *Pipeline `json:"properties,omitempty"` + Properties *Pipeline // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PipelineRun - Information about a pipeline run. type PipelineRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The duration of a pipeline run. - DurationInMs *int32 `json:"durationInMs,omitempty" azure:"ro"` + DurationInMs *int32 // READ-ONLY; Entity that started the pipeline run. - InvokedBy *PipelineRunInvokedBy `json:"invokedBy,omitempty" azure:"ro"` + InvokedBy *PipelineRunInvokedBy // READ-ONLY; Indicates if the recovered pipeline run is the latest in its group. - IsLatest *bool `json:"isLatest,omitempty" azure:"ro"` + IsLatest *bool // READ-ONLY; The last updated timestamp for the pipeline run event in ISO8601 format. - LastUpdated *time.Time `json:"lastUpdated,omitempty" azure:"ro"` + LastUpdated *time.Time // READ-ONLY; The message from a pipeline run. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The full or partial list of parameter name, value pair used in the pipeline run. - Parameters map[string]*string `json:"parameters,omitempty" azure:"ro"` + Parameters map[string]*string // READ-ONLY; The pipeline name. - PipelineName *string `json:"pipelineName,omitempty" azure:"ro"` + PipelineName *string // READ-ONLY; Run dimensions emitted by Pipeline run. - RunDimensions map[string]*string `json:"runDimensions,omitempty" azure:"ro"` + RunDimensions map[string]*string // READ-ONLY; The end time of a pipeline run in ISO8601 format. - RunEnd *time.Time `json:"runEnd,omitempty" azure:"ro"` + RunEnd *time.Time // READ-ONLY; Identifier that correlates all the recovery runs of a pipeline run. - RunGroupID *string `json:"runGroupId,omitempty" azure:"ro"` + RunGroupID *string // READ-ONLY; Identifier of a run. - RunID *string `json:"runId,omitempty" azure:"ro"` + RunID *string // READ-ONLY; The start time of a pipeline run in ISO8601 format. - RunStart *time.Time `json:"runStart,omitempty" azure:"ro"` + RunStart *time.Time // READ-ONLY; The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, Canceling, Cancelled - Status *string `json:"status,omitempty" azure:"ro"` + Status *string } // PipelineRunInvokedBy - Provides entity name and id that started the pipeline run. type PipelineRunInvokedBy struct { // READ-ONLY; The ID of the entity that started the run. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The type of the entity that started the run. - InvokedByType *string `json:"invokedByType,omitempty" azure:"ro"` + InvokedByType *string // READ-ONLY; Name of the entity that started the pipeline run. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The name of the pipeline that triggered the run, if any. - PipelineName *string `json:"pipelineName,omitempty" azure:"ro"` + PipelineName *string // READ-ONLY; The run id of the pipeline that triggered the run, if any. - PipelineRunID *string `json:"pipelineRunId,omitempty" azure:"ro"` -} - -// PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. -type PipelineRunsClientCancelOptions struct { - // If true, cancel all the Child pipelines that are triggered by the current pipeline. - IsRecursive *bool -} - -// PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. -type PipelineRunsClientGetOptions struct { - // placeholder for future optional parameters -} - -// PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory method. -type PipelineRunsClientQueryByFactoryOptions struct { - // placeholder for future optional parameters + PipelineRunID *string } // PipelineRunsQueryResponse - A list pipeline runs. type PipelineRunsQueryResponse struct { // REQUIRED; List of pipeline runs. - Value []*PipelineRun `json:"value,omitempty"` + Value []*PipelineRun // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` -} - -// PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate method. -type PipelinesClientCreateOrUpdateOptions struct { - // ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * - // for unconditional update. - IfMatch *string -} - -// PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. -type PipelinesClientCreateRunOptions struct { - // Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped - // under the same groupId. - IsRecovery *bool - // Parameters of the pipeline run. These parameters will be used only if the runId is not specified. - Parameters map[string]interface{} - // The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. - ReferencePipelineRunID *string - // In recovery mode, the rerun will start from this activity. If not specified, all activities will run. - StartActivityName *string - // In recovery mode, if set to true, the rerun will start from failed activities. The property will be used only if startActivityName - // is not specified. - StartFromFailure *bool -} - -// PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. -type PipelinesClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. -type PipelinesClientGetOptions struct { - // ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was - // provided, then no content will be returned. - IfNoneMatch *string -} - -// PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.ListByFactory method. -type PipelinesClientListByFactoryOptions struct { - // placeholder for future optional parameters + ContinuationToken *string } // PolybaseSettings - PolyBase settings. type PolybaseSettings struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Determines the number of rows to attempt to retrieve before the PolyBase recalculates the percentage of rejected rows. // Type: integer (or Expression with resultType integer), minimum: 0. - RejectSampleValue interface{} `json:"rejectSampleValue,omitempty"` + RejectSampleValue any // Reject type. - RejectType *PolybaseSettingsRejectType `json:"rejectType,omitempty"` + RejectType *PolybaseSettingsRejectType // Specifies the value or the percentage of rows that can be rejected before the query fails. Type: number (or Expression // with resultType number), minimum: 0. - RejectValue interface{} `json:"rejectValue,omitempty"` + RejectValue any // Specifies how to handle missing values in delimited text files when PolyBase retrieves data from the text file. Type: boolean // (or Expression with resultType boolean). - UseTypeDefault interface{} `json:"useTypeDefault,omitempty"` + UseTypeDefault any } // PostgreSQLLinkedService - Linked service for PostgreSQL data source. type PostgreSQLLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; PostgreSQL linked service properties. - TypeProperties *PostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PostgreSQLLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type PostgreSQLLinkedService. func (p *PostgreSQLLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, ConnectVia: p.ConnectVia, Description: p.Description, Parameters: p.Parameters, - Annotations: p.Annotations, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // PostgreSQLLinkedServiceTypeProperties - PostgreSQL linked service properties. type PostgreSQLLinkedServiceTypeProperties struct { - // REQUIRED; The connection string. - ConnectionString interface{} `json:"connectionString,omitempty"` + // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + Password *AzureKeyVaultSecretReference } // PostgreSQLSource - A copy activity source for PostgreSQL databases. type PostgreSQLSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type PostgreSQLSource. func (p *PostgreSQLSource) GetCopySource() *CopySource { return &CopySource{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type PostgreSQLSource. func (p *PostgreSQLSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: p.QueryTimeout, AdditionalColumns: p.AdditionalColumns, - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, + QueryTimeout: p.QueryTimeout, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // PostgreSQLTableDataset - The PostgreSQL table dataset. type PostgreSQLTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // PostgreSQL table dataset properties. - TypeProperties *PostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PostgreSQLTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type PostgreSQLTableDataset. func (p *PostgreSQLTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, Description: p.Description, - Structure: p.Structure, - Schema: p.Schema, + Folder: p.Folder, LinkedServiceName: p.LinkedServiceName, Parameters: p.Parameters, - Annotations: p.Annotations, - Folder: p.Folder, - AdditionalProperties: p.AdditionalProperties, + Schema: p.Schema, + Structure: p.Structure, + Type: p.Type, } } // PostgreSQLTableDatasetTypeProperties - PostgreSQL table dataset properties. type PostgreSQLTableDatasetTypeProperties struct { // The PostgreSQL schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The PostgreSQL table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any +} + +// PostgreSQLV2LinkedService - Linked service for PostgreSQLV2 data source. +type PostgreSQLV2LinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; PostgreSQLV2 linked service properties. + TypeProperties *PostgreSQLV2LinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type PostgreSQLV2LinkedService. +func (p *PostgreSQLV2LinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, + ConnectVia: p.ConnectVia, + Description: p.Description, + Parameters: p.Parameters, + Type: p.Type, + } +} + +// PostgreSQLV2LinkedServiceTypeProperties - PostgreSqlV2 linked service properties. +type PostgreSQLV2LinkedServiceTypeProperties struct { + // REQUIRED; Database name for connection. Type: string. + Database any + + // REQUIRED; SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. + // Type: integer. + SSLMode any + + // REQUIRED; Server name for connection. Type: string. + Server any + + // REQUIRED; Username for authentication. Type: string. + Username any + + // The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. + // Set to zero for infinity. Type: integer. + CommandTimeout any + + // The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. + // Type: integer. + ConnectionTimeout any + + // Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string + Encoding any + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // When enabled, parameter values are logged when commands are executed. Type: boolean. + LogParameters any + + // The Azure key vault secret reference of password in connection string. Type: string. + Password *AzureKeyVaultSecretReference + + // Whether connection pooling should be used. Type: boolean. + Pooling any + + // The port for the connection. Type: integer. + Port any + + // Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large + // values from the database. Type: integer. + ReadBufferSize any + + // Location of a client certificate to be sent to the server. Type: string. + SSLCertificate any + + // Location of a client key for a client certificate to be sent to the server. Type: string. + SSLKey any + + // Password for a key for a client certificate. Type: string. + SSLPassword any + + // Sets the schema search path. Type: string. + Schema any + + // Gets or sets the session timezone. Type: string. + Timezone any + + // Whether to trust the server certificate without validating it. Type: boolean. + TrustServerCertificate any +} + +// PostgreSQLV2Source - A copy activity source for PostgreSQL databases. +type PostgreSQLV2Source struct { + // REQUIRED; Copy source type. + Type *string + + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Database query. Type: string (or Expression with resultType string). + Query any + + // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any +} + +// GetCopySource implements the CopySourceClassification interface for type PostgreSQLV2Source. +func (p *PostgreSQLV2Source) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, + SourceRetryCount: p.SourceRetryCount, + SourceRetryWait: p.SourceRetryWait, + Type: p.Type, + } +} + +// GetTabularSource implements the TabularSourceClassification interface for type PostgreSQLV2Source. +func (p *PostgreSQLV2Source) GetTabularSource() *TabularSource { + return &TabularSource{ + AdditionalColumns: p.AdditionalColumns, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, + QueryTimeout: p.QueryTimeout, + SourceRetryCount: p.SourceRetryCount, + SourceRetryWait: p.SourceRetryWait, + Type: p.Type, + } +} + +// PostgreSQLV2TableDataset - The PostgreSQLV2 table dataset. +type PostgreSQLV2TableDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any + + // PostgreSQLV2 table dataset properties. + TypeProperties *PostgreSQLV2TableDatasetTypeProperties +} + +// GetDataset implements the DatasetClassification interface for type PostgreSQLV2TableDataset. +func (p *PostgreSQLV2TableDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, + Description: p.Description, + Folder: p.Folder, + LinkedServiceName: p.LinkedServiceName, + Parameters: p.Parameters, + Schema: p.Schema, + Structure: p.Structure, + Type: p.Type, + } +} + +// PostgreSQLV2TableDatasetTypeProperties - PostgreSQLV2 table dataset properties. +type PostgreSQLV2TableDatasetTypeProperties struct { + // The PostgreSQL schema name. Type: string (or Expression with resultType string). + Schema any + + // The PostgreSQL table name. Type: string (or Expression with resultType string). + Table any } // PowerQuerySink - Power query sink. type PowerQuerySink struct { // REQUIRED; Transformation name. - Name *string `json:"name,omitempty"` + Name *string // Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Transformation description. - Description *string `json:"description,omitempty"` + Description *string // Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` + Flowlet *DataFlowReference // Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + LinkedService *LinkedServiceReference // Rejected data linked service reference. - RejectedDataLinkedService *LinkedServiceReference `json:"rejectedDataLinkedService,omitempty"` + RejectedDataLinkedService *LinkedServiceReference // Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + SchemaLinkedService *LinkedServiceReference // sink script. - Script *string `json:"script,omitempty"` + Script *string } // PowerQuerySinkMapping - Map Power Query mashup query to sink dataset(s). type PowerQuerySinkMapping struct { // List of sinks mapped to Power Query mashup query. - DataflowSinks []*PowerQuerySink `json:"dataflowSinks,omitempty"` + DataflowSinks []*PowerQuerySink // Name of the query in Power Query mashup document. - QueryName *string `json:"queryName,omitempty"` + QueryName *string } // PowerQuerySource - Power query source. type PowerQuerySource struct { // REQUIRED; Transformation name. - Name *string `json:"name,omitempty"` + Name *string // Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Transformation description. - Description *string `json:"description,omitempty"` + Description *string // Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` + Flowlet *DataFlowReference // Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + LinkedService *LinkedServiceReference // Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + SchemaLinkedService *LinkedServiceReference // source script. - Script *string `json:"script,omitempty"` + Script *string } // PowerQueryTypeProperties - Power Query data flow type properties. type PowerQueryTypeProperties struct { // Locale of the Power query mashup document. - DocumentLocale *string `json:"documentLocale,omitempty"` + DocumentLocale *string // Power query mashup script. - Script *string `json:"script,omitempty"` + Script *string // List of sources in Power Query. - Sources []*PowerQuerySource `json:"sources,omitempty"` + Sources []*PowerQuerySource } // PrestoDatasetTypeProperties - Presto Dataset Properties type PrestoDatasetTypeProperties struct { // The schema name of the Presto. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Presto. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // PrestoLinkedService - Presto server linked service. type PrestoLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Presto server linked service properties. - TypeProperties *PrestoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PrestoLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type PrestoLinkedService. func (p *PrestoLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, ConnectVia: p.ConnectVia, Description: p.Description, Parameters: p.Parameters, - Annotations: p.Annotations, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // PrestoLinkedServiceTypeProperties - Presto server linked service properties. type PrestoLinkedServiceTypeProperties struct { // REQUIRED; The authentication mechanism used to connect to the Presto server. - AuthenticationType *PrestoAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *PrestoAuthenticationType // REQUIRED; The catalog context for all request against the server. - Catalog interface{} `json:"catalog,omitempty"` + Catalog any // REQUIRED; The IP address or host name of the Presto server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any // REQUIRED; The version of the Presto server. (i.e. 0.148-t) - ServerVersion interface{} `json:"serverVersion,omitempty"` + ServerVersion any // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password corresponding to the user name. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port that the Presto server uses to listen for client connections. The default value is 8080. - Port interface{} `json:"port,omitempty"` + Port any // The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. // The default value is the system time zone. - TimeZoneID interface{} `json:"timeZoneID,omitempty"` + TimeZoneID any // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any // The user name used to connect to the Presto server. - Username interface{} `json:"username,omitempty"` + Username any } // PrestoObjectDataset - Presto server dataset. type PrestoObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *PrestoDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PrestoDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type PrestoObjectDataset. func (p *PrestoObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + Annotations: p.Annotations, Description: p.Description, - Structure: p.Structure, - Schema: p.Schema, + Folder: p.Folder, LinkedServiceName: p.LinkedServiceName, Parameters: p.Parameters, - Annotations: p.Annotations, - Folder: p.Folder, - AdditionalProperties: p.AdditionalProperties, + Schema: p.Schema, + Structure: p.Structure, + Type: p.Type, } } // PrestoSource - A copy activity Presto server source. type PrestoSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type PrestoSource. func (p *PrestoSource) GetCopySource() *CopySource { return &CopySource{ - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type PrestoSource. func (p *PrestoSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: p.QueryTimeout, AdditionalColumns: p.AdditionalColumns, - Type: p.Type, + AdditionalProperties: p.AdditionalProperties, + DisableMetricsCollection: p.DisableMetricsCollection, + MaxConcurrentConnections: p.MaxConcurrentConnections, + QueryTimeout: p.QueryTimeout, SourceRetryCount: p.SourceRetryCount, SourceRetryWait: p.SourceRetryWait, - MaxConcurrentConnections: p.MaxConcurrentConnections, - DisableMetricsCollection: p.DisableMetricsCollection, - AdditionalProperties: p.AdditionalProperties, + Type: p.Type, } } -// PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.ListByFactory -// method. -type PrivateEndPointConnectionsClientListByFactoryOptions struct { - // placeholder for future optional parameters -} - // PrivateEndpoint - Private endpoint which a connection belongs to. type PrivateEndpoint struct { // The resource Id for private endpoint - ID *string `json:"id,omitempty"` -} - -// PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate -// method. -type PrivateEndpointConnectionClientCreateOrUpdateOptions struct { - // ETag of the private endpoint connection entity. Should only be specified for update, for which it should match existing - // entity or can be * for unconditional update. - IfMatch *string -} - -// PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete -// method. -type PrivateEndpointConnectionClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get -// method. -type PrivateEndpointConnectionClientGetOptions struct { - // ETag of the private endpoint connection entity. Should only be specified for get. If the ETag matches the existing entity - // tag, or if * was provided, then no content will be returned. - IfNoneMatch *string + ID *string } // PrivateEndpointConnectionListResponse - A list of linked service resources. type PrivateEndpointConnectionListResponse struct { // REQUIRED; List of Private Endpoint Connections. - Value []*PrivateEndpointConnectionResource `json:"value,omitempty"` + Value []*PrivateEndpointConnectionResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // PrivateEndpointConnectionResource - Private Endpoint Connection ARM resource. type PrivateEndpointConnectionResource struct { // Core resource properties - Properties *RemotePrivateEndpointConnection `json:"properties,omitempty"` + Properties *RemotePrivateEndpointConnection // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkConnectionApprovalRequest - A request to approve or reject a private endpoint connection type PrivateLinkConnectionApprovalRequest struct { // The resource of private endpoint. - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpoint *PrivateEndpoint // The state of a private link connection - PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkConnectionState } // PrivateLinkConnectionApprovalRequestResource - Private Endpoint Connection Approval ARM resource. type PrivateLinkConnectionApprovalRequestResource struct { // Core resource properties - Properties *PrivateLinkConnectionApprovalRequest `json:"properties,omitempty"` + Properties *PrivateLinkConnectionApprovalRequest // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkConnectionState - The state of a private link connection type PrivateLinkConnectionState struct { // ActionsRequired for a private link connection - ActionsRequired *string `json:"actionsRequired,omitempty"` + ActionsRequired *string // Description of a private link connection - Description *string `json:"description,omitempty"` + Description *string // Status of a private link connection - Status *string `json:"status,omitempty"` + Status *string } // PrivateLinkResource - A private link resource type PrivateLinkResource struct { // Core resource properties - Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + Properties *PrivateLinkResourceProperties // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkResourceProperties - Properties of a private link resource type PrivateLinkResourceProperties struct { // READ-ONLY; GroupId of a private link resource - GroupID *string `json:"groupId,omitempty" azure:"ro"` + GroupID *string // READ-ONLY; RequiredMembers of a private link resource - RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` + RequiredMembers []*string // READ-ONLY; RequiredZoneNames of a private link resource - RequiredZoneNames []*string `json:"requiredZoneNames,omitempty" azure:"ro"` -} - -// PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. -type PrivateLinkResourcesClientGetOptions struct { - // placeholder for future optional parameters + RequiredZoneNames []*string } // PrivateLinkResourcesWrapper - Wrapper for a collection of private link resources type PrivateLinkResourcesWrapper struct { // REQUIRED - Value []*PrivateLinkResource `json:"value,omitempty"` + Value []*PrivateLinkResource } // PurviewConfiguration - Purview configuration. type PurviewConfiguration struct { // Purview resource id. - PurviewResourceID *string `json:"purviewResourceId,omitempty"` + PurviewResourceID *string } // QueryDataFlowDebugSessionsResponse - A list of active debug sessions. type QueryDataFlowDebugSessionsResponse struct { // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Array with all active debug sessions. - Value []*DataFlowDebugSessionInfo `json:"value,omitempty"` + Value []*DataFlowDebugSessionInfo } // QuickBooksLinkedService - QuickBooks server linked service. type QuickBooksLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; QuickBooks server linked service properties. - TypeProperties *QuickBooksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *QuickBooksLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type QuickBooksLinkedService. func (q *QuickBooksLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: q.Type, + AdditionalProperties: q.AdditionalProperties, + Annotations: q.Annotations, ConnectVia: q.ConnectVia, Description: q.Description, Parameters: q.Parameters, - Annotations: q.Annotations, - AdditionalProperties: q.AdditionalProperties, + Type: q.Type, } } // QuickBooksLinkedServiceTypeProperties - QuickBooks server linked service properties. type QuickBooksLinkedServiceTypeProperties struct { // The access token for OAuth 1.0 authentication. - AccessToken SecretBaseClassification `json:"accessToken,omitempty"` + AccessToken SecretBaseClassification // The access token secret for OAuth 1.0 authentication. - AccessTokenSecret SecretBaseClassification `json:"accessTokenSecret,omitempty"` + AccessTokenSecret SecretBaseClassification // The company ID of the QuickBooks company to authorize. - CompanyID interface{} `json:"companyId,omitempty"` + CompanyID any // Properties used to connect to QuickBooks. It is mutually exclusive with any other properties in the linked service. Type: // object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any // The consumer key for OAuth 1.0 authentication. - ConsumerKey interface{} `json:"consumerKey,omitempty"` + ConsumerKey any // The consumer secret for OAuth 1.0 authentication. - ConsumerSecret SecretBaseClassification `json:"consumerSecret,omitempty"` + ConsumerSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any } // QuickBooksObjectDataset - QuickBooks server dataset. type QuickBooksObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type QuickBooksObjectDataset. func (q *QuickBooksObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: q.Type, + AdditionalProperties: q.AdditionalProperties, + Annotations: q.Annotations, Description: q.Description, - Structure: q.Structure, - Schema: q.Schema, + Folder: q.Folder, LinkedServiceName: q.LinkedServiceName, Parameters: q.Parameters, - Annotations: q.Annotations, - Folder: q.Folder, - AdditionalProperties: q.AdditionalProperties, + Schema: q.Schema, + Structure: q.Structure, + Type: q.Type, } } // QuickBooksSource - A copy activity QuickBooks server source. type QuickBooksSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type QuickBooksSource. func (q *QuickBooksSource) GetCopySource() *CopySource { return &CopySource{ - Type: q.Type, + AdditionalProperties: q.AdditionalProperties, + DisableMetricsCollection: q.DisableMetricsCollection, + MaxConcurrentConnections: q.MaxConcurrentConnections, SourceRetryCount: q.SourceRetryCount, SourceRetryWait: q.SourceRetryWait, - MaxConcurrentConnections: q.MaxConcurrentConnections, - DisableMetricsCollection: q.DisableMetricsCollection, - AdditionalProperties: q.AdditionalProperties, + Type: q.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type QuickBooksSource. func (q *QuickBooksSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: q.QueryTimeout, AdditionalColumns: q.AdditionalColumns, - Type: q.Type, + AdditionalProperties: q.AdditionalProperties, + DisableMetricsCollection: q.DisableMetricsCollection, + MaxConcurrentConnections: q.MaxConcurrentConnections, + QueryTimeout: q.QueryTimeout, SourceRetryCount: q.SourceRetryCount, SourceRetryWait: q.SourceRetryWait, - MaxConcurrentConnections: q.MaxConcurrentConnections, - DisableMetricsCollection: q.DisableMetricsCollection, - AdditionalProperties: q.AdditionalProperties, + Type: q.Type, } } // QuickbaseLinkedService - Linked service for Quickbase. type QuickbaseLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Quickbase linked service properties. - TypeProperties *QuickbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *QuickbaseLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type QuickbaseLinkedService. func (q *QuickbaseLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: q.Type, + AdditionalProperties: q.AdditionalProperties, + Annotations: q.Annotations, ConnectVia: q.ConnectVia, Description: q.Description, Parameters: q.Parameters, - Annotations: q.Annotations, - AdditionalProperties: q.AdditionalProperties, + Type: q.Type, } } // QuickbaseLinkedServiceTypeProperties - Quickbase linked service type properties. type QuickbaseLinkedServiceTypeProperties struct { // REQUIRED; The url to connect Quickbase source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any // REQUIRED; The user token for the Quickbase source. - UserToken SecretBaseClassification `json:"userToken,omitempty"` + UserToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // RecurrenceSchedule - The recurrence schedule. type RecurrenceSchedule struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The hours. - Hours []*int32 `json:"hours,omitempty"` + Hours []*int32 // The minutes. - Minutes []*int32 `json:"minutes,omitempty"` + Minutes []*int32 // The month days. - MonthDays []*int32 `json:"monthDays,omitempty"` + MonthDays []*int32 // The monthly occurrences. - MonthlyOccurrences []*RecurrenceScheduleOccurrence `json:"monthlyOccurrences,omitempty"` + MonthlyOccurrences []*RecurrenceScheduleOccurrence // The days of the week. - WeekDays []*DaysOfWeek `json:"weekDays,omitempty"` + WeekDays []*DaysOfWeek } // RecurrenceScheduleOccurrence - The recurrence schedule occurrence. type RecurrenceScheduleOccurrence struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The day of the week. - Day *DayOfWeek `json:"day,omitempty"` + Day *DayOfWeek // The occurrence. - Occurrence *int32 `json:"occurrence,omitempty"` + Occurrence *int32 } // RedirectIncompatibleRowSettings - Redirect incompatible row settings @@ -21862,13 +22492,13 @@ type RedirectIncompatibleRowSettings struct { // REQUIRED; Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked service used for redirecting incompatible // row. Must be specified if redirectIncompatibleRowSettings is specified. Type: string // (or Expression with resultType string). - LinkedServiceName interface{} `json:"linkedServiceName,omitempty"` + LinkedServiceName any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The path for storing the redirect incompatible row data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any } // RedshiftUnloadSettings - The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with @@ -21878,668 +22508,647 @@ type RedshiftUnloadSettings struct { // REQUIRED; The bucket of the interim Amazon S3 which will be used to store the unloaded data from Amazon Redshift source. // The bucket must be in the same region as the Amazon Redshift source. Type: string (or // Expression with resultType string). - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any // REQUIRED; The name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon // Redshift source. - S3LinkedServiceName *LinkedServiceReference `json:"s3LinkedServiceName,omitempty"` + S3LinkedServiceName *LinkedServiceReference } // RelationalSource - A copy activity source for various relational databases. type RelationalSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type RelationalSource. func (r *RelationalSource) GetCopySource() *CopySource { return &CopySource{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + DisableMetricsCollection: r.DisableMetricsCollection, + MaxConcurrentConnections: r.MaxConcurrentConnections, SourceRetryCount: r.SourceRetryCount, SourceRetryWait: r.SourceRetryWait, - MaxConcurrentConnections: r.MaxConcurrentConnections, - DisableMetricsCollection: r.DisableMetricsCollection, - AdditionalProperties: r.AdditionalProperties, + Type: r.Type, } } // RelationalTableDataset - The relational table dataset. type RelationalTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Relational table dataset properties. - TypeProperties *RelationalTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *RelationalTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type RelationalTableDataset. func (r *RelationalTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + Annotations: r.Annotations, Description: r.Description, - Structure: r.Structure, - Schema: r.Schema, + Folder: r.Folder, LinkedServiceName: r.LinkedServiceName, Parameters: r.Parameters, - Annotations: r.Annotations, - Folder: r.Folder, - AdditionalProperties: r.AdditionalProperties, + Schema: r.Schema, + Structure: r.Structure, + Type: r.Type, } } // RelationalTableDatasetTypeProperties - Relational table dataset properties. type RelationalTableDatasetTypeProperties struct { // The relational table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // RemotePrivateEndpointConnection - A remote private endpoint connection type RemotePrivateEndpointConnection struct { // PrivateEndpoint of a remote private endpoint connection - PrivateEndpoint *ArmIDWrapper `json:"privateEndpoint,omitempty"` + PrivateEndpoint *ArmIDWrapper // The state of a private link connection - PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkConnectionState // READ-ONLY - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // RerunTumblingWindowTrigger - Trigger that schedules pipeline reruns for all fixed time interval windows from a requested // start time to requested end time. type RerunTumblingWindowTrigger struct { // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Rerun Trigger properties. - TypeProperties *RerunTumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *RerunTumblingWindowTriggerTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetTrigger implements the TriggerClassification interface for type RerunTumblingWindowTrigger. func (r *RerunTumblingWindowTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + Annotations: r.Annotations, Description: r.Description, RuntimeState: r.RuntimeState, - Annotations: r.Annotations, - AdditionalProperties: r.AdditionalProperties, + Type: r.Type, } } // RerunTumblingWindowTriggerTypeProperties - Rerun Trigger properties. type RerunTumblingWindowTriggerTypeProperties struct { // REQUIRED; The parent trigger reference. - ParentTrigger interface{} `json:"parentTrigger,omitempty"` + ParentTrigger any // REQUIRED; The end time for the time period for which restatement is initiated. Only UTC time is currently supported. - RequestedEndTime *time.Time `json:"requestedEndTime,omitempty"` + RequestedEndTime *time.Time // REQUIRED; The start time for the time period for which restatement is initiated. Only UTC time is currently supported. - RequestedStartTime *time.Time `json:"requestedStartTime,omitempty"` + RequestedStartTime *time.Time // REQUIRED; The max number of parallel time windows (ready for execution) for which a rerun is triggered. - RerunConcurrency *int32 `json:"rerunConcurrency,omitempty"` -} - -// Resource - Azure Data Factory top-level resource. -type Resource struct { - // The resource location. - Location *string `json:"location,omitempty"` - - // The resource tags. - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; Etag identifies change in the resource. - ETag *string `json:"eTag,omitempty" azure:"ro"` - - // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + RerunConcurrency *int32 } // ResponsysLinkedService - Responsys linked service. type ResponsysLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Responsys linked service properties. - TypeProperties *ResponsysLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ResponsysLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ResponsysLinkedService. func (r *ResponsysLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + Annotations: r.Annotations, ConnectVia: r.ConnectVia, Description: r.Description, Parameters: r.Parameters, - Annotations: r.Annotations, - AdditionalProperties: r.AdditionalProperties, + Type: r.Type, } } // ResponsysLinkedServiceTypeProperties - Responsys linked service properties. type ResponsysLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with the Responsys application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // REQUIRED; The endpoint of the Responsys server. - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // The client secret associated with the Responsys application. Type: string (or Expression with resultType string). - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // ResponsysObjectDataset - Responsys dataset. type ResponsysObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ResponsysObjectDataset. func (r *ResponsysObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + Annotations: r.Annotations, Description: r.Description, - Structure: r.Structure, - Schema: r.Schema, + Folder: r.Folder, LinkedServiceName: r.LinkedServiceName, Parameters: r.Parameters, - Annotations: r.Annotations, - Folder: r.Folder, - AdditionalProperties: r.AdditionalProperties, + Schema: r.Schema, + Structure: r.Structure, + Type: r.Type, } } // ResponsysSource - A copy activity Responsys source. type ResponsysSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type ResponsysSource. func (r *ResponsysSource) GetCopySource() *CopySource { return &CopySource{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + DisableMetricsCollection: r.DisableMetricsCollection, + MaxConcurrentConnections: r.MaxConcurrentConnections, SourceRetryCount: r.SourceRetryCount, SourceRetryWait: r.SourceRetryWait, - MaxConcurrentConnections: r.MaxConcurrentConnections, - DisableMetricsCollection: r.DisableMetricsCollection, - AdditionalProperties: r.AdditionalProperties, + Type: r.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type ResponsysSource. func (r *ResponsysSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: r.QueryTimeout, AdditionalColumns: r.AdditionalColumns, - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + DisableMetricsCollection: r.DisableMetricsCollection, + MaxConcurrentConnections: r.MaxConcurrentConnections, + QueryTimeout: r.QueryTimeout, SourceRetryCount: r.SourceRetryCount, SourceRetryWait: r.SourceRetryWait, - MaxConcurrentConnections: r.MaxConcurrentConnections, - DisableMetricsCollection: r.DisableMetricsCollection, - AdditionalProperties: r.AdditionalProperties, + Type: r.Type, } } // RestResourceDataset - A Rest service dataset. type RestResourceDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *RestResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *RestResourceDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type RestResourceDataset. func (r *RestResourceDataset) GetDataset() *Dataset { return &Dataset{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + Annotations: r.Annotations, Description: r.Description, - Structure: r.Structure, - Schema: r.Schema, + Folder: r.Folder, LinkedServiceName: r.LinkedServiceName, Parameters: r.Parameters, - Annotations: r.Annotations, - Folder: r.Folder, - AdditionalProperties: r.AdditionalProperties, + Schema: r.Schema, + Structure: r.Structure, + Type: r.Type, } } // RestResourceDatasetTypeProperties - Properties specific to this dataset type. type RestResourceDatasetTypeProperties struct { - // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // The additional HTTP headers in the request to the RESTful API. + AdditionalHeaders map[string]any - // The pagination rules to compose next page requests. Type: string (or Expression with resultType string). - PaginationRules interface{} `json:"paginationRules,omitempty"` + // The pagination rules to compose next page requests. + PaginationRules map[string]any // The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` + RelativeURL any // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any } // RestServiceLinkedService - Rest Service linked service. type RestServiceLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Rest Service linked service properties. - TypeProperties *RestServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *RestServiceLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type RestServiceLinkedService. func (r *RestServiceLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + Annotations: r.Annotations, ConnectVia: r.ConnectVia, Description: r.Description, Parameters: r.Parameters, - Annotations: r.Annotations, - AdditionalProperties: r.AdditionalProperties, + Type: r.Type, } } // RestServiceLinkedServiceTypeProperties - Rest Service linked service properties. type RestServiceLinkedServiceTypeProperties struct { // REQUIRED; Type of authentication used to connect to the REST service. - AuthenticationType *RestServiceAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *RestServiceAuthenticationType - // REQUIRED; The base URL of the REST service. - URL interface{} `json:"url,omitempty"` + // REQUIRED; The base URL of the REST service. Type: string (or Expression with resultType string). + URL any - // The resource you are requesting authorization to use. - AADResourceID interface{} `json:"aadResourceId,omitempty"` + // The resource you are requesting authorization to use. Type: string (or Expression with resultType string). + AADResourceID any // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType // object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` + AuthHeaders any // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any // The client ID associated with your application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The client secret associated with your application. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean // (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` + EnableServerCertificateValidation any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password used in Basic authentication type. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The target service or resource to which the access will be requested. Type: string (or Expression with resultType string). - Resource interface{} `json:"resource,omitempty"` + Resource any // The scope of the access required. It describes what kind of access will be requested. Type: string (or Expression with // resultType string). - Scope interface{} `json:"scope,omitempty"` + Scope any - // The application's client ID used in AadServicePrincipal authentication type. - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // The application's client ID used in AadServicePrincipal authentication type. Type: string (or Expression with resultType + // string). + ServicePrincipalID any // The application's key used in AadServicePrincipal authentication type. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application - // resides. - Tenant interface{} `json:"tenant,omitempty"` + // resides. Type: string (or Expression with resultType string). + Tenant any // The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string). - TokenEndpoint interface{} `json:"tokenEndpoint,omitempty"` + TokenEndpoint any - // The user name used in Basic authentication type. - UserName interface{} `json:"userName,omitempty"` + // The user name used in Basic authentication type. Type: string (or Expression with resultType string). + UserName any } // RestSink - A copy activity Rest service Sink. type RestSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string - // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // The additional HTTP headers in the request to the RESTful API. Type: key value pairs (value should be string type). + AdditionalHeaders any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported - // option is Gzip. - HTTPCompressionType interface{} `json:"httpCompressionType,omitempty"` + // option is Gzip. Type: string (or Expression with resultType string). + HTTPCompressionType any // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:01:40. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The time to await before sending next request, in milliseconds - RequestInterval interface{} `json:"requestInterval,omitempty"` + RequestInterval any // The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } // GetCopySink implements the CopySinkClassification interface for type RestSink. func (r *RestSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: r.AdditionalProperties, + DisableMetricsCollection: r.DisableMetricsCollection, + MaxConcurrentConnections: r.MaxConcurrentConnections, + SinkRetryCount: r.SinkRetryCount, + SinkRetryWait: r.SinkRetryWait, Type: r.Type, WriteBatchSize: r.WriteBatchSize, WriteBatchTimeout: r.WriteBatchTimeout, - SinkRetryCount: r.SinkRetryCount, - SinkRetryWait: r.SinkRetryWait, - MaxConcurrentConnections: r.MaxConcurrentConnections, - DisableMetricsCollection: r.DisableMetricsCollection, - AdditionalProperties: r.AdditionalProperties, } } // RestSource - A copy activity Rest service source. type RestSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string - // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with - // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + // Specifies the additional columns to be added to source data. Type: key value pairs (value should be string type). + AdditionalColumns any // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:01:40. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The pagination rules to compose next page requests. Type: string (or Expression with resultType string). - PaginationRules interface{} `json:"paginationRules,omitempty"` + PaginationRules any // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any // The time to await before sending next page request. - RequestInterval interface{} `json:"requestInterval,omitempty"` + RequestInterval any // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type RestSource. func (r *RestSource) GetCopySource() *CopySource { return &CopySource{ - Type: r.Type, + AdditionalProperties: r.AdditionalProperties, + DisableMetricsCollection: r.DisableMetricsCollection, + MaxConcurrentConnections: r.MaxConcurrentConnections, SourceRetryCount: r.SourceRetryCount, SourceRetryWait: r.SourceRetryWait, - MaxConcurrentConnections: r.MaxConcurrentConnections, - DisableMetricsCollection: r.DisableMetricsCollection, - AdditionalProperties: r.AdditionalProperties, + Type: r.Type, } } // RetryPolicy - Execution policy for an activity. type RetryPolicy struct { // Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Count interface{} `json:"count,omitempty"` + Count any // Interval between retries in seconds. Default is 30. - IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` + IntervalInSeconds *int32 } // RunFilterParameters - Query parameters for listing runs. type RunFilterParameters struct { // REQUIRED; The time at or after which the run event was updated in 'ISO 8601' format. - LastUpdatedAfter *time.Time `json:"lastUpdatedAfter,omitempty"` + LastUpdatedAfter *time.Time // REQUIRED; The time at or before which the run event was updated in 'ISO 8601' format. - LastUpdatedBefore *time.Time `json:"lastUpdatedBefore,omitempty"` + LastUpdatedBefore *time.Time // The continuation token for getting the next page of results. Null for first page. - ContinuationToken *string `json:"continuationToken,omitempty"` + ContinuationToken *string // List of filters. - Filters []*RunQueryFilter `json:"filters,omitempty"` + Filters []*RunQueryFilter // List of OrderBy option. - OrderBy []*RunQueryOrderBy `json:"orderBy,omitempty"` + OrderBy []*RunQueryOrderBy } // RunQueryFilter - Query filter option for listing runs. @@ -22547,333 +23156,343 @@ type RunQueryFilter struct { // REQUIRED; Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, // RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, // ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. - Operand *RunQueryFilterOperand `json:"operand,omitempty"` + Operand *RunQueryFilterOperand // REQUIRED; Operator to be used for filter. - Operator *RunQueryFilterOperator `json:"operator,omitempty"` + Operator *RunQueryFilterOperator // REQUIRED; List of filter values. - Values []*string `json:"values,omitempty"` + Values []*string } // RunQueryOrderBy - An object to provide order by options for listing runs. type RunQueryOrderBy struct { // REQUIRED; Sorting order of the parameter. - Order *RunQueryOrder `json:"order,omitempty"` + Order *RunQueryOrder // REQUIRED; Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, // RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, // ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. - OrderBy *RunQueryOrderByField `json:"orderBy,omitempty"` + OrderBy *RunQueryOrderByField } // SQLAlwaysEncryptedProperties - Sql always encrypted properties. type SQLAlwaysEncryptedProperties struct { - // REQUIRED; Sql always encrypted AKV authentication type. Type: string (or Expression with resultType string). - AlwaysEncryptedAkvAuthType *SQLAlwaysEncryptedAkvAuthType `json:"alwaysEncryptedAkvAuthType,omitempty"` + // REQUIRED; Sql always encrypted AKV authentication type. Type: string. + AlwaysEncryptedAkvAuthType *SQLAlwaysEncryptedAkvAuthType // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate against Azure Key Vault. - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification } // SQLDWSink - A copy activity SQL Data Warehouse sink. type SQLDWSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). - AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` + AllowCopyCommand any // Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType // boolean). - AllowPolyBase interface{} `json:"allowPolyBase,omitempty"` + AllowPolyBase any // Specifies Copy Command related settings when allowCopyCommand is true. - CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` + CopyCommandSettings *DWCopyCommandSettings // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Specifies PolyBase-related settings when allowPolyBase is true. - PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,omitempty"` + PolyBaseSettings *PolybaseSettings // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any // SQL DW upsert settings. - UpsertSettings *SQLDWUpsertSettings `json:"upsertSettings,omitempty"` + UpsertSettings *SQLDWUpsertSettings // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type SQLDWSink. func (s *SQLDWSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } // SQLDWSource - A copy activity SQL Data Warehouse source. type SQLDWSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any + + // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. + // The default value is ReadCommitted. Type: string (or + // Expression with resultType string). + IsolationLevel any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", - // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + // "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption any // The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SQLPartitionSettings // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // SQL Data Warehouse reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any // Name of the stored procedure for a SQL Data Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: // string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object // (or Expression with resultType object), itemType: StoredProcedureParameter. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any } // GetCopySource implements the CopySourceClassification interface for type SQLDWSource. func (s *SQLDWSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SQLDWSource. func (s *SQLDWSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SQLDWUpsertSettings - Sql DW upsert option settings type SQLDWUpsertSettings struct { // Schema name for interim table. Type: string (or Expression with resultType string). - InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` + InterimSchemaName any // Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). - Keys interface{} `json:"keys,omitempty"` + Keys any } // SQLMISink - A copy activity Azure SQL Managed Instance sink. type SQLMISink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any // SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + UpsertSettings *SQLUpsertSettings // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any - // White behavior when copying data into azure SQL MI. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // White behavior when copying data into azure SQL MI. Type: string (or Expression with resultType string) + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type SQLMISink. func (s *SQLMISink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } // SQLMISource - A copy activity Azure SQL Managed Instance source. type SQLMISource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any + + // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. + // The default value is ReadCommitted. Type: string (or + // Expression with resultType string). + IsolationLevel any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", - // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + // "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption any // The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SQLPartitionSettings // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any // Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. // Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any } // GetCopySource implements the CopySourceClassification interface for type SQLMISource. func (s *SQLMISource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SQLMISource. func (s *SQLMISource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } @@ -22882,1035 +23501,1051 @@ type SQLPartitionSettings struct { // The name of the column in integer or datetime type that will be used for proceeding partitioning. If not specified, the // primary key of the table is auto-detected and used as the partition column. // Type: string (or Expression with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any // The minimum value of the partition column for partition range splitting. This value is used to decide the partition stride, // not for filtering the rows in table. All rows in the table or query result // will be partitioned and copied. Type: string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any // The maximum value of the partition column for partition range splitting. This value is used to decide the partition stride, // not for filtering the rows in table. All rows in the table or query result // will be partitioned and copied. Type: string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any } // SQLServerLinkedService - SQL Server linked service. type SQLServerLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; SQL Server linked service properties. - TypeProperties *SQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SQLServerLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SQLServerLinkedService. func (s *SQLServerLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. type SQLServerLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The on-premises Windows authentication password. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // SQLServerSink - A copy activity SQL server sink. type SQLServerSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any // SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + UpsertSettings *SQLUpsertSettings // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any - // Write behavior when copying data into sql server. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // Write behavior when copying data into sql server. Type: string (or Expression with resultType string). + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type SQLServerSink. func (s *SQLServerSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } // SQLServerSource - A copy activity SQL server source. type SQLServerSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any + + // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. + // The default value is ReadCommitted. Type: string (or + // Expression with resultType string). + IsolationLevel any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", - // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + // "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption any // The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SQLPartitionSettings // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any } // GetCopySource implements the CopySourceClassification interface for type SQLServerSource. func (s *SQLServerSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SQLServerSource. func (s *SQLServerSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SQLServerStoredProcedureActivity - SQL stored procedure activity type. type SQLServerStoredProcedureActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; SQL stored procedure activity properties. - TypeProperties *SQLServerStoredProcedureActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SQLServerStoredProcedureActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type SQLServerStoredProcedureActivity. func (s *SQLServerStoredProcedureActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type SQLServerStoredProcedureActivity. func (s *SQLServerStoredProcedureActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, LinkedServiceName: s.LinkedServiceName, - Policy: s.Policy, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + Policy: s.Policy, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } // SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. type SQLServerStoredProcedureActivityTypeProperties struct { // REQUIRED; Stored procedure name. Type: string (or Expression with resultType string). - StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` + StoredProcedureName any // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any } // SQLServerTableDataset - The on-premises SQL Server dataset. type SQLServerTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // On-premises SQL Server dataset properties. - TypeProperties *SQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SQLServerTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SQLServerTableDataset. func (s *SQLServerTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. type SQLServerTableDatasetTypeProperties struct { // The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // SQLSink - A copy activity SQL sink. type SQLSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any // SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + UpsertSettings *SQLUpsertSettings // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any - // Write behavior when copying data into sql. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // Write behavior when copying data into sql. Type: string (or Expression with resultType string). + WriteBehavior any } // GetCopySink implements the CopySinkClassification interface for type SQLSink. func (s *SQLSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } // SQLSource - A copy activity SQL source. type SQLSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. // The default value is ReadCommitted. Type: string (or // Expression with resultType string). - IsolationLevel interface{} `json:"isolationLevel,omitempty"` + IsolationLevel any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", - // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + // "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption any // The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SQLPartitionSettings // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any } // GetCopySource implements the CopySourceClassification interface for type SQLSource. func (s *SQLSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SQLSource. func (s *SQLSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SQLUpsertSettings - Sql upsert option settings type SQLUpsertSettings struct { // Schema name for interim table. Type: string (or Expression with resultType string). - InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` + InterimSchemaName any // Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). - Keys interface{} `json:"keys,omitempty"` + Keys any // Specifies whether to use temp db for upsert interim table. Type: boolean (or Expression with resultType boolean). - UseTempDB interface{} `json:"useTempDB,omitempty"` + UseTempDB any } // SSISAccessCredential - SSIS access credential. type SSISAccessCredential struct { - // REQUIRED; Domain for windows authentication. - Domain interface{} `json:"domain,omitempty"` + // REQUIRED; Domain for windows authentication. Type: string (or Expression with resultType string). + Domain any // REQUIRED; Password for windows authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification - // REQUIRED; UseName for windows authentication. - UserName interface{} `json:"userName,omitempty"` + // REQUIRED; UseName for windows authentication. Type: string (or Expression with resultType string). + UserName any } // SSISChildPackage - SSIS embedded child package. type SSISChildPackage struct { // REQUIRED; Content for embedded child package. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` + PackageContent any // REQUIRED; Path for embedded child package. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` + PackagePath any // Last modified date for embedded child package. - PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` + PackageLastModifiedDate *string // Name for embedded child package. - PackageName *string `json:"packageName,omitempty"` + PackageName *string } // SSISExecutionCredential - SSIS package execution credential. type SSISExecutionCredential struct { - // REQUIRED; Domain for windows authentication. - Domain interface{} `json:"domain,omitempty"` + // REQUIRED; Domain for windows authentication. Type: string (or Expression with resultType string). + Domain any // REQUIRED; Password for windows authentication. - Password *SecureString `json:"password,omitempty"` + Password *SecureString - // REQUIRED; UseName for windows authentication. - UserName interface{} `json:"userName,omitempty"` + // REQUIRED; UseName for windows authentication. Type: string (or Expression with resultType string). + UserName any } // SSISExecutionParameter - SSIS execution parameter. type SSISExecutionParameter struct { // REQUIRED; SSIS package execution parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any } // SSISLogLocation - SSIS package execution log location type SSISLogLocation struct { // REQUIRED; The SSIS package execution log path. Type: string (or Expression with resultType string). - LogPath interface{} `json:"logPath,omitempty"` + LogPath any // REQUIRED; The type of SSIS log location. - Type *SsisLogLocationType `json:"type,omitempty"` + Type *SsisLogLocationType // REQUIRED; SSIS package execution log location properties. - TypeProperties *SSISLogLocationTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SSISLogLocationTypeProperties } // SSISLogLocationTypeProperties - SSIS package execution log location properties. type SSISLogLocationTypeProperties struct { // The package execution log access credential. - AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` + AccessCredential *SSISAccessCredential // Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - LogRefreshInterval interface{} `json:"logRefreshInterval,omitempty"` + LogRefreshInterval any } // SSISPackageLocation - SSIS package location. type SSISPackageLocation struct { // The SSIS package path. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` + PackagePath any // The type of SSIS package location. - Type *SsisPackageLocationType `json:"type,omitempty"` + Type *SsisPackageLocationType // SSIS package location properties. - TypeProperties *SSISPackageLocationTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SSISPackageLocationTypeProperties } // SSISPackageLocationTypeProperties - SSIS package location properties. type SSISPackageLocationTypeProperties struct { // The package access credential. - AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` + AccessCredential *SSISAccessCredential // The embedded child package list. - ChildPackages []*SSISChildPackage `json:"childPackages,omitempty"` + ChildPackages []*SSISChildPackage // The configuration file access credential. - ConfigurationAccessCredential *SSISAccessCredential `json:"configurationAccessCredential,omitempty"` + ConfigurationAccessCredential *SSISAccessCredential // The configuration file of the package execution. Type: string (or Expression with resultType string). - ConfigurationPath interface{} `json:"configurationPath,omitempty"` + ConfigurationPath any // The embedded package content. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` + PackageContent any // The embedded package last modified date. - PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` + PackageLastModifiedDate *string // The package name. - PackageName *string `json:"packageName,omitempty"` + PackageName *string // Password of the package. - PackagePassword SecretBaseClassification `json:"packagePassword,omitempty"` + PackagePassword SecretBaseClassification } // SSISPropertyOverride - SSIS property override. type SSISPropertyOverride struct { // REQUIRED; SSIS package property override value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any // Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true - IsSensitive *bool `json:"isSensitive,omitempty"` + IsSensitive *bool } // SalesforceLinkedService - Linked service for Salesforce. type SalesforceLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Salesforce linked service properties. - TypeProperties *SalesforceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SalesforceLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceLinkedService. func (s *SalesforceLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. type SalesforceLinkedServiceTypeProperties struct { // The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` + APIVersion any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. // To copy data from custom domain, specify, for example, // 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + EnvironmentURL any // The password for Basic authentication of the Salesforce instance. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The security token is optional to remotely access Salesforce instance. - SecurityToken SecretBaseClassification `json:"securityToken,omitempty"` + SecurityToken SecretBaseClassification // The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // SalesforceMarketingCloudLinkedService - Salesforce Marketing Cloud linked service. type SalesforceMarketingCloudLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Salesforce Marketing Cloud linked service properties. - TypeProperties *SalesforceMarketingCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SalesforceMarketingCloudLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceMarketingCloudLinkedService. func (s *SalesforceMarketingCloudLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. type SalesforceMarketingCloudLinkedServiceTypeProperties struct { // The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType // string). - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // Properties used to connect to Salesforce Marketing Cloud. It is mutually exclusive with any other properties in the linked // service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // SalesforceMarketingCloudObjectDataset - Salesforce Marketing Cloud dataset. type SalesforceMarketingCloudObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SalesforceMarketingCloudObjectDataset. func (s *SalesforceMarketingCloudObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SalesforceMarketingCloudSource - A copy activity Salesforce Marketing Cloud source. type SalesforceMarketingCloudSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SalesforceMarketingCloudSource. func (s *SalesforceMarketingCloudSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SalesforceMarketingCloudSource. func (s *SalesforceMarketingCloudSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SalesforceObjectDataset - The Salesforce object dataset. type SalesforceObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Salesforce object dataset properties. - TypeProperties *SalesforceObjectDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SalesforceObjectDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SalesforceObjectDataset. func (s *SalesforceObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. type SalesforceObjectDatasetTypeProperties struct { // The Salesforce object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` + ObjectAPIName any } // SalesforceServiceCloudLinkedService - Linked service for Salesforce Service Cloud. type SalesforceServiceCloudLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Salesforce Service Cloud linked service properties. - TypeProperties *SalesforceServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SalesforceServiceCloudLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceServiceCloudLinkedService. func (s *SalesforceServiceCloudLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SalesforceServiceCloudLinkedServiceTypeProperties - Salesforce Service Cloud linked service properties. type SalesforceServiceCloudLinkedServiceTypeProperties struct { // The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` + APIVersion any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The URL of Salesforce Service Cloud instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify // 'https://test.salesforce.com'. To copy data from custom domain, specify, for // example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + EnvironmentURL any // Extended properties appended to the connection string. Type: string (or Expression with resultType string). - ExtendedProperties interface{} `json:"extendedProperties,omitempty"` + ExtendedProperties any // The password for Basic authentication of the Salesforce instance. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The security token is optional to remotely access Salesforce instance. - SecurityToken SecretBaseClassification `json:"securityToken,omitempty"` + SecurityToken SecretBaseClassification // The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // SalesforceServiceCloudObjectDataset - The Salesforce Service Cloud object dataset. type SalesforceServiceCloudObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Salesforce Service Cloud object dataset properties. - TypeProperties *SalesforceServiceCloudObjectDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SalesforceServiceCloudObjectDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SalesforceServiceCloudObjectDataset. func (s *SalesforceServiceCloudObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SalesforceServiceCloudObjectDatasetTypeProperties - Salesforce Service Cloud object dataset properties. type SalesforceServiceCloudObjectDatasetTypeProperties struct { // The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` + ObjectAPIName any } // SalesforceServiceCloudSink - A copy activity Salesforce Service Cloud sink. type SalesforceServiceCloudSink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with // resultType string). - ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` + ExternalIDFieldName any // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. // Default value is false. If set it to true, it means ADF will leave the data in @@ -23918,98 +24553,219 @@ type SalesforceServiceCloudSink struct { // operation, versus ADF will update the data in the destination object to NULL when // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType // boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // The write behavior for the operation. Default is Insert. - WriteBehavior *SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` + WriteBehavior *SalesforceSinkWriteBehavior } // GetCopySink implements the CopySinkClassification interface for type SalesforceServiceCloudSink. func (s *SalesforceServiceCloudSink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } // SalesforceServiceCloudSource - A copy activity Salesforce Service Cloud source. type SalesforceServiceCloudSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any - // The read behavior for the operation. Default is Query. - ReadBehavior *SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` + // The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with + // resultType string). + ReadBehavior any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SalesforceServiceCloudSource. func (s *SalesforceServiceCloudSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// SalesforceSink - A copy activity Salesforce sink. -type SalesforceSink struct { +// SalesforceServiceCloudV2LinkedService - Linked service for Salesforce Service Cloud V2. +type SalesforceServiceCloudV2LinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; Salesforce Service Cloud V2 linked service properties. + TypeProperties *SalesforceServiceCloudV2LinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type SalesforceServiceCloudV2LinkedService. +func (s *SalesforceServiceCloudV2LinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + ConnectVia: s.ConnectVia, + Description: s.Description, + Parameters: s.Parameters, + Type: s.Type, + } +} + +// SalesforceServiceCloudV2LinkedServiceTypeProperties - Salesforce Service Cloud V2 linked service properties. +type SalesforceServiceCloudV2LinkedServiceTypeProperties struct { + // The Salesforce API version used in ADF. The version must be larger than or equal to 47.0 which is required by Salesforce + // BULK API 2.0. Type: string (or Expression with resultType string). + APIVersion any + + // The authentication type to be used to connect to the Salesforce. Currently, we only support OAuth2ClientCredentials, it + // is also the default value + AuthenticationType any + + // The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression + // with resultType string). + ClientID any + + // The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. + ClientSecret SecretBaseClassification + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // The URL of Salesforce Service Cloud instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression + // with resultType string). + EnvironmentURL any +} + +// SalesforceServiceCloudV2ObjectDataset - The Salesforce Service Cloud V2 object dataset. +type SalesforceServiceCloudV2ObjectDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any + + // Salesforce Service Cloud V2 object dataset properties. + TypeProperties *SalesforceServiceCloudV2ObjectDatasetTypeProperties +} + +// GetDataset implements the DatasetClassification interface for type SalesforceServiceCloudV2ObjectDataset. +func (s *SalesforceServiceCloudV2ObjectDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + Description: s.Description, + Folder: s.Folder, + LinkedServiceName: s.LinkedServiceName, + Parameters: s.Parameters, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, + } +} + +// SalesforceServiceCloudV2ObjectDatasetTypeProperties - Salesforce Service Cloud V2 object dataset properties. +type SalesforceServiceCloudV2ObjectDatasetTypeProperties struct { + // The Salesforce Service Cloud V2 object API name. Type: string (or Expression with resultType string). + ObjectAPIName any + + // The Salesforce Service Cloud V2 reportId. Type: string (or Expression with resultType string). + ReportID any +} + +// SalesforceServiceCloudV2Sink - A copy activity Salesforce Service Cloud V2 sink. +type SalesforceServiceCloudV2Sink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with // resultType string). - ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` + ExternalIDFieldName any // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. // Default value is false. If set it to true, it means ADF will leave the data in @@ -24017,878 +24773,1216 @@ type SalesforceSink struct { // operation, versus ADF will update the data in the destination object to NULL when // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType // boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any // The write behavior for the operation. Default is Insert. - WriteBehavior *SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` + WriteBehavior *SalesforceV2SinkWriteBehavior } -// GetCopySink implements the CopySinkClassification interface for type SalesforceSink. -func (s *SalesforceSink) GetCopySink() *CopySink { +// GetCopySink implements the CopySinkClassification interface for type SalesforceServiceCloudV2Sink. +func (s *SalesforceServiceCloudV2Sink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } -// SalesforceSource - A copy activity Salesforce source. -type SalesforceSource struct { +// SalesforceServiceCloudV2Source - A copy activity Salesforce Service Cloud V2 source. +type SalesforceServiceCloudV2Source struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any + + // This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with + // resultType boolean). + IncludeDeletedObjects any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - - // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - - // The read behavior for the operation. Default is Query. - ReadBehavior *SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` + SOQLQuery any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } -// GetCopySource implements the CopySourceClassification interface for type SalesforceSource. -func (s *SalesforceSource) GetCopySource() *CopySource { +// GetCopySource implements the CopySourceClassification interface for type SalesforceServiceCloudV2Source. +func (s *SalesforceServiceCloudV2Source) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, - SourceRetryCount: s.SourceRetryCount, - SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, AdditionalProperties: s.AdditionalProperties, - } -} - -// GetTabularSource implements the TabularSourceClassification interface for type SalesforceSource. -func (s *SalesforceSource) GetTabularSource() *TabularSource { - return &TabularSource{ - QueryTimeout: s.QueryTimeout, - AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// SapBWLinkedService - SAP Business Warehouse Linked Service. -type SapBWLinkedService struct { - // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` - - // REQUIRED; Properties specific to this linked service type. - TypeProperties *SapBWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SalesforceSink - A copy activity Salesforce sink. +type SalesforceSink struct { + // REQUIRED; Copy sink type. + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any - // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any - // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with + // resultType string). + ExternalIDFieldName any - // 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 SapBWLinkedService. -func (s *SapBWLinkedService) GetLinkedService() *LinkedService { - return &LinkedService{ - Type: s.Type, - ConnectVia: s.ConnectVia, - Description: s.Description, - Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, - } -} - -// SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. -type SapBWLinkedServiceTypeProperties struct { - // REQUIRED; Client ID of the client on the BW system. (Usually a three-digit decimal number represented as a string) Type: - // string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - - // REQUIRED; Host name of the SAP BW instance. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - - // REQUIRED; System number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or - // Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` - - // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - - // Password to access the SAP BW server. - Password SecretBaseClassification `json:"password,omitempty"` - - // Username to access the SAP BW server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` -} - -// SapBwCubeDataset - The SAP BW cube dataset. -type SapBwCubeDataset struct { - // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - - // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. + // Default value is false. If set it to true, it means ADF will leave the data in + // the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert + // operation, versus ADF will update the data in the destination object to NULL when + // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType + // boolean). + IgnoreNullValues any - // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any - // Dataset description. - Description *string `json:"description,omitempty"` + // Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount any - // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait any - // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize any - // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: - // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout any - // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + // The write behavior for the operation. Default is Insert. + WriteBehavior *SalesforceSinkWriteBehavior } -// GetDataset implements the DatasetClassification interface for type SapBwCubeDataset. -func (s *SapBwCubeDataset) GetDataset() *Dataset { - return &Dataset{ - Type: s.Type, - Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, - LinkedServiceName: s.LinkedServiceName, - Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, +// GetCopySink implements the CopySinkClassification interface for type SalesforceSink. +func (s *SalesforceSink) GetCopySink() *CopySink { + return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, + Type: s.Type, + WriteBatchSize: s.WriteBatchSize, + WriteBatchTimeout: s.WriteBatchTimeout, } } -// SapBwSource - A copy activity source for SapBW server via MDX. -type SapBwSource struct { +// SalesforceSource - A copy activity Salesforce source. +type SalesforceSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any - // MDX query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + // Database query. Type: string (or Expression with resultType string). + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any + + // The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with + // resultType string). + ReadBehavior any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } -// GetCopySource implements the CopySourceClassification interface for type SapBwSource. -func (s *SapBwSource) GetCopySource() *CopySource { +// GetCopySource implements the CopySourceClassification interface for type SalesforceSource. +func (s *SalesforceSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// GetTabularSource implements the TabularSourceClassification interface for type SapBwSource. -func (s *SapBwSource) GetTabularSource() *TabularSource { +// GetTabularSource implements the TabularSourceClassification interface for type SalesforceSource. +func (s *SalesforceSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// SapCloudForCustomerLinkedService - Linked service for SAP Cloud for Customer. -type SapCloudForCustomerLinkedService struct { +// SalesforceV2LinkedService - Linked service for Salesforce V2. +type SalesforceV2LinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string - // REQUIRED; SAP Cloud for Customer linked service properties. - TypeProperties *SapCloudForCustomerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // REQUIRED; Salesforce V2 linked service properties. + TypeProperties *SalesforceV2LinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } -// GetLinkedService implements the LinkedServiceClassification interface for type SapCloudForCustomerLinkedService. -func (s *SapCloudForCustomerLinkedService) GetLinkedService() *LinkedService { +// GetLinkedService implements the LinkedServiceClassification interface for type SalesforceV2LinkedService. +func (s *SalesforceV2LinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. -type SapCloudForCustomerLinkedServiceTypeProperties struct { - // REQUIRED; The URL of SAP Cloud for Customer OData API. For example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. - // Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` +// SalesforceV2LinkedServiceTypeProperties - Salesforce V2 linked service properties. +type SalesforceV2LinkedServiceTypeProperties struct { + // The Salesforce API version used in ADF. The version must be larger than or equal to 47.0 which is required by Salesforce + // BULK API 2.0. Type: string (or Expression with resultType string). + APIVersion any - // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Either encryptedCredential or username/password must be provided. Type: - // string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // The authentication type to be used to connect to the Salesforce. Currently, we only support OAuth2ClientCredentials, it + // is also the default value + AuthenticationType any - // The password for Basic authentication. - Password SecretBaseClassification `json:"password,omitempty"` + // The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression + // with resultType string). + ClientID any - // The username for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + // The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. + ClientSecret SecretBaseClassification + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // The URL of Salesforce instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType + // string). + EnvironmentURL any } -// SapCloudForCustomerResourceDataset - The path of the SAP Cloud for Customer OData entity. -type SapCloudForCustomerResourceDataset struct { +// SalesforceV2ObjectDataset - The Salesforce V2 object dataset. +type SalesforceV2ObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` - - // REQUIRED; SAP Cloud For Customer OData resource dataset properties. - TypeProperties *SapCloudForCustomerResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any + + // Salesforce V2 object dataset properties. + TypeProperties *SalesforceV2ObjectDatasetTypeProperties } -// GetDataset implements the DatasetClassification interface for type SapCloudForCustomerResourceDataset. -func (s *SapCloudForCustomerResourceDataset) GetDataset() *Dataset { +// GetDataset implements the DatasetClassification interface for type SalesforceV2ObjectDataset. +func (s *SalesforceV2ObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } -// SapCloudForCustomerResourceDatasetTypeProperties - Sap Cloud For Customer OData resource dataset properties. -type SapCloudForCustomerResourceDatasetTypeProperties struct { - // REQUIRED; The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` +// SalesforceV2ObjectDatasetTypeProperties - Salesforce V2 object dataset properties. +type SalesforceV2ObjectDatasetTypeProperties struct { + // The Salesforce V2 object API name. Type: string (or Expression with resultType string). + ObjectAPIName any + + // The Salesforce V2 report Id. Type: string (or Expression with resultType string). + ReportID any } -// SapCloudForCustomerSink - A copy activity SAP Cloud for Customer sink. -type SapCloudForCustomerSink struct { +// SalesforceV2Sink - A copy activity Salesforce V2 sink. +type SalesforceV2Sink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. - // Default value: 00:05:00. Type: string (or Expression with resultType - // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with + // resultType string). + ExternalIDFieldName any + + // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. + // Default value is false. If set it to true, it means ADF will leave the data in + // the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert + // operation, versus ADF will update the data in the destination object to NULL when + // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType + // boolean). + IgnoreNullValues any // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any - // The write behavior for the operation. Default is 'Insert'. - WriteBehavior *SapCloudForCustomerSinkWriteBehavior `json:"writeBehavior,omitempty"` + // The write behavior for the operation. Default is Insert. + WriteBehavior *SalesforceV2SinkWriteBehavior } -// GetCopySink implements the CopySinkClassification interface for type SapCloudForCustomerSink. -func (s *SapCloudForCustomerSink) GetCopySink() *CopySink { +// GetCopySink implements the CopySinkClassification interface for type SalesforceV2Sink. +func (s *SalesforceV2Sink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } -// SapCloudForCustomerSource - A copy activity source for SAP Cloud for Customer source. -type SapCloudForCustomerSource struct { +// SalesforceV2Source - A copy activity Salesforce V2 source. +type SalesforceV2Source struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. - // Default value: 00:05:00. Type: string (or Expression with resultType - // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with + // resultType boolean). + IncludeDeletedObjects any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - - // SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + MaxConcurrentConnections any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any + + // Database query. Type: string (or Expression with resultType string). + SOQLQuery any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } -// GetCopySource implements the CopySourceClassification interface for type SapCloudForCustomerSource. -func (s *SapCloudForCustomerSource) GetCopySource() *CopySource { +// GetCopySource implements the CopySourceClassification interface for type SalesforceV2Source. +func (s *SalesforceV2Source) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// GetTabularSource implements the TabularSourceClassification interface for type SapCloudForCustomerSource. -func (s *SapCloudForCustomerSource) GetTabularSource() *TabularSource { +// GetTabularSource implements the TabularSourceClassification interface for type SalesforceV2Source. +func (s *SalesforceV2Source) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// SapEccLinkedService - Linked service for SAP ERP Central Component(SAP ECC). -type SapEccLinkedService struct { +// SapBWLinkedService - SAP Business Warehouse Linked Service. +type SapBWLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string - // REQUIRED; SAP ECC linked service properties. - TypeProperties *SapEccLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // REQUIRED; Properties specific to this linked service type. + TypeProperties *SapBWLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } -// GetLinkedService implements the LinkedServiceClassification interface for type SapEccLinkedService. -func (s *SapEccLinkedService) GetLinkedService() *LinkedService { +// GetLinkedService implements the LinkedServiceClassification interface for type SapBWLinkedService. +func (s *SapBWLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. -type SapEccLinkedServiceTypeProperties struct { - // REQUIRED; The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string - // (or Expression with resultType string). - URL *string `json:"url,omitempty"` - - // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Either encryptedCredential or username/password must be provided. Type: +// SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. +type SapBWLinkedServiceTypeProperties struct { + // REQUIRED; Client ID of the client on the BW system. (Usually a three-digit decimal number represented as a string) Type: // string (or Expression with resultType string). - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - - // The password for Basic authentication. - Password SecretBaseClassification `json:"password,omitempty"` + ClientID any - // The username for Basic authentication. Type: string (or Expression with resultType string). - Username *string `json:"username,omitempty"` -} + // REQUIRED; Host name of the SAP BW instance. Type: string (or Expression with resultType string). + Server any + + // REQUIRED; System number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or + // Expression with resultType string). + SystemNumber any + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // Password to access the SAP BW server. + Password SecretBaseClassification + + // Username to access the SAP BW server. Type: string (or Expression with resultType string). + UserName any +} + +// SapBwCubeDataset - The SAP BW cube dataset. +type SapBwCubeDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any +} + +// GetDataset implements the DatasetClassification interface for type SapBwCubeDataset. +func (s *SapBwCubeDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + Description: s.Description, + Folder: s.Folder, + LinkedServiceName: s.LinkedServiceName, + Parameters: s.Parameters, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, + } +} + +// SapBwSource - A copy activity source for SapBW server via MDX. +type SapBwSource struct { + // REQUIRED; Copy source type. + Type *string + + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // MDX query. Type: string (or Expression with resultType string). + Query any + + // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any +} + +// GetCopySource implements the CopySourceClassification interface for type SapBwSource. +func (s *SapBwSource) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, + } +} + +// GetTabularSource implements the TabularSourceClassification interface for type SapBwSource. +func (s *SapBwSource) GetTabularSource() *TabularSource { + return &TabularSource{ + AdditionalColumns: s.AdditionalColumns, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, + } +} + +// SapCloudForCustomerLinkedService - Linked service for SAP Cloud for Customer. +type SapCloudForCustomerLinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; SAP Cloud for Customer linked service properties. + TypeProperties *SapCloudForCustomerLinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type SapCloudForCustomerLinkedService. +func (s *SapCloudForCustomerLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + ConnectVia: s.ConnectVia, + Description: s.Description, + Parameters: s.Parameters, + Type: s.Type, + } +} + +// SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. +type SapCloudForCustomerLinkedServiceTypeProperties struct { + // REQUIRED; The URL of SAP Cloud for Customer OData API. For example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. + // Type: string (or Expression with resultType string). + URL any + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Either encryptedCredential or username/password must be provided. Type: + // string. + EncryptedCredential *string + + // The password for Basic authentication. + Password SecretBaseClassification + + // The username for Basic authentication. Type: string (or Expression with resultType string). + Username any +} + +// SapCloudForCustomerResourceDataset - The path of the SAP Cloud for Customer OData entity. +type SapCloudForCustomerResourceDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // REQUIRED; SAP Cloud For Customer OData resource dataset properties. + TypeProperties *SapCloudForCustomerResourceDatasetTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any +} + +// GetDataset implements the DatasetClassification interface for type SapCloudForCustomerResourceDataset. +func (s *SapCloudForCustomerResourceDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + Description: s.Description, + Folder: s.Folder, + LinkedServiceName: s.LinkedServiceName, + Parameters: s.Parameters, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, + } +} + +// SapCloudForCustomerResourceDatasetTypeProperties - Sap Cloud For Customer OData resource dataset properties. +type SapCloudForCustomerResourceDatasetTypeProperties struct { + // REQUIRED; The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). + Path any +} + +// SapCloudForCustomerSink - A copy activity SAP Cloud for Customer sink. +type SapCloudForCustomerSink struct { + // REQUIRED; Copy sink type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. + // Default value: 00:05:00. Type: string (or Expression with resultType + // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout any + + // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount any + + // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait any + + // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize any + + // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout any + + // The write behavior for the operation. Default is 'Insert'. + WriteBehavior *SapCloudForCustomerSinkWriteBehavior +} + +// GetCopySink implements the CopySinkClassification interface for type SapCloudForCustomerSink. +func (s *SapCloudForCustomerSink) GetCopySink() *CopySink { + return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, + Type: s.Type, + WriteBatchSize: s.WriteBatchSize, + WriteBatchTimeout: s.WriteBatchTimeout, + } +} + +// SapCloudForCustomerSource - A copy activity source for SAP Cloud for Customer source. +type SapCloudForCustomerSource struct { + // REQUIRED; Copy source type. + Type *string + + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. + // Default value: 00:05:00. Type: string (or Expression with resultType + // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). + Query any + + // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any +} + +// GetCopySource implements the CopySourceClassification interface for type SapCloudForCustomerSource. +func (s *SapCloudForCustomerSource) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, + } +} + +// GetTabularSource implements the TabularSourceClassification interface for type SapCloudForCustomerSource. +func (s *SapCloudForCustomerSource) GetTabularSource() *TabularSource { + return &TabularSource{ + AdditionalColumns: s.AdditionalColumns, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, + } +} + +// SapEccLinkedService - Linked service for SAP ERP Central Component(SAP ECC). +type SapEccLinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; SAP ECC linked service properties. + TypeProperties *SapEccLinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type SapEccLinkedService. +func (s *SapEccLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + ConnectVia: s.ConnectVia, + Description: s.Description, + Parameters: s.Parameters, + Type: s.Type, + } +} + +// SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. +type SapEccLinkedServiceTypeProperties struct { + // REQUIRED; The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string + // (or Expression with resultType string). + URL any + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Either encryptedCredential or username/password must be provided. Type: + // string. + EncryptedCredential *string + + // The password for Basic authentication. + Password SecretBaseClassification + + // The username for Basic authentication. Type: string (or Expression with resultType string). + Username any +} // SapEccResourceDataset - The path of the SAP ECC OData entity. type SapEccResourceDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; SAP ECC OData resource dataset properties. - TypeProperties *SapEccResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapEccResourceDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type SapEccResourceDataset. func (s *SapEccResourceDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SapEccResourceDatasetTypeProperties - Sap ECC OData resource dataset properties. type SapEccResourceDatasetTypeProperties struct { // REQUIRED; The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any } // SapEccSource - A copy activity source for SAP ECC source. type SapEccSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SapEccSource. func (s *SapEccSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SapEccSource. func (s *SapEccSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SapHanaLinkedService - SAP HANA Linked Service. type SapHanaLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to this linked service type. - TypeProperties *SapHanaLinkedServiceProperties `json:"typeProperties,omitempty"` + TypeProperties *SapHanaLinkedServiceProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SapHanaLinkedService. func (s *SapHanaLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SapHanaLinkedServiceProperties - Properties specific to this linked service type. type SapHanaLinkedServiceProperties struct { // The authentication type to be used to connect to the SAP HANA server. - AuthenticationType *SapHanaAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *SapHanaAuthenticationType // SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password to access the SAP HANA server. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Host name of the SAP HANA server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any // Username to access the SAP HANA server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // SapHanaPartitionSettings - The settings that will be leveraged for SAP HANA source partitioning. type SapHanaPartitionSettings struct { // The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType // string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any } // SapHanaSource - A copy activity source for SAP HANA source. type SapHanaSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). - PacketSize interface{} `json:"packetSize,omitempty"` + PacketSize any // The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "SapHanaDynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any // The settings that will be leveraged for SAP HANA source partitioning. - PartitionSettings *SapHanaPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SapHanaPartitionSettings // SAP HANA Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SapHanaSource. func (s *SapHanaSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SapHanaSource. func (s *SapHanaSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SapHanaTableDataset - SAP HANA Table properties. type SapHanaTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // SAP HANA Table properties. - TypeProperties *SapHanaTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapHanaTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SapHanaTableDataset. func (s *SapHanaTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SapHanaTableDatasetTypeProperties - SAP HANA Table properties. type SapHanaTableDatasetTypeProperties struct { // The schema name of SAP HANA. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of SAP HANA. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any } // SapOdpLinkedService - SAP ODP Linked Service. type SapOdpLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to SAP ODP linked service type. - TypeProperties *SapOdpLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapOdpLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SapOdpLinkedService. func (s *SapOdpLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } @@ -24896,226 +25990,226 @@ func (s *SapOdpLinkedService) GetLinkedService() *LinkedService { type SapOdpLinkedServiceTypeProperties struct { // Client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented // as a string) Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). - Language interface{} `json:"language,omitempty"` + Language any // The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` + LogonGroup any // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` + MessageServer any // The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` + MessageServerService any // Password to access the SAP server where the table is located. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any // External security product's library to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` + SncLibraryPath any // SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string // (or Expression with resultType string). - SncMode interface{} `json:"sncMode,omitempty"` + SncMode any // Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). - SncMyName interface{} `json:"sncMyName,omitempty"` + SncMyName any // Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncPartnerName interface{} `json:"sncPartnerName,omitempty"` + SncPartnerName any // SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). - SncQop interface{} `json:"sncQop,omitempty"` + SncQop any // The subscriber name. Type: string (or Expression with resultType string). - SubscriberName interface{} `json:"subscriberName,omitempty"` + SubscriberName any // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` + SystemID any // System number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) // Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` + SystemNumber any // Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any // SNC X509 certificate file path. Type: string (or Expression with resultType string). - X509CertificatePath interface{} `json:"x509CertificatePath,omitempty"` + X509CertificatePath any } // SapOdpResourceDataset - SAP ODP Resource properties. type SapOdpResourceDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; SAP ODP Resource properties. - TypeProperties *SapOdpResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapOdpResourceDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type SapOdpResourceDataset. func (s *SapOdpResourceDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SapOdpResourceDatasetTypeProperties - SAP ODP Resource properties. type SapOdpResourceDatasetTypeProperties struct { // REQUIRED; The context of the SAP ODP Object. Type: string (or Expression with resultType string). - Context interface{} `json:"context,omitempty"` + Context any // REQUIRED; The name of the SAP ODP Object. Type: string (or Expression with resultType string). - ObjectName interface{} `json:"objectName,omitempty"` + ObjectName any } // SapOdpSource - A copy activity source for SAP ODP source. type SapOdpSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The extraction mode. Allowed value include: Full, Delta and Recovery. The default value is Full. Type: string (or Expression // with resultType string). - ExtractionMode interface{} `json:"extractionMode,omitempty"` + ExtractionMode any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Specifies the columns to be selected from source data. Type: array of objects(projection) (or Expression with resultType // array of objects). - Projection interface{} `json:"projection,omitempty"` + Projection any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Specifies the selection conditions from source data. Type: array of objects(selection) (or Expression with resultType array // of objects). - Selection interface{} `json:"selection,omitempty"` + Selection any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // The subscriber process to manage the delta process. Type: string (or Expression with resultType string). - SubscriberProcess interface{} `json:"subscriberProcess,omitempty"` + SubscriberProcess any } // GetCopySource implements the CopySourceClassification interface for type SapOdpSource. func (s *SapOdpSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SapOdpSource. func (s *SapOdpSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SapOpenHubLinkedService - SAP Business Warehouse Open Hub Destination Linked Service. type SapOpenHubLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to SAP Business Warehouse Open Hub Destination linked service type. - TypeProperties *SapOpenHubLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapOpenHubLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SapOpenHubLinkedService. func (s *SapOpenHubLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } @@ -25124,161 +26218,161 @@ func (s *SapOpenHubLinkedService) GetLinkedService() *LinkedService { type SapOpenHubLinkedServiceTypeProperties struct { // Client ID of the client on the BW system where the open hub destination is located. (Usually a three-digit decimal number // represented as a string) Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression // with resultType string). - Language interface{} `json:"language,omitempty"` + Language any // The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` + LogonGroup any // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` + MessageServer any // The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` + MessageServerService any // Password to access the SAP BW server where the open hub destination is located. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType // string). - Server interface{} `json:"server,omitempty"` + Server any // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` + SystemID any // System number of the BW system where the open hub destination is located. (Usually a two-digit decimal number represented // as a string.) Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` + SystemNumber any // Username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType // string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // SapOpenHubSource - A copy activity source for SAP Business Warehouse Open Hub Destination source. type SapOpenHubSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will // be retrieved. The default value is 0. Type: integer (or Expression with // resultType integer ). - BaseRequestID interface{} `json:"baseRequestId,omitempty"` + BaseRequestID any // Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with // resultType string). - CustomRFCReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` + CustomRFCReadTableFunctionModule any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType // boolean). - ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` + ExcludeLastRequest any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: // string (or Expression with resultType string). - SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` + SapDataColumnDelimiter any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SapOpenHubSource. func (s *SapOpenHubSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SapOpenHubSource. func (s *SapOpenHubSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SapOpenHubTableDataset - Sap Business Warehouse Open Hub Destination Table properties. type SapOpenHubTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Sap Business Warehouse Open Hub Destination Table properties. - TypeProperties *SapOpenHubTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapOpenHubTableDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type SapOpenHubTableDataset. func (s *SapOpenHubTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } @@ -25286,51 +26380,51 @@ func (s *SapOpenHubTableDataset) GetDataset() *Dataset { type SapOpenHubTableDatasetTypeProperties struct { // REQUIRED; The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with // resultType string). - OpenHubDestinationName interface{} `json:"openHubDestinationName,omitempty"` + OpenHubDestinationName any // The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will // be retrieved. The default value is 0. Type: integer (or Expression with // resultType integer ). - BaseRequestID interface{} `json:"baseRequestId,omitempty"` + BaseRequestID any // Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType // boolean). - ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` + ExcludeLastRequest any } // SapTableLinkedService - SAP Table Linked Service. type SapTableLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to this linked service type. - TypeProperties *SapTableLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapTableLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SapTableLinkedService. func (s *SapTableLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } @@ -25338,443 +26432,457 @@ func (s *SapTableLinkedService) GetLinkedService() *LinkedService { type SapTableLinkedServiceTypeProperties struct { // Client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented // as a string) Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). - Language interface{} `json:"language,omitempty"` + Language any // The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` + LogonGroup any // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` + MessageServer any // The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` + MessageServerService any // Password to access the SAP server where the table is located. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any // External security product's library to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` + SncLibraryPath any // SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string // (or Expression with resultType string). - SncMode interface{} `json:"sncMode,omitempty"` + SncMode any // Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). - SncMyName interface{} `json:"sncMyName,omitempty"` + SncMyName any // Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncPartnerName interface{} `json:"sncPartnerName,omitempty"` + SncPartnerName any // SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). - SncQop interface{} `json:"sncQop,omitempty"` + SncQop any // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` + SystemID any // System number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) // Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` + SystemNumber any // Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // SapTablePartitionSettings - The settings that will be leveraged for SAP table source partitioning. type SapTablePartitionSettings struct { // The maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). - MaxPartitionsNumber interface{} `json:"maxPartitionsNumber,omitempty"` + MaxPartitionsNumber any // The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType // string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any } // SapTableResourceDataset - SAP Table Resource properties. type SapTableResourceDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; SAP Table Resource properties. - TypeProperties *SapTableResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SapTableResourceDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type SapTableResourceDataset. func (s *SapTableResourceDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SapTableResourceDatasetTypeProperties - SAP Table Resource properties. type SapTableResourceDatasetTypeProperties struct { // REQUIRED; The name of the SAP Table. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // SapTableSource - A copy activity source for SAP Table source. type SapTableSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer // (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any // Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with // resultType string). - CustomRFCReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` + CustomRFCReadTableFunctionModule any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for SAP table read in parallel. Possible values include: "None", "PartitionOnInt", // "PartitionOnCalendarYear", "PartitionOnCalendarMonth", // "PartitionOnCalendarDate", "PartitionOnTime". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any // The settings that will be leveraged for SAP table source partitioning. - PartitionSettings *SapTablePartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *SapTablePartitionSettings // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // The fields of the SAP table that will be retrieved. For example, column0, column1. Type: string (or Expression with resultType // string). - RFCTableFields interface{} `json:"rfcTableFields,omitempty"` + RFCTableFields any // The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType // string). - RFCTableOptions interface{} `json:"rfcTableOptions,omitempty"` + RFCTableOptions any // The number of rows to be retrieved. Type: integer(or Expression with resultType integer). - RowCount interface{} `json:"rowCount,omitempty"` + RowCount any // The number of rows that will be skipped. Type: integer (or Expression with resultType integer). - RowSkips interface{} `json:"rowSkips,omitempty"` + RowSkips any // The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: // string (or Expression with resultType string). - SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` + SapDataColumnDelimiter any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SapTableSource. func (s *SapTableSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SapTableSource. func (s *SapTableSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // ScheduleTrigger - Trigger that creates pipeline runs periodically, on schedule. type ScheduleTrigger struct { // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Schedule Trigger properties. - TypeProperties *ScheduleTriggerTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ScheduleTriggerTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // Pipelines that need to be started. - Pipelines []*TriggerPipelineReference `json:"pipelines,omitempty"` + Pipelines []*TriggerPipelineReference // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetMultiplePipelineTrigger implements the MultiplePipelineTriggerClassification interface for type ScheduleTrigger. func (s *ScheduleTrigger) GetMultiplePipelineTrigger() *MultiplePipelineTrigger { return &MultiplePipelineTrigger{ - Pipelines: s.Pipelines, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, + Pipelines: s.Pipelines, RuntimeState: s.RuntimeState, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTrigger implements the TriggerClassification interface for type ScheduleTrigger. func (s *ScheduleTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, RuntimeState: s.RuntimeState, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // ScheduleTriggerRecurrence - The workflow trigger recurrence. type ScheduleTriggerRecurrence struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The end time. - EndTime *time.Time `json:"endTime,omitempty"` + EndTime *time.Time // The frequency. - Frequency *RecurrenceFrequency `json:"frequency,omitempty"` + Frequency *RecurrenceFrequency // The interval. - Interval *int32 `json:"interval,omitempty"` + Interval *int32 // The recurrence schedule. - Schedule *RecurrenceSchedule `json:"schedule,omitempty"` + Schedule *RecurrenceSchedule // The start time. - StartTime *time.Time `json:"startTime,omitempty"` + StartTime *time.Time // The time zone. - TimeZone *string `json:"timeZone,omitempty"` + TimeZone *string } // ScheduleTriggerTypeProperties - Schedule Trigger properties. type ScheduleTriggerTypeProperties struct { // REQUIRED; Recurrence schedule configuration. - Recurrence *ScheduleTriggerRecurrence `json:"recurrence,omitempty"` + Recurrence *ScheduleTriggerRecurrence } // ScriptAction - Custom script action to run on HDI ondemand cluster once it's up. type ScriptAction struct { // REQUIRED; The user provided name of the script action. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The node types on which the script action should be executed. - Roles interface{} `json:"roles,omitempty"` + Roles any // REQUIRED; The URI for the script action. - URI *string `json:"uri,omitempty"` + URI *string // The parameters for the script action. - Parameters *string `json:"parameters,omitempty"` + Parameters *string } // ScriptActivity - Script activity type. type ScriptActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Script activity properties. - TypeProperties *ScriptActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ScriptActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ScriptActivity. func (s *ScriptActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type ScriptActivity. func (s *ScriptActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, LinkedServiceName: s.LinkedServiceName, - Policy: s.Policy, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + Policy: s.Policy, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } // ScriptActivityParameter - Parameters of a script block. type ScriptActivityParameter struct { // The direction of the parameter. - Direction *ScriptActivityParameterDirection `json:"direction,omitempty"` + Direction *ScriptActivityParameterDirection // The name of the parameter. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` + Name any // The size of the output direction parameter. - Size *int32 `json:"size,omitempty"` + Size *int32 // The type of the parameter. - Type *ScriptActivityParameterType `json:"type,omitempty"` + Type *ScriptActivityParameterType - // The value of the parameter. - Value interface{} `json:"value,omitempty"` + // The value of the parameter. Type: string (or Expression with resultType string). + Value any } // ScriptActivityScriptBlock - Script block of scripts. type ScriptActivityScriptBlock struct { // REQUIRED; The query text. Type: string (or Expression with resultType string). - Text interface{} `json:"text,omitempty"` + Text any // REQUIRED; The type of the query. Type: string. - Type *ScriptType `json:"type,omitempty"` + Type *ScriptType // Array of script parameters. Type: array. - Parameters []*ScriptActivityParameter `json:"parameters,omitempty"` + Parameters []*ScriptActivityParameter } // ScriptActivityTypeProperties - Script activity properties. type ScriptActivityTypeProperties struct { // Log settings of script activity. - LogSettings *ScriptActivityTypePropertiesLogSettings `json:"logSettings,omitempty"` + LogSettings *ScriptActivityTypePropertiesLogSettings + + // ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + ScriptBlockExecutionTimeout any // Array of script blocks. Type: array. - Scripts []*ScriptActivityScriptBlock `json:"scripts,omitempty"` + Scripts []*ScriptActivityScriptBlock } // ScriptActivityTypePropertiesLogSettings - Log settings of script activity. type ScriptActivityTypePropertiesLogSettings struct { // REQUIRED; The destination of logs. Type: string. - LogDestination *ScriptActivityLogDestination `json:"logDestination,omitempty"` + LogDestination *ScriptActivityLogDestination // Log location settings customer needs to provide when enabling log. - LogLocationSettings *LogLocationSettings `json:"logLocationSettings,omitempty"` -} - -// SecretBaseClassification provides polymorphic access to related types. -// Call the interface's GetSecretBase() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AzureKeyVaultSecretReference, *SecretBase, *SecureString -type SecretBaseClassification interface { - // GetSecretBase returns the SecretBase content of the underlying type. - GetSecretBase() *SecretBase + LogLocationSettings *LogLocationSettings } // SecretBase - The base definition of a secret type. type SecretBase struct { // REQUIRED; Type of the secret. - Type *string `json:"type,omitempty"` + Type *string } // GetSecretBase implements the SecretBaseClassification interface for type SecretBase. func (s *SecretBase) GetSecretBase() *SecretBase { return s } +// SecureInputOutputPolicy - Execution policy for an activity that supports secure input and output. +type SecureInputOutputPolicy struct { + // When set to true, Input from activity is considered as secure and will not be logged to monitoring. + SecureInput *bool + + // When set to true, Output from activity is considered as secure and will not be logged to monitoring. + SecureOutput *bool +} + // SecureString - Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get // or List API calls. type SecureString struct { // REQUIRED; Type of the secret. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Value of secure string. - Value *string `json:"value,omitempty"` + Value *string } // GetSecretBase implements the SecretBaseClassification interface for type SecureString. @@ -25787,13 +26895,13 @@ func (s *SecureString) GetSecretBase() *SecretBase { // SelfDependencyTumblingWindowTriggerReference - Self referenced tumbling window trigger dependency. type SelfDependencyTumblingWindowTriggerReference struct { // REQUIRED; Timespan applied to the start time of a tumbling window when evaluating dependency. - Offset *string `json:"offset,omitempty"` + Offset *string // REQUIRED; The type of dependency reference. - Type *string `json:"type,omitempty"` + Type *string // The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. - Size *string `json:"size,omitempty"` + Size *string } // GetDependencyReference implements the DependencyReferenceClassification interface for type SelfDependencyTumblingWindowTriggerReference. @@ -25806,686 +26914,885 @@ func (s *SelfDependencyTumblingWindowTriggerReference) GetDependencyReference() // SelfHostedIntegrationRuntime - Self-hosted integration runtime. type SelfHostedIntegrationRuntime struct { // REQUIRED; Type of integration runtime. - Type *IntegrationRuntimeType `json:"type,omitempty"` + Type *IntegrationRuntimeType // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. - Description *string `json:"description,omitempty"` + Description *string // When this property is not null, means this is a linked integration runtime. The property is used to access original integration // runtime. - TypeProperties *SelfHostedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SelfHostedIntegrationRuntimeTypeProperties } // GetIntegrationRuntime implements the IntegrationRuntimeClassification interface for type SelfHostedIntegrationRuntime. func (s *SelfHostedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime { return &IntegrationRuntime{ - Type: s.Type, - Description: s.Description, AdditionalProperties: s.AdditionalProperties, + Description: s.Description, + Type: s.Type, } } // SelfHostedIntegrationRuntimeNode - Properties of Self-hosted integration runtime node. type SelfHostedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The integration runtime capabilities dictionary - Capabilities map[string]*string `json:"capabilities,omitempty" azure:"ro"` + Capabilities map[string]*string // READ-ONLY; Maximum concurrent jobs on the integration runtime node. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty" azure:"ro"` + ConcurrentJobsLimit *int32 // READ-ONLY; The time at which the integration runtime will expire in ISO8601 format. - ExpiryTime *time.Time `json:"expiryTime,omitempty" azure:"ro"` + ExpiryTime *time.Time // READ-ONLY; URI for the host machine of the integration runtime. - HostServiceURI *string `json:"hostServiceUri,omitempty" azure:"ro"` + HostServiceURI *string // READ-ONLY; Indicates whether this node is the active dispatcher for integration runtime requests. - IsActiveDispatcher *bool `json:"isActiveDispatcher,omitempty" azure:"ro"` + IsActiveDispatcher *bool // READ-ONLY; The most recent time at which the integration runtime was connected in ISO8601 format. - LastConnectTime *time.Time `json:"lastConnectTime,omitempty" azure:"ro"` + LastConnectTime *time.Time // READ-ONLY; The last time for the integration runtime node update end. - LastEndUpdateTime *time.Time `json:"lastEndUpdateTime,omitempty" azure:"ro"` + LastEndUpdateTime *time.Time // READ-ONLY; The time the node last started up. - LastStartTime *time.Time `json:"lastStartTime,omitempty" azure:"ro"` + LastStartTime *time.Time // READ-ONLY; The last time for the integration runtime node update start. - LastStartUpdateTime *time.Time `json:"lastStartUpdateTime,omitempty" azure:"ro"` + LastStartUpdateTime *time.Time // READ-ONLY; The integration runtime node last stop time. - LastStopTime *time.Time `json:"lastStopTime,omitempty" azure:"ro"` + LastStopTime *time.Time // READ-ONLY; The result of the last integration runtime node update. - LastUpdateResult *IntegrationRuntimeUpdateResult `json:"lastUpdateResult,omitempty" azure:"ro"` + LastUpdateResult *IntegrationRuntimeUpdateResult // READ-ONLY; Machine name of the integration runtime node. - MachineName *string `json:"machineName,omitempty" azure:"ro"` + MachineName *string // READ-ONLY; The maximum concurrent jobs in this integration runtime. - MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty" azure:"ro"` + MaxConcurrentJobs *int32 // READ-ONLY; Name of the integration runtime node. - NodeName *string `json:"nodeName,omitempty" azure:"ro"` + NodeName *string // READ-ONLY; The time at which the integration runtime node was registered in ISO8601 format. - RegisterTime *time.Time `json:"registerTime,omitempty" azure:"ro"` + RegisterTime *time.Time // READ-ONLY; Status of the integration runtime node. - Status *SelfHostedIntegrationRuntimeNodeStatus `json:"status,omitempty" azure:"ro"` + Status *SelfHostedIntegrationRuntimeNodeStatus // READ-ONLY; Version of the integration runtime node. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string // READ-ONLY; Status of the integration runtime node version. - VersionStatus *string `json:"versionStatus,omitempty" azure:"ro"` + VersionStatus *string } // SelfHostedIntegrationRuntimeStatus - Self-hosted integration runtime status. type SelfHostedIntegrationRuntimeStatus struct { // REQUIRED; Type of integration runtime. - Type *IntegrationRuntimeType `json:"type,omitempty"` + Type *IntegrationRuntimeType // REQUIRED; Self-hosted integration runtime status type properties. - TypeProperties *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SelfHostedIntegrationRuntimeStatusTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` + DataFactoryName *string // READ-ONLY; The state of integration runtime. - State *IntegrationRuntimeState `json:"state,omitempty" azure:"ro"` + State *IntegrationRuntimeState } // GetIntegrationRuntimeStatus implements the IntegrationRuntimeStatusClassification interface for type SelfHostedIntegrationRuntimeStatus. func (s *SelfHostedIntegrationRuntimeStatus) GetIntegrationRuntimeStatus() *IntegrationRuntimeStatus { return &IntegrationRuntimeStatus{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, DataFactoryName: s.DataFactoryName, State: s.State, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SelfHostedIntegrationRuntimeStatusTypeProperties - Self-hosted integration runtime status type properties. type SelfHostedIntegrationRuntimeStatusTypeProperties struct { // The list of linked integration runtimes that are created to share with this integration runtime. - Links []*LinkedIntegrationRuntime `json:"links,omitempty"` + Links []*LinkedIntegrationRuntime // The list of nodes for this integration runtime. - Nodes []*SelfHostedIntegrationRuntimeNode `json:"nodes,omitempty"` + Nodes []*SelfHostedIntegrationRuntimeNode // READ-ONLY; Whether Self-hosted integration runtime auto update has been turned on. - AutoUpdate *IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty" azure:"ro"` + AutoUpdate *IntegrationRuntimeAutoUpdate // READ-ONLY; The estimated time when the self-hosted integration runtime will be updated. - AutoUpdateETA *time.Time `json:"autoUpdateETA,omitempty" azure:"ro"` + AutoUpdateETA *time.Time // READ-ONLY; Object with additional information about integration runtime capabilities. - Capabilities map[string]*string `json:"capabilities,omitempty" azure:"ro"` + Capabilities map[string]*string // READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. - CreateTime *time.Time `json:"createTime,omitempty" azure:"ro"` + CreateTime *time.Time // READ-ONLY; It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration // runtime nodes exist). - InternalChannelEncryption *IntegrationRuntimeInternalChannelEncryptionMode `json:"internalChannelEncryption,omitempty" azure:"ro"` + InternalChannelEncryption *IntegrationRuntimeInternalChannelEncryptionMode // READ-ONLY; The latest version on download center. - LatestVersion *string `json:"latestVersion,omitempty" azure:"ro"` + LatestVersion *string // READ-ONLY; The local time zone offset in hours. - LocalTimeZoneOffset *string `json:"localTimeZoneOffset,omitempty" azure:"ro"` + LocalTimeZoneOffset *string // READ-ONLY; The version that the integration runtime is going to update to. - PushedVersion *string `json:"pushedVersion,omitempty" azure:"ro"` + PushedVersion *string // READ-ONLY; The date at which the integration runtime will be scheduled to update, in ISO8601 format. - ScheduledUpdateDate *time.Time `json:"scheduledUpdateDate,omitempty" azure:"ro"` + ScheduledUpdateDate *time.Time + + // READ-ONLY; An alternative option to ensure interactive authoring function when your self-hosted integration runtime is + // unable to establish a connection with Azure Relay. + SelfContainedInteractiveAuthoringEnabled *bool // READ-ONLY; The URLs for the services used in integration runtime backend service. - ServiceUrls []*string `json:"serviceUrls,omitempty" azure:"ro"` + ServiceUrls []*string // READ-ONLY; The task queue id of the integration runtime. - TaskQueueID *string `json:"taskQueueId,omitempty" azure:"ro"` + TaskQueueID *string // READ-ONLY; The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours - UpdateDelayOffset *string `json:"updateDelayOffset,omitempty" azure:"ro"` + UpdateDelayOffset *string // READ-ONLY; Version of the integration runtime. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string // READ-ONLY; Status of the integration runtime version. - VersionStatus *string `json:"versionStatus,omitempty" azure:"ro"` + VersionStatus *string } // SelfHostedIntegrationRuntimeTypeProperties - The self-hosted integration runtime properties. type SelfHostedIntegrationRuntimeTypeProperties struct { // The base definition of a linked integration runtime. - LinkedInfo LinkedIntegrationRuntimeTypeClassification `json:"linkedInfo,omitempty"` + LinkedInfo LinkedIntegrationRuntimeTypeClassification + + // An alternative option to ensure interactive authoring function when your self-hosted integration runtime is unable to establish + // a connection with Azure Relay. + SelfContainedInteractiveAuthoringEnabled *bool } // ServiceNowLinkedService - ServiceNow server linked service. type ServiceNowLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; ServiceNow server linked service properties. - TypeProperties *ServiceNowLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ServiceNowLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ServiceNowLinkedService. func (s *ServiceNowLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // ServiceNowLinkedServiceTypeProperties - ServiceNow server linked service properties. type ServiceNowLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. - AuthenticationType *ServiceNowAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *ServiceNowAuthenticationType // REQUIRED; The endpoint of the ServiceNow server. (i.e. .service-now.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // The client id for OAuth2 authentication. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The client secret for OAuth2 authentication. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password corresponding to the user name for Basic and OAuth2 authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any // The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. - Username interface{} `json:"username,omitempty"` + Username any } // ServiceNowObjectDataset - ServiceNow server dataset. type ServiceNowObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ServiceNowObjectDataset. func (s *ServiceNowObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // ServiceNowSource - A copy activity ServiceNow server source. type ServiceNowSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type ServiceNowSource. func (s *ServiceNowSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type ServiceNowSource. func (s *ServiceNowSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, + Type: s.Type, + } +} + +// ServiceNowV2LinkedService - ServiceNowV2 server linked service. +type ServiceNowV2LinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; ServiceNowV2 server linked service properties. + TypeProperties *ServiceNowV2LinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type ServiceNowV2LinkedService. +func (s *ServiceNowV2LinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + ConnectVia: s.ConnectVia, + Description: s.Description, + Parameters: s.Parameters, + Type: s.Type, + } +} + +// ServiceNowV2LinkedServiceTypeProperties - ServiceNowV2 server linked service properties. +type ServiceNowV2LinkedServiceTypeProperties struct { + // REQUIRED; The authentication type to use. + AuthenticationType *ServiceNowV2AuthenticationType + + // REQUIRED; The endpoint of the ServiceNowV2 server. (i.e. .service-now.com) + Endpoint any + + // The client id for OAuth2 authentication. + ClientID any + + // The client secret for OAuth2 authentication. + ClientSecret SecretBaseClassification + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // GrantType for OAuth2 authentication. Default value is password. + GrantType any + + // The password corresponding to the user name for Basic and OAuth2 authentication. + Password SecretBaseClassification + + // The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. + Username any +} + +// ServiceNowV2ObjectDataset - ServiceNowV2 server dataset. +type ServiceNowV2ObjectDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any + + // Properties specific to this dataset type. + TypeProperties *GenericDatasetTypeProperties +} + +// GetDataset implements the DatasetClassification interface for type ServiceNowV2ObjectDataset. +func (s *ServiceNowV2ObjectDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + Description: s.Description, + Folder: s.Folder, + LinkedServiceName: s.LinkedServiceName, + Parameters: s.Parameters, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, + } +} + +// ServiceNowV2Source - A copy activity ServiceNowV2 server source. +type ServiceNowV2Source struct { + // REQUIRED; Copy source type. + Type *string + + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // Expression to filter data from source. + Expression *ExpressionV2 + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any +} + +// GetCopySource implements the CopySourceClassification interface for type ServiceNowV2Source. +func (s *ServiceNowV2Source) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: s.AdditionalProperties, DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, + } +} + +// GetTabularSource implements the TabularSourceClassification interface for type ServiceNowV2Source. +func (s *ServiceNowV2Source) GetTabularSource() *TabularSource { + return &TabularSource{ + AdditionalColumns: s.AdditionalColumns, AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, } } // ServicePrincipalCredential - Service principal credential. type ServicePrincipalCredential struct { // REQUIRED; Type of credential. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Service Principal credential properties. - TypeProperties *ServicePrincipalCredentialTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ServicePrincipalCredentialTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Credential. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Credential description. - Description *string `json:"description,omitempty"` + Description *string } // GetCredential implements the CredentialClassification interface for type ServicePrincipalCredential. func (s *ServicePrincipalCredential) GetCredential() *Credential { return &Credential{ - Type: s.Type, - Description: s.Description, - Annotations: s.Annotations, AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + Description: s.Description, + Type: s.Type, } } // ServicePrincipalCredentialTypeProperties - Service Principal credential type properties. type ServicePrincipalCredentialTypeProperties struct { // The app ID of the service principal used to authenticate - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // The key of the service principal used to authenticate. - ServicePrincipalKey *AzureKeyVaultSecretReference `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey *AzureKeyVaultSecretReference // The ID of the tenant to which the service principal belongs - Tenant interface{} `json:"tenant,omitempty"` + Tenant any } // SetVariableActivity - Set value for a Variable. type SetVariableActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Set Variable activity properties. - TypeProperties *SetVariableActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SetVariableActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity policy. + Policy *SecureInputOutputPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type SetVariableActivity. func (s *SetVariableActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type SetVariableActivity. func (s *SetVariableActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } // SetVariableActivityTypeProperties - SetVariable activity properties. type SetVariableActivityTypeProperties struct { - // Value to be set. Could be a static value or Expression - Value interface{} `json:"value,omitempty"` + // If set to true, it sets the pipeline run return value. + SetSystemVariable *bool + + // Value to be set. Could be a static value or Expression. + Value any // Name of the variable whose value needs to be set. - VariableName *string `json:"variableName,omitempty"` + VariableName *string } // SftpLocation - The location of SFTP dataset. type SftpLocation struct { // REQUIRED; Type of dataset storage location. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any } // GetDatasetLocation implements the DatasetLocationClassification interface for type SftpLocation. func (s *SftpLocation) GetDatasetLocation() *DatasetLocation { return &DatasetLocation{ - Type: s.Type, - FolderPath: s.FolderPath, - FileName: s.FileName, AdditionalProperties: s.AdditionalProperties, + FileName: s.FileName, + FolderPath: s.FolderPath, + Type: s.Type, } } // SftpReadSettings - Sftp read settings. type SftpReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any // If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - DisableChunking interface{} `json:"disableChunking,omitempty"` + DisableChunking any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any // Sftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any // Sftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type SftpReadSettings. func (s *SftpReadSettings) GetStoreReadSettings() *StoreReadSettings { return &StoreReadSettings{ - Type: s.Type, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + Type: s.Type, } } // SftpServerLinkedService - A linked service for an SSH File Transfer Protocol (SFTP) server. type SftpServerLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Properties specific to this linked service type. - TypeProperties *SftpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SftpServerLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SftpServerLinkedService. func (s *SftpServerLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. type SftpServerLinkedServiceTypeProperties struct { // REQUIRED; The SFTP server host name. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any // The authentication type to be used to connect to the FTP server. - AuthenticationType *SftpAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *SftpAuthenticationType // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. // Type: string (or Expression with resultType string). - HostKeyFingerprint interface{} `json:"hostKeyFingerprint,omitempty"` + HostKeyFingerprint any // The password to decrypt the SSH private key if the SSH private key is encrypted. - PassPhrase SecretBaseClassification `json:"passPhrase,omitempty"` + PassPhrase SecretBaseClassification // Password to logon the SFTP server for Basic authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The TCP port number that the SFTP server uses to listen for client connections. Default value is 22. Type: integer (or // Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any // Base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, // either PrivateKeyPath or PrivateKeyContent should be specified. SSH // private key should be OpenSSH format. - PrivateKeyContent SecretBaseClassification `json:"privateKeyContent,omitempty"` + PrivateKeyContent SecretBaseClassification // The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with // SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should // be specified. SSH private key should be OpenSSH format. Type: string (or Expression with resultType string). - PrivateKeyPath interface{} `json:"privateKeyPath,omitempty"` + PrivateKeyPath any // If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). - SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` + SkipHostKeyValidation any // The username used to log on to the SFTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // SftpWriteSettings - Sftp write settings. type SftpWriteSettings struct { // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any + + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem // Specifies the timeout for writing each chunk to SFTP server. Default value: 01:00:00 (one hour). Type: string (or Expression // with resultType string). - OperationTimeout interface{} `json:"operationTimeout,omitempty"` + OperationTimeout any // Upload to temporary file(s) and rename. Disable this option if your SFTP server doesn't support rename operation. Type: // boolean (or Expression with resultType boolean). - UseTempFileRename interface{} `json:"useTempFileRename,omitempty"` + UseTempFileRename any } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type SftpWriteSettings. func (s *SftpWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return &StoreWriteSettings{ - Type: s.Type, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - CopyBehavior: s.CopyBehavior, AdditionalProperties: s.AdditionalProperties, + CopyBehavior: s.CopyBehavior, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + Metadata: s.Metadata, + Type: s.Type, } } // SharePointOnlineListDatasetTypeProperties - Sharepoint online list dataset properties. type SharePointOnlineListDatasetTypeProperties struct { // The name of the SharePoint Online list. Type: string (or Expression with resultType string). - ListName interface{} `json:"listName,omitempty"` + ListName any } // SharePointOnlineListLinkedService - SharePoint Online List linked service. type SharePointOnlineListLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; SharePoint Online List linked service properties. - TypeProperties *SharePointOnlineListLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SharePointOnlineListLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SharePointOnlineListLinkedService. func (s *SharePointOnlineListLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } @@ -26494,278 +27801,278 @@ type SharePointOnlineListLinkedServiceTypeProperties struct { // REQUIRED; The application (client) ID of your application registered in Azure Active Directory. Make sure to grant SharePoint // site permission to this application. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any // REQUIRED; The client secret of your application registered in Azure Active Directory. Type: string (or Expression with // resultType string). - ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` + ServicePrincipalKey SecretBaseClassification // REQUIRED; The URL of the SharePoint Online site. For example, https://contoso.sharepoint.com/sites/siteName. Type: string // (or Expression with resultType string). - SiteURL interface{} `json:"siteUrl,omitempty"` + SiteURL any // REQUIRED; The tenant ID under which your application resides. You can find it from Azure portal Active Directory overview // page. Type: string (or Expression with resultType string). - TenantID interface{} `json:"tenantId,omitempty"` + TenantID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string } // SharePointOnlineListResourceDataset - The sharepoint online list resource dataset. type SharePointOnlineListResourceDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Sharepoint online list dataset properties. - TypeProperties *SharePointOnlineListDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SharePointOnlineListDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SharePointOnlineListResourceDataset. func (s *SharePointOnlineListResourceDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SharePointOnlineListSource - A copy activity source for sharePoint online list source. type SharePointOnlineListSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The wait time to get a response from SharePoint Online. Default value is 5 minutes (00:05:00). Type: string (or Expression // with resultType string), pattern: // ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The OData query to filter the data in SharePoint Online list. For example, "$top=1". Type: string (or Expression with resultType // string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SharePointOnlineListSource. func (s *SharePointOnlineListSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, - SourceRetryCount: s.SourceRetryCount, - SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, } } // ShopifyLinkedService - Shopify Service linked service. type ShopifyLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Shopify Service linked service properties. - TypeProperties *ShopifyLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ShopifyLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ShopifyLinkedService. func (s *ShopifyLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // ShopifyLinkedServiceTypeProperties - Shopify Service linked service properties. type ShopifyLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Shopify server. (i.e. mystore.myshopify.com) - Host interface{} `json:"host,omitempty"` + Host any // The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. - AccessToken SecretBaseClassification `json:"accessToken,omitempty"` + AccessToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // ShopifyObjectDataset - Shopify Service dataset. type ShopifyObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ShopifyObjectDataset. func (s *ShopifyObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // ShopifySource - A copy activity Shopify Service source. type ShopifySource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type ShopifySource. func (s *ShopifySource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type ShopifySource. func (s *ShopifySource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } @@ -26773,776 +28080,990 @@ func (s *ShopifySource) GetTabularSource() *TabularSource { type SkipErrorFile struct { // Skip if source/sink file changed by other concurrent write. Default is false. Type: boolean (or Expression with resultType // boolean). - DataInconsistency interface{} `json:"dataInconsistency,omitempty"` + DataInconsistency any // Skip if file is deleted by other client during copy. Default is true. Type: boolean (or Expression with resultType boolean). - FileMissing interface{} `json:"fileMissing,omitempty"` + FileMissing any } // SmartsheetLinkedService - Linked service for Smartsheet. type SmartsheetLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Smartsheet linked service properties. - TypeProperties *SmartsheetLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SmartsheetLinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type SmartsheetLinkedService. +func (s *SmartsheetLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + ConnectVia: s.ConnectVia, + Description: s.Description, + Parameters: s.Parameters, + Type: s.Type, + } +} + +// SmartsheetLinkedServiceTypeProperties - Smartsheet linked service type properties. +type SmartsheetLinkedServiceTypeProperties struct { + // REQUIRED; The api token for the Smartsheet source. + APIToken SecretBaseClassification + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string +} + +// SnowflakeDataset - The snowflake dataset. +type SnowflakeDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // REQUIRED; Snowflake dataset properties. + TypeProperties *SnowflakeDatasetTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any +} + +// GetDataset implements the DatasetClassification interface for type SnowflakeDataset. +func (s *SnowflakeDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + Description: s.Description, + Folder: s.Folder, + LinkedServiceName: s.LinkedServiceName, + Parameters: s.Parameters, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, + } +} + +// SnowflakeDatasetTypeProperties - Snowflake dataset properties. +type SnowflakeDatasetTypeProperties struct { + // The schema name of the Snowflake database. Type: string (or Expression with resultType string). + Schema any + + // The table name of the Snowflake database. Type: string (or Expression with resultType string). + Table any +} + +// SnowflakeExportCopyCommand - Snowflake export command settings. +type SnowflakeExportCopyCommand struct { + // REQUIRED; The export setting type. + Type *string + + // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) + // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE + // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } + AdditionalCopyOptions map[string]any + + // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) + // (or Expression with resultType object). Example: "additionalFormatOptions": { + // "OVERWRITE": "TRUE", "MAXFILESIZE": "'FALSE'" } + AdditionalFormatOptions map[string]any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any +} + +// GetExportSettings implements the ExportSettingsClassification interface for type SnowflakeExportCopyCommand. +func (s *SnowflakeExportCopyCommand) GetExportSettings() *ExportSettings { + return &ExportSettings{ + AdditionalProperties: s.AdditionalProperties, + Type: s.Type, + } +} + +// SnowflakeImportCopyCommand - Snowflake import command settings. +type SnowflakeImportCopyCommand struct { + // REQUIRED; The import setting type. + Type *string + + // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) + // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE + // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } + AdditionalCopyOptions map[string]any + + // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) + // (or Expression with resultType object). Example: "additionalFormatOptions": { + // "FORCE": "TRUE", "LOADUNCERTAINFILES": "'FALSE'" } + AdditionalFormatOptions map[string]any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any +} + +// GetImportSettings implements the ImportSettingsClassification interface for type SnowflakeImportCopyCommand. +func (s *SnowflakeImportCopyCommand) GetImportSettings() *ImportSettings { + return &ImportSettings{ + AdditionalProperties: s.AdditionalProperties, + Type: s.Type, + } +} + +// SnowflakeLinkedService - Snowflake linked service. +type SnowflakeLinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; Snowflake linked service properties. + TypeProperties *SnowflakeLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type SnowflakeLinkedService. +func (s *SnowflakeLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, + ConnectVia: s.ConnectVia, + Description: s.Description, + Parameters: s.Parameters, + Type: s.Type, + } +} + +// SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. +type SnowflakeLinkedServiceTypeProperties struct { + // REQUIRED; The connection string of snowflake. Type: string, SecureString. + ConnectionString any + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference +} + +// SnowflakeLinkedV2ServiceTypeProperties - Snowflake linked service properties. +type SnowflakeLinkedV2ServiceTypeProperties struct { + // REQUIRED; The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure + AccountIdentifier any + + // REQUIRED; The name of the Snowflake database. + Database any + + // REQUIRED; The name of the Snowflake warehouse. + Warehouse any + + // The type used for authentication. Type: string. + AuthenticationType *SnowflakeAuthenticationType + + // The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication. + ClientID any + + // The Azure key vault secret reference of client secret for AADServicePrincipal authentication. + ClientSecret SecretBaseClassification + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // The Azure key vault secret reference of password in connection string. + Password SecretBaseClassification + + // The Azure key vault secret reference of privateKey for KeyPair auth. + PrivateKey SecretBaseClassification + + // The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key. + PrivateKeyPassphrase SecretBaseClassification + + // The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication. + Scope any + + // The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication. + TenantID any + + // The name of the Snowflake user. + User any +} + +// SnowflakeSink - A copy activity snowflake sink. +type SnowflakeSink struct { + // REQUIRED; Copy sink type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // Snowflake import settings. + ImportSettings *SnowflakeImportCopyCommand + + // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript any + + // Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount any + + // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait any + + // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize any + + // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout any +} + +// GetCopySink implements the CopySinkClassification interface for type SnowflakeSink. +func (s *SnowflakeSink) GetCopySink() *CopySink { + return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, + Type: s.Type, + WriteBatchSize: s.WriteBatchSize, + WriteBatchTimeout: s.WriteBatchTimeout, + } } -// GetLinkedService implements the LinkedServiceClassification interface for type SmartsheetLinkedService. -func (s *SmartsheetLinkedService) GetLinkedService() *LinkedService { - return &LinkedService{ - Type: s.Type, - ConnectVia: s.ConnectVia, - Description: s.Description, - Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, - } +// SnowflakeSource - A copy activity snowflake source. +type SnowflakeSource struct { + // REQUIRED; Snowflake export settings. + ExportSettings *SnowflakeExportCopyCommand + + // REQUIRED; Copy source type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Snowflake Sql query. Type: string (or Expression with resultType string). + Query any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any } -// SmartsheetLinkedServiceTypeProperties - Smartsheet linked service type properties. -type SmartsheetLinkedServiceTypeProperties struct { - // REQUIRED; The api token for the Smartsheet source. - APIToken SecretBaseClassification `json:"apiToken,omitempty"` - - // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +// GetCopySource implements the CopySourceClassification interface for type SnowflakeSource. +func (s *SnowflakeSource) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SourceRetryCount: s.SourceRetryCount, + SourceRetryWait: s.SourceRetryWait, + Type: s.Type, + } } -// SnowflakeDataset - The snowflake dataset. -type SnowflakeDataset struct { +// SnowflakeV2Dataset - The snowflake dataset. +type SnowflakeV2Dataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Snowflake dataset properties. - TypeProperties *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SnowflakeDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } -// GetDataset implements the DatasetClassification interface for type SnowflakeDataset. -func (s *SnowflakeDataset) GetDataset() *Dataset { +// GetDataset implements the DatasetClassification interface for type SnowflakeV2Dataset. +func (s *SnowflakeV2Dataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, - } -} - -// SnowflakeDatasetTypeProperties - Snowflake dataset properties. -type SnowflakeDatasetTypeProperties struct { - // The schema name of the Snowflake database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - - // The table name of the Snowflake database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// SnowflakeExportCopyCommand - Snowflake export command settings. -type SnowflakeExportCopyCommand struct { - // REQUIRED; The export setting type. - Type *string `json:"type,omitempty"` - - // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) - // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE - // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions,omitempty"` - - // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) - // (or Expression with resultType object). Example: "additionalFormatOptions": { - // "OVERWRITE": "TRUE", "MAXFILESIZE": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} -} - -// GetExportSettings implements the ExportSettingsClassification interface for type SnowflakeExportCopyCommand. -func (s *SnowflakeExportCopyCommand) GetExportSettings() *ExportSettings { - return &ExportSettings{ - Type: s.Type, - AdditionalProperties: s.AdditionalProperties, - } -} - -// SnowflakeImportCopyCommand - Snowflake import command settings. -type SnowflakeImportCopyCommand struct { - // REQUIRED; The import setting type. - Type *string `json:"type,omitempty"` - - // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) - // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE - // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions,omitempty"` - - // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) - // (or Expression with resultType object). Example: "additionalFormatOptions": { - // "FORCE": "TRUE", "LOADUNCERTAINFILES": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} -} - -// GetImportSettings implements the ImportSettingsClassification interface for type SnowflakeImportCopyCommand. -func (s *SnowflakeImportCopyCommand) GetImportSettings() *ImportSettings { - return &ImportSettings{ + Schema: s.Schema, + Structure: s.Structure, Type: s.Type, - AdditionalProperties: s.AdditionalProperties, } } -// SnowflakeLinkedService - Snowflake linked service. -type SnowflakeLinkedService struct { +// SnowflakeV2LinkedService - Snowflake linked service. +type SnowflakeV2LinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Snowflake linked service properties. - TypeProperties *SnowflakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SnowflakeLinkedV2ServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } -// GetLinkedService implements the LinkedServiceClassification interface for type SnowflakeLinkedService. -func (s *SnowflakeLinkedService) GetLinkedService() *LinkedService { +// GetLinkedService implements the LinkedServiceClassification interface for type SnowflakeV2LinkedService. +func (s *SnowflakeV2LinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } -// SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. -type SnowflakeLinkedServiceTypeProperties struct { - // REQUIRED; The connection string of snowflake. Type: string, SecureString. - ConnectionString interface{} `json:"connectionString,omitempty"` - - // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - - // The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` -} - -// SnowflakeSink - A copy activity snowflake sink. -type SnowflakeSink struct { +// SnowflakeV2Sink - A copy activity snowflake sink. +type SnowflakeV2Sink struct { // REQUIRED; Copy sink type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Snowflake import settings. - ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` + ImportSettings *SnowflakeImportCopyCommand // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any } -// GetCopySink implements the CopySinkClassification interface for type SnowflakeSink. -func (s *SnowflakeSink) GetCopySink() *CopySink { +// GetCopySink implements the CopySinkClassification interface for type SnowflakeV2Sink. +func (s *SnowflakeV2Sink) GetCopySink() *CopySink { return &CopySink{ + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + SinkRetryCount: s.SinkRetryCount, + SinkRetryWait: s.SinkRetryWait, Type: s.Type, WriteBatchSize: s.WriteBatchSize, WriteBatchTimeout: s.WriteBatchTimeout, - SinkRetryCount: s.SinkRetryCount, - SinkRetryWait: s.SinkRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, } } -// SnowflakeSource - A copy activity snowflake source. -type SnowflakeSource struct { +// SnowflakeV2Source - A copy activity snowflake source. +type SnowflakeV2Source struct { + // REQUIRED; Snowflake export settings. + ExportSettings *SnowflakeExportCopyCommand + // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - - // Snowflake export settings. - ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Snowflake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } -// GetCopySource implements the CopySourceClassification interface for type SnowflakeSource. -func (s *SnowflakeSource) GetCopySource() *CopySource { +// GetCopySource implements the CopySourceClassification interface for type SnowflakeV2Source. +func (s *SnowflakeV2Source) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } +// SparkConfigurationParametrizationReference - Spark configuration reference. +type SparkConfigurationParametrizationReference struct { + // REQUIRED; Reference spark configuration name. Type: string (or Expression with resultType string). + ReferenceName any + + // REQUIRED; Spark configuration reference type. + Type *SparkConfigurationReferenceType +} + // SparkDatasetTypeProperties - Spark Properties type SparkDatasetTypeProperties struct { // The schema name of the Spark. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Spark. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // SparkLinkedService - Spark Server linked service. type SparkLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Spark Server linked service properties. - TypeProperties *SparkLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SparkLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SparkLinkedService. func (s *SparkLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SparkLinkedServiceTypeProperties - Spark Server linked service properties. type SparkLinkedServiceTypeProperties struct { // REQUIRED; The authentication method used to access the Spark server. - AuthenticationType *SparkAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *SparkAuthenticationType // REQUIRED; IP address or host name of the Spark server - Host interface{} `json:"host,omitempty"` + Host any // REQUIRED; The TCP port that the Spark server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` + Port any // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the Spark server. - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any // The password corresponding to the user name that you provided in the Username field - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The type of Spark server. - ServerType *SparkServerType `json:"serverType,omitempty"` + ServerType *SparkServerType // The transport protocol to use in the Thrift layer. - ThriftTransportProtocol *SparkThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` + ThriftTransportProtocol *SparkThriftTransportProtocol // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any // The user name that you use to access Spark Server. - Username interface{} `json:"username,omitempty"` + Username any } // SparkObjectDataset - Spark Server dataset. type SparkObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *SparkDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SparkDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SparkObjectDataset. func (s *SparkObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SparkSource - A copy activity Spark Server source. type SparkSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SparkSource. func (s *SparkSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SparkSource. func (s *SparkSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SquareLinkedService - Square Service linked service. type SquareLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Square Service linked service properties. - TypeProperties *SquareLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SquareLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SquareLinkedService. func (s *SquareLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SquareLinkedServiceTypeProperties - Square Service linked service properties. type SquareLinkedServiceTypeProperties struct { // The client ID associated with your Square application. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any // The client secret associated with your Square application. - ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` + ClientSecret SecretBaseClassification // Properties used to connect to Square. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The URL of the Square instance. (i.e. mystore.mysquare.com) - Host interface{} `json:"host,omitempty"` + Host any // The redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500) - RedirectURI interface{} `json:"redirectUri,omitempty"` + RedirectURI any // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // SquareObjectDataset - Square Service dataset. type SquareObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SquareObjectDataset. func (s *SquareObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SquareSource - A copy activity Square Service source. type SquareSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SquareSource. func (s *SquareSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SquareSource. func (s *SquareSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SsisEnvironment - Ssis environment. type SsisEnvironment struct { // REQUIRED; Type of metadata. - Type *SsisObjectMetadataType `json:"type,omitempty"` + Type *SsisObjectMetadataType // Metadata description. - Description *string `json:"description,omitempty"` + Description *string // Folder id which contains environment. - FolderID *int64 `json:"folderId,omitempty"` + FolderID *int64 // Metadata id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Metadata name. - Name *string `json:"name,omitempty"` + Name *string // Variable in environment - Variables []*SsisVariable `json:"variables,omitempty"` + Variables []*SsisVariable } // GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisEnvironment. func (s *SsisEnvironment) GetSsisObjectMetadata() *SsisObjectMetadata { return &SsisObjectMetadata{ - Type: s.Type, + Description: s.Description, ID: s.ID, Name: s.Name, - Description: s.Description, + Type: s.Type, } } // SsisEnvironmentReference - Ssis environment reference. type SsisEnvironmentReference struct { // Environment folder name. - EnvironmentFolderName *string `json:"environmentFolderName,omitempty"` + EnvironmentFolderName *string // Environment name. - EnvironmentName *string `json:"environmentName,omitempty"` + EnvironmentName *string // Environment reference id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Reference type - ReferenceType *string `json:"referenceType,omitempty"` + ReferenceType *string } // SsisFolder - Ssis folder. type SsisFolder struct { // REQUIRED; Type of metadata. - Type *SsisObjectMetadataType `json:"type,omitempty"` + Type *SsisObjectMetadataType // Metadata description. - Description *string `json:"description,omitempty"` + Description *string // Metadata id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Metadata name. - Name *string `json:"name,omitempty"` + Name *string } // GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisFolder. func (s *SsisFolder) GetSsisObjectMetadata() *SsisObjectMetadata { return &SsisObjectMetadata{ - Type: s.Type, + Description: s.Description, ID: s.ID, Name: s.Name, - Description: s.Description, + Type: s.Type, } } -// SsisObjectMetadataClassification provides polymorphic access to related types. -// Call the interface's GetSsisObjectMetadata() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *SsisEnvironment, *SsisFolder, *SsisObjectMetadata, *SsisPackage, *SsisProject -type SsisObjectMetadataClassification interface { - // GetSsisObjectMetadata returns the SsisObjectMetadata content of the underlying type. - GetSsisObjectMetadata() *SsisObjectMetadata -} - // SsisObjectMetadata - SSIS object metadata. type SsisObjectMetadata struct { // REQUIRED; Type of metadata. - Type *SsisObjectMetadataType `json:"type,omitempty"` + Type *SsisObjectMetadataType // Metadata description. - Description *string `json:"description,omitempty"` + Description *string // Metadata id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Metadata name. - Name *string `json:"name,omitempty"` + Name *string } // GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisObjectMetadata. @@ -27551,316 +29072,279 @@ func (s *SsisObjectMetadata) GetSsisObjectMetadata() *SsisObjectMetadata { retur // SsisObjectMetadataListResponse - A list of SSIS object metadata. type SsisObjectMetadataListResponse struct { // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of SSIS object metadata. - Value []SsisObjectMetadataClassification `json:"value,omitempty"` + Value []SsisObjectMetadataClassification } // SsisObjectMetadataStatusResponse - The status of the operation. type SsisObjectMetadataStatusResponse struct { // The operation error message. - Error *string `json:"error,omitempty"` + Error *string // The operation name. - Name *string `json:"name,omitempty"` + Name *string // The operation properties. - Properties *string `json:"properties,omitempty"` + Properties *string // The status of the operation. - Status *string `json:"status,omitempty"` + Status *string } // SsisPackage - Ssis Package. type SsisPackage struct { // REQUIRED; Type of metadata. - Type *SsisObjectMetadataType `json:"type,omitempty"` + Type *SsisObjectMetadataType // Metadata description. - Description *string `json:"description,omitempty"` + Description *string // Folder id which contains package. - FolderID *int64 `json:"folderId,omitempty"` + FolderID *int64 // Metadata id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Metadata name. - Name *string `json:"name,omitempty"` + Name *string // Parameters in package - Parameters []*SsisParameter `json:"parameters,omitempty"` + Parameters []*SsisParameter // Project id which contains package. - ProjectID *int64 `json:"projectId,omitempty"` + ProjectID *int64 // Project version which contains package. - ProjectVersion *int64 `json:"projectVersion,omitempty"` + ProjectVersion *int64 } // GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisPackage. func (s *SsisPackage) GetSsisObjectMetadata() *SsisObjectMetadata { return &SsisObjectMetadata{ - Type: s.Type, + Description: s.Description, ID: s.ID, Name: s.Name, - Description: s.Description, + Type: s.Type, } } // SsisParameter - Ssis parameter. type SsisParameter struct { // Parameter type. - DataType *string `json:"dataType,omitempty"` + DataType *string // Default value of parameter. - DefaultValue *string `json:"defaultValue,omitempty"` + DefaultValue *string // Parameter description. - Description *string `json:"description,omitempty"` + Description *string // Design default value of parameter. - DesignDefaultValue *string `json:"designDefaultValue,omitempty"` + DesignDefaultValue *string // Parameter id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Parameter name. - Name *string `json:"name,omitempty"` + Name *string // Whether parameter is required. - Required *bool `json:"required,omitempty"` + Required *bool // Whether parameter is sensitive. - Sensitive *bool `json:"sensitive,omitempty"` + Sensitive *bool // Default sensitive value of parameter. - SensitiveDefaultValue *string `json:"sensitiveDefaultValue,omitempty"` + SensitiveDefaultValue *string // Parameter value set. - ValueSet *bool `json:"valueSet,omitempty"` + ValueSet *bool // Parameter value type. - ValueType *string `json:"valueType,omitempty"` + ValueType *string // Parameter reference variable. - Variable *string `json:"variable,omitempty"` + Variable *string } // SsisProject - Ssis project. type SsisProject struct { // REQUIRED; Type of metadata. - Type *SsisObjectMetadataType `json:"type,omitempty"` + Type *SsisObjectMetadataType // Metadata description. - Description *string `json:"description,omitempty"` + Description *string // Environment reference in project - EnvironmentRefs []*SsisEnvironmentReference `json:"environmentRefs,omitempty"` + EnvironmentRefs []*SsisEnvironmentReference // Folder id which contains project. - FolderID *int64 `json:"folderId,omitempty"` + FolderID *int64 // Metadata id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Metadata name. - Name *string `json:"name,omitempty"` + Name *string // Parameters in project - Parameters []*SsisParameter `json:"parameters,omitempty"` + Parameters []*SsisParameter // Project version. - Version *int64 `json:"version,omitempty"` + Version *int64 } // GetSsisObjectMetadata implements the SsisObjectMetadataClassification interface for type SsisProject. func (s *SsisProject) GetSsisObjectMetadata() *SsisObjectMetadata { return &SsisObjectMetadata{ - Type: s.Type, + Description: s.Description, ID: s.ID, Name: s.Name, - Description: s.Description, + Type: s.Type, } } // SsisVariable - Ssis variable. type SsisVariable struct { // Variable type. - DataType *string `json:"dataType,omitempty"` + DataType *string // Variable description. - Description *string `json:"description,omitempty"` + Description *string // Variable id. - ID *int64 `json:"id,omitempty"` + ID *int64 // Variable name. - Name *string `json:"name,omitempty"` + Name *string // Whether variable is sensitive. - Sensitive *bool `json:"sensitive,omitempty"` + Sensitive *bool // Variable sensitive value. - SensitiveValue *string `json:"sensitiveValue,omitempty"` + SensitiveValue *string // Variable value. - Value *string `json:"value,omitempty"` + Value *string } // StagingSettings - Staging settings. type StagingSettings struct { // REQUIRED; Staging linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies whether to use compression when copying data via an interim staging. Default value is false. Type: boolean (or // Expression with resultType boolean). - EnableCompression interface{} `json:"enableCompression,omitempty"` + EnableCompression any // The path to storage for storing the interim data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// StoreReadSettingsClassification provides polymorphic access to related types. -// Call the interface's GetStoreReadSettings() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AmazonS3CompatibleReadSettings, *AmazonS3ReadSettings, *AzureBlobFSReadSettings, *AzureBlobStorageReadSettings, *AzureDataLakeStoreReadSettings, -// - *AzureFileStorageReadSettings, *FileServerReadSettings, *FtpReadSettings, *GoogleCloudStorageReadSettings, *HTTPReadSettings, -// - *HdfsReadSettings, *OracleCloudStorageReadSettings, *SftpReadSettings, *StoreReadSettings -type StoreReadSettingsClassification interface { - // GetStoreReadSettings returns the StoreReadSettings content of the underlying type. - GetStoreReadSettings() *StoreReadSettings + Path any } // StoreReadSettings - Connector read setting. type StoreReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type StoreReadSettings. func (s *StoreReadSettings) GetStoreReadSettings() *StoreReadSettings { return s } -// StoreWriteSettingsClassification provides polymorphic access to related types. -// Call the interface's GetStoreWriteSettings() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AzureBlobFSWriteSettings, *AzureBlobStorageWriteSettings, *AzureDataLakeStoreWriteSettings, *AzureFileStorageWriteSettings, -// - *FileServerWriteSettings, *SftpWriteSettings, *StoreWriteSettings -type StoreWriteSettingsClassification interface { - // GetStoreWriteSettings returns the StoreWriteSettings content of the underlying type. - GetStoreWriteSettings() *StoreWriteSettings -} - // StoreWriteSettings - Connector write settings. -type StoreWriteSettings struct { - // REQUIRED; The write setting type. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - - // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - - // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` -} - -// GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type StoreWriteSettings. -func (s *StoreWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return s } - -// StoredProcedureParameter - SQL stored procedure parameter. -type StoredProcedureParameter struct { - // Stored procedure parameter type. - Type *StoredProcedureParameterType `json:"type,omitempty"` +type StoreWriteSettings struct { + // REQUIRED; The write setting type. + Type *string - // Stored procedure parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any -// SubResource - Azure Data Factory nested resource, which belongs to a factory. -type SubResource struct { - // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + // The type of copy behavior for copy sink. + CopyBehavior any - // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any - // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any - // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). + Metadata []*MetadataItem } -// SubResourceDebugResource - Azure Data Factory nested debug resource. -type SubResourceDebugResource struct { - // The resource name. - Name *string `json:"name,omitempty"` -} +// GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type StoreWriteSettings. +func (s *StoreWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { return s } // SwitchActivity - This activity evaluates an expression and executes activities under the cases property that correspond // to the expression evaluation expected in the equals property. type SwitchActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Switch activity properties. - TypeProperties *SwitchActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SwitchActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type SwitchActivity. func (s *SwitchActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type SwitchActivity. func (s *SwitchActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, Type: s.Type, - Description: s.Description, - DependsOn: s.DependsOn, UserProperties: s.UserProperties, - AdditionalProperties: s.AdditionalProperties, } } @@ -27868,924 +29352,894 @@ func (s *SwitchActivity) GetControlActivity() *ControlActivity { type SwitchActivityTypeProperties struct { // REQUIRED; An expression that would evaluate to a string or integer. This is used to determine the block of activities in // cases that will be executed. - On *Expression `json:"on,omitempty"` + On *Expression // List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, // the activity will execute activities provided in defaultActivities. - Cases []*SwitchCase `json:"cases,omitempty"` + Cases []*SwitchCase // List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the // activity will exit without any action. - DefaultActivities []ActivityClassification `json:"defaultActivities,omitempty"` + DefaultActivities []ActivityClassification } // SwitchCase - Switch cases with have a value and corresponding activities. type SwitchCase struct { // List of activities to execute for satisfied case condition. - Activities []ActivityClassification `json:"activities,omitempty"` + Activities []ActivityClassification // Expected value that satisfies the expression result of the 'on' property. - Value *string `json:"value,omitempty"` + Value *string } // SybaseLinkedService - Linked service for Sybase data source. type SybaseLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Sybase linked service properties. - TypeProperties *SybaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SybaseLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type SybaseLinkedService. func (s *SybaseLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, ConnectVia: s.ConnectVia, Description: s.Description, Parameters: s.Parameters, - Annotations: s.Annotations, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SybaseLinkedServiceTypeProperties - Sybase linked service properties. type SybaseLinkedServiceTypeProperties struct { // REQUIRED; Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any // REQUIRED; Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any // AuthenticationType to be used for connection. - AuthenticationType *SybaseAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *SybaseAuthenticationType // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // SybaseSource - A copy activity source for Sybase databases. type SybaseSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type SybaseSource. func (s *SybaseSource) GetCopySource() *CopySource { return &CopySource{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type SybaseSource. func (s *SybaseSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: s.QueryTimeout, AdditionalColumns: s.AdditionalColumns, - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + DisableMetricsCollection: s.DisableMetricsCollection, + MaxConcurrentConnections: s.MaxConcurrentConnections, + QueryTimeout: s.QueryTimeout, SourceRetryCount: s.SourceRetryCount, SourceRetryWait: s.SourceRetryWait, - MaxConcurrentConnections: s.MaxConcurrentConnections, - DisableMetricsCollection: s.DisableMetricsCollection, - AdditionalProperties: s.AdditionalProperties, + Type: s.Type, } } // SybaseTableDataset - The Sybase table dataset. type SybaseTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Sybase table dataset properties. - TypeProperties *SybaseTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SybaseTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type SybaseTableDataset. func (s *SybaseTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: s.Type, + AdditionalProperties: s.AdditionalProperties, + Annotations: s.Annotations, Description: s.Description, - Structure: s.Structure, - Schema: s.Schema, + Folder: s.Folder, LinkedServiceName: s.LinkedServiceName, Parameters: s.Parameters, - Annotations: s.Annotations, - Folder: s.Folder, - AdditionalProperties: s.AdditionalProperties, + Schema: s.Schema, + Structure: s.Structure, + Type: s.Type, } } // SybaseTableDatasetTypeProperties - Sybase table dataset properties. type SybaseTableDatasetTypeProperties struct { // The Sybase table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any } // SynapseNotebookActivity - Execute Synapse notebook activity. type SynapseNotebookActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Execute Synapse notebook activity properties. - TypeProperties *SynapseNotebookActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SynapseNotebookActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type SynapseNotebookActivity. func (s *SynapseNotebookActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, 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{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, LinkedServiceName: s.LinkedServiceName, - Policy: s.Policy, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + Policy: s.Policy, + State: s.State, 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"` + Notebook *SynapseNotebookReference // Spark configuration properties, which will override the 'conf' of the notebook you provide. - Conf interface{} `json:"conf,omitempty"` + Conf any + + // The type of the spark config. + ConfigurationType *ConfigurationType // 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"` + DriverSize any // 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"` + ExecutorSize any - // Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. - NumExecutors *int32 `json:"numExecutors,omitempty"` + // Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. Type: + // integer (or Expression with resultType integer). + NumExecutors any // Notebook parameters. - Parameters map[string]*NotebookParameter `json:"parameters,omitempty"` + Parameters map[string]*NotebookParameter + + // Spark configuration property. + SparkConfig map[string]any // The name of the big data pool which will be used to execute the notebook. - SparkPool *BigDataPoolParametrizationReference `json:"sparkPool,omitempty"` + SparkPool *BigDataPoolParametrizationReference + + // The spark configuration of the spark job. + TargetSparkConfiguration *SparkConfigurationParametrizationReference } // SynapseNotebookReference - Synapse notebook reference type. type SynapseNotebookReference struct { // REQUIRED; Reference notebook name. Type: string (or Expression with resultType string). - ReferenceName interface{} `json:"referenceName,omitempty"` + ReferenceName any // REQUIRED; Synapse notebook reference type. - Type *NotebookReferenceType `json:"type,omitempty"` + Type *NotebookReferenceType } // SynapseSparkJobActivityTypeProperties - Execute spark job activity properties. type SynapseSparkJobActivityTypeProperties struct { // REQUIRED; Synapse spark job reference. - SparkJob *SynapseSparkJobReference `json:"sparkJob,omitempty"` + SparkJob *SynapseSparkJobReference // User specified arguments to SynapseSparkJobDefinitionActivity. - Arguments []interface{} `json:"args,omitempty"` + Arguments []any // 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"` + ClassName any // Spark configuration properties, which will override the 'conf' of the spark job definition you provide. - Conf interface{} `json:"conf,omitempty"` + Conf any + + // The type of the spark config. + ConfigurationType *ConfigurationType // 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"` + DriverSize any // 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"` + ExecutorSize any // 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"` + File any + + // (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for reference in the main definition file, + // which will override the 'files' of the spark job definition you provide. + Files []any - // 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"` + // Additional files used for reference in the main definition file, which will override the 'jars' and 'files' of the spark + // job definition you provide. + FilesV2 []any // 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"` + // Type: integer (or Expression with resultType integer). + NumExecutors any + + // Additional python code files used for reference in the main definition file, which will override the 'pyFiles' of the spark + // job definition you provide. + PythonCodeReference []any + + // Scanning subfolders from the root folder of the main definition file, these files will be added as reference files. The + // folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and the + // folders name are case sensitive. Type: boolean (or Expression with resultType boolean). + ScanFolder any + + // Spark configuration property. + SparkConfig map[string]any // 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"` + TargetBigDataPool *BigDataPoolParametrizationReference + + // The spark configuration of the spark job. + TargetSparkConfiguration *SparkConfigurationParametrizationReference } // SynapseSparkJobDefinitionActivity - Execute spark job activity. type SynapseSparkJobDefinitionActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Execute spark job activity properties. - TypeProperties *SynapseSparkJobActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *SynapseSparkJobActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type SynapseSparkJobDefinitionActivity. func (s *SynapseSparkJobDefinitionActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + State: s.State, 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{ + AdditionalProperties: s.AdditionalProperties, + DependsOn: s.DependsOn, + Description: s.Description, LinkedServiceName: s.LinkedServiceName, - Policy: s.Policy, Name: s.Name, + OnInactiveMarkAs: s.OnInactiveMarkAs, + Policy: s.Policy, + State: s.State, 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; Reference spark job name. Expression with resultType string. + ReferenceName any // 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: -// - *AmazonMWSSource, *AmazonRdsForSQLServerSource, *AmazonRedshiftSource, *AzureMariaDBSource, *AzureMySQLSource, *AzurePostgreSQLSource, -// - *AzureSQLSource, *AzureTableSource, *CassandraSource, *ConcurSource, *CouchbaseSource, *Db2Source, *DrillSource, *DynamicsAXSource, -// - *EloquaSource, *GoogleAdWordsSource, *GoogleBigQuerySource, *GreenplumSource, *HBaseSource, *HiveSource, *HubspotSource, -// - *ImpalaSource, *InformixSource, *JiraSource, *MagentoSource, *MariaDBSource, *MarketoSource, *MySQLSource, *NetezzaSource, -// - *OdbcSource, *OracleServiceCloudSource, *PaypalSource, *PhoenixSource, *PostgreSQLSource, *PrestoSource, *QuickBooksSource, -// - *ResponsysSource, *SQLDWSource, *SQLMISource, *SQLServerSource, *SQLSource, *SalesforceMarketingCloudSource, *SalesforceSource, -// - *SapBwSource, *SapCloudForCustomerSource, *SapEccSource, *SapHanaSource, *SapOdpSource, *SapOpenHubSource, *SapTableSource, -// - *ServiceNowSource, *ShopifySource, *SparkSource, *SquareSource, *SybaseSource, *TabularSource, *TeradataSource, *VerticaSource, -// - *XeroSource, *ZohoSource -type TabularSourceClassification interface { - CopySourceClassification - // GetTabularSource returns the TabularSource content of the underlying type. - GetTabularSource() *TabularSource + Type *SparkJobReferenceType } // TabularSource - Copy activity sources of tabular type. type TabularSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type TabularSource. func (t *TabularSource) GetCopySource() *CopySource { return &CopySource{ - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + DisableMetricsCollection: t.DisableMetricsCollection, + MaxConcurrentConnections: t.MaxConcurrentConnections, SourceRetryCount: t.SourceRetryCount, SourceRetryWait: t.SourceRetryWait, - MaxConcurrentConnections: t.MaxConcurrentConnections, - DisableMetricsCollection: t.DisableMetricsCollection, - AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type TabularSource. func (t *TabularSource) GetTabularSource() *TabularSource { return t } -// TabularTranslator - A copy activity tabular translator. -type TabularTranslator struct { - // REQUIRED; Copy translator type. - Type *string `json:"type,omitempty"` - - // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} - - // The JSON Path of the Nested Array that is going to do cross-apply. Type: object (or Expression with resultType object). - CollectionReference interface{} `json:"collectionReference,omitempty"` - - // Column mappings. Example: "UserId: MyUserId, Group: MyGroup, Name: MyName" Type: string (or Expression with resultType - // string). This property will be retired. Please use mappings property. - ColumnMappings interface{} `json:"columnMappings,omitempty"` - - // Whether to map complex (array and object) values to simple strings in json format. Type: boolean (or Expression with resultType - // boolean). - MapComplexValuesToString interface{} `json:"mapComplexValuesToString,omitempty"` - - // Column mappings with logical types. Tabular->tabular example: - // [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - // Hierarchical->tabular example: - // [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. - // Type: object (or Expression with resultType object). - Mappings interface{} `json:"mappings,omitempty"` - - // The schema mapping to map between tabular data and hierarchical data. Example: {"Column1": "$.Column1", "Column2": "$.Column2.Property1", - // "Column3": "$.Column2.Property2"}. Type: object (or Expression - // with resultType object). This property will be retired. Please use mappings property. - SchemaMapping interface{} `json:"schemaMapping,omitempty"` - - // Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType - // boolean). - TypeConversion interface{} `json:"typeConversion,omitempty"` - - // Type conversion settings - TypeConversionSettings *TypeConversionSettings `json:"typeConversionSettings,omitempty"` -} - -// GetCopyTranslator implements the CopyTranslatorClassification interface for type TabularTranslator. -func (t *TabularTranslator) GetCopyTranslator() *CopyTranslator { - return &CopyTranslator{ - Type: t.Type, - AdditionalProperties: t.AdditionalProperties, - } -} - // TarGZipReadSettings - The TarGZip compression read settings. type TarGZipReadSettings struct { // REQUIRED; The Compression setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` + PreserveCompressionFileNameAsFolder any } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type TarGZipReadSettings. func (t *TarGZipReadSettings) GetCompressionReadSettings() *CompressionReadSettings { return &CompressionReadSettings{ - Type: t.Type, AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // TarReadSettings - The Tar compression read settings. type TarReadSettings struct { // REQUIRED; The Compression setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` + PreserveCompressionFileNameAsFolder any } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type TarReadSettings. func (t *TarReadSettings) GetCompressionReadSettings() *CompressionReadSettings { return &CompressionReadSettings{ - Type: t.Type, AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // TeamDeskLinkedService - Linked service for TeamDesk. type TeamDeskLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; TeamDesk linked service properties. - TypeProperties *TeamDeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *TeamDeskLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type TeamDeskLinkedService. func (t *TeamDeskLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + Annotations: t.Annotations, ConnectVia: t.ConnectVia, Description: t.Description, Parameters: t.Parameters, - Annotations: t.Annotations, - AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // TeamDeskLinkedServiceTypeProperties - TeamDesk linked service type properties. type TeamDeskLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. - AuthenticationType *TeamDeskAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *TeamDeskAuthenticationType // REQUIRED; The url to connect TeamDesk source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any // The api token for the TeamDesk source. - APIToken SecretBaseClassification `json:"apiToken,omitempty"` + APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password of the TeamDesk source. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The username of the TeamDesk source. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // TeradataLinkedService - Linked service for Teradata data source. type TeradataLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Teradata linked service properties. - TypeProperties *TeradataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *TeradataLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type TeradataLinkedService. func (t *TeradataLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + Annotations: t.Annotations, ConnectVia: t.ConnectVia, Description: t.Description, Parameters: t.Parameters, - Annotations: t.Annotations, - AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // TeradataLinkedServiceTypeProperties - Teradata linked service properties. type TeradataLinkedServiceTypeProperties struct { // AuthenticationType to be used for connection. - AuthenticationType *TeradataAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *TeradataAuthenticationType // Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // Password for authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // TeradataPartitionSettings - The settings that will be leveraged for teradata source partitioning. type TeradataPartitionSettings struct { // The name of the column that will be used for proceeding range or hash partitioning. Type: string (or Expression with resultType // string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any } // TeradataSource - A copy activity Teradata source. type TeradataSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // The partition mechanism that will be used for teradata read in parallel. Possible values include: "None", "Hash", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any // The settings that will be leveraged for teradata source partitioning. - PartitionSettings *TeradataPartitionSettings `json:"partitionSettings,omitempty"` + PartitionSettings *TeradataPartitionSettings // Teradata query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type TeradataSource. func (t *TeradataSource) GetCopySource() *CopySource { return &CopySource{ - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + DisableMetricsCollection: t.DisableMetricsCollection, + MaxConcurrentConnections: t.MaxConcurrentConnections, SourceRetryCount: t.SourceRetryCount, SourceRetryWait: t.SourceRetryWait, - MaxConcurrentConnections: t.MaxConcurrentConnections, - DisableMetricsCollection: t.DisableMetricsCollection, - AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type TeradataSource. func (t *TeradataSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: t.QueryTimeout, AdditionalColumns: t.AdditionalColumns, - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + DisableMetricsCollection: t.DisableMetricsCollection, + MaxConcurrentConnections: t.MaxConcurrentConnections, + QueryTimeout: t.QueryTimeout, SourceRetryCount: t.SourceRetryCount, SourceRetryWait: t.SourceRetryWait, - MaxConcurrentConnections: t.MaxConcurrentConnections, - DisableMetricsCollection: t.DisableMetricsCollection, - AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // TeradataTableDataset - The Teradata database dataset. type TeradataTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Teradata dataset properties. - TypeProperties *TeradataTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *TeradataTableDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type TeradataTableDataset. func (t *TeradataTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + Annotations: t.Annotations, Description: t.Description, - Structure: t.Structure, - Schema: t.Schema, + Folder: t.Folder, LinkedServiceName: t.LinkedServiceName, Parameters: t.Parameters, - Annotations: t.Annotations, - Folder: t.Folder, - AdditionalProperties: t.AdditionalProperties, + Schema: t.Schema, + Structure: t.Structure, + Type: t.Type, } } // TeradataTableDatasetTypeProperties - Teradata dataset properties. type TeradataTableDatasetTypeProperties struct { // The database name of Teradata. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any // The table name of Teradata. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any } // TextFormat - The data stored in text format. type TextFormat struct { // REQUIRED; Type of dataset storage format. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` + ColumnDelimiter any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any // The code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode // encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link // to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with // resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any // The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` + EscapeChar any // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + FirstRowAsHeader any // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any // The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` + QuoteChar any // The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` + RowDelimiter any // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any // The number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with // resultType integer). - SkipLineCount interface{} `json:"skipLineCount,omitempty"` + SkipLineCount any // Treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType // boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + TreatEmptyAsNull any } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type TextFormat. func (t *TextFormat) GetDatasetStorageFormat() *DatasetStorageFormat { return &DatasetStorageFormat{ - Type: t.Type, - Serializer: t.Serializer, - Deserializer: t.Deserializer, AdditionalProperties: t.AdditionalProperties, + Deserializer: t.Deserializer, + Serializer: t.Serializer, + Type: t.Type, } } // Transformation - A data flow transformation. type Transformation struct { // REQUIRED; Transformation name. - Name *string `json:"name,omitempty"` + Name *string // Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Transformation description. - Description *string `json:"description,omitempty"` + Description *string // Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` + Flowlet *DataFlowReference // Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` -} - -// TriggerClassification provides polymorphic access to related types. -// Call the interface's GetTrigger() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *BlobEventsTrigger, *BlobTrigger, *ChainingTrigger, *CustomEventsTrigger, *MultiplePipelineTrigger, *RerunTumblingWindowTrigger, -// - *ScheduleTrigger, *Trigger, *TumblingWindowTrigger -type TriggerClassification interface { - // GetTrigger returns the Trigger content of the underlying type. - GetTrigger() *Trigger + LinkedService *LinkedServiceReference } // Trigger - Azure data factory nested object which contains information about creating pipeline run type Trigger struct { // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetTrigger implements the TriggerClassification interface for type Trigger. func (t *Trigger) GetTrigger() *Trigger { return t } -// TriggerDependencyReferenceClassification provides polymorphic access to related types. -// Call the interface's GetTriggerDependencyReference() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *TriggerDependencyReference, *TumblingWindowTriggerDependencyReference -type TriggerDependencyReferenceClassification interface { - DependencyReferenceClassification - // GetTriggerDependencyReference returns the TriggerDependencyReference content of the underlying type. - GetTriggerDependencyReference() *TriggerDependencyReference -} - // TriggerDependencyReference - Trigger referenced dependency. type TriggerDependencyReference struct { // REQUIRED; Referenced trigger. - ReferenceTrigger *TriggerReference `json:"referenceTrigger,omitempty"` + ReferenceTrigger *TriggerReference // REQUIRED; The type of dependency reference. - Type *string `json:"type,omitempty"` + Type *string } // GetDependencyReference implements the DependencyReferenceClassification interface for type TriggerDependencyReference. @@ -28803,245 +30257,169 @@ func (t *TriggerDependencyReference) GetTriggerDependencyReference() *TriggerDep // TriggerFilterParameters - Query parameters for triggers. type TriggerFilterParameters struct { // The continuation token for getting the next page of results. Null for first page. - ContinuationToken *string `json:"continuationToken,omitempty"` + ContinuationToken *string // The name of the parent TumblingWindowTrigger to get the child rerun triggers - ParentTriggerName *string `json:"parentTriggerName,omitempty"` + ParentTriggerName *string } // TriggerListResponse - A list of trigger resources. type TriggerListResponse struct { // REQUIRED; List of triggers. - Value []*TriggerResource `json:"value,omitempty"` + Value []*TriggerResource // The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // TriggerPipelineReference - Pipeline that needs to be triggered with the given parameters. type TriggerPipelineReference struct { // Pipeline parameters. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any // Pipeline reference. - PipelineReference *PipelineReference `json:"pipelineReference,omitempty"` + PipelineReference *PipelineReference } // TriggerQueryResponse - A query of triggers. type TriggerQueryResponse struct { // REQUIRED; List of triggers. - Value []*TriggerResource `json:"value,omitempty"` + Value []*TriggerResource // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` + ContinuationToken *string } // TriggerReference - Trigger reference type. type TriggerReference struct { // REQUIRED; Reference trigger name. - ReferenceName *string `json:"referenceName,omitempty"` + ReferenceName *string // REQUIRED; Trigger reference type. - Type *TriggerReferenceType `json:"type,omitempty"` + Type *TriggerReferenceType } // TriggerResource - Trigger resource type. type TriggerResource struct { // REQUIRED; Properties of the trigger. - Properties TriggerClassification `json:"properties,omitempty"` + Properties TriggerClassification // READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TriggerRun - Trigger runs. type TriggerRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Status of the upstream pipelines. - DependencyStatus map[string]interface{} `json:"dependencyStatus,omitempty" azure:"ro"` + DependencyStatus map[string]any // READ-ONLY; Trigger error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; List of property name and value related to trigger run. Name, value pair depends on type of trigger. - Properties map[string]*string `json:"properties,omitempty" azure:"ro"` + Properties map[string]*string // READ-ONLY; Run dimension for which trigger was fired. - RunDimension map[string]*string `json:"runDimension,omitempty" azure:"ro"` + RunDimension map[string]*string // READ-ONLY; Trigger run status. - Status *TriggerRunStatus `json:"status,omitempty" azure:"ro"` + Status *TriggerRunStatus // READ-ONLY; Trigger name. - TriggerName *string `json:"triggerName,omitempty" azure:"ro"` + TriggerName *string // READ-ONLY; Trigger run id. - TriggerRunID *string `json:"triggerRunId,omitempty" azure:"ro"` + TriggerRunID *string // READ-ONLY; Trigger run start time. - TriggerRunTimestamp *time.Time `json:"triggerRunTimestamp,omitempty" azure:"ro"` + TriggerRunTimestamp *time.Time // READ-ONLY; Trigger type. - TriggerType *string `json:"triggerType,omitempty" azure:"ro"` + TriggerType *string // READ-ONLY; List of pipeline name and run Id triggered by the trigger run. - TriggeredPipelines map[string]*string `json:"triggeredPipelines,omitempty" azure:"ro"` -} - -// TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. -type TriggerRunsClientCancelOptions struct { - // placeholder for future optional parameters -} - -// TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory method. -type TriggerRunsClientQueryByFactoryOptions struct { - // placeholder for future optional parameters -} - -// TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. -type TriggerRunsClientRerunOptions struct { - // placeholder for future optional parameters + TriggeredPipelines map[string]*string } // TriggerRunsQueryResponse - A list of trigger runs. type TriggerRunsQueryResponse struct { // REQUIRED; List of trigger runs. - Value []*TriggerRun `json:"value,omitempty"` + Value []*TriggerRun // The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` + ContinuationToken *string } // TriggerSubscriptionOperationStatus - Defines the response of a trigger subscription operation. type TriggerSubscriptionOperationStatus struct { // READ-ONLY; Event Subscription Status. - Status *EventSubscriptionStatus `json:"status,omitempty" azure:"ro"` + Status *EventSubscriptionStatus // READ-ONLY; Trigger name. - TriggerName *string `json:"triggerName,omitempty" azure:"ro"` -} - -// TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. -type TriggersClientBeginStartOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. -type TriggersClientBeginStopOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents -// method. -type TriggersClientBeginSubscribeToEventsOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents -// method. -type TriggersClientBeginUnsubscribeFromEventsOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. -type TriggersClientCreateOrUpdateOptions struct { - // ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * - // for unconditional update. - IfMatch *string -} - -// TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. -type TriggersClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus -// method. -type TriggersClientGetEventSubscriptionStatusOptions struct { - // placeholder for future optional parameters -} - -// TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. -type TriggersClientGetOptions struct { - // ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was - // provided, then no content will be returned. - IfNoneMatch *string -} - -// TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.ListByFactory method. -type TriggersClientListByFactoryOptions struct { - // placeholder for future optional parameters -} - -// TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. -type TriggersClientQueryByFactoryOptions struct { - // placeholder for future optional parameters + TriggerName *string } // TumblingWindowTrigger - Trigger that schedules pipeline runs for all fixed time interval windows from a start time without // gaps and also supports backfill scenarios (when start time is in the past). type TumblingWindowTrigger struct { // REQUIRED; Pipeline for which runs are created when an event is fired for trigger window that is ready. - Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` + Pipeline *TriggerPipelineReference // REQUIRED; Trigger type. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Tumbling Window Trigger properties. - TypeProperties *TumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *TumblingWindowTriggerTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Trigger description. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. - RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty" azure:"ro"` + RuntimeState *TriggerRuntimeState } // GetTrigger implements the TriggerClassification interface for type TumblingWindowTrigger. func (t *TumblingWindowTrigger) GetTrigger() *Trigger { return &Trigger{ - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + Annotations: t.Annotations, Description: t.Description, RuntimeState: t.RuntimeState, - Annotations: t.Annotations, - AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // TumblingWindowTriggerDependencyReference - Referenced tumbling window trigger dependency. type TumblingWindowTriggerDependencyReference struct { // REQUIRED; Referenced trigger. - ReferenceTrigger *TriggerReference `json:"referenceTrigger,omitempty"` + ReferenceTrigger *TriggerReference // REQUIRED; The type of dependency reference. - Type *string `json:"type,omitempty"` + Type *string // Timespan applied to the start time of a tumbling window when evaluating dependency. - Offset *string `json:"offset,omitempty"` + Offset *string // The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. - Size *string `json:"size,omitempty"` + Size *string } // GetDependencyReference implements the DependencyReferenceClassification interface for type TumblingWindowTriggerDependencyReference. @@ -29062,666 +30440,964 @@ func (t *TumblingWindowTriggerDependencyReference) GetTriggerDependencyReference // TumblingWindowTriggerTypeProperties - Tumbling Window Trigger properties. type TumblingWindowTriggerTypeProperties struct { // REQUIRED; The frequency of the time windows. - Frequency *TumblingWindowFrequency `json:"frequency,omitempty"` + Frequency *TumblingWindowFrequency // REQUIRED; The interval of the time windows. The minimum interval allowed is 15 Minutes. - Interval *int32 `json:"interval,omitempty"` + Interval *int32 // REQUIRED; The max number of parallel time windows (ready for execution) for which a new run is triggered. - MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` + MaxConcurrency *int32 // REQUIRED; The start time for the time period for the trigger during which events are fired for windows that are ready. // Only UTC time is currently supported. - StartTime *time.Time `json:"startTime,omitempty"` + StartTime *time.Time // Specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. // The default is 0. Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Delay interface{} `json:"delay,omitempty"` + Delay any // Triggers that this trigger depends on. Only tumbling window triggers are supported. - DependsOn []DependencyReferenceClassification `json:"dependsOn,omitempty"` + DependsOn []DependencyReferenceClassification // The end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time // is currently supported. - EndTime *time.Time `json:"endTime,omitempty"` + EndTime *time.Time // Retry policy that will be applied for failed pipeline runs. - RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` + RetryPolicy *RetryPolicy } // TwilioLinkedService - Linked service for Twilio. type TwilioLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Twilio linked service properties. - TypeProperties *TwilioLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *TwilioLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type TwilioLinkedService. func (t *TwilioLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: t.Type, + AdditionalProperties: t.AdditionalProperties, + Annotations: t.Annotations, ConnectVia: t.ConnectVia, Description: t.Description, Parameters: t.Parameters, - Annotations: t.Annotations, - AdditionalProperties: t.AdditionalProperties, + Type: t.Type, } } // TwilioLinkedServiceTypeProperties - Twilio linked service type properties. type TwilioLinkedServiceTypeProperties struct { // REQUIRED; The auth token of Twilio service. - Password SecretBaseClassification `json:"password,omitempty"` - - // REQUIRED; The Account SID of Twilio service. - UserName interface{} `json:"userName,omitempty"` -} - -// TypeConversionSettings - Type conversion settings -type TypeConversionSettings struct { - // Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean). - AllowDataTruncation interface{} `json:"allowDataTruncation,omitempty"` - - // The culture used to convert data from/to string. Type: string (or Expression with resultType string). - Culture interface{} `json:"culture,omitempty"` - - // The format for DateTime values. Type: string (or Expression with resultType string). - DateTimeFormat interface{} `json:"dateTimeFormat,omitempty"` - - // The format for DateTimeOffset values. Type: string (or Expression with resultType string). - DateTimeOffsetFormat interface{} `json:"dateTimeOffsetFormat,omitempty"` - - // The format for TimeSpan values. Type: string (or Expression with resultType string). - TimeSpanFormat interface{} `json:"timeSpanFormat,omitempty"` + Password SecretBaseClassification - // Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean). - TreatBooleanAsNumber interface{} `json:"treatBooleanAsNumber,omitempty"` + // REQUIRED; The Account SID of Twilio service. Type: string (or Expression with resultType string). + UserName any } // UntilActivity - This activity executes inner activities until the specified boolean expression results to true or timeout // is reached, whichever is earlier. type UntilActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Until activity properties. - TypeProperties *UntilActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *UntilActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type UntilActivity. func (u *UntilActivity) GetActivity() *Activity { return &Activity{ - Name: u.Name, - Type: u.Type, - Description: u.Description, + AdditionalProperties: u.AdditionalProperties, DependsOn: u.DependsOn, + Description: u.Description, + Name: u.Name, + OnInactiveMarkAs: u.OnInactiveMarkAs, + State: u.State, + Type: u.Type, UserProperties: u.UserProperties, - AdditionalProperties: u.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type UntilActivity. func (u *UntilActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: u.AdditionalProperties, + DependsOn: u.DependsOn, + Description: u.Description, Name: u.Name, + OnInactiveMarkAs: u.OnInactiveMarkAs, + State: u.State, Type: u.Type, - Description: u.Description, - DependsOn: u.DependsOn, UserProperties: u.UserProperties, - AdditionalProperties: u.AdditionalProperties, } } // UntilActivityTypeProperties - Until activity properties. type UntilActivityTypeProperties struct { // REQUIRED; List of activities to execute. - Activities []ActivityClassification `json:"activities,omitempty"` + Activities []ActivityClassification // REQUIRED; An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true - Expression *Expression `json:"expression,omitempty"` + Expression *Expression // Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) // which is 1 week as default. Type: string (or Expression with resultType - // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), - // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` + // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + Timeout any } // UpdateIntegrationRuntimeNodeRequest - Update integration runtime node request. type UpdateIntegrationRuntimeNodeRequest struct { // The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) // are allowed. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` + ConcurrentJobsLimit *int32 } // UpdateIntegrationRuntimeRequest - Update integration runtime request. type UpdateIntegrationRuntimeRequest struct { // Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. - AutoUpdate *IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` + AutoUpdate *IntegrationRuntimeAutoUpdate // The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that // time. - UpdateDelayOffset *string `json:"updateDelayOffset,omitempty"` + UpdateDelayOffset *string } // UserAccessPolicy - Get Data Plane read only token request definition. type UserAccessPolicy struct { // The resource path to get access relative to factory. Currently only empty string is supported which corresponds to the // factory resource. - AccessResourcePath *string `json:"accessResourcePath,omitempty"` + AccessResourcePath *string // Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight // hours. - ExpireTime *string `json:"expireTime,omitempty"` + ExpireTime *string // The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. - Permissions *string `json:"permissions,omitempty"` + Permissions *string // The name of the profile. Currently only the default is supported. The default value is DefaultProfile. - ProfileName *string `json:"profileName,omitempty"` + ProfileName *string // Start time for the token. If not specified the current time will be used. - StartTime *string `json:"startTime,omitempty"` + StartTime *string } // UserProperty - User property. type UserProperty struct { // REQUIRED; User property name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; User property value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any } // ValidationActivity - This activity verifies that an external resource exists. type ValidationActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Validation activity properties. - TypeProperties *ValidationActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ValidationActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type ValidationActivity. func (v *ValidationActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: v.AdditionalProperties, + DependsOn: v.DependsOn, + Description: v.Description, Name: v.Name, + OnInactiveMarkAs: v.OnInactiveMarkAs, + State: v.State, Type: v.Type, - Description: v.Description, - DependsOn: v.DependsOn, UserProperties: v.UserProperties, - AdditionalProperties: v.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type ValidationActivity. func (v *ValidationActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: v.AdditionalProperties, + DependsOn: v.DependsOn, + Description: v.Description, Name: v.Name, + OnInactiveMarkAs: v.OnInactiveMarkAs, + State: v.State, Type: v.Type, - Description: v.Description, - DependsOn: v.DependsOn, UserProperties: v.UserProperties, - AdditionalProperties: v.AdditionalProperties, } } // ValidationActivityTypeProperties - Validation activity properties. type ValidationActivityTypeProperties struct { // REQUIRED; Validation activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` + Dataset *DatasetReference // Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the // folder must be empty. Type: boolean (or Expression with resultType boolean). - ChildItems interface{} `json:"childItems,omitempty"` + ChildItems any // Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer // (or Expression with resultType integer). - MinimumSize interface{} `json:"minimumSize,omitempty"` + MinimumSize any // A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: // integer (or Expression with resultType integer). - Sleep interface{} `json:"sleep,omitempty"` + Sleep any // Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) // which is 1 week as default. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` + Timeout any } // VariableSpecification - Definition of a single variable for a Pipeline. type VariableSpecification struct { // REQUIRED; Variable type. - Type *VariableType `json:"type,omitempty"` + Type *VariableType // Default value of variable. - DefaultValue interface{} `json:"defaultValue,omitempty"` + DefaultValue any } // VerticaDatasetTypeProperties - Vertica Properties type VerticaDatasetTypeProperties struct { // The schema name of the Vertica. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any // The table name of the Vertica. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any } // VerticaLinkedService - Vertica linked service. type VerticaLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Vertica linked service properties. - TypeProperties *VerticaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *VerticaLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type VerticaLinkedService. func (v *VerticaLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: v.Type, + AdditionalProperties: v.AdditionalProperties, + Annotations: v.Annotations, ConnectVia: v.ConnectVia, Description: v.Description, Parameters: v.Parameters, - Annotations: v.Annotations, - AdditionalProperties: v.AdditionalProperties, + Type: v.Type, } } // VerticaLinkedServiceTypeProperties - Vertica linked service properties. type VerticaLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + Pwd *AzureKeyVaultSecretReference } // VerticaSource - A copy activity Vertica source. type VerticaSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type VerticaSource. func (v *VerticaSource) GetCopySource() *CopySource { return &CopySource{ - Type: v.Type, + AdditionalProperties: v.AdditionalProperties, + DisableMetricsCollection: v.DisableMetricsCollection, + MaxConcurrentConnections: v.MaxConcurrentConnections, SourceRetryCount: v.SourceRetryCount, SourceRetryWait: v.SourceRetryWait, - MaxConcurrentConnections: v.MaxConcurrentConnections, - DisableMetricsCollection: v.DisableMetricsCollection, + Type: v.Type, + } +} + +// GetTabularSource implements the TabularSourceClassification interface for type VerticaSource. +func (v *VerticaSource) GetTabularSource() *TabularSource { + return &TabularSource{ + AdditionalColumns: v.AdditionalColumns, AdditionalProperties: v.AdditionalProperties, + DisableMetricsCollection: v.DisableMetricsCollection, + MaxConcurrentConnections: v.MaxConcurrentConnections, + QueryTimeout: v.QueryTimeout, + SourceRetryCount: v.SourceRetryCount, + SourceRetryWait: v.SourceRetryWait, + Type: v.Type, + } +} + +// VerticaTableDataset - Vertica dataset. +type VerticaTableDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any + + // Properties specific to this dataset type. + TypeProperties *VerticaDatasetTypeProperties +} + +// GetDataset implements the DatasetClassification interface for type VerticaTableDataset. +func (v *VerticaTableDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: v.AdditionalProperties, + Annotations: v.Annotations, + Description: v.Description, + Folder: v.Folder, + LinkedServiceName: v.LinkedServiceName, + Parameters: v.Parameters, + Schema: v.Schema, + Structure: v.Structure, + Type: v.Type, + } +} + +// WaitActivity - This activity suspends pipeline execution for the specified interval. +type WaitActivity struct { + // REQUIRED; Activity name. + Name *string + + // REQUIRED; Type of activity. + Type *string + + // REQUIRED; Wait activity properties. + TypeProperties *WaitActivityTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // Activity depends on condition. + DependsOn []*ActivityDependency + + // Activity description. + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + + // Activity user properties. + UserProperties []*UserProperty +} + +// GetActivity implements the ActivityClassification interface for type WaitActivity. +func (w *WaitActivity) GetActivity() *Activity { + return &Activity{ + AdditionalProperties: w.AdditionalProperties, + DependsOn: w.DependsOn, + Description: w.Description, + Name: w.Name, + OnInactiveMarkAs: w.OnInactiveMarkAs, + State: w.State, + Type: w.Type, + UserProperties: w.UserProperties, + } +} + +// GetControlActivity implements the ControlActivityClassification interface for type WaitActivity. +func (w *WaitActivity) GetControlActivity() *ControlActivity { + return &ControlActivity{ + AdditionalProperties: w.AdditionalProperties, + DependsOn: w.DependsOn, + Description: w.Description, + Name: w.Name, + OnInactiveMarkAs: w.OnInactiveMarkAs, + State: w.State, + Type: w.Type, + UserProperties: w.UserProperties, + } +} + +// WaitActivityTypeProperties - Wait activity properties. +type WaitActivityTypeProperties struct { + // REQUIRED; Duration in seconds. Type: integer (or Expression with resultType integer). + WaitTimeInSeconds any +} + +// WarehouseLinkedService - Microsoft Fabric Warehouse linked service. +type WarehouseLinkedService struct { + // REQUIRED; Type of linked service. + Type *string + + // REQUIRED; Microsoft Fabric Warehouse linked service properties. + TypeProperties *WarehouseLinkedServiceTypeProperties + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the linked service. + Annotations []any + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference + + // Linked service description. + Description *string + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification +} + +// GetLinkedService implements the LinkedServiceClassification interface for type WarehouseLinkedService. +func (w *WarehouseLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + AdditionalProperties: w.AdditionalProperties, + Annotations: w.Annotations, + ConnectVia: w.ConnectVia, + Description: w.Description, + Parameters: w.Parameters, + Type: w.Type, + } +} + +// WarehouseLinkedServiceTypeProperties - Microsoft Fabric Warehouse linked service properties. +type WarehouseLinkedServiceTypeProperties struct { + // REQUIRED; The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression with resultType string). + ArtifactID any + + // REQUIRED; The endpoint of Microsoft Fabric Warehouse server. Type: string (or Expression with resultType string). + Endpoint any + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + // servicePrincipalCredential can be SecureString or + // AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can + // only be AzureKeyVaultSecretReference. + ServicePrincipalCredential SecretBaseClassification + + // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, + // 'ServicePrincipalCert' for certificate. Type: string (or Expression with + // resultType string). + ServicePrincipalCredentialType any + + // The ID of the application used to authenticate against Microsoft Fabric Warehouse. Type: string (or Expression with resultType + // string). + ServicePrincipalID any + + // The Key of the application used to authenticate against Microsoft Fabric Warehouse. + ServicePrincipalKey SecretBaseClassification + + // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant any + + // The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). + WorkspaceID any +} + +// WarehouseSink - A copy activity Microsoft Fabric Warehouse sink. +type WarehouseSink struct { + // REQUIRED; Copy sink type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). + AllowCopyCommand any + + // Specifies Copy Command related settings when allowCopyCommand is true. + CopyCommandSettings *DWCopyCommandSettings + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript any + + // Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount any + + // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait any + + // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression + // with resultType string). + TableOption any + + // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize any + + // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout any + + // Write behavior when copying data into azure Microsoft Fabric Data Warehouse. Type: DWWriteBehaviorEnum (or Expression with + // resultType DWWriteBehaviorEnum) + WriteBehavior any +} + +// GetCopySink implements the CopySinkClassification interface for type WarehouseSink. +func (w *WarehouseSink) GetCopySink() *CopySink { + return &CopySink{ + AdditionalProperties: w.AdditionalProperties, + DisableMetricsCollection: w.DisableMetricsCollection, + MaxConcurrentConnections: w.MaxConcurrentConnections, + SinkRetryCount: w.SinkRetryCount, + SinkRetryWait: w.SinkRetryWait, + Type: w.Type, + WriteBatchSize: w.WriteBatchSize, + WriteBatchTimeout: w.WriteBatchTimeout, + } +} + +// WarehouseSource - A copy activity Microsoft Fabric Warehouse source. +type WarehouseSource struct { + // REQUIRED; Copy source type. + Type *string + + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // Specifies the transaction locking behavior for the Microsoft Fabric Warehouse source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. + // The default value is + // ReadCommitted. Type: string (or Expression with resultType string). + IsolationLevel any + + // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", + // "DynamicRange". + PartitionOption any + + // The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings + + // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout any + + // Microsoft Fabric Warehouse reader query. Type: string (or Expression with resultType string). + SQLReaderQuery any + + // Name of the stored procedure for a Microsoft Fabric Warehouse source. This cannot be used at the same time as SqlReaderQuery. + // Type: string (or Expression with resultType string). + SQLReaderStoredProcedureName any + + // Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount any + + // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait any + + // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object + // (or Expression with resultType object), itemType: StoredProcedureParameter. + StoredProcedureParameters any +} + +// GetCopySource implements the CopySourceClassification interface for type WarehouseSource. +func (w *WarehouseSource) GetCopySource() *CopySource { + return &CopySource{ + AdditionalProperties: w.AdditionalProperties, + DisableMetricsCollection: w.DisableMetricsCollection, + MaxConcurrentConnections: w.MaxConcurrentConnections, + SourceRetryCount: w.SourceRetryCount, + SourceRetryWait: w.SourceRetryWait, + Type: w.Type, } } -// GetTabularSource implements the TabularSourceClassification interface for type VerticaSource. -func (v *VerticaSource) GetTabularSource() *TabularSource { +// GetTabularSource implements the TabularSourceClassification interface for type WarehouseSource. +func (w *WarehouseSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: v.QueryTimeout, - AdditionalColumns: v.AdditionalColumns, - Type: v.Type, - SourceRetryCount: v.SourceRetryCount, - SourceRetryWait: v.SourceRetryWait, - MaxConcurrentConnections: v.MaxConcurrentConnections, - DisableMetricsCollection: v.DisableMetricsCollection, - AdditionalProperties: v.AdditionalProperties, + AdditionalColumns: w.AdditionalColumns, + AdditionalProperties: w.AdditionalProperties, + DisableMetricsCollection: w.DisableMetricsCollection, + MaxConcurrentConnections: w.MaxConcurrentConnections, + QueryTimeout: w.QueryTimeout, + SourceRetryCount: w.SourceRetryCount, + SourceRetryWait: w.SourceRetryWait, + Type: w.Type, } } -// VerticaTableDataset - Vertica dataset. -type VerticaTableDataset struct { +// WarehouseTableDataset - Microsoft Fabric Warehouse dataset. +type WarehouseTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any - // Properties specific to this dataset type. - TypeProperties *VerticaDatasetTypeProperties `json:"typeProperties,omitempty"` + // Microsoft Fabric Warehouse dataset properties. + TypeProperties *WarehouseTableDatasetTypeProperties } -// GetDataset implements the DatasetClassification interface for type VerticaTableDataset. -func (v *VerticaTableDataset) GetDataset() *Dataset { +// GetDataset implements the DatasetClassification interface for type WarehouseTableDataset. +func (w *WarehouseTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: v.Type, - Description: v.Description, - Structure: v.Structure, - Schema: v.Schema, - LinkedServiceName: v.LinkedServiceName, - Parameters: v.Parameters, - Annotations: v.Annotations, - Folder: v.Folder, - AdditionalProperties: v.AdditionalProperties, - } -} - -// WaitActivity - This activity suspends pipeline execution for the specified interval. -type WaitActivity struct { - // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` - - // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` - - // REQUIRED; Wait activity properties. - TypeProperties *WaitActivityTypeProperties `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"` - - // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` -} - -// GetActivity implements the ActivityClassification interface for type WaitActivity. -func (w *WaitActivity) GetActivity() *Activity { - return &Activity{ - Name: w.Name, - Type: w.Type, - Description: w.Description, - DependsOn: w.DependsOn, - UserProperties: w.UserProperties, AdditionalProperties: w.AdditionalProperties, - } -} - -// GetControlActivity implements the ControlActivityClassification interface for type WaitActivity. -func (w *WaitActivity) GetControlActivity() *ControlActivity { - return &ControlActivity{ - Name: w.Name, - Type: w.Type, + Annotations: w.Annotations, Description: w.Description, - DependsOn: w.DependsOn, - UserProperties: w.UserProperties, - AdditionalProperties: w.AdditionalProperties, + Folder: w.Folder, + LinkedServiceName: w.LinkedServiceName, + Parameters: w.Parameters, + Schema: w.Schema, + Structure: w.Structure, + Type: w.Type, } } -// WaitActivityTypeProperties - Wait activity properties. -type WaitActivityTypeProperties struct { - // REQUIRED; Duration in seconds. - WaitTimeInSeconds interface{} `json:"waitTimeInSeconds,omitempty"` +// WarehouseTableDatasetTypeProperties - Microsoft Fabric Warehouse dataset properties. +type WarehouseTableDatasetTypeProperties struct { + // The schema name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). + Schema any + + // The table name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). + Table any } // WebActivity - Web activity. type WebActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Web activity properties. - TypeProperties *WebActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *WebActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string // Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs // Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` + Policy *ActivityPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type WebActivity. func (w *WebActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: w.AdditionalProperties, + DependsOn: w.DependsOn, + Description: w.Description, Name: w.Name, + OnInactiveMarkAs: w.OnInactiveMarkAs, + State: w.State, Type: w.Type, - Description: w.Description, - DependsOn: w.DependsOn, UserProperties: w.UserProperties, - AdditionalProperties: w.AdditionalProperties, } } // GetExecutionActivity implements the ExecutionActivityClassification interface for type WebActivity. func (w *WebActivity) GetExecutionActivity() *ExecutionActivity { return &ExecutionActivity{ + AdditionalProperties: w.AdditionalProperties, + DependsOn: w.DependsOn, + Description: w.Description, LinkedServiceName: w.LinkedServiceName, - Policy: w.Policy, Name: w.Name, + OnInactiveMarkAs: w.OnInactiveMarkAs, + Policy: w.Policy, + State: w.State, Type: w.Type, - Description: w.Description, - DependsOn: w.DependsOn, UserProperties: w.UserProperties, - AdditionalProperties: w.AdditionalProperties, } } // WebActivityAuthentication - Web activity authentication properties. type WebActivityAuthentication struct { // The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` + Credential *CredentialReference // Password for the PFX file or basic authentication / Secret when used for ServicePrincipal - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal - Pfx SecretBaseClassification `json:"pfx,omitempty"` + Pfx SecretBaseClassification // Resource for which Azure Auth token will be requested when using MSI Authentication. Type: string (or Expression with resultType // string). - Resource interface{} `json:"resource,omitempty"` + Resource any // Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal) - Type *string `json:"type,omitempty"` + Type *string // TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression // with resultType string). - UserTenant interface{} `json:"userTenant,omitempty"` + UserTenant any // Web activity authentication user name for basic authentication or ClientID when used for ServicePrincipal. Type: string // (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // WebActivityTypeProperties - Web activity type properties. type WebActivityTypeProperties struct { // REQUIRED; Rest API method for target endpoint. - Method *WebActivityMethod `json:"method,omitempty"` + Method *WebActivityMethod // REQUIRED; Web activity target endpoint and path. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any // Authentication method used for calling the endpoint. - Authentication *WebActivityAuthentication `json:"authentication,omitempty"` + Authentication *WebActivityAuthentication // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). - Body interface{} `json:"body,omitempty"` + Body any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // List of datasets passed to web endpoint. - Datasets []*DatasetReference `json:"datasets,omitempty"` + Datasets []*DatasetReference // When set to true, Certificate validation will be disabled. - DisableCertValidation *bool `json:"disableCertValidation,omitempty"` + DisableCertValidation *bool + + // Timeout for the HTTP request to get a response. Format is in TimeSpan (hh:mm:ss). This value is the timeout to get a response, + // not the activity timeout. The default value is 00:01:00 (1 minute). The + // range is from 1 to 10 minutes + HTTPRequestTimeout any // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). - Headers interface{} `json:"headers,omitempty"` + Headers map[string]any // List of linked services passed to web endpoint. - LinkedServices []*LinkedServiceReference `json:"linkedServices,omitempty"` + LinkedServices []*LinkedServiceReference + + // Option to disable invoking HTTP GET on location given in response header of a HTTP 202 Response. If set true, it stops + // invoking HTTP GET on http location given in response header. If set false then + // continues to invoke HTTP GET call on location given in http response headers. + TurnOffAsync *bool } // WebAnonymousAuthentication - A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint. type WebAnonymousAuthentication struct { // REQUIRED; Type of authentication used to connect to the web table source. - AuthenticationType *WebAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *WebAuthenticationType // 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"` + URL any } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebAnonymousAuthentication. func (w *WebAnonymousAuthentication) GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties { return &WebLinkedServiceTypeProperties{ - URL: w.URL, AuthenticationType: w.AuthenticationType, + URL: w.URL, } } // WebBasicAuthentication - A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint. type WebBasicAuthentication struct { // REQUIRED; Type of authentication used to connect to the web table source. - AuthenticationType *WebAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *WebAuthenticationType // REQUIRED; The password for Basic authentication. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // 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"` + URL any // REQUIRED; User name for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebBasicAuthentication. func (w *WebBasicAuthentication) GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties { return &WebLinkedServiceTypeProperties{ - URL: w.URL, AuthenticationType: w.AuthenticationType, + URL: w.URL, } } @@ -29730,159 +31406,164 @@ func (w *WebBasicAuthentication) GetWebLinkedServiceTypeProperties() *WebLinkedS // the client. type WebClientCertificateAuthentication struct { // REQUIRED; Type of authentication used to connect to the web table source. - AuthenticationType *WebAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *WebAuthenticationType // REQUIRED; Password for the PFX file. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // REQUIRED; Base64-encoded contents of a PFX file. - Pfx SecretBaseClassification `json:"pfx,omitempty"` + Pfx SecretBaseClassification // 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"` + URL any } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebClientCertificateAuthentication. func (w *WebClientCertificateAuthentication) GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties { return &WebLinkedServiceTypeProperties{ - URL: w.URL, AuthenticationType: w.AuthenticationType, + URL: w.URL, } } // WebHookActivity - WebHook activity. type WebHookActivity struct { // REQUIRED; Activity name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Type of activity. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; WebHook activity properties. - TypeProperties *WebHookActivityTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *WebHookActivityTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. - DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + DependsOn []*ActivityDependency // Activity description. - Description *string `json:"description,omitempty"` + Description *string + + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity policy. + Policy *SecureInputOutputPolicy + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState // Activity user properties. - UserProperties []*UserProperty `json:"userProperties,omitempty"` + UserProperties []*UserProperty } // GetActivity implements the ActivityClassification interface for type WebHookActivity. func (w *WebHookActivity) GetActivity() *Activity { return &Activity{ + AdditionalProperties: w.AdditionalProperties, + DependsOn: w.DependsOn, + Description: w.Description, Name: w.Name, + OnInactiveMarkAs: w.OnInactiveMarkAs, + State: w.State, Type: w.Type, - Description: w.Description, - DependsOn: w.DependsOn, UserProperties: w.UserProperties, - AdditionalProperties: w.AdditionalProperties, } } // GetControlActivity implements the ControlActivityClassification interface for type WebHookActivity. func (w *WebHookActivity) GetControlActivity() *ControlActivity { return &ControlActivity{ + AdditionalProperties: w.AdditionalProperties, + DependsOn: w.DependsOn, + Description: w.Description, Name: w.Name, + OnInactiveMarkAs: w.OnInactiveMarkAs, + State: w.State, Type: w.Type, - Description: w.Description, - DependsOn: w.DependsOn, UserProperties: w.UserProperties, - AdditionalProperties: w.AdditionalProperties, } } // WebHookActivityTypeProperties - WebHook activity type properties. type WebHookActivityTypeProperties struct { // REQUIRED; Rest API method for target endpoint. - Method *WebHookActivityMethod `json:"method,omitempty"` + Method *WebHookActivityMethod // REQUIRED; WebHook activity target endpoint and path. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any // Authentication method used for calling the endpoint. - Authentication *WebActivityAuthentication `json:"authentication,omitempty"` + Authentication *WebActivityAuthentication // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). - Body interface{} `json:"body,omitempty"` + Body any // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). - Headers interface{} `json:"headers,omitempty"` + Headers map[string]any // When set to true, statusCode, output and error in callback request body will be consumed by activity. The activity can // be marked as failed by setting statusCode >= 400 in callback request. Default is // false. Type: boolean (or Expression with resultType boolean). - ReportStatusOnCallBack interface{} `json:"reportStatusOnCallBack,omitempty"` + ReportStatusOnCallBack any // The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. // Type: string. Pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout *string `json:"timeout,omitempty"` + Timeout *string } // WebLinkedService - Web linked service. type WebLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Web linked service properties. - TypeProperties WebLinkedServiceTypePropertiesClassification `json:"typeProperties,omitempty"` + TypeProperties WebLinkedServiceTypePropertiesClassification // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type WebLinkedService. func (w *WebLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: w.Type, + AdditionalProperties: w.AdditionalProperties, + Annotations: w.Annotations, ConnectVia: w.ConnectVia, Description: w.Description, Parameters: w.Parameters, - Annotations: w.Annotations, - AdditionalProperties: w.AdditionalProperties, + Type: w.Type, } } -// WebLinkedServiceTypePropertiesClassification provides polymorphic access to related types. -// Call the interface's GetWebLinkedServiceTypeProperties() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *WebAnonymousAuthentication, *WebBasicAuthentication, *WebClientCertificateAuthentication, *WebLinkedServiceTypeProperties -type WebLinkedServiceTypePropertiesClassification interface { - // GetWebLinkedServiceTypeProperties returns the WebLinkedServiceTypeProperties content of the underlying type. - GetWebLinkedServiceTypeProperties() *WebLinkedServiceTypeProperties -} - // WebLinkedServiceTypeProperties - Base definition of WebLinkedServiceTypeProperties, this typeProperties is polymorphic // based on authenticationType, so not flattened in SDK models. type WebLinkedServiceTypeProperties struct { // REQUIRED; Type of authentication used to connect to the web table source. - AuthenticationType *WebAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *WebAuthenticationType // 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"` + URL any } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebLinkedServiceTypeProperties. @@ -29893,86 +31574,86 @@ func (w *WebLinkedServiceTypeProperties) GetWebLinkedServiceTypeProperties() *We // WebSource - A copy activity source for web page table. type WebSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type WebSource. func (w *WebSource) GetCopySource() *CopySource { return &CopySource{ - Type: w.Type, + AdditionalProperties: w.AdditionalProperties, + DisableMetricsCollection: w.DisableMetricsCollection, + MaxConcurrentConnections: w.MaxConcurrentConnections, SourceRetryCount: w.SourceRetryCount, SourceRetryWait: w.SourceRetryWait, - MaxConcurrentConnections: w.MaxConcurrentConnections, - DisableMetricsCollection: w.DisableMetricsCollection, - AdditionalProperties: w.AdditionalProperties, + Type: w.Type, } } // WebTableDataset - The dataset points to a HTML table in the web page. type WebTableDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Web table dataset properties. - TypeProperties *WebTableDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *WebTableDatasetTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any } // GetDataset implements the DatasetClassification interface for type WebTableDataset. func (w *WebTableDataset) GetDataset() *Dataset { return &Dataset{ - Type: w.Type, + AdditionalProperties: w.AdditionalProperties, + Annotations: w.Annotations, Description: w.Description, - Structure: w.Structure, - Schema: w.Schema, + Folder: w.Folder, LinkedServiceName: w.LinkedServiceName, Parameters: w.Parameters, - Annotations: w.Annotations, - Folder: w.Folder, - AdditionalProperties: w.AdditionalProperties, + Schema: w.Schema, + Structure: w.Structure, + Type: w.Type, } } @@ -29980,600 +31661,600 @@ func (w *WebTableDataset) GetDataset() *Dataset { type WebTableDatasetTypeProperties struct { // REQUIRED; The zero-based index of the table in the web page. Type: integer (or Expression with resultType integer), minimum: // 0. - Index interface{} `json:"index,omitempty"` + Index any // The relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any } // WranglingDataFlow - Power Query data flow. type WranglingDataFlow struct { // REQUIRED; Type of data flow. - Type *string `json:"type,omitempty"` + Type *string // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The description of the data flow. - Description *string `json:"description,omitempty"` + Description *string // The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` + Folder *DataFlowFolder // PowerQuery data flow type properties. - TypeProperties *PowerQueryTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *PowerQueryTypeProperties } // GetDataFlow implements the DataFlowClassification interface for type WranglingDataFlow. func (w *WranglingDataFlow) GetDataFlow() *DataFlow { return &DataFlow{ - Type: w.Type, - Description: w.Description, Annotations: w.Annotations, + Description: w.Description, Folder: w.Folder, + Type: w.Type, } } // XMLDataset - Xml dataset. type XMLDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Xml dataset properties. - TypeProperties *XMLDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *XMLDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type XMLDataset. func (x *XMLDataset) GetDataset() *Dataset { return &Dataset{ - Type: x.Type, + AdditionalProperties: x.AdditionalProperties, + Annotations: x.Annotations, Description: x.Description, - Structure: x.Structure, - Schema: x.Schema, + Folder: x.Folder, LinkedServiceName: x.LinkedServiceName, Parameters: x.Parameters, - Annotations: x.Annotations, - Folder: x.Folder, - AdditionalProperties: x.AdditionalProperties, + Schema: x.Schema, + Structure: x.Structure, + Type: x.Type, } } // XMLDatasetTypeProperties - Xml dataset properties. type XMLDatasetTypeProperties struct { // REQUIRED; The location of the json data storage. - Location DatasetLocationClassification `json:"location,omitempty"` + Location DatasetLocationClassification // The data compression method used for the json dataset. - Compression *DatasetCompression `json:"compression,omitempty"` + Compression *DatasetCompression // The code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another // Unicode encoding. Refer to the name column of the table in the following link to // set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType // string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any } // XMLReadSettings - Xml read settings. type XMLReadSettings struct { // REQUIRED; The read setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. - CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` + CompressionProperties CompressionReadSettingsClassification // Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - DetectDataType interface{} `json:"detectDataType,omitempty"` + DetectDataType any // Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined // for a namespace uri, the prefix of xml element/attribute name in the xml // data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType // object). - NamespacePrefixes interface{} `json:"namespacePrefixes,omitempty"` + NamespacePrefixes any // Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - Namespaces interface{} `json:"namespaces,omitempty"` + Namespaces any // Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string // (or Expression with resultType string). - ValidationMode interface{} `json:"validationMode,omitempty"` + ValidationMode any } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type XMLReadSettings. func (x *XMLReadSettings) GetFormatReadSettings() *FormatReadSettings { return &FormatReadSettings{ - Type: x.Type, AdditionalProperties: x.AdditionalProperties, + Type: x.Type, } } // XMLSource - A copy activity Xml source. type XMLSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // Xml format settings. - FormatSettings *XMLReadSettings `json:"formatSettings,omitempty"` + FormatSettings *XMLReadSettings // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any // Xml store settings. - StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` + StoreSettings StoreReadSettingsClassification } // GetCopySource implements the CopySourceClassification interface for type XMLSource. func (x *XMLSource) GetCopySource() *CopySource { return &CopySource{ - Type: x.Type, + AdditionalProperties: x.AdditionalProperties, + DisableMetricsCollection: x.DisableMetricsCollection, + MaxConcurrentConnections: x.MaxConcurrentConnections, SourceRetryCount: x.SourceRetryCount, SourceRetryWait: x.SourceRetryWait, - MaxConcurrentConnections: x.MaxConcurrentConnections, - DisableMetricsCollection: x.DisableMetricsCollection, - AdditionalProperties: x.AdditionalProperties, + Type: x.Type, } } // XeroLinkedService - Xero Service linked service. type XeroLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Xero Service linked service properties. - TypeProperties *XeroLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *XeroLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type XeroLinkedService. func (x *XeroLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: x.Type, + AdditionalProperties: x.AdditionalProperties, + Annotations: x.Annotations, ConnectVia: x.ConnectVia, Description: x.Description, Parameters: x.Parameters, - Annotations: x.Annotations, - AdditionalProperties: x.AdditionalProperties, + Type: x.Type, } } // XeroLinkedServiceTypeProperties - Xero Service linked service properties. type XeroLinkedServiceTypeProperties struct { // Properties used to connect to Xero. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any // The consumer key associated with the Xero application. - ConsumerKey SecretBaseClassification `json:"consumerKey,omitempty"` + ConsumerKey SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The endpoint of the Xero server. (i.e. api.xero.com) - Host interface{} `json:"host,omitempty"` + Host any // The private key from the .pem file that was generated for your Xero private application. You must include all the text // from the .pem file, including the Unix line endings( ). - PrivateKey SecretBaseClassification `json:"privateKey,omitempty"` + PrivateKey SecretBaseClassification // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // XeroObjectDataset - Xero Service dataset. type XeroObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type XeroObjectDataset. func (x *XeroObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: x.Type, + AdditionalProperties: x.AdditionalProperties, + Annotations: x.Annotations, Description: x.Description, - Structure: x.Structure, - Schema: x.Schema, + Folder: x.Folder, LinkedServiceName: x.LinkedServiceName, Parameters: x.Parameters, - Annotations: x.Annotations, - Folder: x.Folder, - AdditionalProperties: x.AdditionalProperties, + Schema: x.Schema, + Structure: x.Structure, + Type: x.Type, } } // XeroSource - A copy activity Xero Service source. type XeroSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type XeroSource. func (x *XeroSource) GetCopySource() *CopySource { return &CopySource{ - Type: x.Type, + AdditionalProperties: x.AdditionalProperties, + DisableMetricsCollection: x.DisableMetricsCollection, + MaxConcurrentConnections: x.MaxConcurrentConnections, SourceRetryCount: x.SourceRetryCount, SourceRetryWait: x.SourceRetryWait, - MaxConcurrentConnections: x.MaxConcurrentConnections, - DisableMetricsCollection: x.DisableMetricsCollection, - AdditionalProperties: x.AdditionalProperties, + Type: x.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type XeroSource. func (x *XeroSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: x.QueryTimeout, AdditionalColumns: x.AdditionalColumns, - Type: x.Type, + AdditionalProperties: x.AdditionalProperties, + DisableMetricsCollection: x.DisableMetricsCollection, + MaxConcurrentConnections: x.MaxConcurrentConnections, + QueryTimeout: x.QueryTimeout, SourceRetryCount: x.SourceRetryCount, SourceRetryWait: x.SourceRetryWait, - MaxConcurrentConnections: x.MaxConcurrentConnections, - DisableMetricsCollection: x.DisableMetricsCollection, - AdditionalProperties: x.AdditionalProperties, + Type: x.Type, } } // ZendeskLinkedService - Linked service for Zendesk. type ZendeskLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Zendesk linked service properties. - TypeProperties *ZendeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ZendeskLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ZendeskLinkedService. func (z *ZendeskLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: z.Type, + AdditionalProperties: z.AdditionalProperties, + Annotations: z.Annotations, ConnectVia: z.ConnectVia, Description: z.Description, Parameters: z.Parameters, - Annotations: z.Annotations, - AdditionalProperties: z.AdditionalProperties, + Type: z.Type, } } // ZendeskLinkedServiceTypeProperties - Zendesk linked service type properties. type ZendeskLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to use. - AuthenticationType *ZendeskAuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *ZendeskAuthenticationType // REQUIRED; The url to connect Zendesk source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any // The api token for the Zendesk source. - APIToken SecretBaseClassification `json:"apiToken,omitempty"` + APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The password of the Zendesk source. - Password SecretBaseClassification `json:"password,omitempty"` + Password SecretBaseClassification // The username of the Zendesk source. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any } // ZipDeflateReadSettings - The ZipDeflate compression read settings. type ZipDeflateReadSettings struct { // REQUIRED; The Compression setting type. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Preserve the zip file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveZipFileNameAsFolder interface{} `json:"preserveZipFileNameAsFolder,omitempty"` + PreserveZipFileNameAsFolder any } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type ZipDeflateReadSettings. func (z *ZipDeflateReadSettings) GetCompressionReadSettings() *CompressionReadSettings { return &CompressionReadSettings{ - Type: z.Type, AdditionalProperties: z.AdditionalProperties, + Type: z.Type, } } // ZohoLinkedService - Zoho server linked service. type ZohoLinkedService struct { // REQUIRED; Type of linked service. - Type *string `json:"type,omitempty"` + Type *string // REQUIRED; Zoho server linked service properties. - TypeProperties *ZohoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *ZohoLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + ConnectVia *IntegrationRuntimeReference // Linked service description. - Description *string `json:"description,omitempty"` + Description *string // Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification } // GetLinkedService implements the LinkedServiceClassification interface for type ZohoLinkedService. func (z *ZohoLinkedService) GetLinkedService() *LinkedService { return &LinkedService{ - Type: z.Type, + AdditionalProperties: z.AdditionalProperties, + Annotations: z.Annotations, ConnectVia: z.ConnectVia, Description: z.Description, Parameters: z.Parameters, - Annotations: z.Annotations, - AdditionalProperties: z.AdditionalProperties, + Type: z.Type, } } // ZohoLinkedServiceTypeProperties - Zoho server linked service properties. type ZohoLinkedServiceTypeProperties struct { // The access token for Zoho authentication. - AccessToken SecretBaseClassification `json:"accessToken,omitempty"` + AccessToken SecretBaseClassification // Properties used to connect to Zoho. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // Type: string. + EncryptedCredential *string // The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any } // ZohoObjectDataset - Zoho server dataset. type ZohoObjectDataset struct { // REQUIRED; Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + LinkedServiceName *LinkedServiceReference // REQUIRED; Type of dataset. - Type *string `json:"type,omitempty"` + Type *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any // Dataset description. - Description *string `json:"description,omitempty"` + Description *string // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` + Folder *DatasetFolder // Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` + Parameters map[string]*ParameterSpecification // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any // Properties specific to this dataset type. - TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + TypeProperties *GenericDatasetTypeProperties } // GetDataset implements the DatasetClassification interface for type ZohoObjectDataset. func (z *ZohoObjectDataset) GetDataset() *Dataset { return &Dataset{ - Type: z.Type, + AdditionalProperties: z.AdditionalProperties, + Annotations: z.Annotations, Description: z.Description, - Structure: z.Structure, - Schema: z.Schema, + Folder: z.Folder, LinkedServiceName: z.LinkedServiceName, Parameters: z.Parameters, - Annotations: z.Annotations, - Folder: z.Folder, - AdditionalProperties: z.AdditionalProperties, + Schema: z.Schema, + Structure: z.Structure, + Type: z.Type, } } // ZohoSource - A copy activity Zoho server source. type ZohoSource struct { // REQUIRED; Copy source type. - Type *string `json:"type,omitempty"` + Type *string // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any } // GetCopySource implements the CopySourceClassification interface for type ZohoSource. func (z *ZohoSource) GetCopySource() *CopySource { return &CopySource{ - Type: z.Type, + AdditionalProperties: z.AdditionalProperties, + DisableMetricsCollection: z.DisableMetricsCollection, + MaxConcurrentConnections: z.MaxConcurrentConnections, SourceRetryCount: z.SourceRetryCount, SourceRetryWait: z.SourceRetryWait, - MaxConcurrentConnections: z.MaxConcurrentConnections, - DisableMetricsCollection: z.DisableMetricsCollection, - AdditionalProperties: z.AdditionalProperties, + Type: z.Type, } } // GetTabularSource implements the TabularSourceClassification interface for type ZohoSource. func (z *ZohoSource) GetTabularSource() *TabularSource { return &TabularSource{ - QueryTimeout: z.QueryTimeout, AdditionalColumns: z.AdditionalColumns, - Type: z.Type, + AdditionalProperties: z.AdditionalProperties, + DisableMetricsCollection: z.DisableMetricsCollection, + MaxConcurrentConnections: z.MaxConcurrentConnections, + QueryTimeout: z.QueryTimeout, SourceRetryCount: z.SourceRetryCount, SourceRetryWait: z.SourceRetryWait, - MaxConcurrentConnections: z.MaxConcurrentConnections, - DisableMetricsCollection: z.DisableMetricsCollection, - AdditionalProperties: z.AdditionalProperties, + Type: z.Type, } } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/models_serde.go similarity index 80% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/models_serde.go index c0b63e74..3ec25afb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/models_serde.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -18,7 +17,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type AccessPolicyResponse. func (a AccessPolicyResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", a.AccessToken) populate(objectMap, "dataPlaneUrl", a.DataPlaneURL) populate(objectMap, "policy", a.Policy) @@ -53,10 +52,12 @@ func (a *AccessPolicyResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Activity. func (a Activity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) + populate(objectMap, "state", a.State) objectMap["type"] = a.Type populate(objectMap, "userProperties", a.UserProperties) if a.AdditionalProperties != nil { @@ -85,6 +86,12 @@ func (a *Activity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -93,10 +100,10 @@ func (a *Activity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -111,7 +118,7 @@ func (a *Activity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityDependency. func (a ActivityDependency) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activity", a.Activity) populate(objectMap, "dependencyConditions", a.DependencyConditions) if a.AdditionalProperties != nil { @@ -139,10 +146,10 @@ func (a *ActivityDependency) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -157,12 +164,12 @@ func (a *ActivityDependency) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityPolicy. func (a ActivityPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "retry", &a.Retry) + objectMap := make(map[string]any) + populateAny(objectMap, "retry", a.Retry) populate(objectMap, "retryIntervalInSeconds", a.RetryIntervalInSeconds) populate(objectMap, "secureInput", a.SecureInput) populate(objectMap, "secureOutput", a.SecureOutput) - populate(objectMap, "timeout", &a.Timeout) + populateAny(objectMap, "timeout", a.Timeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -197,10 +204,10 @@ func (a *ActivityPolicy) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -215,17 +222,17 @@ func (a *ActivityPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityRun. func (a ActivityRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activityName", a.ActivityName) - populateTimeRFC3339(objectMap, "activityRunEnd", a.ActivityRunEnd) + populateDateTimeRFC3339(objectMap, "activityRunEnd", a.ActivityRunEnd) populate(objectMap, "activityRunId", a.ActivityRunID) - populateTimeRFC3339(objectMap, "activityRunStart", a.ActivityRunStart) + populateDateTimeRFC3339(objectMap, "activityRunStart", a.ActivityRunStart) populate(objectMap, "activityType", a.ActivityType) populate(objectMap, "durationInMs", a.DurationInMs) - populate(objectMap, "error", &a.Error) - populate(objectMap, "input", &a.Input) + populateAny(objectMap, "error", a.Error) + populateAny(objectMap, "input", a.Input) populate(objectMap, "linkedServiceName", a.LinkedServiceName) - populate(objectMap, "output", &a.Output) + populateAny(objectMap, "output", a.Output) populate(objectMap, "pipelineName", a.PipelineName) populate(objectMap, "pipelineRunId", a.PipelineRunID) populate(objectMap, "status", a.Status) @@ -250,13 +257,13 @@ func (a *ActivityRun) UnmarshalJSON(data []byte) error { err = unpopulate(val, "ActivityName", &a.ActivityName) delete(rawMsg, key) case "activityRunEnd": - err = unpopulateTimeRFC3339(val, "ActivityRunEnd", &a.ActivityRunEnd) + err = unpopulateDateTimeRFC3339(val, "ActivityRunEnd", &a.ActivityRunEnd) delete(rawMsg, key) case "activityRunId": err = unpopulate(val, "ActivityRunID", &a.ActivityRunID) delete(rawMsg, key) case "activityRunStart": - err = unpopulateTimeRFC3339(val, "ActivityRunStart", &a.ActivityRunStart) + err = unpopulateDateTimeRFC3339(val, "ActivityRunStart", &a.ActivityRunStart) delete(rawMsg, key) case "activityType": err = unpopulate(val, "ActivityType", &a.ActivityType) @@ -287,10 +294,10 @@ func (a *ActivityRun) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -305,7 +312,7 @@ func (a *ActivityRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityRunsQueryResponse. func (a ActivityRunsQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", a.ContinuationToken) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -336,7 +343,7 @@ func (a *ActivityRunsQueryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AddDataFlowToDebugSessionResponse. func (a AddDataFlowToDebugSessionResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "jobVersion", a.JobVersion) return json.Marshal(objectMap) } @@ -361,40 +368,9 @@ func (a *AddDataFlowToDebugSessionResponse) UnmarshalJSON(data []byte) error { 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{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -438,10 +414,10 @@ func (a *AmazonMWSLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -456,17 +432,17 @@ func (a *AmazonMWSLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonMWSLinkedServiceTypeProperties. func (a AmazonMWSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessKeyId", &a.AccessKeyID) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "endpoint", &a.Endpoint) - populate(objectMap, "marketplaceID", &a.MarketplaceID) + objectMap := make(map[string]any) + populateAny(objectMap, "accessKeyId", a.AccessKeyID) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "endpoint", a.Endpoint) + populateAny(objectMap, "marketplaceID", a.MarketplaceID) populate(objectMap, "mwsAuthToken", a.MwsAuthToken) populate(objectMap, "secretKey", a.SecretKey) - populate(objectMap, "sellerID", &a.SellerID) - populate(objectMap, "useEncryptedEndpoints", &a.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &a.UseHostVerification) - populate(objectMap, "usePeerVerification", &a.UsePeerVerification) + populateAny(objectMap, "sellerID", a.SellerID) + populateAny(objectMap, "useEncryptedEndpoints", a.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", a.UseHostVerification) + populateAny(objectMap, "usePeerVerification", a.UsePeerVerification) return json.Marshal(objectMap) } @@ -519,14 +495,14 @@ func (a *AmazonMWSLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AmazonMWSObjectDataset. func (a AmazonMWSObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AmazonMWSObject" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -575,10 +551,10 @@ func (a *AmazonMWSObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -593,14 +569,14 @@ func (a *AmazonMWSObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonMWSSource. func (a AmazonMWSSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "query", &a.Query) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "query", a.Query) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AmazonMWSSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -645,10 +621,10 @@ func (a *AmazonMWSSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -663,9 +639,9 @@ func (a *AmazonMWSSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForLinkedServiceTypeProperties. func (a AmazonRdsForLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "connectionString", &a.ConnectionString) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) return json.Marshal(objectMap) } @@ -698,7 +674,7 @@ func (a *AmazonRdsForLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleLinkedService. func (a AmazonRdsForOracleLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -742,10 +718,10 @@ func (a *AmazonRdsForOracleLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -760,11 +736,11 @@ func (a *AmazonRdsForOracleLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "partitionColumnName", a.PartitionColumnName) + populateAny(objectMap, "partitionLowerBound", a.PartitionLowerBound) + populateAny(objectMap, "partitionNames", a.PartitionNames) + populateAny(objectMap, "partitionUpperBound", a.PartitionUpperBound) return json.Marshal(objectMap) } @@ -799,16 +775,16 @@ func (a *AmazonRdsForOraclePartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleSource. func (a AmazonRdsForOracleSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "oracleReaderQuery", &a.OracleReaderQuery) - populate(objectMap, "partitionOption", &a.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "oracleReaderQuery", a.OracleReaderQuery) + populateAny(objectMap, "partitionOption", a.PartitionOption) populate(objectMap, "partitionSettings", a.PartitionSettings) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AmazonRdsForOracleSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -859,10 +835,10 @@ func (a *AmazonRdsForOracleSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -877,14 +853,14 @@ func (a *AmazonRdsForOracleSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleTableDataset. func (a AmazonRdsForOracleTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AmazonRdsForOracleTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -933,10 +909,10 @@ func (a *AmazonRdsForOracleTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -951,9 +927,9 @@ func (a *AmazonRdsForOracleTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "table", a.Table) return json.Marshal(objectMap) } @@ -982,7 +958,7 @@ func (a *AmazonRdsForOracleTableDatasetTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerLinkedService. func (a AmazonRdsForSQLServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -1026,10 +1002,10 @@ func (a *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1044,12 +1020,12 @@ func (a *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerLinkedServiceTypeProperties. func (a AmazonRdsForSQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", a.AlwaysEncryptedSettings) - populate(objectMap, "connectionString", &a.ConnectionString) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) - populate(objectMap, "userName", &a.UserName) + populateAny(objectMap, "userName", a.UserName) return json.Marshal(objectMap) } @@ -1087,19 +1063,20 @@ func (a *AmazonRdsForSQLServerLinkedServiceTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerSource. func (a AmazonRdsForSQLServerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &a.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "isolationLevel", a.IsolationLevel) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", a.PartitionOption) populate(objectMap, "partitionSettings", a.PartitionSettings) - populate(objectMap, "produceAdditionalTypes", &a.ProduceAdditionalTypes) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sqlReaderQuery", &a.SQLReaderQuery) - populate(objectMap, "sqlReaderStoredProcedureName", &a.SQLReaderStoredProcedureName) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) + populateAny(objectMap, "produceAdditionalTypes", a.ProduceAdditionalTypes) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sqlReaderQuery", a.SQLReaderQuery) + populateAny(objectMap, "sqlReaderStoredProcedureName", a.SQLReaderStoredProcedureName) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) + populateAny(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) objectMap["type"] = "AmazonRdsForSqlServerSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -1124,6 +1101,9 @@ func (a *AmazonRdsForSQLServerSource) UnmarshalJSON(data []byte) error { case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &a.DisableMetricsCollection) delete(rawMsg, key) + case "isolationLevel": + err = unpopulate(val, "IsolationLevel", &a.IsolationLevel) + delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) delete(rawMsg, key) @@ -1159,10 +1139,10 @@ func (a *AmazonRdsForSQLServerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1177,14 +1157,14 @@ func (a *AmazonRdsForSQLServerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerTableDataset. func (a AmazonRdsForSQLServerTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AmazonRdsForSqlServerTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -1233,10 +1213,10 @@ func (a *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1251,9 +1231,9 @@ func (a *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "table", a.Table) return json.Marshal(objectMap) } @@ -1282,7 +1262,7 @@ func (a *AmazonRdsForSQLServerTableDatasetTypeProperties) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftLinkedService. func (a AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -1326,10 +1306,10 @@ func (a *AmazonRedshiftLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1344,13 +1324,13 @@ func (a *AmazonRedshiftLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftLinkedServiceTypeProperties. func (a AmazonRedshiftLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "database", &a.Database) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + objectMap := make(map[string]any) + populateAny(objectMap, "database", a.Database) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) - populate(objectMap, "port", &a.Port) - populate(objectMap, "server", &a.Server) - populate(objectMap, "username", &a.Username) + populateAny(objectMap, "port", a.Port) + populateAny(objectMap, "server", a.Server) + populateAny(objectMap, "username", a.Username) return json.Marshal(objectMap) } @@ -1391,15 +1371,15 @@ func (a *AmazonRedshiftLinkedServiceTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftSource. func (a AmazonRedshiftSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "query", &a.Query) - populate(objectMap, "queryTimeout", &a.QueryTimeout) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "query", a.Query) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) populate(objectMap, "redshiftUnloadSettings", a.RedshiftUnloadSettings) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AmazonRedshiftSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -1447,10 +1427,10 @@ func (a *AmazonRedshiftSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1465,14 +1445,14 @@ func (a *AmazonRedshiftSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftTableDataset. func (a AmazonRedshiftTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AmazonRedshiftTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -1521,10 +1501,10 @@ func (a *AmazonRedshiftTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1539,10 +1519,10 @@ func (a *AmazonRedshiftTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "table", a.Table) + populateAny(objectMap, "tableName", a.TableName) return json.Marshal(objectMap) } @@ -1574,7 +1554,7 @@ func (a *AmazonRedshiftTableDatasetTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLinkedService. func (a AmazonS3CompatibleLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -1618,10 +1598,10 @@ func (a *AmazonS3CompatibleLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1636,12 +1616,12 @@ func (a *AmazonS3CompatibleLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLinkedServiceTypeProperties. func (a AmazonS3CompatibleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessKeyId", &a.AccessKeyID) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "forcePathStyle", &a.ForcePathStyle) + objectMap := make(map[string]any) + populateAny(objectMap, "accessKeyId", a.AccessKeyID) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "forcePathStyle", a.ForcePathStyle) populate(objectMap, "secretAccessKey", a.SecretAccessKey) - populate(objectMap, "serviceUrl", &a.ServiceURL) + populateAny(objectMap, "serviceUrl", a.ServiceURL) return json.Marshal(objectMap) } @@ -1679,12 +1659,12 @@ func (a *AmazonS3CompatibleLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLocation. func (a AmazonS3CompatibleLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bucketName", &a.BucketName) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "bucketName", a.BucketName) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) objectMap["type"] = "AmazonS3CompatibleLocation" - populate(objectMap, "version", &a.Version) + populateAny(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -1719,10 +1699,10 @@ func (a *AmazonS3CompatibleLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1737,20 +1717,20 @@ func (a *AmazonS3CompatibleLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleReadSettings. func (a AmazonS3CompatibleReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &a.FileListPath) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &a.PartitionRootPath) - populate(objectMap, "prefix", &a.Prefix) - populate(objectMap, "recursive", &a.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", a.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", a.PartitionRootPath) + populateAny(objectMap, "prefix", a.Prefix) + populateAny(objectMap, "recursive", a.Recursive) objectMap["type"] = "AmazonS3CompatibleReadSettings" - populate(objectMap, "wildcardFileName", &a.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &a.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", a.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", a.WildcardFolderPath) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -1809,10 +1789,10 @@ func (a *AmazonS3CompatibleReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1827,14 +1807,14 @@ func (a *AmazonS3CompatibleReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3Dataset. func (a AmazonS3Dataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AmazonS3Object" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -1883,10 +1863,10 @@ func (a *AmazonS3Dataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1901,15 +1881,15 @@ func (a *AmazonS3Dataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3DatasetTypeProperties. func (a AmazonS3DatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bucketName", &a.BucketName) + objectMap := make(map[string]any) + populateAny(objectMap, "bucketName", a.BucketName) populate(objectMap, "compression", a.Compression) populate(objectMap, "format", a.Format) - populate(objectMap, "key", &a.Key) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "prefix", &a.Prefix) - populate(objectMap, "version", &a.Version) + populateAny(objectMap, "key", a.Key) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "prefix", a.Prefix) + populateAny(objectMap, "version", a.Version) return json.Marshal(objectMap) } @@ -1956,7 +1936,7 @@ func (a *AmazonS3DatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3LinkedService. func (a AmazonS3LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -2000,10 +1980,10 @@ func (a *AmazonS3LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2018,12 +1998,12 @@ func (a *AmazonS3LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3LinkedServiceTypeProperties. func (a AmazonS3LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessKeyId", &a.AccessKeyID) - populate(objectMap, "authenticationType", &a.AuthenticationType) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + objectMap := make(map[string]any) + populateAny(objectMap, "accessKeyId", a.AccessKeyID) + populateAny(objectMap, "authenticationType", a.AuthenticationType) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "secretAccessKey", a.SecretAccessKey) - populate(objectMap, "serviceUrl", &a.ServiceURL) + populateAny(objectMap, "serviceUrl", a.ServiceURL) populate(objectMap, "sessionToken", a.SessionToken) return json.Marshal(objectMap) } @@ -2065,12 +2045,12 @@ func (a *AmazonS3LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3Location. func (a AmazonS3Location) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bucketName", &a.BucketName) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "bucketName", a.BucketName) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) objectMap["type"] = "AmazonS3Location" - populate(objectMap, "version", &a.Version) + populateAny(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -2105,10 +2085,10 @@ func (a *AmazonS3Location) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2123,20 +2103,20 @@ func (a *AmazonS3Location) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3ReadSettings. func (a AmazonS3ReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &a.FileListPath) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &a.PartitionRootPath) - populate(objectMap, "prefix", &a.Prefix) - populate(objectMap, "recursive", &a.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", a.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", a.PartitionRootPath) + populateAny(objectMap, "prefix", a.Prefix) + populateAny(objectMap, "recursive", a.Recursive) objectMap["type"] = "AmazonS3ReadSettings" - populate(objectMap, "wildcardFileName", &a.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &a.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", a.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", a.WildcardFolderPath) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -2195,10 +2175,10 @@ func (a *AmazonS3ReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2213,7 +2193,7 @@ func (a *AmazonS3ReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppFiguresLinkedService. func (a AppFiguresLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -2257,10 +2237,10 @@ func (a *AppFiguresLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2275,10 +2255,10 @@ func (a *AppFiguresLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppFiguresLinkedServiceTypeProperties. func (a AppFiguresLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientKey", a.ClientKey) populate(objectMap, "password", a.Password) - populate(objectMap, "userName", &a.UserName) + populateAny(objectMap, "userName", a.UserName) return json.Marshal(objectMap) } @@ -2310,10 +2290,12 @@ func (a *AppFiguresLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AppendVariableActivity. func (a AppendVariableActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) + populate(objectMap, "state", a.State) objectMap["type"] = "AppendVariable" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -2343,6 +2325,12 @@ func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -2354,10 +2342,10 @@ func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2372,8 +2360,8 @@ func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "value", a.Value) populate(objectMap, "variableName", a.VariableName) return json.Marshal(objectMap) } @@ -2403,7 +2391,7 @@ func (a *AppendVariableActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ArmIDWrapper. func (a ArmIDWrapper) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) return json.Marshal(objectMap) } @@ -2430,7 +2418,7 @@ func (a *ArmIDWrapper) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AsanaLinkedService. func (a AsanaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -2474,10 +2462,10 @@ func (a *AsanaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2492,9 +2480,9 @@ func (a *AsanaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AsanaLinkedServiceTypeProperties. func (a AsanaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", a.APIToken) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) return json.Marshal(objectMap) } @@ -2523,14 +2511,14 @@ func (a *AsanaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroDataset. func (a AvroDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "Avro" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -2579,10 +2567,10 @@ func (a *AvroDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2597,8 +2585,8 @@ func (a *AvroDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroDatasetTypeProperties. func (a AvroDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "avroCompressionCodec", &a.AvroCompressionCodec) + objectMap := make(map[string]any) + populateAny(objectMap, "avroCompressionCodec", a.AvroCompressionCodec) populate(objectMap, "avroCompressionLevel", a.AvroCompressionLevel) populate(objectMap, "location", a.Location) return json.Marshal(objectMap) @@ -2632,9 +2620,9 @@ func (a *AvroDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroFormat. func (a AvroFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deserializer", &a.Deserializer) - populate(objectMap, "serializer", &a.Serializer) + objectMap := make(map[string]any) + populateAny(objectMap, "deserializer", a.Deserializer) + populateAny(objectMap, "serializer", a.Serializer) objectMap["type"] = "AvroFormat" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -2664,10 +2652,10 @@ func (a *AvroFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2682,16 +2670,16 @@ func (a *AvroFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroSink. func (a AvroSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) populate(objectMap, "formatSettings", a.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) populate(objectMap, "storeSettings", a.StoreSettings) objectMap["type"] = "AvroSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -2738,10 +2726,10 @@ func (a *AvroSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2756,12 +2744,12 @@ func (a *AvroSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroSource. func (a AvroSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) populate(objectMap, "storeSettings", a.StoreSettings) objectMap["type"] = "AvroSource" if a.AdditionalProperties != nil { @@ -2804,10 +2792,10 @@ func (a *AvroSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2822,9 +2810,9 @@ func (a *AvroSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroWriteSettings. func (a AvroWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileNamePrefix", &a.FileNamePrefix) - populate(objectMap, "maxRowsPerFile", &a.MaxRowsPerFile) + objectMap := make(map[string]any) + populateAny(objectMap, "fileNamePrefix", a.FileNamePrefix) + populateAny(objectMap, "maxRowsPerFile", a.MaxRowsPerFile) populate(objectMap, "recordName", a.RecordName) populate(objectMap, "recordNamespace", a.RecordNamespace) objectMap["type"] = "AvroWriteSettings" @@ -2862,10 +2850,10 @@ func (a *AvroWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2880,7 +2868,7 @@ func (a *AvroWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzPowerShellSetup. func (a AzPowerShellSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "AzPowerShellSetup" populate(objectMap, "typeProperties", a.TypeProperties) return json.Marshal(objectMap) @@ -2911,7 +2899,7 @@ func (a *AzPowerShellSetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzPowerShellSetupTypeProperties. func (a AzPowerShellSetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "version", a.Version) return json.Marshal(objectMap) } @@ -2938,7 +2926,7 @@ func (a *AzPowerShellSetupTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBatchLinkedService. func (a AzureBatchLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -2982,10 +2970,10 @@ func (a *AzureBatchLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3000,14 +2988,14 @@ func (a *AzureBatchLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBatchLinkedServiceTypeProperties. func (a AzureBatchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKey", a.AccessKey) - populate(objectMap, "accountName", &a.AccountName) - populate(objectMap, "batchUri", &a.BatchURI) + populateAny(objectMap, "accountName", a.AccountName) + populateAny(objectMap, "batchUri", a.BatchURI) populate(objectMap, "credential", a.Credential) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "linkedServiceName", a.LinkedServiceName) - populate(objectMap, "poolName", &a.PoolName) + populateAny(objectMap, "poolName", a.PoolName) return json.Marshal(objectMap) } @@ -3051,14 +3039,14 @@ func (a *AzureBatchLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureBlobDataset. func (a AzureBlobDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureBlob" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -3107,10 +3095,10 @@ func (a *AzureBlobDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3125,14 +3113,14 @@ func (a *AzureBlobDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobDatasetTypeProperties. func (a AzureBlobDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", a.Compression) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) populate(objectMap, "format", a.Format) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "tableRootLocation", &a.TableRootLocation) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "tableRootLocation", a.TableRootLocation) return json.Marshal(objectMap) } @@ -3176,14 +3164,14 @@ func (a *AzureBlobDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSDataset. func (a AzureBlobFSDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureBlobFSFile" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -3232,10 +3220,10 @@ func (a *AzureBlobFSDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3250,10 +3238,10 @@ func (a *AzureBlobFSDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSDatasetTypeProperties. func (a AzureBlobFSDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", a.Compression) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) populate(objectMap, "format", a.Format) return json.Marshal(objectMap) } @@ -3289,7 +3277,7 @@ func (a *AzureBlobFSDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLinkedService. func (a AzureBlobFSLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -3333,10 +3321,10 @@ func (a *AzureBlobFSLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3351,17 +3339,19 @@ func (a *AzureBlobFSLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLinkedServiceTypeProperties. func (a AzureBlobFSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accountKey", &a.AccountKey) - populate(objectMap, "azureCloudType", &a.AzureCloudType) + objectMap := make(map[string]any) + populateAny(objectMap, "accountKey", a.AccountKey) + populateAny(objectMap, "azureCloudType", a.AzureCloudType) populate(objectMap, "credential", a.Credential) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "sasToken", a.SasToken) + populateAny(objectMap, "sasUri", a.SasURI) populate(objectMap, "servicePrincipalCredential", a.ServicePrincipalCredential) - populate(objectMap, "servicePrincipalCredentialType", &a.ServicePrincipalCredentialType) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "servicePrincipalCredentialType", a.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "tenant", &a.Tenant) - populate(objectMap, "url", &a.URL) + populateAny(objectMap, "tenant", a.Tenant) + populateAny(objectMap, "url", a.URL) return json.Marshal(objectMap) } @@ -3386,6 +3376,12 @@ func (a *AzureBlobFSLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &a.EncryptedCredential) delete(rawMsg, key) + case "sasToken": + a.SasToken, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "sasUri": + err = unpopulate(val, "SasURI", &a.SasURI) + delete(rawMsg, key) case "servicePrincipalCredential": a.ServicePrincipalCredential, err = unmarshalSecretBaseClassification(val) delete(rawMsg, key) @@ -3414,10 +3410,10 @@ func (a *AzureBlobFSLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLocation. func (a AzureBlobFSLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "fileSystem", &a.FileSystem) - populate(objectMap, "folderPath", &a.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "fileSystem", a.FileSystem) + populateAny(objectMap, "folderPath", a.FolderPath) objectMap["type"] = "AzureBlobFSLocation" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -3450,10 +3446,10 @@ func (a *AzureBlobFSLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3468,19 +3464,19 @@ func (a *AzureBlobFSLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSReadSettings. func (a AzureBlobFSReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &a.FileListPath) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &a.PartitionRootPath) - populate(objectMap, "recursive", &a.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", a.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", a.PartitionRootPath) + populateAny(objectMap, "recursive", a.Recursive) objectMap["type"] = "AzureBlobFSReadSettings" - populate(objectMap, "wildcardFileName", &a.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &a.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", a.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", a.WildcardFolderPath) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -3536,10 +3532,10 @@ func (a *AzureBlobFSReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3554,16 +3550,16 @@ func (a *AzureBlobFSReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSSink. func (a AzureBlobFSSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &a.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", a.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) populate(objectMap, "metadata", a.Metadata) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureBlobFSSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -3610,10 +3606,10 @@ func (a *AzureBlobFSSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3628,14 +3624,14 @@ func (a *AzureBlobFSSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSSource. func (a AzureBlobFSSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "recursive", &a.Recursive) - populate(objectMap, "skipHeaderLineCount", &a.SkipHeaderLineCount) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) - populate(objectMap, "treatEmptyAsNull", &a.TreatEmptyAsNull) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "recursive", a.Recursive) + populateAny(objectMap, "skipHeaderLineCount", a.SkipHeaderLineCount) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) + populateAny(objectMap, "treatEmptyAsNull", a.TreatEmptyAsNull) objectMap["type"] = "AzureBlobFSSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -3680,10 +3676,10 @@ func (a *AzureBlobFSSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3698,11 +3694,12 @@ func (a *AzureBlobFSSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSWriteSettings. func (a AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blockSizeInMB", &a.BlockSizeInMB) - populate(objectMap, "copyBehavior", &a.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "blockSizeInMB", a.BlockSizeInMB) + populateAny(objectMap, "copyBehavior", a.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populate(objectMap, "metadata", a.Metadata) objectMap["type"] = "AzureBlobFSWriteSettings" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -3733,15 +3730,18 @@ func (a *AzureBlobFSWriteSettings) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &a.Metadata) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3756,7 +3756,7 @@ func (a *AzureBlobFSWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLinkedService. func (a AzureBlobStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -3800,10 +3800,10 @@ func (a *AzureBlobStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3818,19 +3818,21 @@ func (a *AzureBlobStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLinkedServiceTypeProperties. func (a AzureBlobStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) - populate(objectMap, "accountKind", a.AccountKind) - populate(objectMap, "azureCloudType", &a.AzureCloudType) - populate(objectMap, "connectionString", &a.ConnectionString) + populateAny(objectMap, "accountKind", a.AccountKind) + populate(objectMap, "authenticationType", a.AuthenticationType) + populateAny(objectMap, "azureCloudType", a.AzureCloudType) + populateAny(objectMap, "connectionString", a.ConnectionString) + populateAny(objectMap, "containerUri", a.ContainerURI) populate(objectMap, "credential", a.Credential) populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "sasToken", a.SasToken) - populate(objectMap, "sasUri", &a.SasURI) - populate(objectMap, "serviceEndpoint", a.ServiceEndpoint) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "sasUri", a.SasURI) + populateAny(objectMap, "serviceEndpoint", a.ServiceEndpoint) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -3849,12 +3851,18 @@ func (a *AzureBlobStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) case "accountKind": err = unpopulate(val, "AccountKind", &a.AccountKind) delete(rawMsg, key) + case "authenticationType": + err = unpopulate(val, "AuthenticationType", &a.AuthenticationType) + delete(rawMsg, key) case "azureCloudType": err = unpopulate(val, "AzureCloudType", &a.AzureCloudType) delete(rawMsg, key) case "connectionString": err = unpopulate(val, "ConnectionString", &a.ConnectionString) delete(rawMsg, key) + case "containerUri": + err = unpopulate(val, "ContainerURI", &a.ContainerURI) + delete(rawMsg, key) case "credential": err = unpopulate(val, "Credential", &a.Credential) delete(rawMsg, key) @@ -3889,10 +3897,10 @@ func (a *AzureBlobStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLocation. func (a AzureBlobStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "container", &a.Container) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "container", a.Container) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) objectMap["type"] = "AzureBlobStorageLocation" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -3925,10 +3933,10 @@ func (a *AzureBlobStorageLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3943,20 +3951,20 @@ func (a *AzureBlobStorageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageReadSettings. func (a AzureBlobStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &a.FileListPath) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &a.PartitionRootPath) - populate(objectMap, "prefix", &a.Prefix) - populate(objectMap, "recursive", &a.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", a.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", a.PartitionRootPath) + populateAny(objectMap, "prefix", a.Prefix) + populateAny(objectMap, "recursive", a.Recursive) objectMap["type"] = "AzureBlobStorageReadSettings" - populate(objectMap, "wildcardFileName", &a.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &a.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", a.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", a.WildcardFolderPath) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -4015,10 +4023,10 @@ func (a *AzureBlobStorageReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4033,11 +4041,12 @@ func (a *AzureBlobStorageReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageWriteSettings. func (a AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blockSizeInMB", &a.BlockSizeInMB) - populate(objectMap, "copyBehavior", &a.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "blockSizeInMB", a.BlockSizeInMB) + populateAny(objectMap, "copyBehavior", a.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populate(objectMap, "metadata", a.Metadata) objectMap["type"] = "AzureBlobStorageWriteSettings" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -4068,15 +4077,18 @@ func (a *AzureBlobStorageWriteSettings) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &a.Metadata) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4091,12 +4103,14 @@ func (a *AzureBlobStorageWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerCommandActivity. func (a AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureDataExplorerCommand" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -4129,9 +4143,15 @@ func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -4143,10 +4163,10 @@ func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4161,9 +4181,9 @@ func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "command", a.Command) + populateAny(objectMap, "commandTimeout", a.CommandTimeout) return json.Marshal(objectMap) } @@ -4192,8 +4212,8 @@ func (a *AzureDataExplorerCommandActivityTypeProperties) UnmarshalJSON(data []by // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "table", a.Table) return json.Marshal(objectMap) } @@ -4219,7 +4239,7 @@ func (a *AzureDataExplorerDatasetTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerLinkedService. func (a AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -4263,10 +4283,10 @@ func (a *AzureDataExplorerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4281,13 +4301,13 @@ func (a *AzureDataExplorerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerLinkedServiceTypeProperties. func (a AzureDataExplorerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "credential", a.Credential) - populate(objectMap, "database", &a.Database) - populate(objectMap, "endpoint", &a.Endpoint) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "database", a.Database) + populateAny(objectMap, "endpoint", a.Endpoint) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -4328,17 +4348,17 @@ func (a *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerSink. func (a AzureDataExplorerSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "flushImmediately", &a.FlushImmediately) - populate(objectMap, "ingestionMappingAsJson", &a.IngestionMappingAsJSON) - populate(objectMap, "ingestionMappingName", &a.IngestionMappingName) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "flushImmediately", a.FlushImmediately) + populateAny(objectMap, "ingestionMappingAsJson", a.IngestionMappingAsJSON) + populateAny(objectMap, "ingestionMappingName", a.IngestionMappingName) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureDataExplorerSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -4388,10 +4408,10 @@ func (a *AzureDataExplorerSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4406,15 +4426,15 @@ func (a *AzureDataExplorerSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerSource. func (a AzureDataExplorerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "noTruncation", &a.NoTruncation) - populate(objectMap, "query", &a.Query) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "noTruncation", a.NoTruncation) + populateAny(objectMap, "query", a.Query) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AzureDataExplorerSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -4462,10 +4482,10 @@ func (a *AzureDataExplorerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4480,14 +4500,14 @@ func (a *AzureDataExplorerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerTableDataset. func (a AzureDataExplorerTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureDataExplorerTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -4536,10 +4556,10 @@ func (a *AzureDataExplorerTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4554,7 +4574,7 @@ func (a *AzureDataExplorerTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeAnalyticsLinkedService. func (a AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -4598,10 +4618,10 @@ func (a *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4616,15 +4636,15 @@ func (a *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeAnalyticsLinkedServiceTypeProperties. func (a AzureDataLakeAnalyticsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accountName", &a.AccountName) - populate(objectMap, "dataLakeAnalyticsUri", &a.DataLakeAnalyticsURI) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "resourceGroupName", &a.ResourceGroupName) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + objectMap := make(map[string]any) + populateAny(objectMap, "accountName", a.AccountName) + populateAny(objectMap, "dataLakeAnalyticsUri", a.DataLakeAnalyticsURI) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "resourceGroupName", a.ResourceGroupName) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "subscriptionId", &a.SubscriptionID) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "subscriptionId", a.SubscriptionID) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -4671,14 +4691,14 @@ func (a *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreDataset. func (a AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureDataLakeStoreFile" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -4727,10 +4747,10 @@ func (a *AzureDataLakeStoreDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4745,10 +4765,10 @@ func (a *AzureDataLakeStoreDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreDatasetTypeProperties. func (a AzureDataLakeStoreDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", a.Compression) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) populate(objectMap, "format", a.Format) return json.Marshal(objectMap) } @@ -4784,7 +4804,7 @@ func (a *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLinkedService. func (a AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -4828,10 +4848,10 @@ func (a *AzureDataLakeStoreLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4846,17 +4866,17 @@ func (a *AzureDataLakeStoreLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLinkedServiceTypeProperties. func (a AzureDataLakeStoreLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accountName", &a.AccountName) - populate(objectMap, "azureCloudType", &a.AzureCloudType) + objectMap := make(map[string]any) + populateAny(objectMap, "accountName", a.AccountName) + populateAny(objectMap, "azureCloudType", a.AzureCloudType) populate(objectMap, "credential", a.Credential) - populate(objectMap, "dataLakeStoreUri", &a.DataLakeStoreURI) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "resourceGroupName", &a.ResourceGroupName) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "dataLakeStoreUri", a.DataLakeStoreURI) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "resourceGroupName", a.ResourceGroupName) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "subscriptionId", &a.SubscriptionID) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "subscriptionId", a.SubscriptionID) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -4909,9 +4929,9 @@ func (a *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLocation. func (a AzureDataLakeStoreLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) objectMap["type"] = "AzureDataLakeStoreLocation" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -4941,10 +4961,10 @@ func (a *AzureDataLakeStoreLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4959,21 +4979,21 @@ func (a *AzureDataLakeStoreLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreReadSettings. func (a AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &a.FileListPath) - populate(objectMap, "listAfter", &a.ListAfter) - populate(objectMap, "listBefore", &a.ListBefore) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &a.PartitionRootPath) - populate(objectMap, "recursive", &a.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", a.FileListPath) + populateAny(objectMap, "listAfter", a.ListAfter) + populateAny(objectMap, "listBefore", a.ListBefore) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", a.PartitionRootPath) + populateAny(objectMap, "recursive", a.Recursive) objectMap["type"] = "AzureDataLakeStoreReadSettings" - populate(objectMap, "wildcardFileName", &a.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &a.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", a.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", a.WildcardFolderPath) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -5035,10 +5055,10 @@ func (a *AzureDataLakeStoreReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5053,16 +5073,16 @@ func (a *AzureDataLakeStoreReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreSink. func (a AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &a.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "enableAdlsSingleFileParallel", &a.EnableAdlsSingleFileParallel) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", a.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "enableAdlsSingleFileParallel", a.EnableAdlsSingleFileParallel) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureDataLakeStoreSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -5109,10 +5129,10 @@ func (a *AzureDataLakeStoreSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5127,12 +5147,12 @@ func (a *AzureDataLakeStoreSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreSource. func (a AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "recursive", &a.Recursive) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "recursive", a.Recursive) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AzureDataLakeStoreSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -5171,10 +5191,10 @@ func (a *AzureDataLakeStoreSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5189,11 +5209,12 @@ func (a *AzureDataLakeStoreSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreWriteSettings. func (a AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &a.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "expiryDateTime", &a.ExpiryDateTime) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", a.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "expiryDateTime", a.ExpiryDateTime) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populate(objectMap, "metadata", a.Metadata) objectMap["type"] = "AzureDataLakeStoreWriteSettings" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -5224,15 +5245,18 @@ func (a *AzureDataLakeStoreWriteSettings) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &a.Metadata) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5247,14 +5271,14 @@ func (a *AzureDataLakeStoreWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeDataset. func (a AzureDatabricksDeltaLakeDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureDatabricksDeltaLakeDataset" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -5303,10 +5327,10 @@ func (a *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5321,9 +5345,9 @@ func (a *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "database", a.Database) + populateAny(objectMap, "table", a.Table) return json.Marshal(objectMap) } @@ -5352,9 +5376,9 @@ func (a *AzureDatabricksDeltaLakeDatasetTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeExportCommand. func (a AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dateFormat", &a.DateFormat) - populate(objectMap, "timestampFormat", &a.TimestampFormat) + objectMap := make(map[string]any) + populateAny(objectMap, "dateFormat", a.DateFormat) + populateAny(objectMap, "timestampFormat", a.TimestampFormat) objectMap["type"] = "AzureDatabricksDeltaLakeExportCommand" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -5384,10 +5408,10 @@ func (a *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5402,9 +5426,9 @@ func (a *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeImportCommand. func (a AzureDatabricksDeltaLakeImportCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dateFormat", &a.DateFormat) - populate(objectMap, "timestampFormat", &a.TimestampFormat) + objectMap := make(map[string]any) + populateAny(objectMap, "dateFormat", a.DateFormat) + populateAny(objectMap, "timestampFormat", a.TimestampFormat) objectMap["type"] = "AzureDatabricksDeltaLakeImportCommand" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -5434,10 +5458,10 @@ func (a *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5452,7 +5476,7 @@ func (a *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeLinkedService. func (a AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -5496,10 +5520,10 @@ func (a *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5514,16 +5538,16 @@ func (a *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeSink. func (a AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) populate(objectMap, "importSettings", a.ImportSettings) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &a.PreCopyScript) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", a.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureDatabricksDeltaLakeSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -5570,10 +5594,10 @@ func (a *AzureDatabricksDeltaLakeSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5588,13 +5612,13 @@ func (a *AzureDatabricksDeltaLakeSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeSource. func (a AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) populate(objectMap, "exportSettings", a.ExportSettings) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "query", &a.Query) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "query", a.Query) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AzureDatabricksDeltaLakeSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -5636,10 +5660,10 @@ func (a *AzureDatabricksDeltaLakeSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5654,13 +5678,13 @@ func (a *AzureDatabricksDeltaLakeSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDetltaLakeLinkedServiceTypeProperties. func (a AzureDatabricksDetltaLakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", a.AccessToken) - populate(objectMap, "clusterId", &a.ClusterID) + populateAny(objectMap, "clusterId", a.ClusterID) populate(objectMap, "credential", a.Credential) - populate(objectMap, "domain", &a.Domain) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "workspaceResourceId", &a.WorkspaceResourceID) + populateAny(objectMap, "domain", a.Domain) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "workspaceResourceId", a.WorkspaceResourceID) return json.Marshal(objectMap) } @@ -5701,7 +5725,7 @@ func (a *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJSON(dat // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksLinkedService. func (a AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -5745,10 +5769,10 @@ func (a *AzureDatabricksLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5763,26 +5787,26 @@ func (a *AzureDatabricksLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksLinkedServiceTypeProperties. func (a AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", a.AccessToken) - populate(objectMap, "authentication", &a.Authentication) + populateAny(objectMap, "authentication", a.Authentication) populate(objectMap, "credential", a.Credential) - populate(objectMap, "domain", &a.Domain) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "existingClusterId", &a.ExistingClusterID) - populate(objectMap, "instancePoolId", &a.InstancePoolID) + populateAny(objectMap, "domain", a.Domain) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "existingClusterId", a.ExistingClusterID) + populateAny(objectMap, "instancePoolId", a.InstancePoolID) populate(objectMap, "newClusterCustomTags", a.NewClusterCustomTags) - populate(objectMap, "newClusterDriverNodeType", &a.NewClusterDriverNodeType) - populate(objectMap, "newClusterEnableElasticDisk", &a.NewClusterEnableElasticDisk) - populate(objectMap, "newClusterInitScripts", &a.NewClusterInitScripts) - populate(objectMap, "newClusterLogDestination", &a.NewClusterLogDestination) - populate(objectMap, "newClusterNodeType", &a.NewClusterNodeType) - populate(objectMap, "newClusterNumOfWorker", &a.NewClusterNumOfWorker) + populateAny(objectMap, "newClusterDriverNodeType", a.NewClusterDriverNodeType) + populateAny(objectMap, "newClusterEnableElasticDisk", a.NewClusterEnableElasticDisk) + populateAny(objectMap, "newClusterInitScripts", a.NewClusterInitScripts) + populateAny(objectMap, "newClusterLogDestination", a.NewClusterLogDestination) + populateAny(objectMap, "newClusterNodeType", a.NewClusterNodeType) + populateAny(objectMap, "newClusterNumOfWorker", a.NewClusterNumOfWorker) populate(objectMap, "newClusterSparkConf", a.NewClusterSparkConf) populate(objectMap, "newClusterSparkEnvVars", a.NewClusterSparkEnvVars) - populate(objectMap, "newClusterVersion", &a.NewClusterVersion) - populate(objectMap, "policyId", &a.PolicyID) - populate(objectMap, "workspaceResourceId", &a.WorkspaceResourceID) + populateAny(objectMap, "newClusterVersion", a.NewClusterVersion) + populateAny(objectMap, "policyId", a.PolicyID) + populateAny(objectMap, "workspaceResourceId", a.WorkspaceResourceID) return json.Marshal(objectMap) } @@ -5862,7 +5886,7 @@ func (a *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLinkedService. func (a AzureFileStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -5906,10 +5930,10 @@ func (a *AzureFileStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5924,17 +5948,17 @@ func (a *AzureFileStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLinkedServiceTypeProperties. func (a AzureFileStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) - populate(objectMap, "connectionString", &a.ConnectionString) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "fileShare", &a.FileShare) - populate(objectMap, "host", &a.Host) + populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "fileShare", a.FileShare) + populateAny(objectMap, "host", a.Host) populate(objectMap, "password", a.Password) populate(objectMap, "sasToken", a.SasToken) - populate(objectMap, "sasUri", &a.SasURI) - populate(objectMap, "snapshot", &a.Snapshot) - populate(objectMap, "userId", &a.UserID) + populateAny(objectMap, "sasUri", a.SasURI) + populateAny(objectMap, "snapshot", a.Snapshot) + populateAny(objectMap, "userId", a.UserID) return json.Marshal(objectMap) } @@ -5987,9 +6011,9 @@ func (a *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLocation. func (a AzureFileStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &a.FileName) - populate(objectMap, "folderPath", &a.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", a.FileName) + populateAny(objectMap, "folderPath", a.FolderPath) objectMap["type"] = "AzureFileStorageLocation" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -6019,10 +6043,10 @@ func (a *AzureFileStorageLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6037,20 +6061,20 @@ func (a *AzureFileStorageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageReadSettings. func (a AzureFileStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &a.FileListPath) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &a.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &a.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &a.PartitionRootPath) - populate(objectMap, "prefix", &a.Prefix) - populate(objectMap, "recursive", &a.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", a.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", a.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", a.PartitionRootPath) + populateAny(objectMap, "prefix", a.Prefix) + populateAny(objectMap, "recursive", a.Recursive) objectMap["type"] = "AzureFileStorageReadSettings" - populate(objectMap, "wildcardFileName", &a.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &a.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", a.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", a.WildcardFolderPath) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -6109,10 +6133,10 @@ func (a *AzureFileStorageReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6127,10 +6151,11 @@ func (a *AzureFileStorageReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageWriteSettings. func (a AzureFileStorageWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &a.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", a.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populate(objectMap, "metadata", a.Metadata) objectMap["type"] = "AzureFileStorageWriteSettings" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -6158,15 +6183,18 @@ func (a *AzureFileStorageWriteSettings) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &a.Metadata) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6181,12 +6209,14 @@ func (a *AzureFileStorageWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFunctionActivity. func (a AzureFunctionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureFunctionActivity" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -6219,9 +6249,15 @@ func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -6233,10 +6269,10 @@ func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6251,10 +6287,10 @@ func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "body", a.Body) + populateAny(objectMap, "functionName", a.FunctionName) + populate(objectMap, "headers", a.Headers) populate(objectMap, "method", a.Method) return json.Marshal(objectMap) } @@ -6290,7 +6326,7 @@ func (a *AzureFunctionActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFunctionLinkedService. func (a AzureFunctionLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6334,10 +6370,10 @@ func (a *AzureFunctionLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6352,13 +6388,13 @@ func (a *AzureFunctionLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFunctionLinkedServiceTypeProperties. func (a AzureFunctionLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authentication", &a.Authentication) + objectMap := make(map[string]any) + populateAny(objectMap, "authentication", a.Authentication) populate(objectMap, "credential", a.Credential) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "functionAppUrl", &a.FunctionAppURL) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "functionAppUrl", a.FunctionAppURL) populate(objectMap, "functionKey", a.FunctionKey) - populate(objectMap, "resourceId", &a.ResourceID) + populateAny(objectMap, "resourceId", a.ResourceID) return json.Marshal(objectMap) } @@ -6399,7 +6435,7 @@ func (a *AzureFunctionLinkedServiceTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultLinkedService. func (a AzureKeyVaultLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6443,10 +6479,10 @@ func (a *AzureKeyVaultLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6461,8 +6497,8 @@ func (a *AzureKeyVaultLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "baseUrl", a.BaseURL) populate(objectMap, "credential", a.Credential) return json.Marshal(objectMap) } @@ -6492,9 +6528,9 @@ func (a *AzureKeyVaultLinkedServiceTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultSecretReference. func (a AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "secretName", &a.SecretName) - populate(objectMap, "secretVersion", &a.SecretVersion) + objectMap := make(map[string]any) + populateAny(objectMap, "secretName", a.SecretName) + populateAny(objectMap, "secretVersion", a.SecretVersion) populate(objectMap, "store", a.Store) objectMap["type"] = "AzureKeyVaultSecret" return json.Marshal(objectMap) @@ -6531,12 +6567,14 @@ func (a *AzureKeyVaultSecretReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLBatchExecutionActivity. func (a AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureMLBatchExecution" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -6569,9 +6607,15 @@ func (a *AzureMLBatchExecutionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -6583,10 +6627,10 @@ func (a *AzureMLBatchExecutionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6601,7 +6645,7 @@ func (a *AzureMLBatchExecutionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLBatchExecutionActivityTypeProperties. func (a AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "globalParameters", a.GlobalParameters) populate(objectMap, "webServiceInputs", a.WebServiceInputs) populate(objectMap, "webServiceOutputs", a.WebServiceOutputs) @@ -6636,12 +6680,14 @@ func (a *AzureMLBatchExecutionActivityTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureMLExecutePipelineActivity. func (a AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureMLExecutePipeline" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -6674,9 +6720,15 @@ func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -6688,10 +6740,10 @@ func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6706,15 +6758,15 @@ func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "continueOnStepFailure", a.ContinueOnStepFailure) + populateAny(objectMap, "dataPathAssignments", a.DataPathAssignments) + populateAny(objectMap, "experimentName", a.ExperimentName) + populateAny(objectMap, "mlParentRunId", a.MlParentRunID) + populateAny(objectMap, "mlPipelineEndpointId", a.MlPipelineEndpointID) + populateAny(objectMap, "mlPipelineId", a.MlPipelineID) + populateAny(objectMap, "mlPipelineParameters", a.MlPipelineParameters) + populateAny(objectMap, "version", a.Version) return json.Marshal(objectMap) } @@ -6761,7 +6813,7 @@ func (a *AzureMLExecutePipelineActivityTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type AzureMLLinkedService. func (a AzureMLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6805,10 +6857,10 @@ func (a *AzureMLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6823,15 +6875,15 @@ func (a *AzureMLLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLLinkedServiceTypeProperties. func (a AzureMLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiKey", a.APIKey) - populate(objectMap, "authentication", &a.Authentication) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "mlEndpoint", &a.MlEndpoint) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "authentication", a.Authentication) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "mlEndpoint", a.MlEndpoint) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "tenant", &a.Tenant) - populate(objectMap, "updateResourceEndpoint", &a.UpdateResourceEndpoint) + populateAny(objectMap, "tenant", a.Tenant) + populateAny(objectMap, "updateResourceEndpoint", a.UpdateResourceEndpoint) return json.Marshal(objectMap) } @@ -6878,7 +6930,7 @@ func (a *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLServiceLinkedService. func (a AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6922,10 +6974,10 @@ func (a *AzureMLServiceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6940,14 +6992,15 @@ func (a *AzureMLServiceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLServiceLinkedServiceTypeProperties. func (a AzureMLServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) - populate(objectMap, "mlWorkspaceName", &a.MlWorkspaceName) - populate(objectMap, "resourceGroupName", &a.ResourceGroupName) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + objectMap := make(map[string]any) + populateAny(objectMap, "authentication", a.Authentication) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populateAny(objectMap, "mlWorkspaceName", a.MlWorkspaceName) + populateAny(objectMap, "resourceGroupName", a.ResourceGroupName) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "subscriptionId", &a.SubscriptionID) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "subscriptionId", a.SubscriptionID) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -6960,6 +7013,9 @@ func (a *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) e for key, val := range rawMsg { var err error switch key { + case "authentication": + err = unpopulate(val, "Authentication", &a.Authentication) + delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &a.EncryptedCredential) delete(rawMsg, key) @@ -6991,12 +7047,14 @@ func (a *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type AzureMLUpdateResourceActivity. func (a AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureMLUpdateResource" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -7029,9 +7087,15 @@ func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -7043,10 +7107,10 @@ func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7061,10 +7125,10 @@ func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "trainedModelFilePath", a.TrainedModelFilePath) populate(objectMap, "trainedModelLinkedServiceName", a.TrainedModelLinkedServiceName) - populate(objectMap, "trainedModelName", &a.TrainedModelName) + populateAny(objectMap, "trainedModelName", a.TrainedModelName) return json.Marshal(objectMap) } @@ -7096,8 +7160,8 @@ func (a *AzureMLUpdateResourceActivityTypeProperties) UnmarshalJSON(data []byte) // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "filePath", a.FilePath) populate(objectMap, "linkedServiceName", a.LinkedServiceName) return json.Marshal(objectMap) } @@ -7127,7 +7191,7 @@ func (a *AzureMLWebServiceFile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMariaDBLinkedService. func (a AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -7171,10 +7235,10 @@ func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7189,9 +7253,9 @@ func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "pwd", a.Pwd) return json.Marshal(objectMap) } @@ -7224,14 +7288,14 @@ func (a *AzureMariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AzureMariaDBSource. func (a AzureMariaDBSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "query", &a.Query) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "query", a.Query) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AzureMariaDBSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -7276,10 +7340,10 @@ func (a *AzureMariaDBSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7294,14 +7358,14 @@ func (a *AzureMariaDBSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMariaDBTableDataset. func (a AzureMariaDBTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureMariaDBTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -7350,10 +7414,10 @@ func (a *AzureMariaDBTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7368,7 +7432,7 @@ func (a *AzureMariaDBTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLLinkedService. func (a AzureMySQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -7412,10 +7476,10 @@ func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7430,9 +7494,9 @@ func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) return json.Marshal(objectMap) } @@ -7465,15 +7529,15 @@ func (a *AzureMySQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureMySQLSink. func (a AzureMySQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &a.PreCopyScript) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", a.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureMySqlSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -7517,10 +7581,10 @@ func (a *AzureMySQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7535,14 +7599,14 @@ func (a *AzureMySQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLSource. func (a AzureMySQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "query", &a.Query) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "query", a.Query) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AzureMySqlSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -7587,10 +7651,10 @@ func (a *AzureMySQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7605,14 +7669,14 @@ func (a *AzureMySQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLTableDataset. func (a AzureMySQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureMySqlTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -7661,10 +7725,10 @@ func (a *AzureMySQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7679,9 +7743,9 @@ func (a *AzureMySQLTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "table", a.Table) + populateAny(objectMap, "tableName", a.TableName) return json.Marshal(objectMap) } @@ -7710,7 +7774,7 @@ func (a *AzureMySQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLLinkedService. func (a AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -7754,10 +7818,10 @@ func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7772,9 +7836,9 @@ func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) return json.Marshal(objectMap) } @@ -7807,15 +7871,15 @@ func (a *AzurePostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLSink. func (a AzurePostgreSQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &a.PreCopyScript) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", a.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzurePostgreSqlSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -7859,10 +7923,10 @@ func (a *AzurePostgreSQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7877,14 +7941,14 @@ func (a *AzurePostgreSQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLSource. func (a AzurePostgreSQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "query", &a.Query) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "query", a.Query) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AzurePostgreSqlSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -7929,10 +7993,10 @@ func (a *AzurePostgreSQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7947,14 +8011,14 @@ func (a *AzurePostgreSQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLTableDataset. func (a AzurePostgreSQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzurePostgreSqlTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -8003,10 +8067,10 @@ func (a *AzurePostgreSQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8021,10 +8085,10 @@ func (a *AzurePostgreSQLTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "table", a.Table) + populateAny(objectMap, "tableName", a.TableName) return json.Marshal(objectMap) } @@ -8056,14 +8120,14 @@ func (a *AzurePostgreSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type AzureQueueSink. func (a AzureQueueSink) 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 := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureQueueSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -8104,10 +8168,10 @@ func (a *AzureQueueSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8122,7 +8186,7 @@ func (a *AzureQueueSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLDWLinkedService. func (a AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -8166,10 +8230,10 @@ func (a *AzureSQLDWLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8184,15 +8248,15 @@ func (a *AzureSQLDWLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLDWLinkedServiceTypeProperties. func (a AzureSQLDWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "azureCloudType", &a.AzureCloudType) - populate(objectMap, "connectionString", &a.ConnectionString) + objectMap := make(map[string]any) + populateAny(objectMap, "azureCloudType", a.AzureCloudType) + populateAny(objectMap, "connectionString", a.ConnectionString) populate(objectMap, "credential", a.Credential) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -8239,14 +8303,14 @@ func (a *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLDWTableDataset. func (a AzureSQLDWTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureSqlDWTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -8295,10 +8359,10 @@ func (a *AzureSQLDWTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8313,10 +8377,10 @@ func (a *AzureSQLDWTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "table", a.Table) + populateAny(objectMap, "tableName", a.TableName) return json.Marshal(objectMap) } @@ -8348,7 +8412,7 @@ func (a *AzureSQLDWTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseLinkedService. func (a AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -8392,10 +8456,10 @@ func (a *AzureSQLDatabaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8410,16 +8474,16 @@ func (a *AzureSQLDatabaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseLinkedServiceTypeProperties. func (a AzureSQLDatabaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", a.AlwaysEncryptedSettings) - populate(objectMap, "azureCloudType", &a.AzureCloudType) - populate(objectMap, "connectionString", &a.ConnectionString) + populateAny(objectMap, "azureCloudType", a.AzureCloudType) + populateAny(objectMap, "connectionString", a.ConnectionString) populate(objectMap, "credential", a.Credential) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -8469,7 +8533,7 @@ func (a *AzureSQLDatabaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureSQLMILinkedService. func (a AzureSQLMILinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -8513,10 +8577,10 @@ func (a *AzureSQLMILinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8531,16 +8595,16 @@ func (a *AzureSQLMILinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLMILinkedServiceTypeProperties. func (a AzureSQLMILinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", a.AlwaysEncryptedSettings) - populate(objectMap, "azureCloudType", &a.AzureCloudType) - populate(objectMap, "connectionString", &a.ConnectionString) + populateAny(objectMap, "azureCloudType", a.AzureCloudType) + populateAny(objectMap, "connectionString", a.ConnectionString) populate(objectMap, "credential", a.Credential) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) - populate(objectMap, "servicePrincipalId", &a.ServicePrincipalID) + populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) - populate(objectMap, "tenant", &a.Tenant) + populateAny(objectMap, "tenant", a.Tenant) return json.Marshal(objectMap) } @@ -8590,14 +8654,14 @@ func (a *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLMITableDataset. func (a AzureSQLMITableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureSqlMITable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -8646,10 +8710,10 @@ func (a *AzureSQLMITableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8664,10 +8728,10 @@ func (a *AzureSQLMITableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "table", a.Table) + populateAny(objectMap, "tableName", a.TableName) return json.Marshal(objectMap) } @@ -8699,23 +8763,23 @@ func (a *AzureSQLMITableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLSink. func (a AzureSQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &a.PreCopyScript) - populate(objectMap, "sqlWriterStoredProcedureName", &a.SQLWriterStoredProcedureName) - populate(objectMap, "sqlWriterTableType", &a.SQLWriterTableType) - populate(objectMap, "sqlWriterUseTableLock", &a.SQLWriterUseTableLock) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) - populate(objectMap, "storedProcedureTableTypeParameterName", &a.StoredProcedureTableTypeParameterName) - populate(objectMap, "tableOption", &a.TableOption) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", a.PreCopyScript) + populateAny(objectMap, "sqlWriterStoredProcedureName", a.SQLWriterStoredProcedureName) + populateAny(objectMap, "sqlWriterTableType", a.SQLWriterTableType) + populateAny(objectMap, "sqlWriterUseTableLock", a.SQLWriterUseTableLock) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) + populateAny(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) + populateAny(objectMap, "storedProcedureTableTypeParameterName", a.StoredProcedureTableTypeParameterName) + populateAny(objectMap, "tableOption", a.TableOption) objectMap["type"] = "AzureSqlSink" populate(objectMap, "upsertSettings", a.UpsertSettings) - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &a.WriteBehavior) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", a.WriteBehavior) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -8783,10 +8847,10 @@ func (a *AzureSQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8801,19 +8865,20 @@ func (a *AzureSQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLSource. func (a AzureSQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &a.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "isolationLevel", a.IsolationLevel) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", a.PartitionOption) populate(objectMap, "partitionSettings", a.PartitionSettings) - populate(objectMap, "produceAdditionalTypes", &a.ProduceAdditionalTypes) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sqlReaderQuery", &a.SQLReaderQuery) - populate(objectMap, "sqlReaderStoredProcedureName", &a.SQLReaderStoredProcedureName) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) + populateAny(objectMap, "produceAdditionalTypes", a.ProduceAdditionalTypes) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sqlReaderQuery", a.SQLReaderQuery) + populateAny(objectMap, "sqlReaderStoredProcedureName", a.SQLReaderStoredProcedureName) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) + populateAny(objectMap, "storedProcedureParameters", a.StoredProcedureParameters) objectMap["type"] = "AzureSqlSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -8838,6 +8903,9 @@ func (a *AzureSQLSource) UnmarshalJSON(data []byte) error { case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &a.DisableMetricsCollection) delete(rawMsg, key) + case "isolationLevel": + err = unpopulate(val, "IsolationLevel", &a.IsolationLevel) + delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) delete(rawMsg, key) @@ -8873,10 +8941,10 @@ func (a *AzureSQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8891,14 +8959,14 @@ func (a *AzureSQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLTableDataset. func (a AzureSQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureSqlTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -8947,10 +9015,10 @@ func (a *AzureSQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8965,10 +9033,10 @@ func (a *AzureSQLTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLTableDatasetTypeProperties. func (a AzureSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "schema", &a.Schema) - populate(objectMap, "table", &a.Table) - populate(objectMap, "tableName", &a.TableName) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "table", a.Table) + populateAny(objectMap, "tableName", a.TableName) return json.Marshal(objectMap) } @@ -9000,14 +9068,14 @@ func (a *AzureSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexDataset. func (a AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureSearchIndex" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -9056,10 +9124,10 @@ func (a *AzureSearchIndexDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9074,8 +9142,8 @@ func (a *AzureSearchIndexDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "indexName", a.IndexName) return json.Marshal(objectMap) } @@ -9101,14 +9169,14 @@ func (a *AzureSearchIndexDatasetTypeProperties) UnmarshalJSON(data []byte) error // 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 := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureSearchIndexSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) populate(objectMap, "writeBehavior", a.WriteBehavior) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -9153,10 +9221,10 @@ func (a *AzureSearchIndexSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9171,7 +9239,7 @@ func (a *AzureSearchIndexSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedService. func (a AzureSearchLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9215,10 +9283,10 @@ func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9233,10 +9301,10 @@ func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedServiceTypeProperties. func (a AzureSearchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "key", a.Key) - populate(objectMap, "url", &a.URL) + populateAny(objectMap, "url", a.URL) return json.Marshal(objectMap) } @@ -9268,7 +9336,7 @@ func (a *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AzureStorageLinkedService. func (a AzureStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9312,10 +9380,10 @@ func (a *AzureStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9330,12 +9398,12 @@ func (a *AzureStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureStorageLinkedServiceTypeProperties. func (a AzureStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) - populate(objectMap, "connectionString", &a.ConnectionString) + populateAny(objectMap, "connectionString", a.ConnectionString) populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "sasToken", a.SasToken) - populate(objectMap, "sasUri", &a.SasURI) + populateAny(objectMap, "sasUri", a.SasURI) return json.Marshal(objectMap) } @@ -9373,7 +9441,7 @@ func (a *AzureStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AzureSynapseArtifactsLinkedService. func (a AzureSynapseArtifactsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9417,10 +9485,10 @@ func (a *AzureSynapseArtifactsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9435,9 +9503,10 @@ func (a *AzureSynapseArtifactsLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "authentication", a.Authentication) + populateAny(objectMap, "endpoint", a.Endpoint) + populateAny(objectMap, "workspaceResourceId", a.WorkspaceResourceID) return json.Marshal(objectMap) } @@ -9456,6 +9525,9 @@ func (a *AzureSynapseArtifactsLinkedServiceTypeProperties) UnmarshalJSON(data [] case "endpoint": err = unpopulate(val, "Endpoint", &a.Endpoint) delete(rawMsg, key) + case "workspaceResourceId": + err = unpopulate(val, "WorkspaceResourceID", &a.WorkspaceResourceID) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) @@ -9466,14 +9538,14 @@ func (a *AzureSynapseArtifactsLinkedServiceTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type AzureTableDataset. func (a AzureTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", a.Schema) + populateAny(objectMap, "structure", a.Structure) objectMap["type"] = "AzureTable" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { @@ -9522,10 +9594,10 @@ func (a *AzureTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9540,8 +9612,8 @@ func (a *AzureTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", a.TableName) return json.Marshal(objectMap) } @@ -9567,18 +9639,18 @@ func (a *AzureTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureTableSink. func (a AzureTableSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "azureTableDefaultPartitionKeyValue", &a.AzureTableDefaultPartitionKeyValue) - populate(objectMap, "azureTableInsertType", &a.AzureTableInsertType) - populate(objectMap, "azureTablePartitionKeyName", &a.AzureTablePartitionKeyName) - populate(objectMap, "azureTableRowKeyName", &a.AzureTableRowKeyName) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "azureTableDefaultPartitionKeyValue", a.AzureTableDefaultPartitionKeyValue) + populateAny(objectMap, "azureTableInsertType", a.AzureTableInsertType) + populateAny(objectMap, "azureTablePartitionKeyName", a.AzureTablePartitionKeyName) + populateAny(objectMap, "azureTableRowKeyName", a.AzureTableRowKeyName) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", a.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", a.SinkRetryWait) objectMap["type"] = "AzureTableSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", a.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", a.WriteBatchTimeout) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -9631,10 +9703,10 @@ func (a *AzureTableSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9649,15 +9721,15 @@ func (a *AzureTableSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureTableSource. func (a AzureTableSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &a.AdditionalColumns) - populate(objectMap, "azureTableSourceIgnoreTableNotFound", &a.AzureTableSourceIgnoreTableNotFound) - populate(objectMap, "azureTableSourceQuery", &a.AzureTableSourceQuery) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "queryTimeout", &a.QueryTimeout) - populate(objectMap, "sourceRetryCount", &a.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &a.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", a.AdditionalColumns) + populateAny(objectMap, "azureTableSourceIgnoreTableNotFound", a.AzureTableSourceIgnoreTableNotFound) + populateAny(objectMap, "azureTableSourceQuery", a.AzureTableSourceQuery) + populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", a.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", a.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", a.SourceRetryWait) objectMap["type"] = "AzureTableSource" if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -9705,10 +9777,10 @@ func (a *AzureTableSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9723,7 +9795,7 @@ func (a *AzureTableSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureTableStorageLinkedService. func (a AzureTableStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9767,10 +9839,10 @@ func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9785,8 +9857,8 @@ func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "referenceName", b.ReferenceName) populate(objectMap, "type", b.Type) return json.Marshal(objectMap) } @@ -9816,14 +9888,14 @@ func (b *BigDataPoolParametrizationReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinaryDataset. func (b BinaryDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", b.Annotations) populate(objectMap, "description", b.Description) populate(objectMap, "folder", b.Folder) populate(objectMap, "linkedServiceName", b.LinkedServiceName) populate(objectMap, "parameters", b.Parameters) - populate(objectMap, "schema", &b.Schema) - populate(objectMap, "structure", &b.Structure) + populateAny(objectMap, "schema", b.Schema) + populateAny(objectMap, "structure", b.Structure) objectMap["type"] = "Binary" populate(objectMap, "typeProperties", b.TypeProperties) if b.AdditionalProperties != nil { @@ -9872,10 +9944,10 @@ func (b *BinaryDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -9890,7 +9962,7 @@ func (b *BinaryDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinaryDatasetTypeProperties. func (b BinaryDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", b.Compression) populate(objectMap, "location", b.Location) return json.Marshal(objectMap) @@ -9921,7 +9993,7 @@ func (b *BinaryDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinaryReadSettings. func (b BinaryReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", b.CompressionProperties) objectMap["type"] = "BinaryReadSettings" if b.AdditionalProperties != nil { @@ -9949,10 +10021,10 @@ func (b *BinaryReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -9967,15 +10039,15 @@ func (b *BinaryReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinarySink. func (b BinarySink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &b.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &b.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &b.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &b.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", b.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", b.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", b.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", b.SinkRetryWait) populate(objectMap, "storeSettings", b.StoreSettings) objectMap["type"] = "BinarySink" - populate(objectMap, "writeBatchSize", &b.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &b.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", b.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", b.WriteBatchTimeout) if b.AdditionalProperties != nil { for key, val := range b.AdditionalProperties { objectMap[key] = val @@ -10019,10 +10091,10 @@ func (b *BinarySink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10037,12 +10109,12 @@ func (b *BinarySink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinarySource. func (b BinarySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &b.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", b.DisableMetricsCollection) populate(objectMap, "formatSettings", b.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &b.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &b.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &b.SourceRetryWait) + populateAny(objectMap, "maxConcurrentConnections", b.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", b.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", b.SourceRetryWait) populate(objectMap, "storeSettings", b.StoreSettings) objectMap["type"] = "BinarySource" if b.AdditionalProperties != nil { @@ -10085,10 +10157,10 @@ func (b *BinarySource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10103,7 +10175,7 @@ func (b *BinarySource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobEventsTrigger. func (b BlobEventsTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", b.Annotations) populate(objectMap, "description", b.Description) populate(objectMap, "pipelines", b.Pipelines) @@ -10147,10 +10219,10 @@ func (b *BlobEventsTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10165,7 +10237,7 @@ func (b *BlobEventsTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobEventsTriggerTypeProperties. func (b BlobEventsTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobPathBeginsWith", b.BlobPathBeginsWith) populate(objectMap, "blobPathEndsWith", b.BlobPathEndsWith) populate(objectMap, "events", b.Events) @@ -10208,19 +10280,19 @@ func (b *BlobEventsTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobSink. func (b BlobSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobWriterAddHeader", &b.BlobWriterAddHeader) - populate(objectMap, "blobWriterDateTimeFormat", &b.BlobWriterDateTimeFormat) - populate(objectMap, "blobWriterOverwriteFiles", &b.BlobWriterOverwriteFiles) - populate(objectMap, "copyBehavior", &b.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &b.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &b.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "blobWriterAddHeader", b.BlobWriterAddHeader) + populateAny(objectMap, "blobWriterDateTimeFormat", b.BlobWriterDateTimeFormat) + populateAny(objectMap, "blobWriterOverwriteFiles", b.BlobWriterOverwriteFiles) + populateAny(objectMap, "copyBehavior", b.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", b.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", b.MaxConcurrentConnections) populate(objectMap, "metadata", b.Metadata) - populate(objectMap, "sinkRetryCount", &b.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &b.SinkRetryWait) + populateAny(objectMap, "sinkRetryCount", b.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", b.SinkRetryWait) objectMap["type"] = "BlobSink" - populate(objectMap, "writeBatchSize", &b.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &b.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", b.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", b.WriteBatchTimeout) if b.AdditionalProperties != nil { for key, val := range b.AdditionalProperties { objectMap[key] = val @@ -10276,10 +10348,10 @@ func (b *BlobSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10294,14 +10366,14 @@ func (b *BlobSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobSource. func (b BlobSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &b.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &b.MaxConcurrentConnections) - populate(objectMap, "recursive", &b.Recursive) - populate(objectMap, "skipHeaderLineCount", &b.SkipHeaderLineCount) - populate(objectMap, "sourceRetryCount", &b.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &b.SourceRetryWait) - populate(objectMap, "treatEmptyAsNull", &b.TreatEmptyAsNull) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", b.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", b.MaxConcurrentConnections) + populateAny(objectMap, "recursive", b.Recursive) + populateAny(objectMap, "skipHeaderLineCount", b.SkipHeaderLineCount) + populateAny(objectMap, "sourceRetryCount", b.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", b.SourceRetryWait) + populateAny(objectMap, "treatEmptyAsNull", b.TreatEmptyAsNull) objectMap["type"] = "BlobSource" if b.AdditionalProperties != nil { for key, val := range b.AdditionalProperties { @@ -10346,10 +10418,10 @@ func (b *BlobSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10364,7 +10436,7 @@ func (b *BlobSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobTrigger. func (b BlobTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", b.Annotations) populate(objectMap, "description", b.Description) populate(objectMap, "pipelines", b.Pipelines) @@ -10408,10 +10480,10 @@ func (b *BlobTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10426,7 +10498,7 @@ func (b *BlobTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobTriggerTypeProperties. func (b BlobTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "folderPath", b.FolderPath) populate(objectMap, "linkedService", b.LinkedService) populate(objectMap, "maxConcurrency", b.MaxConcurrency) @@ -10461,7 +10533,7 @@ func (b *BlobTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CMKIdentityDefinition. func (c CMKIdentityDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "userAssignedIdentity", c.UserAssignedIdentity) return json.Marshal(objectMap) } @@ -10488,7 +10560,7 @@ func (c *CMKIdentityDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraLinkedService. func (c CassandraLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -10532,10 +10604,10 @@ func (c *CassandraLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10550,13 +10622,13 @@ func (c *CassandraLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraLinkedServiceTypeProperties. func (c CassandraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &c.AuthenticationType) - populate(objectMap, "encryptedCredential", &c.EncryptedCredential) - populate(objectMap, "host", &c.Host) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", c.AuthenticationType) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) + populateAny(objectMap, "host", c.Host) populate(objectMap, "password", c.Password) - populate(objectMap, "port", &c.Port) - populate(objectMap, "username", &c.Username) + populateAny(objectMap, "port", c.Port) + populateAny(objectMap, "username", c.Username) return json.Marshal(objectMap) } @@ -10597,15 +10669,15 @@ func (c *CassandraLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CassandraSource. func (c CassandraSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &c.AdditionalColumns) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", c.AdditionalColumns) populate(objectMap, "consistencyLevel", c.ConsistencyLevel) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "query", &c.Query) - populate(objectMap, "queryTimeout", &c.QueryTimeout) - populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &c.SourceRetryWait) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "query", c.Query) + populateAny(objectMap, "queryTimeout", c.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", c.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", c.SourceRetryWait) objectMap["type"] = "CassandraSource" if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -10653,10 +10725,10 @@ func (c *CassandraSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10671,14 +10743,14 @@ func (c *CassandraSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableDataset. func (c CassandraTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", c.Schema) + populateAny(objectMap, "structure", c.Structure) objectMap["type"] = "CassandraTable" populate(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { @@ -10727,10 +10799,10 @@ func (c *CassandraTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10745,9 +10817,9 @@ func (c *CassandraTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "keyspace", c.Keyspace) + populateAny(objectMap, "tableName", c.TableName) return json.Marshal(objectMap) } @@ -10776,7 +10848,7 @@ func (c *CassandraTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ChainingTrigger. func (c ChainingTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "pipeline", c.Pipeline) @@ -10820,10 +10892,10 @@ func (c *ChainingTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10838,7 +10910,7 @@ func (c *ChainingTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ChainingTriggerTypeProperties. func (c ChainingTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "runDimension", c.RunDimension) return json.Marshal(objectMap) @@ -10867,15 +10939,21 @@ func (c *ChainingTriggerTypeProperties) UnmarshalJSON(data []byte) error { 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) +// MarshalJSON implements the json.Marshaller interface for type ChangeDataCapture. +func (c ChangeDataCapture) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowVNetOverride", c.AllowVNetOverride) + populate(objectMap, "description", c.Description) + populate(objectMap, "folder", c.Folder) + populate(objectMap, "policy", c.Policy) + populate(objectMap, "sourceConnectionsInfo", c.SourceConnectionsInfo) + populate(objectMap, "status", c.Status) + populate(objectMap, "targetConnectionsInfo", c.TargetConnectionsInfo) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CloudError. -func (c *CloudError) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ChangeDataCapture. +func (c *ChangeDataCapture) UnmarshalJSON(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) @@ -10883,8 +10961,26 @@ func (c *CloudError) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "error": - err = unpopulate(val, "Error", &c.Error) + case "allowVNetOverride": + err = unpopulate(val, "AllowVNetOverride", &c.AllowVNetOverride) + 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 "policy": + err = unpopulate(val, "Policy", &c.Policy) + delete(rawMsg, key) + case "sourceConnectionsInfo": + err = unpopulate(val, "SourceConnectionsInfo", &c.SourceConnectionsInfo) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + delete(rawMsg, key) + case "targetConnectionsInfo": + err = unpopulate(val, "TargetConnectionsInfo", &c.TargetConnectionsInfo) delete(rawMsg, key) } if err != nil { @@ -10894,18 +10990,15 @@ func (c *CloudError) UnmarshalJSON(data []byte) error { 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) +// MarshalJSON implements the json.Marshaller interface for type ChangeDataCaptureFolder. +func (c ChangeDataCaptureFolder) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CloudErrorBody. -func (c *CloudErrorBody) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ChangeDataCaptureFolder. +func (c *ChangeDataCaptureFolder) UnmarshalJSON(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) @@ -10913,17 +11006,97 @@ func (c *CloudErrorBody) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "code": - err = unpopulate(val, "Code", &c.Code) + case "name": + err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) - case "details": - err = unpopulate(val, "Details", &c.Details) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ChangeDataCaptureListResponse. +func (c ChangeDataCaptureListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ChangeDataCaptureListResponse. +func (c *ChangeDataCaptureListResponse) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &c.Message) + case "value": + err = unpopulate(val, "Value", &c.Value) delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &c.Target) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ChangeDataCaptureResource. +func (c ChangeDataCaptureResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", c.Etag) + populate(objectMap, "id", c.ID) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(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 ChangeDataCaptureResource. +func (c *ChangeDataCaptureResource) UnmarshalJSON(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 "etag": + err = unpopulate(val, "Etag", &c.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + default: + if c.AdditionalProperties == nil { + c.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + c.AdditionalProperties[key] = aux + } delete(rawMsg, key) } if err != nil { @@ -10935,7 +11108,7 @@ func (c *CloudErrorBody) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CmdkeySetup. func (c CmdkeySetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "CmdkeySetup" populate(objectMap, "typeProperties", c.TypeProperties) return json.Marshal(objectMap) @@ -10966,10 +11139,10 @@ func (c *CmdkeySetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CmdkeySetupTypeProperties. func (c CmdkeySetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "password", c.Password) - populate(objectMap, "targetName", &c.TargetName) - populate(objectMap, "userName", &c.UserName) + populateAny(objectMap, "targetName", c.TargetName) + populateAny(objectMap, "userName", c.UserName) return json.Marshal(objectMap) } @@ -11001,14 +11174,14 @@ func (c *CmdkeySetupTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsEntityDataset. func (c CommonDataServiceForAppsEntityDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", c.Schema) + populateAny(objectMap, "structure", c.Structure) objectMap["type"] = "CommonDataServiceForAppsEntity" populate(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { @@ -11057,10 +11230,10 @@ func (c *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11075,8 +11248,8 @@ func (c *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(data []byte) error // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "entityName", c.EntityName) return json.Marshal(objectMap) } @@ -11102,7 +11275,7 @@ func (c *CommonDataServiceForAppsEntityDatasetTypeProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsLinkedService. func (c CommonDataServiceForAppsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -11146,10 +11319,10 @@ func (c *CommonDataServiceForAppsLinkedService) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11164,19 +11337,19 @@ func (c *CommonDataServiceForAppsLinkedService) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsLinkedServiceTypeProperties. func (c CommonDataServiceForAppsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &c.AuthenticationType) - populate(objectMap, "deploymentType", &c.DeploymentType) - populate(objectMap, "encryptedCredential", &c.EncryptedCredential) - populate(objectMap, "hostName", &c.HostName) - populate(objectMap, "organizationName", &c.OrganizationName) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", c.AuthenticationType) + populateAny(objectMap, "deploymentType", c.DeploymentType) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) + populateAny(objectMap, "hostName", c.HostName) + populateAny(objectMap, "organizationName", c.OrganizationName) populate(objectMap, "password", c.Password) - populate(objectMap, "port", &c.Port) + populateAny(objectMap, "port", c.Port) populate(objectMap, "servicePrincipalCredential", c.ServicePrincipalCredential) - populate(objectMap, "servicePrincipalCredentialType", &c.ServicePrincipalCredentialType) - populate(objectMap, "servicePrincipalId", &c.ServicePrincipalID) - populate(objectMap, "serviceUri", &c.ServiceURI) - populate(objectMap, "username", &c.Username) + populateAny(objectMap, "servicePrincipalCredentialType", c.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalId", c.ServicePrincipalID) + populateAny(objectMap, "serviceUri", c.ServiceURI) + populateAny(objectMap, "username", c.Username) return json.Marshal(objectMap) } @@ -11235,16 +11408,16 @@ func (c *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsSink. func (c CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateKeyName", &c.AlternateKeyName) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "ignoreNullValues", &c.IgnoreNullValues) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &c.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &c.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "alternateKeyName", c.AlternateKeyName) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "ignoreNullValues", c.IgnoreNullValues) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", c.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", c.SinkRetryWait) objectMap["type"] = "CommonDataServiceForAppsSink" - populate(objectMap, "writeBatchSize", &c.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &c.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", c.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", c.WriteBatchTimeout) populate(objectMap, "writeBehavior", c.WriteBehavior) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -11295,10 +11468,10 @@ func (c *CommonDataServiceForAppsSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11313,13 +11486,13 @@ func (c *CommonDataServiceForAppsSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsSource. func (c CommonDataServiceForAppsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &c.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "query", &c.Query) - populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &c.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", c.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "query", c.Query) + populateAny(objectMap, "sourceRetryCount", c.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", c.SourceRetryWait) objectMap["type"] = "CommonDataServiceForAppsSource" if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -11361,10 +11534,10 @@ func (c *CommonDataServiceForAppsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11379,7 +11552,7 @@ func (c *CommonDataServiceForAppsSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ComponentSetup. func (c ComponentSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "ComponentSetup" populate(objectMap, "typeProperties", c.TypeProperties) return json.Marshal(objectMap) @@ -11410,7 +11583,7 @@ func (c *ComponentSetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CompressionReadSettings. func (c CompressionReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = c.Type if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -11434,10 +11607,10 @@ func (c *CompressionReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11452,7 +11625,7 @@ func (c *CompressionReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurLinkedService. func (c ConcurLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -11496,10 +11669,10 @@ func (c *ConcurLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11514,15 +11687,15 @@ func (c *ConcurLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurLinkedServiceTypeProperties. func (c ConcurLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &c.ClientID) - populate(objectMap, "connectionProperties", &c.ConnectionProperties) - populate(objectMap, "encryptedCredential", &c.EncryptedCredential) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", c.ClientID) + populateAny(objectMap, "connectionProperties", c.ConnectionProperties) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) populate(objectMap, "password", c.Password) - populate(objectMap, "useEncryptedEndpoints", &c.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &c.UseHostVerification) - populate(objectMap, "usePeerVerification", &c.UsePeerVerification) - populate(objectMap, "username", &c.Username) + populateAny(objectMap, "useEncryptedEndpoints", c.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", c.UseHostVerification) + populateAny(objectMap, "usePeerVerification", c.UsePeerVerification) + populateAny(objectMap, "username", c.Username) return json.Marshal(objectMap) } @@ -11569,14 +11742,14 @@ func (c *ConcurLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurObjectDataset. func (c ConcurObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", c.Schema) + populateAny(objectMap, "structure", c.Structure) objectMap["type"] = "ConcurObject" populate(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { @@ -11625,10 +11798,10 @@ func (c *ConcurObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11643,14 +11816,14 @@ func (c *ConcurObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurSource. func (c ConcurSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &c.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "query", &c.Query) - populate(objectMap, "queryTimeout", &c.QueryTimeout) - populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &c.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", c.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "query", c.Query) + populateAny(objectMap, "queryTimeout", c.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", c.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", c.SourceRetryWait) objectMap["type"] = "ConcurSource" if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -11695,10 +11868,10 @@ func (c *ConcurSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11713,7 +11886,7 @@ func (c *ConcurSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConnectionStateProperties. func (c ConnectionStateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", c.ActionsRequired) populate(objectMap, "description", c.Description) populate(objectMap, "status", c.Status) @@ -11748,10 +11921,12 @@ func (c *ConnectionStateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ControlActivity. func (c ControlActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "description", c.Description) populate(objectMap, "name", c.Name) + populate(objectMap, "onInactiveMarkAs", c.OnInactiveMarkAs) + populate(objectMap, "state", c.State) objectMap["type"] = "Container" populate(objectMap, "userProperties", c.UserProperties) if c.AdditionalProperties != nil { @@ -11780,6 +11955,12 @@ func (c *ControlActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &c.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &c.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -11788,10 +11969,10 @@ func (c *ControlActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11806,14 +11987,16 @@ func (c *ControlActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopyActivity. func (c CopyActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "description", c.Description) populate(objectMap, "inputs", c.Inputs) populate(objectMap, "linkedServiceName", c.LinkedServiceName) populate(objectMap, "name", c.Name) + populate(objectMap, "onInactiveMarkAs", c.OnInactiveMarkAs) populate(objectMap, "outputs", c.Outputs) populate(objectMap, "policy", c.Policy) + populate(objectMap, "state", c.State) objectMap["type"] = "Copy" populate(objectMap, "typeProperties", c.TypeProperties) populate(objectMap, "userProperties", c.UserProperties) @@ -11849,12 +12032,18 @@ func (c *CopyActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &c.OnInactiveMarkAs) + delete(rawMsg, key) case "outputs": err = unpopulate(val, "Outputs", &c.Outputs) delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &c.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &c.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -11866,10 +12055,10 @@ func (c *CopyActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11884,9 +12073,9 @@ func (c *CopyActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "enableReliableLogging", c.EnableReliableLogging) + populateAny(objectMap, "logLevel", c.LogLevel) return json.Marshal(objectMap) } @@ -11915,13 +12104,13 @@ func (c *CopyActivityLogSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopyActivityTypeProperties. func (c CopyActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataIntegrationUnits", &c.DataIntegrationUnits) - populate(objectMap, "enableSkipIncompatibleRow", &c.EnableSkipIncompatibleRow) - populate(objectMap, "enableStaging", &c.EnableStaging) + objectMap := make(map[string]any) + populateAny(objectMap, "dataIntegrationUnits", c.DataIntegrationUnits) + populateAny(objectMap, "enableSkipIncompatibleRow", c.EnableSkipIncompatibleRow) + populateAny(objectMap, "enableStaging", c.EnableStaging) populate(objectMap, "logSettings", c.LogSettings) populate(objectMap, "logStorageSettings", c.LogStorageSettings) - populate(objectMap, "parallelCopies", &c.ParallelCopies) + populateAny(objectMap, "parallelCopies", c.ParallelCopies) populate(objectMap, "preserve", c.Preserve) populate(objectMap, "preserveRules", c.PreserveRules) populate(objectMap, "redirectIncompatibleRowSettings", c.RedirectIncompatibleRowSettings) @@ -11929,8 +12118,8 @@ func (c CopyActivityTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "skipErrorFile", c.SkipErrorFile) populate(objectMap, "source", c.Source) populate(objectMap, "stagingSettings", c.StagingSettings) - populate(objectMap, "translator", &c.Translator) - populate(objectMap, "validateDataConsistency", &c.ValidateDataConsistency) + populateAny(objectMap, "translator", c.Translator) + populateAny(objectMap, "validateDataConsistency", c.ValidateDataConsistency) return json.Marshal(objectMap) } @@ -11996,16 +12185,11 @@ func (c *CopyActivityTypeProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CopySink. -func (c CopySink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &c.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &c.SinkRetryWait) - objectMap["type"] = c.Type - populate(objectMap, "writeBatchSize", &c.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &c.WriteBatchTimeout) +// MarshalJSON implements the json.Marshaller interface for type CopyComputeScaleProperties. +func (c CopyComputeScaleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataIntegrationUnit", c.DataIntegrationUnit) + populate(objectMap, "timeToLive", c.TimeToLive) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -12014,8 +12198,8 @@ func (c CopySink) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CopySink. -func (c *CopySink) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CopyComputeScaleProperties. +func (c *CopyComputeScaleProperties) UnmarshalJSON(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) @@ -12023,33 +12207,18 @@ func (c *CopySink) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &c.DisableMetricsCollection) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &c.MaxConcurrentConnections) - delete(rawMsg, key) - case "sinkRetryCount": - err = unpopulate(val, "SinkRetryCount", &c.SinkRetryCount) - delete(rawMsg, key) - case "sinkRetryWait": - err = unpopulate(val, "SinkRetryWait", &c.SinkRetryWait) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) + case "dataIntegrationUnit": + err = unpopulate(val, "DataIntegrationUnit", &c.DataIntegrationUnit) delete(rawMsg, key) - case "writeBatchSize": - err = unpopulate(val, "WriteBatchSize", &c.WriteBatchSize) - delete(rawMsg, key) - case "writeBatchTimeout": - err = unpopulate(val, "WriteBatchTimeout", &c.WriteBatchTimeout) + case "timeToLive": + err = unpopulate(val, "TimeToLive", &c.TimeToLive) delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12062,14 +12231,16 @@ func (c *CopySink) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CopySource. -func (c CopySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &c.SourceRetryWait) +// MarshalJSON implements the json.Marshaller interface for type CopySink. +func (c CopySink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", c.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", c.SinkRetryWait) objectMap["type"] = c.Type + populateAny(objectMap, "writeBatchSize", c.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", c.WriteBatchTimeout) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -12078,8 +12249,8 @@ func (c CopySource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CopySource. -func (c *CopySource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CopySink. +func (c *CopySink) UnmarshalJSON(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) @@ -12093,21 +12264,27 @@ func (c *CopySource) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &c.MaxConcurrentConnections) delete(rawMsg, key) - case "sourceRetryCount": - err = unpopulate(val, "SourceRetryCount", &c.SourceRetryCount) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &c.SinkRetryCount) delete(rawMsg, key) - case "sourceRetryWait": - err = unpopulate(val, "SourceRetryWait", &c.SourceRetryWait) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &c.SinkRetryWait) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &c.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &c.WriteBatchTimeout) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12120,9 +12297,13 @@ 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{}) +// MarshalJSON implements the json.Marshaller interface for type CopySource. +func (c CopySource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", c.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", c.SourceRetryWait) objectMap["type"] = c.Type if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -12132,8 +12313,8 @@ func (c CopyTranslator) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CopyTranslator. -func (c *CopyTranslator) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CopySource. +func (c *CopySource) UnmarshalJSON(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) @@ -12141,15 +12322,27 @@ func (c *CopyTranslator) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &c.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &c.MaxConcurrentConnections) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &c.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &c.SourceRetryWait) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12164,7 +12357,7 @@ func (c *CopyTranslator) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbLinkedService. func (c CosmosDbLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -12208,10 +12401,10 @@ func (c *CosmosDbLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12226,19 +12419,19 @@ func (c *CosmosDbLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbLinkedServiceTypeProperties. func (c CosmosDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accountEndpoint", &c.AccountEndpoint) + objectMap := make(map[string]any) + populateAny(objectMap, "accountEndpoint", c.AccountEndpoint) populate(objectMap, "accountKey", c.AccountKey) - populate(objectMap, "azureCloudType", &c.AzureCloudType) + populateAny(objectMap, "azureCloudType", c.AzureCloudType) populate(objectMap, "connectionMode", c.ConnectionMode) - populate(objectMap, "connectionString", &c.ConnectionString) + populateAny(objectMap, "connectionString", c.ConnectionString) populate(objectMap, "credential", c.Credential) - populate(objectMap, "database", &c.Database) - populate(objectMap, "encryptedCredential", &c.EncryptedCredential) + populateAny(objectMap, "database", c.Database) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) populate(objectMap, "servicePrincipalCredential", c.ServicePrincipalCredential) - populate(objectMap, "servicePrincipalCredentialType", c.ServicePrincipalCredentialType) - populate(objectMap, "servicePrincipalId", &c.ServicePrincipalID) - populate(objectMap, "tenant", &c.Tenant) + populateAny(objectMap, "servicePrincipalCredentialType", c.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalId", c.ServicePrincipalID) + populateAny(objectMap, "tenant", c.Tenant) return json.Marshal(objectMap) } @@ -12297,14 +12490,14 @@ func (c *CosmosDbLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPICollectionDataset. func (c CosmosDbMongoDbAPICollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", c.Schema) + populateAny(objectMap, "structure", c.Structure) objectMap["type"] = "CosmosDbMongoDbApiCollection" populate(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { @@ -12353,10 +12546,10 @@ func (c *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12371,8 +12564,8 @@ func (c *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "collection", c.Collection) return json.Marshal(objectMap) } @@ -12398,7 +12591,7 @@ func (c *CosmosDbMongoDbAPICollectionDatasetTypeProperties) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPILinkedService. func (c CosmosDbMongoDbAPILinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -12442,10 +12635,10 @@ func (c *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12460,10 +12653,10 @@ func (c *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", c.ConnectionString) + populateAny(objectMap, "database", c.Database) + populateAny(objectMap, "isServerVersionAbove32", c.IsServerVersionAbove32) return json.Marshal(objectMap) } @@ -12495,15 +12688,15 @@ func (c *CosmosDbMongoDbAPILinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPISink. func (c CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &c.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &c.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", c.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", c.SinkRetryWait) objectMap["type"] = "CosmosDbMongoDbApiSink" - populate(objectMap, "writeBatchSize", &c.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &c.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &c.WriteBehavior) + populateAny(objectMap, "writeBatchSize", c.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", c.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", c.WriteBehavior) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -12547,10 +12740,10 @@ func (c *CosmosDbMongoDbAPISink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12565,16 +12758,16 @@ func (c *CosmosDbMongoDbAPISink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPISource. func (c CosmosDbMongoDbAPISource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &c.AdditionalColumns) - populate(objectMap, "batchSize", &c.BatchSize) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", c.AdditionalColumns) + populateAny(objectMap, "batchSize", c.BatchSize) populate(objectMap, "cursorMethods", c.CursorMethods) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "filter", &c.Filter) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "queryTimeout", &c.QueryTimeout) - populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &c.SourceRetryWait) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "filter", c.Filter) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", c.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", c.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", c.SourceRetryWait) objectMap["type"] = "CosmosDbMongoDbApiSource" if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -12625,10 +12818,10 @@ func (c *CosmosDbMongoDbAPISource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12643,14 +12836,14 @@ func (c *CosmosDbMongoDbAPISource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPICollectionDataset. func (c CosmosDbSQLAPICollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", c.Schema) + populateAny(objectMap, "structure", c.Structure) objectMap["type"] = "CosmosDbSqlApiCollection" populate(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { @@ -12699,10 +12892,10 @@ func (c *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12717,8 +12910,8 @@ func (c *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "collectionName", c.CollectionName) return json.Marshal(objectMap) } @@ -12744,15 +12937,15 @@ func (c *CosmosDbSQLAPICollectionDatasetTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPISink. func (c CosmosDbSQLAPISink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &c.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &c.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", c.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", c.SinkRetryWait) objectMap["type"] = "CosmosDbSqlApiSink" - populate(objectMap, "writeBatchSize", &c.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &c.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &c.WriteBehavior) + populateAny(objectMap, "writeBatchSize", c.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", c.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", c.WriteBehavior) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -12796,10 +12989,10 @@ func (c *CosmosDbSQLAPISink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12814,16 +13007,16 @@ func (c *CosmosDbSQLAPISink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPISource. func (c CosmosDbSQLAPISource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &c.AdditionalColumns) - populate(objectMap, "detectDatetime", &c.DetectDatetime) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "pageSize", &c.PageSize) - populate(objectMap, "preferredRegions", &c.PreferredRegions) - populate(objectMap, "query", &c.Query) - populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &c.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", c.AdditionalColumns) + populateAny(objectMap, "detectDatetime", c.DetectDatetime) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "pageSize", c.PageSize) + populateAny(objectMap, "preferredRegions", c.PreferredRegions) + populateAny(objectMap, "query", c.Query) + populateAny(objectMap, "sourceRetryCount", c.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", c.SourceRetryWait) objectMap["type"] = "CosmosDbSqlApiSource" if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -12874,10 +13067,10 @@ func (c *CosmosDbSQLAPISource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12892,7 +13085,7 @@ func (c *CosmosDbSQLAPISource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CouchbaseLinkedService. func (c CouchbaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -12936,10 +13129,10 @@ func (c *CouchbaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12954,10 +13147,10 @@ func (c *CouchbaseLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", c.ConnectionString) populate(objectMap, "credString", c.CredString) - populate(objectMap, "encryptedCredential", &c.EncryptedCredential) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) return json.Marshal(objectMap) } @@ -12989,14 +13182,14 @@ func (c *CouchbaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CouchbaseSource. func (c CouchbaseSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &c.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) - populate(objectMap, "query", &c.Query) - populate(objectMap, "queryTimeout", &c.QueryTimeout) - populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &c.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", c.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", c.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", c.MaxConcurrentConnections) + populateAny(objectMap, "query", c.Query) + populateAny(objectMap, "queryTimeout", c.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", c.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", c.SourceRetryWait) objectMap["type"] = "CouchbaseSource" if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -13041,10 +13234,10 @@ func (c *CouchbaseSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13059,14 +13252,14 @@ func (c *CouchbaseSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CouchbaseTableDataset. func (c CouchbaseTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", c.Schema) + populateAny(objectMap, "structure", c.Structure) objectMap["type"] = "CouchbaseTable" populate(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { @@ -13115,10 +13308,10 @@ func (c *CouchbaseTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13133,7 +13326,7 @@ func (c *CouchbaseTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CreateDataFlowDebugSessionRequest. func (c CreateDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeType", c.ComputeType) populate(objectMap, "coreCount", c.CoreCount) populate(objectMap, "integrationRuntime", c.IntegrationRuntime) @@ -13172,7 +13365,7 @@ func (c *CreateDataFlowDebugSessionRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CreateDataFlowDebugSessionResponse. func (c CreateDataFlowDebugSessionResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sessionId", c.SessionID) populate(objectMap, "status", c.Status) return json.Marshal(objectMap) @@ -13203,7 +13396,7 @@ func (c *CreateDataFlowDebugSessionResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CreateLinkedIntegrationRuntimeRequest. func (c CreateLinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryLocation", c.DataFactoryLocation) populate(objectMap, "dataFactoryName", c.DataFactoryName) populate(objectMap, "name", c.Name) @@ -13242,7 +13435,7 @@ func (c *CreateLinkedIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CreateRunResponse. func (c CreateRunResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "runId", c.RunID) return json.Marshal(objectMap) } @@ -13269,7 +13462,7 @@ func (c *CreateRunResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Credential. func (c Credential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) objectMap["type"] = c.Type @@ -13301,10 +13494,10 @@ func (c *Credential) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13317,9 +13510,40 @@ func (c *Credential) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CredentialListResponse. +func (c CredentialListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialListResponse. +func (c *CredentialListResponse) UnmarshalJSON(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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CredentialReference. func (c CredentialReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", c.ReferenceName) populate(objectMap, "type", c.Type) if c.AdditionalProperties != nil { @@ -13347,10 +13571,10 @@ func (c *CredentialReference) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13365,7 +13589,7 @@ func (c *CredentialReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CredentialResource. func (c CredentialResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", c.Etag) populate(objectMap, "id", c.ID) populate(objectMap, "name", c.Name) @@ -13408,12 +13632,14 @@ func (c *CredentialResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomActivity. func (c CustomActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "description", c.Description) populate(objectMap, "linkedServiceName", c.LinkedServiceName) populate(objectMap, "name", c.Name) + populate(objectMap, "onInactiveMarkAs", c.OnInactiveMarkAs) populate(objectMap, "policy", c.Policy) + populate(objectMap, "state", c.State) objectMap["type"] = "Custom" populate(objectMap, "typeProperties", c.TypeProperties) populate(objectMap, "userProperties", c.UserProperties) @@ -13446,9 +13672,15 @@ func (c *CustomActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &c.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &c.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &c.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -13460,10 +13692,10 @@ func (c *CustomActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13478,7 +13710,7 @@ func (c *CustomActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomActivityReferenceObject. func (c CustomActivityReferenceObject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasets", c.Datasets) populate(objectMap, "linkedServices", c.LinkedServices) return json.Marshal(objectMap) @@ -13509,14 +13741,14 @@ func (c *CustomActivityReferenceObject) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "autoUserSpecification", c.AutoUserSpecification) + populateAny(objectMap, "command", c.Command) populate(objectMap, "extendedProperties", c.ExtendedProperties) - populate(objectMap, "folderPath", &c.FolderPath) + populateAny(objectMap, "folderPath", c.FolderPath) populate(objectMap, "referenceObjects", c.ReferenceObjects) populate(objectMap, "resourceLinkedService", c.ResourceLinkedService) - populate(objectMap, "retentionTimeInDays", &c.RetentionTimeInDays) + populateAny(objectMap, "retentionTimeInDays", c.RetentionTimeInDays) return json.Marshal(objectMap) } @@ -13560,13 +13792,13 @@ func (c *CustomActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomDataSourceLinkedService. func (c CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -13604,10 +13836,10 @@ func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13622,16 +13854,16 @@ func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomDataset. func (c CustomDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", c.Schema) + populateAny(objectMap, "structure", c.Structure) objectMap["type"] = "CustomDataset" - populate(objectMap, "typeProperties", &c.TypeProperties) + populateAny(objectMap, "typeProperties", c.TypeProperties) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -13678,10 +13910,10 @@ func (c *CustomDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13696,7 +13928,7 @@ func (c *CustomDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomEventsTrigger. func (c CustomEventsTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "pipelines", c.Pipelines) @@ -13740,10 +13972,10 @@ func (c *CustomEventsTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13758,7 +13990,7 @@ func (c *CustomEventsTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomEventsTriggerTypeProperties. func (c CustomEventsTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "events", c.Events) populate(objectMap, "scope", c.Scope) populate(objectMap, "subjectBeginsWith", c.SubjectBeginsWith) @@ -13797,7 +14029,7 @@ func (c *CustomEventsTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomSetupBase. func (c CustomSetupBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = c.Type return json.Marshal(objectMap) } @@ -13824,9 +14056,9 @@ func (c *CustomSetupBase) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "columnName", d.ColumnName) + populateAny(objectMap, "defaultValue", d.DefaultValue) return json.Marshal(objectMap) } @@ -13855,7 +14087,7 @@ func (d *DWCopyCommandDefaultValue) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DWCopyCommandSettings. func (d DWCopyCommandSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalOptions", d.AdditionalOptions) populate(objectMap, "defaultValues", d.DefaultValues) return json.Marshal(objectMap) @@ -13886,7 +14118,7 @@ func (d *DWCopyCommandSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlow. func (d DataFlow) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -13925,7 +14157,7 @@ func (d *DataFlow) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandPayload. func (d DataFlowDebugCommandPayload) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "columns", d.Columns) populate(objectMap, "expression", d.Expression) populate(objectMap, "rowLimits", d.RowLimits) @@ -13964,7 +14196,7 @@ func (d *DataFlowDebugCommandPayload) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandRequest. func (d DataFlowDebugCommandRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "command", d.Command) populate(objectMap, "commandPayload", d.CommandPayload) populate(objectMap, "sessionId", d.SessionID) @@ -13999,7 +14231,7 @@ func (d *DataFlowDebugCommandRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandResponse. func (d DataFlowDebugCommandResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "data", d.Data) populate(objectMap, "status", d.Status) return json.Marshal(objectMap) @@ -14030,7 +14262,7 @@ func (d *DataFlowDebugCommandResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugPackage. func (d DataFlowDebugPackage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFlow", d.DataFlow) populate(objectMap, "dataFlows", d.DataFlows) populate(objectMap, "datasets", d.Datasets) @@ -14078,10 +14310,10 @@ func (d *DataFlowDebugPackage) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14096,8 +14328,8 @@ func (d *DataFlowDebugPackage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugPackageDebugSettings. func (d DataFlowDebugPackageDebugSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "datasetParameters", &d.DatasetParameters) + objectMap := make(map[string]any) + populateAny(objectMap, "datasetParameters", d.DatasetParameters) populate(objectMap, "parameters", d.Parameters) populate(objectMap, "sourceSettings", d.SourceSettings) return json.Marshal(objectMap) @@ -14131,7 +14363,7 @@ func (d *DataFlowDebugPackageDebugSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugResource. func (d DataFlowDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) populate(objectMap, "properties", d.Properties) return json.Marshal(objectMap) @@ -14162,7 +14394,7 @@ func (d *DataFlowDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugSessionInfo. func (d DataFlowDebugSessionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeType", d.ComputeType) populate(objectMap, "coreCount", d.CoreCount) populate(objectMap, "dataFlowName", d.DataFlowName) @@ -14218,10 +14450,10 @@ func (d *DataFlowDebugSessionInfo) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14236,7 +14468,7 @@ func (d *DataFlowDebugSessionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowFolder. func (d DataFlowFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) return json.Marshal(objectMap) } @@ -14263,7 +14495,7 @@ func (d *DataFlowFolder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowListResponse. func (d DataFlowListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -14294,8 +14526,8 @@ func (d *DataFlowListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowReference. func (d DataFlowReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "datasetParameters", &d.DatasetParameters) + objectMap := make(map[string]any) + populateAny(objectMap, "datasetParameters", d.DatasetParameters) populate(objectMap, "parameters", d.Parameters) populate(objectMap, "referenceName", d.ReferenceName) populate(objectMap, "type", d.Type) @@ -14330,10 +14562,10 @@ func (d *DataFlowReference) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14348,7 +14580,7 @@ func (d *DataFlowReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowResource. func (d DataFlowResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", d.Etag) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) @@ -14391,7 +14623,7 @@ func (d *DataFlowResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowSink. func (d DataFlowSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", d.Dataset) populate(objectMap, "description", d.Description) populate(objectMap, "flowlet", d.Flowlet) @@ -14442,7 +14674,7 @@ func (d *DataFlowSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowSource. func (d DataFlowSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", d.Dataset) populate(objectMap, "description", d.Description) populate(objectMap, "flowlet", d.Flowlet) @@ -14489,7 +14721,7 @@ func (d *DataFlowSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowSourceSetting. func (d DataFlowSourceSetting) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "rowLimit", d.RowLimit) populate(objectMap, "sourceName", d.SourceName) if d.AdditionalProperties != nil { @@ -14517,10 +14749,10 @@ func (d *DataFlowSourceSetting) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14535,8 +14767,8 @@ func (d *DataFlowSourceSetting) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "folderPath", d.FolderPath) populate(objectMap, "linkedService", d.LinkedService) return json.Marshal(objectMap) } @@ -14566,12 +14798,14 @@ func (d *DataFlowStagingInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataLakeAnalyticsUSQLActivity. func (d DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DataLakeAnalyticsU-SQL" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14604,9 +14838,15 @@ func (d *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -14618,10 +14858,10 @@ func (d *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14636,14 +14876,14 @@ func (d *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataLakeAnalyticsUSQLActivityTypeProperties. func (d DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "compilationMode", &d.CompilationMode) - populate(objectMap, "degreeOfParallelism", &d.DegreeOfParallelism) + objectMap := make(map[string]any) + populateAny(objectMap, "compilationMode", d.CompilationMode) + populateAny(objectMap, "degreeOfParallelism", d.DegreeOfParallelism) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "priority", &d.Priority) - populate(objectMap, "runtimeVersion", &d.RuntimeVersion) + populateAny(objectMap, "priority", d.Priority) + populateAny(objectMap, "runtimeVersion", d.RuntimeVersion) populate(objectMap, "scriptLinkedService", d.ScriptLinkedService) - populate(objectMap, "scriptPath", &d.ScriptPath) + populateAny(objectMap, "scriptPath", d.ScriptPath) return json.Marshal(objectMap) } @@ -14685,14 +14925,59 @@ func (d *DataLakeAnalyticsUSQLActivityTypeProperties) UnmarshalJSON(data []byte) return nil } +// MarshalJSON implements the json.Marshaller interface for type DataMapperMapping. +func (d DataMapperMapping) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "attributeMappingInfo", d.AttributeMappingInfo) + populate(objectMap, "sourceConnectionReference", d.SourceConnectionReference) + populateAny(objectMap, "sourceDenormalizeInfo", d.SourceDenormalizeInfo) + populate(objectMap, "sourceEntityName", d.SourceEntityName) + populate(objectMap, "targetEntityName", d.TargetEntityName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataMapperMapping. +func (d *DataMapperMapping) UnmarshalJSON(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 "attributeMappingInfo": + err = unpopulate(val, "AttributeMappingInfo", &d.AttributeMappingInfo) + delete(rawMsg, key) + case "sourceConnectionReference": + err = unpopulate(val, "SourceConnectionReference", &d.SourceConnectionReference) + delete(rawMsg, key) + case "sourceDenormalizeInfo": + err = unpopulate(val, "SourceDenormalizeInfo", &d.SourceDenormalizeInfo) + delete(rawMsg, key) + case "sourceEntityName": + err = unpopulate(val, "SourceEntityName", &d.SourceEntityName) + delete(rawMsg, key) + case "targetEntityName": + err = unpopulate(val, "TargetEntityName", &d.TargetEntityName) + 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{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DatabricksNotebook" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14725,9 +15010,15 @@ func (d *DatabricksNotebookActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -14739,10 +15030,10 @@ func (d *DatabricksNotebookActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14757,10 +15048,10 @@ func (d *DatabricksNotebookActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabricksNotebookActivityTypeProperties. func (d DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "baseParameters", d.BaseParameters) populate(objectMap, "libraries", d.Libraries) - populate(objectMap, "notebookPath", &d.NotebookPath) + populateAny(objectMap, "notebookPath", d.NotebookPath) return json.Marshal(objectMap) } @@ -14792,12 +15083,14 @@ func (d *DatabricksNotebookActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivity. func (d DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DatabricksSparkJar" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14830,9 +15123,15 @@ func (d *DatabricksSparkJarActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -14844,10 +15143,10 @@ func (d *DatabricksSparkJarActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14862,9 +15161,9 @@ func (d *DatabricksSparkJarActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivityTypeProperties. func (d DatabricksSparkJarActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "libraries", d.Libraries) - populate(objectMap, "mainClassName", &d.MainClassName) + populateAny(objectMap, "mainClassName", d.MainClassName) populate(objectMap, "parameters", d.Parameters) return json.Marshal(objectMap) } @@ -14897,12 +15196,14 @@ func (d *DatabricksSparkJarActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkPythonActivity. func (d DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DatabricksSparkPython" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14935,9 +15236,15 @@ func (d *DatabricksSparkPythonActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -14949,10 +15256,10 @@ func (d *DatabricksSparkPythonActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14967,10 +15274,10 @@ func (d *DatabricksSparkPythonActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkPythonActivityTypeProperties. func (d DatabricksSparkPythonActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "libraries", d.Libraries) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "pythonFile", &d.PythonFile) + populateAny(objectMap, "pythonFile", d.PythonFile) return json.Marshal(objectMap) } @@ -15002,14 +15309,14 @@ func (d *DatabricksSparkPythonActivityTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type Dataset. func (d Dataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = d.Type if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -15054,10 +15361,10 @@ func (d *Dataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15072,9 +15379,9 @@ func (d *Dataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetCompression. func (d DatasetCompression) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "level", &d.Level) - populate(objectMap, "type", &d.Type) + objectMap := make(map[string]any) + populateAny(objectMap, "level", d.Level) + populateAny(objectMap, "type", d.Type) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -15100,10 +15407,10 @@ func (d *DatasetCompression) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15116,40 +15423,9 @@ 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{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) populate(objectMap, "properties", d.Properties) return json.Marshal(objectMap) @@ -15180,7 +15456,7 @@ func (d *DatasetDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetFolder. func (d DatasetFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) return json.Marshal(objectMap) } @@ -15207,7 +15483,7 @@ func (d *DatasetFolder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetListResponse. func (d DatasetListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -15238,9 +15514,9 @@ func (d *DatasetListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetLocation. func (d DatasetLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &d.FileName) - populate(objectMap, "folderPath", &d.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", d.FileName) + populateAny(objectMap, "folderPath", d.FolderPath) objectMap["type"] = d.Type if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -15270,10 +15546,10 @@ func (d *DatasetLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15288,7 +15564,7 @@ func (d *DatasetLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetReference. func (d DatasetReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", d.Parameters) populate(objectMap, "referenceName", d.ReferenceName) populate(objectMap, "type", d.Type) @@ -15323,7 +15599,7 @@ func (d *DatasetReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetResource. func (d DatasetResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", d.Etag) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) @@ -15364,57 +15640,11 @@ 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 - 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) - default: - if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - d.AdditionalProperties[key] = aux - } - 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 DatasetStorageFormat. func (d DatasetStorageFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deserializer", &d.Deserializer) - populate(objectMap, "serializer", &d.Serializer) + objectMap := make(map[string]any) + populateAny(objectMap, "deserializer", d.Deserializer) + populateAny(objectMap, "serializer", d.Serializer) objectMap["type"] = d.Type if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -15444,10 +15674,10 @@ func (d *DatasetStorageFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15462,7 +15692,7 @@ func (d *DatasetStorageFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataworldLinkedService. func (d DataworldLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -15506,10 +15736,10 @@ func (d *DataworldLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15524,9 +15754,9 @@ func (d *DataworldLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataworldLinkedServiceTypeProperties. func (d DataworldLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", d.APIToken) - populate(objectMap, "encryptedCredential", &d.EncryptedCredential) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) return json.Marshal(objectMap) } @@ -15555,7 +15785,7 @@ func (d *DataworldLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type Db2LinkedService. func (d Db2LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -15599,10 +15829,10 @@ func (d *Db2LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15617,16 +15847,16 @@ func (d *Db2LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Db2LinkedServiceTypeProperties. func (d Db2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", d.AuthenticationType) - populate(objectMap, "certificateCommonName", &d.CertificateCommonName) - populate(objectMap, "connectionString", &d.ConnectionString) - populate(objectMap, "database", &d.Database) - populate(objectMap, "encryptedCredential", &d.EncryptedCredential) - populate(objectMap, "packageCollection", &d.PackageCollection) + populateAny(objectMap, "certificateCommonName", d.CertificateCommonName) + populateAny(objectMap, "connectionString", d.ConnectionString) + populateAny(objectMap, "database", d.Database) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) + populateAny(objectMap, "packageCollection", d.PackageCollection) populate(objectMap, "password", d.Password) - populate(objectMap, "server", &d.Server) - populate(objectMap, "username", &d.Username) + populateAny(objectMap, "server", d.Server) + populateAny(objectMap, "username", d.Username) return json.Marshal(objectMap) } @@ -15676,14 +15906,14 @@ func (d *Db2LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Db2Source. func (d Db2Source) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &d.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "query", &d.Query) - populate(objectMap, "queryTimeout", &d.QueryTimeout) - populate(objectMap, "sourceRetryCount", &d.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &d.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", d.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "query", d.Query) + populateAny(objectMap, "queryTimeout", d.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", d.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", d.SourceRetryWait) objectMap["type"] = "Db2Source" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -15728,10 +15958,10 @@ func (d *Db2Source) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15746,14 +15976,14 @@ func (d *Db2Source) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Db2TableDataset. func (d Db2TableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = "Db2Table" populate(objectMap, "typeProperties", d.TypeProperties) if d.AdditionalProperties != nil { @@ -15802,10 +16032,10 @@ func (d *Db2TableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15820,10 +16050,10 @@ func (d *Db2TableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "table", d.Table) + populateAny(objectMap, "tableName", d.TableName) return json.Marshal(objectMap) } @@ -15855,12 +16085,14 @@ func (d *Db2TableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeleteActivity. func (d DeleteActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "Delete" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -15893,9 +16125,15 @@ func (d *DeleteActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -15907,10 +16145,10 @@ func (d *DeleteActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15925,12 +16163,12 @@ func (d *DeleteActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeleteActivityTypeProperties. func (d DeleteActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", d.Dataset) - populate(objectMap, "enableLogging", &d.EnableLogging) + populateAny(objectMap, "enableLogging", d.EnableLogging) populate(objectMap, "logStorageSettings", d.LogStorageSettings) populate(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) - populate(objectMap, "recursive", &d.Recursive) + populateAny(objectMap, "recursive", d.Recursive) populate(objectMap, "storeSettings", d.StoreSettings) return json.Marshal(objectMap) } @@ -15972,7 +16210,7 @@ func (d *DeleteActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeleteDataFlowDebugSessionRequest. func (d DeleteDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sessionId", d.SessionID) return json.Marshal(objectMap) } @@ -15999,14 +16237,14 @@ func (d *DeleteDataFlowDebugSessionRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextDataset. func (d DelimitedTextDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = "DelimitedText" populate(objectMap, "typeProperties", d.TypeProperties) if d.AdditionalProperties != nil { @@ -16055,10 +16293,10 @@ func (d *DelimitedTextDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16073,17 +16311,17 @@ func (d *DelimitedTextDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextDatasetTypeProperties. func (d DelimitedTextDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "columnDelimiter", &d.ColumnDelimiter) - populate(objectMap, "compressionCodec", &d.CompressionCodec) - populate(objectMap, "compressionLevel", &d.CompressionLevel) - populate(objectMap, "encodingName", &d.EncodingName) - populate(objectMap, "escapeChar", &d.EscapeChar) - populate(objectMap, "firstRowAsHeader", &d.FirstRowAsHeader) + objectMap := make(map[string]any) + populateAny(objectMap, "columnDelimiter", d.ColumnDelimiter) + populateAny(objectMap, "compressionCodec", d.CompressionCodec) + populateAny(objectMap, "compressionLevel", d.CompressionLevel) + populateAny(objectMap, "encodingName", d.EncodingName) + populateAny(objectMap, "escapeChar", d.EscapeChar) + populateAny(objectMap, "firstRowAsHeader", d.FirstRowAsHeader) populate(objectMap, "location", d.Location) - populate(objectMap, "nullValue", &d.NullValue) - populate(objectMap, "quoteChar", &d.QuoteChar) - populate(objectMap, "rowDelimiter", &d.RowDelimiter) + populateAny(objectMap, "nullValue", d.NullValue) + populateAny(objectMap, "quoteChar", d.QuoteChar) + populateAny(objectMap, "rowDelimiter", d.RowDelimiter) return json.Marshal(objectMap) } @@ -16136,9 +16374,9 @@ func (d *DelimitedTextDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextReadSettings. func (d DelimitedTextReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", d.CompressionProperties) - populate(objectMap, "skipLineCount", &d.SkipLineCount) + populateAny(objectMap, "skipLineCount", d.SkipLineCount) objectMap["type"] = "DelimitedTextReadSettings" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -16168,10 +16406,10 @@ func (d *DelimitedTextReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16186,16 +16424,16 @@ func (d *DelimitedTextReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextSink. func (d DelimitedTextSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) populate(objectMap, "formatSettings", d.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &d.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &d.SinkRetryWait) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", d.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", d.SinkRetryWait) populate(objectMap, "storeSettings", d.StoreSettings) objectMap["type"] = "DelimitedTextSink" - populate(objectMap, "writeBatchSize", &d.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &d.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", d.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", d.WriteBatchTimeout) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -16242,10 +16480,10 @@ func (d *DelimitedTextSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16260,13 +16498,13 @@ func (d *DelimitedTextSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextSource. func (d DelimitedTextSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &d.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", d.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) populate(objectMap, "formatSettings", d.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &d.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &d.SourceRetryWait) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", d.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", d.SourceRetryWait) populate(objectMap, "storeSettings", d.StoreSettings) objectMap["type"] = "DelimitedTextSource" if d.AdditionalProperties != nil { @@ -16312,10 +16550,10 @@ func (d *DelimitedTextSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16330,11 +16568,11 @@ func (d *DelimitedTextSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextWriteSettings. func (d DelimitedTextWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileExtension", &d.FileExtension) - populate(objectMap, "fileNamePrefix", &d.FileNamePrefix) - populate(objectMap, "maxRowsPerFile", &d.MaxRowsPerFile) - populate(objectMap, "quoteAllText", &d.QuoteAllText) + objectMap := make(map[string]any) + populateAny(objectMap, "fileExtension", d.FileExtension) + populateAny(objectMap, "fileNamePrefix", d.FileNamePrefix) + populateAny(objectMap, "maxRowsPerFile", d.MaxRowsPerFile) + populateAny(objectMap, "quoteAllText", d.QuoteAllText) objectMap["type"] = "DelimitedTextWriteSettings" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -16370,10 +16608,10 @@ func (d *DelimitedTextWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16388,7 +16626,7 @@ func (d *DelimitedTextWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DependencyReference. func (d DependencyReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = d.Type return json.Marshal(objectMap) } @@ -16415,10 +16653,10 @@ func (d *DependencyReference) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "distcpOptions", d.DistcpOptions) + populateAny(objectMap, "resourceManagerEndpoint", d.ResourceManagerEndpoint) + populateAny(objectMap, "tempScriptPath", d.TempScriptPath) return json.Marshal(objectMap) } @@ -16450,14 +16688,14 @@ func (d *DistcpSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionDataset. func (d DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = "DocumentDbCollection" populate(objectMap, "typeProperties", d.TypeProperties) if d.AdditionalProperties != nil { @@ -16506,10 +16744,10 @@ func (d *DocumentDbCollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16524,8 +16762,8 @@ func (d *DocumentDbCollectionDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "collectionName", d.CollectionName) return json.Marshal(objectMap) } @@ -16551,16 +16789,16 @@ func (d *DocumentDbCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionSink. func (d DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "nestingSeparator", &d.NestingSeparator) - populate(objectMap, "sinkRetryCount", &d.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &d.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "nestingSeparator", d.NestingSeparator) + populateAny(objectMap, "sinkRetryCount", d.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", d.SinkRetryWait) objectMap["type"] = "DocumentDbCollectionSink" - populate(objectMap, "writeBatchSize", &d.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &d.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &d.WriteBehavior) + populateAny(objectMap, "writeBatchSize", d.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", d.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", d.WriteBehavior) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -16607,10 +16845,10 @@ func (d *DocumentDbCollectionSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16625,15 +16863,15 @@ func (d *DocumentDbCollectionSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionSource. func (d DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &d.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "nestingSeparator", &d.NestingSeparator) - populate(objectMap, "query", &d.Query) - populate(objectMap, "queryTimeout", &d.QueryTimeout) - populate(objectMap, "sourceRetryCount", &d.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &d.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", d.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "nestingSeparator", d.NestingSeparator) + populateAny(objectMap, "query", d.Query) + populateAny(objectMap, "queryTimeout", d.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", d.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", d.SourceRetryWait) objectMap["type"] = "DocumentDbCollectionSource" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -16681,10 +16919,10 @@ func (d *DocumentDbCollectionSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16699,10 +16937,10 @@ func (d *DocumentDbCollectionSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "table", d.Table) + populateAny(objectMap, "tableName", d.TableName) return json.Marshal(objectMap) } @@ -16734,7 +16972,7 @@ func (d *DrillDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillLinkedService. func (d DrillLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -16778,10 +17016,10 @@ func (d *DrillLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16796,9 +17034,9 @@ func (d *DrillLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", d.ConnectionString) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) populate(objectMap, "pwd", d.Pwd) return json.Marshal(objectMap) } @@ -16831,14 +17069,14 @@ func (d *DrillLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillSource. func (d DrillSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &d.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "query", &d.Query) - populate(objectMap, "queryTimeout", &d.QueryTimeout) - populate(objectMap, "sourceRetryCount", &d.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &d.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", d.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "query", d.Query) + populateAny(objectMap, "queryTimeout", d.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", d.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", d.SourceRetryWait) objectMap["type"] = "DrillSource" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -16883,10 +17121,10 @@ func (d *DrillSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16901,14 +17139,14 @@ func (d *DrillSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillTableDataset. func (d DrillTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = "DrillTable" populate(objectMap, "typeProperties", d.TypeProperties) if d.AdditionalProperties != nil { @@ -16957,10 +17195,10 @@ func (d *DrillTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16975,7 +17213,7 @@ func (d *DrillTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsAXLinkedService. func (d DynamicsAXLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -17019,10 +17257,10 @@ func (d *DynamicsAXLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17037,13 +17275,13 @@ func (d *DynamicsAXLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsAXLinkedServiceTypeProperties. func (d DynamicsAXLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aadResourceId", &d.AADResourceID) - populate(objectMap, "encryptedCredential", &d.EncryptedCredential) - populate(objectMap, "servicePrincipalId", &d.ServicePrincipalID) + objectMap := make(map[string]any) + populateAny(objectMap, "aadResourceId", d.AADResourceID) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) + populateAny(objectMap, "servicePrincipalId", d.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", d.ServicePrincipalKey) - populate(objectMap, "tenant", &d.Tenant) - populate(objectMap, "url", &d.URL) + populateAny(objectMap, "tenant", d.Tenant) + populateAny(objectMap, "url", d.URL) return json.Marshal(objectMap) } @@ -17084,14 +17322,14 @@ func (d *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type DynamicsAXResourceDataset. func (d DynamicsAXResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = "DynamicsAXResource" populate(objectMap, "typeProperties", d.TypeProperties) if d.AdditionalProperties != nil { @@ -17140,10 +17378,10 @@ func (d *DynamicsAXResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17158,8 +17396,8 @@ func (d *DynamicsAXResourceDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "path", d.Path) return json.Marshal(objectMap) } @@ -17185,15 +17423,15 @@ func (d *DynamicsAXResourceDatasetTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type DynamicsAXSource. func (d DynamicsAXSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &d.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &d.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "query", &d.Query) - populate(objectMap, "queryTimeout", &d.QueryTimeout) - populate(objectMap, "sourceRetryCount", &d.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &d.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", d.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", d.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "query", d.Query) + populateAny(objectMap, "queryTimeout", d.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", d.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", d.SourceRetryWait) objectMap["type"] = "DynamicsAXSource" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -17241,10 +17479,10 @@ func (d *DynamicsAXSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17259,14 +17497,14 @@ func (d *DynamicsAXSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmEntityDataset. func (d DynamicsCrmEntityDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = "DynamicsCrmEntity" populate(objectMap, "typeProperties", d.TypeProperties) if d.AdditionalProperties != nil { @@ -17315,10 +17553,10 @@ func (d *DynamicsCrmEntityDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17333,8 +17571,8 @@ func (d *DynamicsCrmEntityDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "entityName", d.EntityName) return json.Marshal(objectMap) } @@ -17360,7 +17598,7 @@ func (d *DynamicsCrmEntityDatasetTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmLinkedService. func (d DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -17404,10 +17642,10 @@ func (d *DynamicsCrmLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17422,19 +17660,19 @@ func (d *DynamicsCrmLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmLinkedServiceTypeProperties. func (d DynamicsCrmLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &d.AuthenticationType) - populate(objectMap, "deploymentType", &d.DeploymentType) - populate(objectMap, "encryptedCredential", &d.EncryptedCredential) - populate(objectMap, "hostName", &d.HostName) - populate(objectMap, "organizationName", &d.OrganizationName) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", d.AuthenticationType) + populateAny(objectMap, "deploymentType", d.DeploymentType) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) + populateAny(objectMap, "hostName", d.HostName) + populateAny(objectMap, "organizationName", d.OrganizationName) populate(objectMap, "password", d.Password) - populate(objectMap, "port", &d.Port) + populateAny(objectMap, "port", d.Port) populate(objectMap, "servicePrincipalCredential", d.ServicePrincipalCredential) - populate(objectMap, "servicePrincipalCredentialType", &d.ServicePrincipalCredentialType) - populate(objectMap, "servicePrincipalId", &d.ServicePrincipalID) - populate(objectMap, "serviceUri", &d.ServiceURI) - populate(objectMap, "username", &d.Username) + populateAny(objectMap, "servicePrincipalCredentialType", d.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalId", d.ServicePrincipalID) + populateAny(objectMap, "serviceUri", d.ServiceURI) + populateAny(objectMap, "username", d.Username) return json.Marshal(objectMap) } @@ -17493,16 +17731,16 @@ func (d *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmSink. func (d DynamicsCrmSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateKeyName", &d.AlternateKeyName) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "ignoreNullValues", &d.IgnoreNullValues) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &d.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &d.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "alternateKeyName", d.AlternateKeyName) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "ignoreNullValues", d.IgnoreNullValues) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", d.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", d.SinkRetryWait) objectMap["type"] = "DynamicsCrmSink" - populate(objectMap, "writeBatchSize", &d.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &d.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", d.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", d.WriteBatchTimeout) populate(objectMap, "writeBehavior", d.WriteBehavior) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -17553,10 +17791,10 @@ func (d *DynamicsCrmSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17571,13 +17809,13 @@ func (d *DynamicsCrmSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmSource. func (d DynamicsCrmSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &d.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "query", &d.Query) - populate(objectMap, "sourceRetryCount", &d.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &d.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", d.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "query", d.Query) + populateAny(objectMap, "sourceRetryCount", d.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", d.SourceRetryWait) objectMap["type"] = "DynamicsCrmSource" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -17619,10 +17857,10 @@ func (d *DynamicsCrmSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17637,14 +17875,14 @@ func (d *DynamicsCrmSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsEntityDataset. func (d DynamicsEntityDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "schema", &d.Schema) - populate(objectMap, "structure", &d.Structure) + populateAny(objectMap, "schema", d.Schema) + populateAny(objectMap, "structure", d.Structure) objectMap["type"] = "DynamicsEntity" populate(objectMap, "typeProperties", d.TypeProperties) if d.AdditionalProperties != nil { @@ -17693,10 +17931,10 @@ func (d *DynamicsEntityDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17711,8 +17949,8 @@ func (d *DynamicsEntityDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "entityName", d.EntityName) return json.Marshal(objectMap) } @@ -17738,7 +17976,7 @@ func (d *DynamicsEntityDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsLinkedService. func (d DynamicsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -17782,10 +18020,10 @@ func (d *DynamicsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17800,20 +18038,20 @@ func (d *DynamicsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsLinkedServiceTypeProperties. func (d DynamicsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &d.AuthenticationType) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", d.AuthenticationType) populate(objectMap, "credential", d.Credential) - populate(objectMap, "deploymentType", &d.DeploymentType) - populate(objectMap, "encryptedCredential", &d.EncryptedCredential) - populate(objectMap, "hostName", &d.HostName) - populate(objectMap, "organizationName", &d.OrganizationName) + populateAny(objectMap, "deploymentType", d.DeploymentType) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) + populateAny(objectMap, "hostName", d.HostName) + populateAny(objectMap, "organizationName", d.OrganizationName) populate(objectMap, "password", d.Password) - populate(objectMap, "port", &d.Port) + populateAny(objectMap, "port", d.Port) populate(objectMap, "servicePrincipalCredential", d.ServicePrincipalCredential) - populate(objectMap, "servicePrincipalCredentialType", &d.ServicePrincipalCredentialType) - populate(objectMap, "servicePrincipalId", &d.ServicePrincipalID) - populate(objectMap, "serviceUri", &d.ServiceURI) - populate(objectMap, "username", &d.Username) + populateAny(objectMap, "servicePrincipalCredentialType", d.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalId", d.ServicePrincipalID) + populateAny(objectMap, "serviceUri", d.ServiceURI) + populateAny(objectMap, "username", d.Username) return json.Marshal(objectMap) } @@ -17875,16 +18113,16 @@ func (d *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsSink. func (d DynamicsSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateKeyName", &d.AlternateKeyName) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "ignoreNullValues", &d.IgnoreNullValues) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &d.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &d.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "alternateKeyName", d.AlternateKeyName) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "ignoreNullValues", d.IgnoreNullValues) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", d.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", d.SinkRetryWait) objectMap["type"] = "DynamicsSink" - populate(objectMap, "writeBatchSize", &d.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &d.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", d.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", d.WriteBatchTimeout) populate(objectMap, "writeBehavior", d.WriteBehavior) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -17935,10 +18173,10 @@ func (d *DynamicsSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17953,13 +18191,13 @@ func (d *DynamicsSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsSource. func (d DynamicsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &d.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) - populate(objectMap, "query", &d.Query) - populate(objectMap, "sourceRetryCount", &d.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &d.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", d.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", d.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", d.MaxConcurrentConnections) + populateAny(objectMap, "query", d.Query) + populateAny(objectMap, "sourceRetryCount", d.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", d.SourceRetryWait) objectMap["type"] = "DynamicsSource" if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { @@ -18001,10 +18239,10 @@ func (d *DynamicsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -18019,7 +18257,7 @@ func (d *DynamicsSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaLinkedService. func (e EloquaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", e.Annotations) populate(objectMap, "connectVia", e.ConnectVia) populate(objectMap, "description", e.Description) @@ -18063,10 +18301,10 @@ func (e *EloquaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18081,14 +18319,14 @@ func (e *EloquaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaLinkedServiceTypeProperties. func (e EloquaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &e.EncryptedCredential) - populate(objectMap, "endpoint", &e.Endpoint) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", e.EncryptedCredential) + populateAny(objectMap, "endpoint", e.Endpoint) populate(objectMap, "password", e.Password) - populate(objectMap, "useEncryptedEndpoints", &e.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &e.UseHostVerification) - populate(objectMap, "usePeerVerification", &e.UsePeerVerification) - populate(objectMap, "username", &e.Username) + populateAny(objectMap, "useEncryptedEndpoints", e.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", e.UseHostVerification) + populateAny(objectMap, "usePeerVerification", e.UsePeerVerification) + populateAny(objectMap, "username", e.Username) return json.Marshal(objectMap) } @@ -18132,14 +18370,14 @@ func (e *EloquaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaObjectDataset. func (e EloquaObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", e.Annotations) populate(objectMap, "description", e.Description) populate(objectMap, "folder", e.Folder) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "parameters", e.Parameters) - populate(objectMap, "schema", &e.Schema) - populate(objectMap, "structure", &e.Structure) + populateAny(objectMap, "schema", e.Schema) + populateAny(objectMap, "structure", e.Structure) objectMap["type"] = "EloquaObject" populate(objectMap, "typeProperties", e.TypeProperties) if e.AdditionalProperties != nil { @@ -18188,10 +18426,10 @@ func (e *EloquaObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18206,14 +18444,14 @@ func (e *EloquaObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaSource. func (e EloquaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &e.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &e.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &e.MaxConcurrentConnections) - populate(objectMap, "query", &e.Query) - populate(objectMap, "queryTimeout", &e.QueryTimeout) - populate(objectMap, "sourceRetryCount", &e.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &e.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", e.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", e.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", e.MaxConcurrentConnections) + populateAny(objectMap, "query", e.Query) + populateAny(objectMap, "queryTimeout", e.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", e.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", e.SourceRetryWait) objectMap["type"] = "EloquaSource" if e.AdditionalProperties != nil { for key, val := range e.AdditionalProperties { @@ -18258,10 +18496,10 @@ func (e *EloquaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18276,7 +18514,7 @@ func (e *EloquaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EncryptionConfiguration. func (e EncryptionConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identity", e.Identity) populate(objectMap, "keyName", e.KeyName) populate(objectMap, "keyVersion", e.KeyVersion) @@ -18315,7 +18553,7 @@ func (e *EncryptionConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EntityReference. func (e EntityReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", e.ReferenceName) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) @@ -18346,7 +18584,7 @@ func (e *EntityReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetup. func (e EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "EnvironmentVariableSetup" populate(objectMap, "typeProperties", e.TypeProperties) return json.Marshal(objectMap) @@ -18377,7 +18615,7 @@ func (e *EnvironmentVariableSetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetupTypeProperties. func (e EnvironmentVariableSetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "variableName", e.VariableName) populate(objectMap, "variableValue", e.VariableValue) return json.Marshal(objectMap) @@ -18408,14 +18646,14 @@ func (e *EnvironmentVariableSetupTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type ExcelDataset. func (e ExcelDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", e.Annotations) populate(objectMap, "description", e.Description) populate(objectMap, "folder", e.Folder) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "parameters", e.Parameters) - populate(objectMap, "schema", &e.Schema) - populate(objectMap, "structure", &e.Structure) + populateAny(objectMap, "schema", e.Schema) + populateAny(objectMap, "structure", e.Structure) objectMap["type"] = "Excel" populate(objectMap, "typeProperties", e.TypeProperties) if e.AdditionalProperties != nil { @@ -18464,10 +18702,10 @@ func (e *ExcelDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18482,14 +18720,14 @@ func (e *ExcelDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExcelDatasetTypeProperties. func (e ExcelDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", e.Compression) - populate(objectMap, "firstRowAsHeader", &e.FirstRowAsHeader) + populateAny(objectMap, "firstRowAsHeader", e.FirstRowAsHeader) populate(objectMap, "location", e.Location) - populate(objectMap, "nullValue", &e.NullValue) - populate(objectMap, "range", &e.Range) - populate(objectMap, "sheetIndex", &e.SheetIndex) - populate(objectMap, "sheetName", &e.SheetName) + populateAny(objectMap, "nullValue", e.NullValue) + populateAny(objectMap, "range", e.Range) + populateAny(objectMap, "sheetIndex", e.SheetIndex) + populateAny(objectMap, "sheetName", e.SheetName) return json.Marshal(objectMap) } @@ -18533,12 +18771,12 @@ func (e *ExcelDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExcelSource. func (e ExcelSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &e.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &e.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &e.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &e.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &e.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", e.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", e.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", e.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", e.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", e.SourceRetryWait) populate(objectMap, "storeSettings", e.StoreSettings) objectMap["type"] = "ExcelSource" if e.AdditionalProperties != nil { @@ -18581,10 +18819,10 @@ func (e *ExcelSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18599,12 +18837,14 @@ func (e *ExcelSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivity. func (e ExecuteDataFlowActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "ExecuteDataFlow" populate(objectMap, "typeProperties", e.TypeProperties) populate(objectMap, "userProperties", e.UserProperties) @@ -18637,9 +18877,15 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -18651,10 +18897,10 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18669,15 +18915,15 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivityTypeProperties. func (e ExecuteDataFlowActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compute", e.Compute) - populate(objectMap, "continueOnError", &e.ContinueOnError) + populateAny(objectMap, "continueOnError", e.ContinueOnError) populate(objectMap, "dataFlow", e.DataFlow) populate(objectMap, "integrationRuntime", e.IntegrationRuntime) - populate(objectMap, "runConcurrently", &e.RunConcurrently) - populate(objectMap, "sourceStagingConcurrency", &e.SourceStagingConcurrency) + populateAny(objectMap, "runConcurrently", e.RunConcurrently) + populateAny(objectMap, "sourceStagingConcurrency", e.SourceStagingConcurrency) populate(objectMap, "staging", e.Staging) - populate(objectMap, "traceLevel", &e.TraceLevel) + populateAny(objectMap, "traceLevel", e.TraceLevel) return json.Marshal(objectMap) } @@ -18724,9 +18970,9 @@ func (e *ExecuteDataFlowActivityTypeProperties) UnmarshalJSON(data []byte) error // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "computeType", e.ComputeType) + populateAny(objectMap, "coreCount", e.CoreCount) return json.Marshal(objectMap) } @@ -18755,11 +19001,13 @@ func (e *ExecuteDataFlowActivityTypePropertiesCompute) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivity. func (e ExecutePipelineActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "ExecutePipeline" populate(objectMap, "typeProperties", e.TypeProperties) populate(objectMap, "userProperties", e.UserProperties) @@ -18789,9 +19037,15 @@ func (e *ExecutePipelineActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -18803,10 +19057,10 @@ func (e *ExecutePipelineActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18821,7 +19075,7 @@ func (e *ExecutePipelineActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivityPolicy. func (e ExecutePipelineActivityPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "secureInput", e.SecureInput) if e.AdditionalProperties != nil { for key, val := range e.AdditionalProperties { @@ -18845,10 +19099,10 @@ func (e *ExecutePipelineActivityPolicy) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18863,7 +19117,7 @@ func (e *ExecutePipelineActivityPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivityTypeProperties. func (e ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", e.Parameters) populate(objectMap, "pipeline", e.Pipeline) populate(objectMap, "waitOnCompletion", e.WaitOnCompletion) @@ -18898,17 +19152,17 @@ func (e *ExecutePipelineActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ExecutePowerQueryActivityTypeProperties. func (e ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compute", e.Compute) - populate(objectMap, "continueOnError", &e.ContinueOnError) + populateAny(objectMap, "continueOnError", e.ContinueOnError) populate(objectMap, "dataFlow", e.DataFlow) populate(objectMap, "integrationRuntime", e.IntegrationRuntime) populate(objectMap, "queries", e.Queries) - populate(objectMap, "runConcurrently", &e.RunConcurrently) + populateAny(objectMap, "runConcurrently", e.RunConcurrently) populate(objectMap, "sinks", e.Sinks) - populate(objectMap, "sourceStagingConcurrency", &e.SourceStagingConcurrency) + populateAny(objectMap, "sourceStagingConcurrency", e.SourceStagingConcurrency) populate(objectMap, "staging", e.Staging) - populate(objectMap, "traceLevel", &e.TraceLevel) + populateAny(objectMap, "traceLevel", e.TraceLevel) return json.Marshal(objectMap) } @@ -18961,12 +19215,14 @@ func (e *ExecutePowerQueryActivityTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type ExecuteSSISPackageActivity. func (e ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "ExecuteSSISPackage" populate(objectMap, "typeProperties", e.TypeProperties) populate(objectMap, "userProperties", e.UserProperties) @@ -18999,146 +19255,15 @@ func (e *ExecuteSSISPackageActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) - case "policy": - err = unpopulate(val, "Policy", &e.Policy) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &e.TypeProperties) - delete(rawMsg, key) - case "userProperties": - err = unpopulate(val, "UserProperties", &e.UserProperties) - delete(rawMsg, key) - default: - if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - e.AdditionalProperties[key] = aux - } - 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 ExecuteSSISPackageActivityTypeProperties. -func (e ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "connectVia", e.ConnectVia) - populate(objectMap, "environmentPath", &e.EnvironmentPath) - populate(objectMap, "executionCredential", e.ExecutionCredential) - populate(objectMap, "logLocation", e.LogLocation) - populate(objectMap, "loggingLevel", &e.LoggingLevel) - populate(objectMap, "packageConnectionManagers", e.PackageConnectionManagers) - populate(objectMap, "packageLocation", e.PackageLocation) - populate(objectMap, "packageParameters", e.PackageParameters) - populate(objectMap, "projectConnectionManagers", e.ProjectConnectionManagers) - populate(objectMap, "projectParameters", e.ProjectParameters) - populate(objectMap, "propertyOverrides", e.PropertyOverrides) - populate(objectMap, "runtime", &e.Runtime) - 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{}) - populate(objectMap, "dependsOn", e.DependsOn) - populate(objectMap, "description", e.Description) - populate(objectMap, "name", e.Name) - populate(objectMap, "policy", e.Policy) - objectMap["type"] = "ExecuteWranglingDataflow" - populate(objectMap, "typeProperties", e.TypeProperties) - populate(objectMap, "userProperties", e.UserProperties) - if e.AdditionalProperties != nil { - for key, val := range e.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteWranglingDataflowActivity. -func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(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 "dependsOn": - err = unpopulate(val, "DependsOn", &e.DependsOn) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &e.Description) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &e.Name) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -19150,10 +19275,155 @@ func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any + err = json.Unmarshal(val, &aux) + e.AdditionalProperties[key] = aux + } + 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 ExecuteSSISPackageActivityTypeProperties. +func (e ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectVia", e.ConnectVia) + populateAny(objectMap, "environmentPath", e.EnvironmentPath) + populate(objectMap, "executionCredential", e.ExecutionCredential) + populate(objectMap, "logLocation", e.LogLocation) + populateAny(objectMap, "loggingLevel", e.LoggingLevel) + populate(objectMap, "packageConnectionManagers", e.PackageConnectionManagers) + populate(objectMap, "packageLocation", e.PackageLocation) + populate(objectMap, "packageParameters", e.PackageParameters) + populate(objectMap, "projectConnectionManagers", e.ProjectConnectionManagers) + populate(objectMap, "projectParameters", e.ProjectParameters) + populate(objectMap, "propertyOverrides", e.PropertyOverrides) + populateAny(objectMap, "runtime", e.Runtime) + 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]any) + populate(objectMap, "dependsOn", e.DependsOn) + populate(objectMap, "description", e.Description) + populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) + populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) + objectMap["type"] = "ExecuteWranglingDataflow" + populate(objectMap, "typeProperties", e.TypeProperties) + populate(objectMap, "userProperties", e.UserProperties) + if e.AdditionalProperties != nil { + for key, val := range e.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteWranglingDataflowActivity. +func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(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 "dependsOn": + err = unpopulate(val, "DependsOn", &e.DependsOn) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &e.Description) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, "Policy", &e.Policy) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &e.TypeProperties) + delete(rawMsg, key) + case "userProperties": + err = unpopulate(val, "UserProperties", &e.UserProperties) + delete(rawMsg, key) + default: + if e.AdditionalProperties == nil { + e.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -19168,12 +19438,14 @@ func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecutionActivity. func (e ExecutionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "Execution" populate(objectMap, "userProperties", e.UserProperties) if e.AdditionalProperties != nil { @@ -19205,9 +19477,15 @@ func (e *ExecutionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -19216,10 +19494,10 @@ func (e *ExecutionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -19234,7 +19512,7 @@ func (e *ExecutionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExportSettings. func (e ExportSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = e.Type if e.AdditionalProperties != nil { for key, val := range e.AdditionalProperties { @@ -19258,10 +19536,10 @@ func (e *ExportSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -19276,7 +19554,7 @@ func (e *ExportSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlBatchRequest. func (e ExposureControlBatchRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "exposureControlRequests", e.ExposureControlRequests) return json.Marshal(objectMap) } @@ -19303,7 +19581,7 @@ func (e *ExposureControlBatchRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlBatchResponse. func (e ExposureControlBatchResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "exposureControlResponses", e.ExposureControlResponses) return json.Marshal(objectMap) } @@ -19330,7 +19608,7 @@ func (e *ExposureControlBatchResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlRequest. func (e ExposureControlRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "featureName", e.FeatureName) populate(objectMap, "featureType", e.FeatureType) return json.Marshal(objectMap) @@ -19361,7 +19639,7 @@ func (e *ExposureControlRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlResponse. func (e ExposureControlResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "featureName", e.FeatureName) populate(objectMap, "value", e.Value) return json.Marshal(objectMap) @@ -19392,7 +19670,7 @@ func (e *ExposureControlResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Expression. func (e Expression) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", e.Type) populate(objectMap, "value", e.Value) return json.Marshal(objectMap) @@ -19421,9 +19699,48 @@ func (e *Expression) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ExpressionV2. +func (e ExpressionV2) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "operands", e.Operands) + populate(objectMap, "operator", e.Operator) + populate(objectMap, "type", e.Type) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExpressionV2. +func (e *ExpressionV2) UnmarshalJSON(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 "operands": + err = unpopulate(val, "Operands", &e.Operands) + delete(rawMsg, key) + case "operator": + err = unpopulate(val, "Operator", &e.Operator) + delete(rawMsg, 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{}) + objectMap := make(map[string]any) populate(objectMap, "eTag", f.ETag) populate(objectMap, "id", f.ID) populate(objectMap, "identity", f.Identity) @@ -19475,10 +19792,10 @@ func (f *Factory) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19493,11 +19810,12 @@ func (f *Factory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryGitHubConfiguration. func (f FactoryGitHubConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", f.AccountName) populate(objectMap, "clientId", f.ClientID) populate(objectMap, "clientSecret", f.ClientSecret) populate(objectMap, "collaborationBranch", f.CollaborationBranch) + populate(objectMap, "disablePublish", f.DisablePublish) populate(objectMap, "hostName", f.HostName) populate(objectMap, "lastCommitId", f.LastCommitID) populate(objectMap, "repositoryName", f.RepositoryName) @@ -19527,6 +19845,9 @@ func (f *FactoryGitHubConfiguration) UnmarshalJSON(data []byte) error { case "collaborationBranch": err = unpopulate(val, "CollaborationBranch", &f.CollaborationBranch) delete(rawMsg, key) + case "disablePublish": + err = unpopulate(val, "DisablePublish", &f.DisablePublish) + delete(rawMsg, key) case "hostName": err = unpopulate(val, "HostName", &f.HostName) delete(rawMsg, key) @@ -19552,7 +19873,7 @@ func (f *FactoryGitHubConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryIdentity. func (f FactoryIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", f.PrincipalID) populate(objectMap, "tenantId", f.TenantID) populate(objectMap, "type", f.Type) @@ -19591,7 +19912,7 @@ func (f *FactoryIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryListResponse. func (f FactoryListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", f.NextLink) populate(objectMap, "value", f.Value) return json.Marshal(objectMap) @@ -19622,8 +19943,8 @@ func (f *FactoryListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryProperties. func (f FactoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createTime", f.CreateTime) + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "createTime", f.CreateTime) populate(objectMap, "encryption", f.Encryption) populate(objectMap, "globalParameters", f.GlobalParameters) populate(objectMap, "provisioningState", f.ProvisioningState) @@ -19644,7 +19965,7 @@ func (f *FactoryProperties) UnmarshalJSON(data []byte) error { var err error switch key { case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &f.CreateTime) + err = unpopulateDateTimeRFC3339(val, "CreateTime", &f.CreateTime) delete(rawMsg, key) case "encryption": err = unpopulate(val, "Encryption", &f.Encryption) @@ -19677,9 +19998,10 @@ func (f *FactoryProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryRepoConfiguration. func (f FactoryRepoConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", f.AccountName) populate(objectMap, "collaborationBranch", f.CollaborationBranch) + populate(objectMap, "disablePublish", f.DisablePublish) populate(objectMap, "lastCommitId", f.LastCommitID) populate(objectMap, "repositoryName", f.RepositoryName) populate(objectMap, "rootFolder", f.RootFolder) @@ -19702,6 +20024,9 @@ func (f *FactoryRepoConfiguration) UnmarshalJSON(data []byte) error { case "collaborationBranch": err = unpopulate(val, "CollaborationBranch", &f.CollaborationBranch) delete(rawMsg, key) + case "disablePublish": + err = unpopulate(val, "DisablePublish", &f.DisablePublish) + delete(rawMsg, key) case "lastCommitId": err = unpopulate(val, "LastCommitID", &f.LastCommitID) delete(rawMsg, key) @@ -19724,7 +20049,7 @@ func (f *FactoryRepoConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryRepoUpdate. func (f FactoryRepoUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "factoryResourceId", f.FactoryResourceID) populate(objectMap, "repoConfiguration", f.RepoConfiguration) return json.Marshal(objectMap) @@ -19755,7 +20080,7 @@ func (f *FactoryRepoUpdate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryUpdateParameters. func (f FactoryUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identity", f.Identity) populate(objectMap, "properties", f.Properties) populate(objectMap, "tags", f.Tags) @@ -19790,7 +20115,7 @@ func (f *FactoryUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryUpdateProperties. func (f FactoryUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "publicNetworkAccess", f.PublicNetworkAccess) return json.Marshal(objectMap) } @@ -19817,9 +20142,10 @@ func (f *FactoryUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryVSTSConfiguration. func (f FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", f.AccountName) populate(objectMap, "collaborationBranch", f.CollaborationBranch) + populate(objectMap, "disablePublish", f.DisablePublish) populate(objectMap, "lastCommitId", f.LastCommitID) populate(objectMap, "projectName", f.ProjectName) populate(objectMap, "repositoryName", f.RepositoryName) @@ -19844,6 +20170,9 @@ func (f *FactoryVSTSConfiguration) UnmarshalJSON(data []byte) error { case "collaborationBranch": err = unpopulate(val, "CollaborationBranch", &f.CollaborationBranch) delete(rawMsg, key) + case "disablePublish": + err = unpopulate(val, "DisablePublish", &f.DisablePublish) + delete(rawMsg, key) case "lastCommitId": err = unpopulate(val, "LastCommitID", &f.LastCommitID) delete(rawMsg, key) @@ -19872,10 +20201,12 @@ func (f *FactoryVSTSConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FailActivity. func (f FailActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) + populate(objectMap, "onInactiveMarkAs", f.OnInactiveMarkAs) + populate(objectMap, "state", f.State) objectMap["type"] = "Fail" populate(objectMap, "typeProperties", f.TypeProperties) populate(objectMap, "userProperties", f.UserProperties) @@ -19905,6 +20236,12 @@ func (f *FailActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &f.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &f.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &f.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &f.Type) delete(rawMsg, key) @@ -19916,10 +20253,10 @@ func (f *FailActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19934,9 +20271,9 @@ func (f *FailActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "errorCode", f.ErrorCode) + populateAny(objectMap, "message", f.Message) return json.Marshal(objectMap) } @@ -19965,7 +20302,7 @@ func (f *FailActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerLinkedService. func (f FileServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "connectVia", f.ConnectVia) populate(objectMap, "description", f.Description) @@ -20009,10 +20346,10 @@ func (f *FileServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20027,11 +20364,11 @@ func (f *FileServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerLinkedServiceTypeProperties. func (f FileServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &f.EncryptedCredential) - populate(objectMap, "host", &f.Host) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", f.EncryptedCredential) + populateAny(objectMap, "host", f.Host) populate(objectMap, "password", f.Password) - populate(objectMap, "userId", &f.UserID) + populateAny(objectMap, "userId", f.UserID) return json.Marshal(objectMap) } @@ -20066,9 +20403,9 @@ func (f *FileServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type FileServerLocation. func (f FileServerLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &f.FileName) - populate(objectMap, "folderPath", &f.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", f.FileName) + populateAny(objectMap, "folderPath", f.FolderPath) objectMap["type"] = "FileServerLocation" if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -20098,10 +20435,10 @@ func (f *FileServerLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20116,20 +20453,20 @@ func (f *FileServerLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerReadSettings. func (f FileServerReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &f.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) - populate(objectMap, "fileFilter", &f.FileFilter) - populate(objectMap, "fileListPath", &f.FileListPath) - populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &f.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &f.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &f.PartitionRootPath) - populate(objectMap, "recursive", &f.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", f.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", f.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) + populateAny(objectMap, "fileFilter", f.FileFilter) + populateAny(objectMap, "fileListPath", f.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", f.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", f.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", f.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", f.PartitionRootPath) + populateAny(objectMap, "recursive", f.Recursive) objectMap["type"] = "FileServerReadSettings" - populate(objectMap, "wildcardFileName", &f.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &f.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", f.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", f.WildcardFolderPath) if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { objectMap[key] = val @@ -20188,10 +20525,10 @@ func (f *FileServerReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20206,10 +20543,11 @@ func (f *FileServerReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerWriteSettings. func (f FileServerWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &f.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", f.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", f.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", f.MaxConcurrentConnections) + populate(objectMap, "metadata", f.Metadata) objectMap["type"] = "FileServerWriteSettings" if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -20237,15 +20575,18 @@ func (f *FileServerWriteSettings) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &f.MaxConcurrentConnections) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &f.Metadata) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &f.Type) delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20260,14 +20601,14 @@ func (f *FileServerWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileShareDataset. func (f FileShareDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "description", f.Description) populate(objectMap, "folder", f.Folder) populate(objectMap, "linkedServiceName", f.LinkedServiceName) populate(objectMap, "parameters", f.Parameters) - populate(objectMap, "schema", &f.Schema) - populate(objectMap, "structure", &f.Structure) + populateAny(objectMap, "schema", f.Schema) + populateAny(objectMap, "structure", f.Structure) objectMap["type"] = "FileShare" populate(objectMap, "typeProperties", f.TypeProperties) if f.AdditionalProperties != nil { @@ -20316,10 +20657,10 @@ func (f *FileShareDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20334,14 +20675,14 @@ func (f *FileShareDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileShareDatasetTypeProperties. func (f FileShareDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", f.Compression) - populate(objectMap, "fileFilter", &f.FileFilter) - populate(objectMap, "fileName", &f.FileName) - populate(objectMap, "folderPath", &f.FolderPath) + populateAny(objectMap, "fileFilter", f.FileFilter) + populateAny(objectMap, "fileName", f.FileName) + populateAny(objectMap, "folderPath", f.FolderPath) populate(objectMap, "format", f.Format) - populate(objectMap, "modifiedDatetimeEnd", &f.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &f.ModifiedDatetimeStart) + populateAny(objectMap, "modifiedDatetimeEnd", f.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", f.ModifiedDatetimeStart) return json.Marshal(objectMap) } @@ -20385,15 +20726,15 @@ func (f *FileShareDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileSystemSink. func (f FileSystemSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &f.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &f.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &f.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", f.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", f.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", f.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", f.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", f.SinkRetryWait) objectMap["type"] = "FileSystemSink" - populate(objectMap, "writeBatchSize", &f.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &f.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", f.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", f.WriteBatchTimeout) if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { objectMap[key] = val @@ -20437,10 +20778,10 @@ func (f *FileSystemSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20455,13 +20796,13 @@ func (f *FileSystemSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileSystemSource. func (f FileSystemSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &f.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) - populate(objectMap, "recursive", &f.Recursive) - populate(objectMap, "sourceRetryCount", &f.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &f.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", f.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", f.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", f.MaxConcurrentConnections) + populateAny(objectMap, "recursive", f.Recursive) + populateAny(objectMap, "sourceRetryCount", f.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", f.SourceRetryWait) objectMap["type"] = "FileSystemSource" if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -20503,10 +20844,10 @@ func (f *FileSystemSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20521,10 +20862,12 @@ func (f *FileSystemSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FilterActivity. func (f FilterActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) + populate(objectMap, "onInactiveMarkAs", f.OnInactiveMarkAs) + populate(objectMap, "state", f.State) objectMap["type"] = "Filter" populate(objectMap, "typeProperties", f.TypeProperties) populate(objectMap, "userProperties", f.UserProperties) @@ -20554,6 +20897,12 @@ func (f *FilterActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &f.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &f.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &f.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &f.Type) delete(rawMsg, key) @@ -20565,10 +20914,10 @@ func (f *FilterActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20583,7 +20932,7 @@ func (f *FilterActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FilterActivityTypeProperties. func (f FilterActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "condition", f.Condition) populate(objectMap, "items", f.Items) return json.Marshal(objectMap) @@ -20614,7 +20963,7 @@ func (f *FilterActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Flowlet. func (f Flowlet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "description", f.Description) populate(objectMap, "folder", f.Folder) @@ -20657,7 +21006,7 @@ func (f *Flowlet) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FlowletTypeProperties. func (f FlowletTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "script", f.Script) populate(objectMap, "scriptLines", f.ScriptLines) populate(objectMap, "sinks", f.Sinks) @@ -20700,10 +21049,12 @@ func (f *FlowletTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ForEachActivity. func (f ForEachActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) + populate(objectMap, "onInactiveMarkAs", f.OnInactiveMarkAs) + populate(objectMap, "state", f.State) objectMap["type"] = "ForEach" populate(objectMap, "typeProperties", f.TypeProperties) populate(objectMap, "userProperties", f.UserProperties) @@ -20733,6 +21084,12 @@ func (f *ForEachActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &f.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &f.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &f.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &f.Type) delete(rawMsg, key) @@ -20744,10 +21101,10 @@ func (f *ForEachActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20762,7 +21119,7 @@ func (f *ForEachActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ForEachActivityTypeProperties. func (f ForEachActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", f.Activities) populate(objectMap, "batchCount", f.BatchCount) populate(objectMap, "isSequential", f.IsSequential) @@ -20801,7 +21158,7 @@ func (f *ForEachActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FormatReadSettings. func (f FormatReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = f.Type if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -20825,10 +21182,10 @@ func (f *FormatReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20843,7 +21200,7 @@ func (f *FormatReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FormatWriteSettings. func (f FormatWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = f.Type if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -20867,10 +21224,10 @@ func (f *FormatWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20885,19 +21242,19 @@ func (f *FormatWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FtpReadSettings. func (f FtpReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &f.DeleteFilesAfterCompletion) - populate(objectMap, "disableChunking", &f.DisableChunking) - populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &f.FileListPath) - populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) - populate(objectMap, "partitionRootPath", &f.PartitionRootPath) - populate(objectMap, "recursive", &f.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", f.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableChunking", f.DisableChunking) + populateAny(objectMap, "disableMetricsCollection", f.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", f.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", f.MaxConcurrentConnections) + populateAny(objectMap, "partitionRootPath", f.PartitionRootPath) + populateAny(objectMap, "recursive", f.Recursive) objectMap["type"] = "FtpReadSettings" - populate(objectMap, "useBinaryTransfer", f.UseBinaryTransfer) - populate(objectMap, "wildcardFileName", &f.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &f.WildcardFolderPath) + populateAny(objectMap, "useBinaryTransfer", f.UseBinaryTransfer) + populateAny(objectMap, "wildcardFileName", f.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", f.WildcardFolderPath) if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { objectMap[key] = val @@ -20953,10 +21310,10 @@ func (f *FtpReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20971,7 +21328,7 @@ func (f *FtpReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FtpServerLinkedService. func (f FtpServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "connectVia", f.ConnectVia) populate(objectMap, "description", f.Description) @@ -21015,10 +21372,10 @@ func (f *FtpServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -21033,15 +21390,15 @@ func (f *FtpServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FtpServerLinkedServiceTypeProperties. func (f FtpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", f.AuthenticationType) - populate(objectMap, "enableSsl", &f.EnableSSL) - populate(objectMap, "enableServerCertificateValidation", &f.EnableServerCertificateValidation) - populate(objectMap, "encryptedCredential", &f.EncryptedCredential) - populate(objectMap, "host", &f.Host) + populateAny(objectMap, "enableSsl", f.EnableSSL) + populateAny(objectMap, "enableServerCertificateValidation", f.EnableServerCertificateValidation) + populate(objectMap, "encryptedCredential", f.EncryptedCredential) + populateAny(objectMap, "host", f.Host) populate(objectMap, "password", f.Password) - populate(objectMap, "port", &f.Port) - populate(objectMap, "userName", &f.UserName) + populateAny(objectMap, "port", f.Port) + populateAny(objectMap, "userName", f.UserName) return json.Marshal(objectMap) } @@ -21088,9 +21445,9 @@ func (f *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type FtpServerLocation. func (f FtpServerLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &f.FileName) - populate(objectMap, "folderPath", &f.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", f.FileName) + populateAny(objectMap, "folderPath", f.FolderPath) objectMap["type"] = "FtpServerLocation" if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -21120,10 +21477,10 @@ func (f *FtpServerLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -21138,8 +21495,8 @@ func (f *FtpServerLocation) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", g.TableName) return json.Marshal(objectMap) } @@ -21163,56 +21520,16 @@ func (g *GenericDatasetTypeProperties) UnmarshalJSON(data []byte) error { 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 - 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 "status": - err = unpopulate(val, "Status", &g.Status) - delete(rawMsg, key) - default: - if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - g.AdditionalProperties[key] = aux - } - 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 GetMetadataActivity. func (g GetMetadataActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", g.DependsOn) populate(objectMap, "description", g.Description) populate(objectMap, "linkedServiceName", g.LinkedServiceName) populate(objectMap, "name", g.Name) + populate(objectMap, "onInactiveMarkAs", g.OnInactiveMarkAs) populate(objectMap, "policy", g.Policy) + populate(objectMap, "state", g.State) objectMap["type"] = "GetMetadata" populate(objectMap, "typeProperties", g.TypeProperties) populate(objectMap, "userProperties", g.UserProperties) @@ -21245,9 +21562,15 @@ func (g *GetMetadataActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &g.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &g.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &g.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &g.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &g.Type) delete(rawMsg, key) @@ -21259,10 +21582,10 @@ func (g *GetMetadataActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21277,7 +21600,7 @@ func (g *GetMetadataActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GetMetadataActivityTypeProperties. func (g GetMetadataActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", g.Dataset) populate(objectMap, "fieldList", g.FieldList) populate(objectMap, "formatSettings", g.FormatSettings) @@ -21316,7 +21639,7 @@ func (g *GetMetadataActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GetSsisObjectMetadataRequest. func (g GetSsisObjectMetadataRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "metadataPath", g.MetadataPath) return json.Marshal(objectMap) } @@ -21343,7 +21666,7 @@ func (g *GetSsisObjectMetadataRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenRequest. func (g GitHubAccessTokenRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "gitHubAccessCode", g.GitHubAccessCode) populate(objectMap, "gitHubAccessTokenBaseUrl", g.GitHubAccessTokenBaseURL) populate(objectMap, "gitHubClientId", g.GitHubClientID) @@ -21382,7 +21705,7 @@ func (g *GitHubAccessTokenRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenResponse. func (g GitHubAccessTokenResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "gitHubAccessToken", g.GitHubAccessToken) return json.Marshal(objectMap) } @@ -21409,7 +21732,7 @@ func (g *GitHubAccessTokenResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubClientSecret. func (g GitHubClientSecret) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "byoaSecretAkvUrl", g.ByoaSecretAkvURL) populate(objectMap, "byoaSecretName", g.ByoaSecretName) return json.Marshal(objectMap) @@ -21440,7 +21763,7 @@ func (g *GitHubClientSecret) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalParameterListResponse. func (g GlobalParameterListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", g.NextLink) populate(objectMap, "value", g.Value) return json.Marshal(objectMap) @@ -21471,7 +21794,7 @@ func (g *GlobalParameterListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalParameterResource. func (g GlobalParameterResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", g.Etag) populate(objectMap, "id", g.ID) populate(objectMap, "name", g.Name) @@ -21514,9 +21837,9 @@ func (g *GlobalParameterResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalParameterSpecification. func (g GlobalParameterSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", g.Type) - populate(objectMap, "value", &g.Value) + populateAny(objectMap, "value", g.Value) return json.Marshal(objectMap) } @@ -21545,7 +21868,7 @@ func (g *GlobalParameterSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsLinkedService. func (g GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -21589,10 +21912,10 @@ func (g *GoogleAdWordsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21607,19 +21930,23 @@ func (g *GoogleAdWordsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsLinkedServiceTypeProperties. func (g GoogleAdWordsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", g.AuthenticationType) - populate(objectMap, "clientCustomerID", &g.ClientCustomerID) - populate(objectMap, "clientId", &g.ClientID) + populateAny(objectMap, "clientCustomerID", g.ClientCustomerID) + populateAny(objectMap, "clientId", g.ClientID) populate(objectMap, "clientSecret", g.ClientSecret) - populate(objectMap, "connectionProperties", &g.ConnectionProperties) + populateAny(objectMap, "connectionProperties", g.ConnectionProperties) populate(objectMap, "developerToken", g.DeveloperToken) - populate(objectMap, "email", &g.Email) - populate(objectMap, "encryptedCredential", &g.EncryptedCredential) - populate(objectMap, "keyFilePath", &g.KeyFilePath) + populateAny(objectMap, "email", g.Email) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) + populateAny(objectMap, "googleAdsApiVersion", g.GoogleAdsAPIVersion) + populateAny(objectMap, "keyFilePath", g.KeyFilePath) + populateAny(objectMap, "loginCustomerID", g.LoginCustomerID) + populate(objectMap, "privateKey", g.PrivateKey) populate(objectMap, "refreshToken", g.RefreshToken) - populate(objectMap, "trustedCertPath", &g.TrustedCertPath) - populate(objectMap, "useSystemTrustStore", &g.UseSystemTrustStore) + populateAny(objectMap, "supportLegacyDataTypes", g.SupportLegacyDataTypes) + populateAny(objectMap, "trustedCertPath", g.TrustedCertPath) + populateAny(objectMap, "useSystemTrustStore", g.UseSystemTrustStore) return json.Marshal(objectMap) } @@ -21656,12 +21983,24 @@ func (g *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) er case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &g.EncryptedCredential) delete(rawMsg, key) + case "googleAdsApiVersion": + err = unpopulate(val, "GoogleAdsAPIVersion", &g.GoogleAdsAPIVersion) + delete(rawMsg, key) case "keyFilePath": err = unpopulate(val, "KeyFilePath", &g.KeyFilePath) delete(rawMsg, key) + case "loginCustomerID": + err = unpopulate(val, "LoginCustomerID", &g.LoginCustomerID) + delete(rawMsg, key) + case "privateKey": + g.PrivateKey, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) case "refreshToken": g.RefreshToken, err = unmarshalSecretBaseClassification(val) delete(rawMsg, key) + case "supportLegacyDataTypes": + err = unpopulate(val, "SupportLegacyDataTypes", &g.SupportLegacyDataTypes) + delete(rawMsg, key) case "trustedCertPath": err = unpopulate(val, "TrustedCertPath", &g.TrustedCertPath) delete(rawMsg, key) @@ -21678,14 +22017,14 @@ func (g *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsObjectDataset. func (g GoogleAdWordsObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "description", g.Description) populate(objectMap, "folder", g.Folder) populate(objectMap, "linkedServiceName", g.LinkedServiceName) populate(objectMap, "parameters", g.Parameters) - populate(objectMap, "schema", &g.Schema) - populate(objectMap, "structure", &g.Structure) + populateAny(objectMap, "schema", g.Schema) + populateAny(objectMap, "structure", g.Structure) objectMap["type"] = "GoogleAdWordsObject" populate(objectMap, "typeProperties", g.TypeProperties) if g.AdditionalProperties != nil { @@ -21734,10 +22073,10 @@ func (g *GoogleAdWordsObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21752,14 +22091,14 @@ func (g *GoogleAdWordsObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsSource. func (g GoogleAdWordsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &g.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &g.MaxConcurrentConnections) - populate(objectMap, "query", &g.Query) - populate(objectMap, "queryTimeout", &g.QueryTimeout) - populate(objectMap, "sourceRetryCount", &g.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &g.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", g.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", g.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", g.MaxConcurrentConnections) + populateAny(objectMap, "query", g.Query) + populateAny(objectMap, "queryTimeout", g.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", g.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", g.SourceRetryWait) objectMap["type"] = "GoogleAdWordsSource" if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { @@ -21804,10 +22143,10 @@ func (g *GoogleAdWordsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21822,10 +22161,10 @@ func (g *GoogleAdWordsSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "dataset", g.Dataset) + populateAny(objectMap, "table", g.Table) + populateAny(objectMap, "tableName", g.TableName) return json.Marshal(objectMap) } @@ -21857,7 +22196,7 @@ func (g *GoogleBigQueryDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryLinkedService. func (g GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -21901,10 +22240,10 @@ func (g *GoogleBigQueryLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21919,19 +22258,19 @@ func (g *GoogleBigQueryLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryLinkedServiceTypeProperties. func (g GoogleBigQueryLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalProjects", &g.AdditionalProjects) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalProjects", g.AdditionalProjects) populate(objectMap, "authenticationType", g.AuthenticationType) - populate(objectMap, "clientId", &g.ClientID) + populateAny(objectMap, "clientId", g.ClientID) populate(objectMap, "clientSecret", g.ClientSecret) - populate(objectMap, "email", &g.Email) - populate(objectMap, "encryptedCredential", &g.EncryptedCredential) - populate(objectMap, "keyFilePath", &g.KeyFilePath) - populate(objectMap, "project", &g.Project) + populateAny(objectMap, "email", g.Email) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) + populateAny(objectMap, "keyFilePath", g.KeyFilePath) + populateAny(objectMap, "project", g.Project) populate(objectMap, "refreshToken", g.RefreshToken) - populate(objectMap, "requestGoogleDriveScope", &g.RequestGoogleDriveScope) - populate(objectMap, "trustedCertPath", &g.TrustedCertPath) - populate(objectMap, "useSystemTrustStore", &g.UseSystemTrustStore) + populateAny(objectMap, "requestGoogleDriveScope", g.RequestGoogleDriveScope) + populateAny(objectMap, "trustedCertPath", g.TrustedCertPath) + populateAny(objectMap, "useSystemTrustStore", g.UseSystemTrustStore) return json.Marshal(objectMap) } @@ -21990,14 +22329,14 @@ func (g *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryObjectDataset. func (g GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "description", g.Description) populate(objectMap, "folder", g.Folder) populate(objectMap, "linkedServiceName", g.LinkedServiceName) populate(objectMap, "parameters", g.Parameters) - populate(objectMap, "schema", &g.Schema) - populate(objectMap, "structure", &g.Structure) + populateAny(objectMap, "schema", g.Schema) + populateAny(objectMap, "structure", g.Structure) objectMap["type"] = "GoogleBigQueryObject" populate(objectMap, "typeProperties", g.TypeProperties) if g.AdditionalProperties != nil { @@ -22046,10 +22385,10 @@ func (g *GoogleBigQueryObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22064,14 +22403,14 @@ func (g *GoogleBigQueryObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleBigQuerySource. func (g GoogleBigQuerySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &g.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &g.MaxConcurrentConnections) - populate(objectMap, "query", &g.Query) - populate(objectMap, "queryTimeout", &g.QueryTimeout) - populate(objectMap, "sourceRetryCount", &g.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &g.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", g.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", g.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", g.MaxConcurrentConnections) + populateAny(objectMap, "query", g.Query) + populateAny(objectMap, "queryTimeout", g.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", g.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", g.SourceRetryWait) objectMap["type"] = "GoogleBigQuerySource" if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { @@ -22116,10 +22455,10 @@ func (g *GoogleBigQuerySource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22132,14 +22471,45 @@ func (g *GoogleBigQuerySource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLinkedService. -func (g GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryV2DatasetTypeProperties. +func (g GoogleBigQueryV2DatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "dataset", g.Dataset) + populateAny(objectMap, "table", g.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryV2DatasetTypeProperties. +func (g *GoogleBigQueryV2DatasetTypeProperties) UnmarshalJSON(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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryV2LinkedService. +func (g GoogleBigQueryV2LinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) populate(objectMap, "parameters", g.Parameters) - objectMap["type"] = "GoogleCloudStorage" + objectMap["type"] = "GoogleBigQueryV2" populate(objectMap, "typeProperties", g.TypeProperties) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { @@ -22149,8 +22519,8 @@ func (g GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLinkedService. -func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryV2LinkedService. +func (g *GoogleBigQueryV2LinkedService) UnmarshalJSON(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) @@ -22178,10 +22548,10 @@ func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22194,18 +22564,21 @@ func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLinkedServiceTypeProperties. -func (g GoogleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessKeyId", &g.AccessKeyID) - populate(objectMap, "encryptedCredential", &g.EncryptedCredential) - populate(objectMap, "secretAccessKey", g.SecretAccessKey) - populate(objectMap, "serviceUrl", &g.ServiceURL) +// MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryV2LinkedServiceTypeProperties. +func (g GoogleBigQueryV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authenticationType", g.AuthenticationType) + populateAny(objectMap, "clientId", g.ClientID) + populate(objectMap, "clientSecret", g.ClientSecret) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) + populate(objectMap, "keyFileContent", g.KeyFileContent) + populateAny(objectMap, "projectId", g.ProjectID) + populate(objectMap, "refreshToken", g.RefreshToken) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLinkedServiceTypeProperties. -func (g *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryV2LinkedServiceTypeProperties. +func (g *GoogleBigQueryV2LinkedServiceTypeProperties) UnmarshalJSON(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) @@ -22213,17 +22586,26 @@ func (g *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byt for key, val := range rawMsg { var err error switch key { - case "accessKeyId": - err = unpopulate(val, "AccessKeyID", &g.AccessKeyID) + case "authenticationType": + err = unpopulate(val, "AuthenticationType", &g.AuthenticationType) + delete(rawMsg, key) + case "clientId": + err = unpopulate(val, "ClientID", &g.ClientID) + delete(rawMsg, key) + case "clientSecret": + g.ClientSecret, err = unmarshalSecretBaseClassification(val) delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &g.EncryptedCredential) delete(rawMsg, key) - case "secretAccessKey": - g.SecretAccessKey, err = unmarshalSecretBaseClassification(val) + case "keyFileContent": + g.KeyFileContent, err = unmarshalSecretBaseClassification(val) delete(rawMsg, key) - case "serviceUrl": - err = unpopulate(val, "ServiceURL", &g.ServiceURL) + case "projectId": + err = unpopulate(val, "ProjectID", &g.ProjectID) + delete(rawMsg, key) + case "refreshToken": + g.RefreshToken, err = unmarshalSecretBaseClassification(val) delete(rawMsg, key) } if err != nil { @@ -22233,14 +22615,18 @@ func (g *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byt return nil } -// MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLocation. -func (g GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bucketName", &g.BucketName) - populate(objectMap, "fileName", &g.FileName) - populate(objectMap, "folderPath", &g.FolderPath) - objectMap["type"] = "GoogleCloudStorageLocation" - populate(objectMap, "version", &g.Version) +// MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryV2ObjectDataset. +func (g GoogleBigQueryV2ObjectDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", g.Annotations) + populate(objectMap, "description", g.Description) + populate(objectMap, "folder", g.Folder) + populate(objectMap, "linkedServiceName", g.LinkedServiceName) + populate(objectMap, "parameters", g.Parameters) + populateAny(objectMap, "schema", g.Schema) + populateAny(objectMap, "structure", g.Structure) + objectMap["type"] = "GoogleBigQueryV2Object" + populate(objectMap, "typeProperties", g.TypeProperties) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -22249,8 +22635,8 @@ func (g GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLocation. -func (g *GoogleCloudStorageLocation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryV2ObjectDataset. +func (g *GoogleBigQueryV2ObjectDataset) UnmarshalJSON(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) @@ -22258,27 +22644,39 @@ func (g *GoogleCloudStorageLocation) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "bucketName": - err = unpopulate(val, "BucketName", &g.BucketName) + case "annotations": + err = unpopulate(val, "Annotations", &g.Annotations) delete(rawMsg, key) - case "fileName": - err = unpopulate(val, "FileName", &g.FileName) + case "description": + err = unpopulate(val, "Description", &g.Description) delete(rawMsg, key) - case "folderPath": - err = unpopulate(val, "FolderPath", &g.FolderPath) + case "folder": + err = unpopulate(val, "Folder", &g.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &g.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &g.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &g.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &g.Structure) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &g.Type) delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &g.Version) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &g.TypeProperties) delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22291,22 +22689,17 @@ func (g *GoogleCloudStorageLocation) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageReadSettings. -func (g GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &g.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", g.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &g.FileListPath) - populate(objectMap, "maxConcurrentConnections", &g.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &g.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &g.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &g.PartitionRootPath) - populate(objectMap, "prefix", &g.Prefix) - populate(objectMap, "recursive", &g.Recursive) - objectMap["type"] = "GoogleCloudStorageReadSettings" - populate(objectMap, "wildcardFileName", &g.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &g.WildcardFolderPath) +// MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryV2Source. +func (g GoogleBigQueryV2Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", g.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", g.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", g.MaxConcurrentConnections) + populateAny(objectMap, "query", g.Query) + populateAny(objectMap, "queryTimeout", g.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", g.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", g.SourceRetryWait) + objectMap["type"] = "GoogleBigQueryV2Source" if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -22315,8 +22708,8 @@ func (g GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageReadSettings. -func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryV2Source. +func (g *GoogleBigQueryV2Source) UnmarshalJSON(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) @@ -22324,51 +22717,36 @@ func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "deleteFilesAfterCompletion": - err = unpopulate(val, "DeleteFilesAfterCompletion", &g.DeleteFilesAfterCompletion) + case "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &g.AdditionalColumns) delete(rawMsg, key) case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &g.DisableMetricsCollection) delete(rawMsg, key) - case "enablePartitionDiscovery": - err = unpopulate(val, "EnablePartitionDiscovery", &g.EnablePartitionDiscovery) - delete(rawMsg, key) - case "fileListPath": - err = unpopulate(val, "FileListPath", &g.FileListPath) - delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &g.MaxConcurrentConnections) delete(rawMsg, key) - case "modifiedDatetimeEnd": - err = unpopulate(val, "ModifiedDatetimeEnd", &g.ModifiedDatetimeEnd) - delete(rawMsg, key) - case "modifiedDatetimeStart": - err = unpopulate(val, "ModifiedDatetimeStart", &g.ModifiedDatetimeStart) + case "query": + err = unpopulate(val, "Query", &g.Query) delete(rawMsg, key) - case "partitionRootPath": - err = unpopulate(val, "PartitionRootPath", &g.PartitionRootPath) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &g.QueryTimeout) delete(rawMsg, key) - case "prefix": - err = unpopulate(val, "Prefix", &g.Prefix) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &g.SourceRetryCount) delete(rawMsg, key) - case "recursive": - err = unpopulate(val, "Recursive", &g.Recursive) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &g.SourceRetryWait) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &g.Type) delete(rawMsg, key) - case "wildcardFileName": - err = unpopulate(val, "WildcardFileName", &g.WildcardFileName) - delete(rawMsg, key) - case "wildcardFolderPath": - err = unpopulate(val, "WildcardFolderPath", &g.WildcardFolderPath) - delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22381,14 +22759,14 @@ func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GoogleSheetsLinkedService. -func (g GoogleSheetsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLinkedService. +func (g GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) populate(objectMap, "parameters", g.Parameters) - objectMap["type"] = "GoogleSheets" + objectMap["type"] = "GoogleCloudStorage" populate(objectMap, "typeProperties", g.TypeProperties) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { @@ -22398,8 +22776,8 @@ func (g GoogleSheetsLinkedService) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleSheetsLinkedService. -func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLinkedService. +func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(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) @@ -22427,10 +22805,259 @@ func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any + err = json.Unmarshal(val, &aux) + g.AdditionalProperties[key] = aux + } + 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 GoogleCloudStorageLinkedServiceTypeProperties. +func (g GoogleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "accessKeyId", g.AccessKeyID) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) + populate(objectMap, "secretAccessKey", g.SecretAccessKey) + populateAny(objectMap, "serviceUrl", g.ServiceURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleCloudStorageLinkedServiceTypeProperties. +func (g *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(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 "accessKeyId": + err = unpopulate(val, "AccessKeyID", &g.AccessKeyID) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &g.EncryptedCredential) + delete(rawMsg, key) + case "secretAccessKey": + g.SecretAccessKey, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "serviceUrl": + err = unpopulate(val, "ServiceURL", &g.ServiceURL) + 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 GoogleCloudStorageLocation. +func (g GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "bucketName", g.BucketName) + populateAny(objectMap, "fileName", g.FileName) + populateAny(objectMap, "folderPath", g.FolderPath) + objectMap["type"] = "GoogleCloudStorageLocation" + populateAny(objectMap, "version", g.Version) + 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 GoogleCloudStorageLocation. +func (g *GoogleCloudStorageLocation) UnmarshalJSON(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 "bucketName": + err = unpopulate(val, "BucketName", &g.BucketName) + delete(rawMsg, key) + case "fileName": + err = unpopulate(val, "FileName", &g.FileName) + delete(rawMsg, key) + case "folderPath": + err = unpopulate(val, "FolderPath", &g.FolderPath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &g.Version) + delete(rawMsg, key) + default: + if g.AdditionalProperties == nil { + g.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + g.AdditionalProperties[key] = aux + } + 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 GoogleCloudStorageReadSettings. +func (g GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", g.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", g.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", g.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", g.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", g.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", g.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", g.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", g.PartitionRootPath) + populateAny(objectMap, "prefix", g.Prefix) + populateAny(objectMap, "recursive", g.Recursive) + objectMap["type"] = "GoogleCloudStorageReadSettings" + populateAny(objectMap, "wildcardFileName", g.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", g.WildcardFolderPath) + 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 GoogleCloudStorageReadSettings. +func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(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 "deleteFilesAfterCompletion": + err = unpopulate(val, "DeleteFilesAfterCompletion", &g.DeleteFilesAfterCompletion) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &g.DisableMetricsCollection) + delete(rawMsg, key) + case "enablePartitionDiscovery": + err = unpopulate(val, "EnablePartitionDiscovery", &g.EnablePartitionDiscovery) + delete(rawMsg, key) + case "fileListPath": + err = unpopulate(val, "FileListPath", &g.FileListPath) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &g.MaxConcurrentConnections) + delete(rawMsg, key) + case "modifiedDatetimeEnd": + err = unpopulate(val, "ModifiedDatetimeEnd", &g.ModifiedDatetimeEnd) + delete(rawMsg, key) + case "modifiedDatetimeStart": + err = unpopulate(val, "ModifiedDatetimeStart", &g.ModifiedDatetimeStart) + delete(rawMsg, key) + case "partitionRootPath": + err = unpopulate(val, "PartitionRootPath", &g.PartitionRootPath) + delete(rawMsg, key) + case "prefix": + err = unpopulate(val, "Prefix", &g.Prefix) + delete(rawMsg, key) + case "recursive": + err = unpopulate(val, "Recursive", &g.Recursive) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) + delete(rawMsg, key) + case "wildcardFileName": + err = unpopulate(val, "WildcardFileName", &g.WildcardFileName) + delete(rawMsg, key) + case "wildcardFolderPath": + err = unpopulate(val, "WildcardFolderPath", &g.WildcardFolderPath) + delete(rawMsg, key) + default: + if g.AdditionalProperties == nil { + g.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + g.AdditionalProperties[key] = aux + } + 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 GoogleSheetsLinkedService. +func (g GoogleSheetsLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", g.Annotations) + populate(objectMap, "connectVia", g.ConnectVia) + populate(objectMap, "description", g.Description) + populate(objectMap, "parameters", g.Parameters) + objectMap["type"] = "GoogleSheets" + populate(objectMap, "typeProperties", g.TypeProperties) + 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 GoogleSheetsLinkedService. +func (g *GoogleSheetsLinkedService) UnmarshalJSON(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 "annotations": + err = unpopulate(val, "Annotations", &g.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &g.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &g.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &g.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &g.TypeProperties) + delete(rawMsg, key) + default: + if g.AdditionalProperties == nil { + g.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22445,9 +23072,9 @@ func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleSheetsLinkedServiceTypeProperties. func (g GoogleSheetsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", g.APIToken) - populate(objectMap, "encryptedCredential", &g.EncryptedCredential) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) return json.Marshal(objectMap) } @@ -22476,10 +23103,10 @@ func (g *GoogleSheetsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", g.Schema) + populateAny(objectMap, "table", g.Table) + populateAny(objectMap, "tableName", g.TableName) return json.Marshal(objectMap) } @@ -22511,7 +23138,7 @@ func (g *GreenplumDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GreenplumLinkedService. func (g GreenplumLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -22555,10 +23182,10 @@ func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22573,9 +23200,9 @@ func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", g.ConnectionString) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) populate(objectMap, "pwd", g.Pwd) return json.Marshal(objectMap) } @@ -22608,14 +23235,14 @@ func (g *GreenplumLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type GreenplumSource. func (g GreenplumSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &g.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &g.MaxConcurrentConnections) - populate(objectMap, "query", &g.Query) - populate(objectMap, "queryTimeout", &g.QueryTimeout) - populate(objectMap, "sourceRetryCount", &g.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &g.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", g.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", g.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", g.MaxConcurrentConnections) + populateAny(objectMap, "query", g.Query) + populateAny(objectMap, "queryTimeout", g.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", g.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", g.SourceRetryWait) objectMap["type"] = "GreenplumSource" if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { @@ -22660,10 +23287,10 @@ func (g *GreenplumSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22678,14 +23305,14 @@ func (g *GreenplumSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GreenplumTableDataset. func (g GreenplumTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "description", g.Description) populate(objectMap, "folder", g.Folder) populate(objectMap, "linkedServiceName", g.LinkedServiceName) populate(objectMap, "parameters", g.Parameters) - populate(objectMap, "schema", &g.Schema) - populate(objectMap, "structure", &g.Structure) + populateAny(objectMap, "schema", g.Schema) + populateAny(objectMap, "structure", g.Structure) objectMap["type"] = "GreenplumTable" populate(objectMap, "typeProperties", g.TypeProperties) if g.AdditionalProperties != nil { @@ -22734,10 +23361,10 @@ func (g *GreenplumTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22752,7 +23379,7 @@ func (g *GreenplumTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseLinkedService. func (h HBaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -22796,10 +23423,10 @@ func (h *HBaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -22814,18 +23441,18 @@ func (h *HBaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseLinkedServiceTypeProperties. func (h HBaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowHostNameCNMismatch", &h.AllowHostNameCNMismatch) - populate(objectMap, "allowSelfSignedServerCert", &h.AllowSelfSignedServerCert) + objectMap := make(map[string]any) + populateAny(objectMap, "allowHostNameCNMismatch", h.AllowHostNameCNMismatch) + populateAny(objectMap, "allowSelfSignedServerCert", h.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", h.AuthenticationType) - populate(objectMap, "enableSsl", &h.EnableSSL) - populate(objectMap, "encryptedCredential", &h.EncryptedCredential) - populate(objectMap, "httpPath", &h.HTTPPath) - populate(objectMap, "host", &h.Host) + populateAny(objectMap, "enableSsl", h.EnableSSL) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) + populateAny(objectMap, "httpPath", h.HTTPPath) + populateAny(objectMap, "host", h.Host) populate(objectMap, "password", h.Password) - populate(objectMap, "port", &h.Port) - populate(objectMap, "trustedCertPath", &h.TrustedCertPath) - populate(objectMap, "username", &h.Username) + populateAny(objectMap, "port", h.Port) + populateAny(objectMap, "trustedCertPath", h.TrustedCertPath) + populateAny(objectMap, "username", h.Username) return json.Marshal(objectMap) } @@ -22881,14 +23508,14 @@ func (h *HBaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseObjectDataset. func (h HBaseObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "parameters", h.Parameters) - populate(objectMap, "schema", &h.Schema) - populate(objectMap, "structure", &h.Structure) + populateAny(objectMap, "schema", h.Schema) + populateAny(objectMap, "structure", h.Structure) objectMap["type"] = "HBaseObject" populate(objectMap, "typeProperties", h.TypeProperties) if h.AdditionalProperties != nil { @@ -22937,10 +23564,10 @@ func (h *HBaseObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -22955,14 +23582,14 @@ func (h *HBaseObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseSource. func (h HBaseSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &h.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) - populate(objectMap, "query", &h.Query) - populate(objectMap, "queryTimeout", &h.QueryTimeout) - populate(objectMap, "sourceRetryCount", &h.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &h.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", h.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) + populateAny(objectMap, "query", h.Query) + populateAny(objectMap, "queryTimeout", h.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", h.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", h.SourceRetryWait) objectMap["type"] = "HBaseSource" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -23007,10 +23634,10 @@ func (h *HBaseSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23025,12 +23652,14 @@ func (h *HBaseSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightHiveActivity. func (h HDInsightHiveActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightHive" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23063,9 +23692,15 @@ func (h *HDInsightHiveActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23077,10 +23712,10 @@ func (h *HDInsightHiveActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23095,13 +23730,13 @@ func (h *HDInsightHiveActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightHiveActivityTypeProperties. func (h HDInsightHiveActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) populate(objectMap, "defines", h.Defines) populate(objectMap, "getDebugInfo", h.GetDebugInfo) populate(objectMap, "queryTimeout", h.QueryTimeout) populate(objectMap, "scriptLinkedService", h.ScriptLinkedService) - populate(objectMap, "scriptPath", &h.ScriptPath) + populateAny(objectMap, "scriptPath", h.ScriptPath) populate(objectMap, "storageLinkedServices", h.StorageLinkedServices) populate(objectMap, "variables", h.Variables) return json.Marshal(objectMap) @@ -23150,7 +23785,7 @@ func (h *HDInsightHiveActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightLinkedService. func (h HDInsightLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -23194,10 +23829,10 @@ func (h *HDInsightLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23212,15 +23847,15 @@ func (h *HDInsightLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightLinkedServiceTypeProperties. func (h HDInsightLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clusterUri", &h.ClusterURI) - populate(objectMap, "encryptedCredential", &h.EncryptedCredential) - populate(objectMap, "fileSystem", &h.FileSystem) + objectMap := make(map[string]any) + populateAny(objectMap, "clusterUri", h.ClusterURI) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) + populateAny(objectMap, "fileSystem", h.FileSystem) populate(objectMap, "hcatalogLinkedServiceName", h.HcatalogLinkedServiceName) - populate(objectMap, "isEspEnabled", &h.IsEspEnabled) + populateAny(objectMap, "isEspEnabled", h.IsEspEnabled) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "password", h.Password) - populate(objectMap, "userName", &h.UserName) + populateAny(objectMap, "userName", h.UserName) return json.Marshal(objectMap) } @@ -23267,12 +23902,14 @@ func (h *HDInsightLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type HDInsightMapReduceActivity. func (h HDInsightMapReduceActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightMapReduce" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23305,9 +23942,15 @@ func (h *HDInsightMapReduceActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23319,10 +23962,10 @@ func (h *HDInsightMapReduceActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23337,12 +23980,12 @@ func (h *HDInsightMapReduceActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightMapReduceActivityTypeProperties. func (h HDInsightMapReduceActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) - populate(objectMap, "className", &h.ClassName) + populateAny(objectMap, "className", h.ClassName) populate(objectMap, "defines", h.Defines) populate(objectMap, "getDebugInfo", h.GetDebugInfo) - populate(objectMap, "jarFilePath", &h.JarFilePath) + populateAny(objectMap, "jarFilePath", h.JarFilePath) populate(objectMap, "jarLibs", h.JarLibs) populate(objectMap, "jarLinkedService", h.JarLinkedService) populate(objectMap, "storageLinkedServices", h.StorageLinkedServices) @@ -23392,7 +24035,7 @@ func (h *HDInsightMapReduceActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type HDInsightOnDemandLinkedService. func (h HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -23436,10 +24079,10 @@ func (h *HDInsightOnDemandLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23454,41 +24097,41 @@ func (h *HDInsightOnDemandLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightOnDemandLinkedServiceTypeProperties. func (h HDInsightOnDemandLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalLinkedServiceNames", h.AdditionalLinkedServiceNames) - populate(objectMap, "clusterNamePrefix", &h.ClusterNamePrefix) + populateAny(objectMap, "clusterNamePrefix", h.ClusterNamePrefix) populate(objectMap, "clusterPassword", h.ClusterPassword) - populate(objectMap, "clusterResourceGroup", &h.ClusterResourceGroup) + populateAny(objectMap, "clusterResourceGroup", h.ClusterResourceGroup) populate(objectMap, "clusterSshPassword", h.ClusterSSHPassword) - populate(objectMap, "clusterSshUserName", &h.ClusterSSHUserName) - populate(objectMap, "clusterSize", &h.ClusterSize) - populate(objectMap, "clusterType", &h.ClusterType) - populate(objectMap, "clusterUserName", &h.ClusterUserName) - populate(objectMap, "coreConfiguration", &h.CoreConfiguration) + populateAny(objectMap, "clusterSshUserName", h.ClusterSSHUserName) + populateAny(objectMap, "clusterSize", h.ClusterSize) + populateAny(objectMap, "clusterType", h.ClusterType) + populateAny(objectMap, "clusterUserName", h.ClusterUserName) + populateAny(objectMap, "coreConfiguration", h.CoreConfiguration) populate(objectMap, "credential", h.Credential) - populate(objectMap, "dataNodeSize", &h.DataNodeSize) - populate(objectMap, "encryptedCredential", &h.EncryptedCredential) - populate(objectMap, "hBaseConfiguration", &h.HBaseConfiguration) + populateAny(objectMap, "dataNodeSize", h.DataNodeSize) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) + populateAny(objectMap, "hBaseConfiguration", h.HBaseConfiguration) populate(objectMap, "hcatalogLinkedServiceName", h.HcatalogLinkedServiceName) - populate(objectMap, "hdfsConfiguration", &h.HdfsConfiguration) - populate(objectMap, "headNodeSize", &h.HeadNodeSize) - populate(objectMap, "hiveConfiguration", &h.HiveConfiguration) - populate(objectMap, "hostSubscriptionId", &h.HostSubscriptionID) + populateAny(objectMap, "hdfsConfiguration", h.HdfsConfiguration) + populateAny(objectMap, "headNodeSize", h.HeadNodeSize) + populateAny(objectMap, "hiveConfiguration", h.HiveConfiguration) + populateAny(objectMap, "hostSubscriptionId", h.HostSubscriptionID) populate(objectMap, "linkedServiceName", h.LinkedServiceName) - populate(objectMap, "mapReduceConfiguration", &h.MapReduceConfiguration) - populate(objectMap, "oozieConfiguration", &h.OozieConfiguration) + populateAny(objectMap, "mapReduceConfiguration", h.MapReduceConfiguration) + populateAny(objectMap, "oozieConfiguration", h.OozieConfiguration) populate(objectMap, "scriptActions", h.ScriptActions) - populate(objectMap, "servicePrincipalId", &h.ServicePrincipalID) + populateAny(objectMap, "servicePrincipalId", h.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", h.ServicePrincipalKey) - populate(objectMap, "sparkVersion", &h.SparkVersion) - populate(objectMap, "stormConfiguration", &h.StormConfiguration) - populate(objectMap, "subnetName", &h.SubnetName) - populate(objectMap, "tenant", &h.Tenant) - populate(objectMap, "timeToLive", &h.TimeToLive) - populate(objectMap, "version", &h.Version) - populate(objectMap, "virtualNetworkId", &h.VirtualNetworkID) - populate(objectMap, "yarnConfiguration", &h.YarnConfiguration) - populate(objectMap, "zookeeperNodeSize", &h.ZookeeperNodeSize) + populateAny(objectMap, "sparkVersion", h.SparkVersion) + populateAny(objectMap, "stormConfiguration", h.StormConfiguration) + populateAny(objectMap, "subnetName", h.SubnetName) + populateAny(objectMap, "tenant", h.Tenant) + populateAny(objectMap, "timeToLive", h.TimeToLive) + populateAny(objectMap, "version", h.Version) + populateAny(objectMap, "virtualNetworkId", h.VirtualNetworkID) + populateAny(objectMap, "yarnConfiguration", h.YarnConfiguration) + populateAny(objectMap, "zookeeperNodeSize", h.ZookeeperNodeSize) return json.Marshal(objectMap) } @@ -23613,12 +24256,14 @@ func (h *HDInsightOnDemandLinkedServiceTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type HDInsightPigActivity. func (h HDInsightPigActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightPig" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23651,9 +24296,15 @@ func (h *HDInsightPigActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23665,10 +24316,10 @@ func (h *HDInsightPigActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23683,12 +24334,12 @@ func (h *HDInsightPigActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightPigActivityTypeProperties. func (h HDInsightPigActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", &h.Arguments) + objectMap := make(map[string]any) + populateAny(objectMap, "arguments", h.Arguments) populate(objectMap, "defines", h.Defines) populate(objectMap, "getDebugInfo", h.GetDebugInfo) populate(objectMap, "scriptLinkedService", h.ScriptLinkedService) - populate(objectMap, "scriptPath", &h.ScriptPath) + populateAny(objectMap, "scriptPath", h.ScriptPath) populate(objectMap, "storageLinkedServices", h.StorageLinkedServices) return json.Marshal(objectMap) } @@ -23730,12 +24381,14 @@ func (h *HDInsightPigActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightSparkActivity. func (h HDInsightSparkActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightSpark" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23768,9 +24421,15 @@ func (h *HDInsightSparkActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23782,10 +24441,10 @@ func (h *HDInsightSparkActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23800,13 +24459,13 @@ func (h *HDInsightSparkActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightSparkActivityTypeProperties. func (h HDInsightSparkActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) populate(objectMap, "className", h.ClassName) - populate(objectMap, "entryFilePath", &h.EntryFilePath) + populateAny(objectMap, "entryFilePath", h.EntryFilePath) populate(objectMap, "getDebugInfo", h.GetDebugInfo) - populate(objectMap, "proxyUser", &h.ProxyUser) - populate(objectMap, "rootPath", &h.RootPath) + populateAny(objectMap, "proxyUser", h.ProxyUser) + populateAny(objectMap, "rootPath", h.RootPath) populate(objectMap, "sparkConfig", h.SparkConfig) populate(objectMap, "sparkJobLinkedService", h.SparkJobLinkedService) return json.Marshal(objectMap) @@ -23855,12 +24514,14 @@ func (h *HDInsightSparkActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type HDInsightStreamingActivity. func (h HDInsightStreamingActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightStreaming" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23893,9 +24554,15 @@ func (h *HDInsightStreamingActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23907,10 +24574,10 @@ func (h *HDInsightStreamingActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23925,18 +24592,18 @@ func (h *HDInsightStreamingActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightStreamingActivityTypeProperties. func (h HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) - populate(objectMap, "combiner", &h.Combiner) + populateAny(objectMap, "combiner", h.Combiner) populate(objectMap, "commandEnvironment", h.CommandEnvironment) populate(objectMap, "defines", h.Defines) populate(objectMap, "fileLinkedService", h.FileLinkedService) populate(objectMap, "filePaths", h.FilePaths) populate(objectMap, "getDebugInfo", h.GetDebugInfo) - populate(objectMap, "input", &h.Input) - populate(objectMap, "mapper", &h.Mapper) - populate(objectMap, "output", &h.Output) - populate(objectMap, "reducer", &h.Reducer) + populateAny(objectMap, "input", h.Input) + populateAny(objectMap, "mapper", h.Mapper) + populateAny(objectMap, "output", h.Output) + populateAny(objectMap, "reducer", h.Reducer) populate(objectMap, "storageLinkedServices", h.StorageLinkedServices) return json.Marshal(objectMap) } @@ -23996,14 +24663,14 @@ func (h *HDInsightStreamingActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type HTTPDataset. func (h HTTPDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "parameters", h.Parameters) - populate(objectMap, "schema", &h.Schema) - populate(objectMap, "structure", &h.Structure) + populateAny(objectMap, "schema", h.Schema) + populateAny(objectMap, "structure", h.Structure) objectMap["type"] = "HttpFile" populate(objectMap, "typeProperties", h.TypeProperties) if h.AdditionalProperties != nil { @@ -24052,10 +24719,10 @@ func (h *HTTPDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24070,13 +24737,13 @@ func (h *HTTPDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPDatasetTypeProperties. func (h HTTPDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalHeaders", &h.AdditionalHeaders) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalHeaders", h.AdditionalHeaders) populate(objectMap, "compression", h.Compression) populate(objectMap, "format", h.Format) - populate(objectMap, "relativeUrl", &h.RelativeURL) - populate(objectMap, "requestBody", &h.RequestBody) - populate(objectMap, "requestMethod", &h.RequestMethod) + populateAny(objectMap, "relativeUrl", h.RelativeURL) + populateAny(objectMap, "requestBody", h.RequestBody) + populateAny(objectMap, "requestMethod", h.RequestMethod) return json.Marshal(objectMap) } @@ -24117,7 +24784,7 @@ func (h *HTTPDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPLinkedService. func (h HTTPLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -24161,10 +24828,10 @@ func (h *HTTPLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24179,16 +24846,16 @@ func (h *HTTPLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPLinkedServiceTypeProperties. func (h HTTPLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authHeaders", &h.AuthHeaders) + objectMap := make(map[string]any) + populateAny(objectMap, "authHeaders", h.AuthHeaders) populate(objectMap, "authenticationType", h.AuthenticationType) - populate(objectMap, "certThumbprint", &h.CertThumbprint) - populate(objectMap, "embeddedCertData", &h.EmbeddedCertData) - populate(objectMap, "enableServerCertificateValidation", &h.EnableServerCertificateValidation) - populate(objectMap, "encryptedCredential", &h.EncryptedCredential) + populateAny(objectMap, "certThumbprint", h.CertThumbprint) + populateAny(objectMap, "embeddedCertData", h.EmbeddedCertData) + populateAny(objectMap, "enableServerCertificateValidation", h.EnableServerCertificateValidation) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populate(objectMap, "password", h.Password) - populate(objectMap, "url", &h.URL) - populate(objectMap, "userName", &h.UserName) + populateAny(objectMap, "url", h.URL) + populateAny(objectMap, "userName", h.UserName) return json.Marshal(objectMap) } @@ -24238,15 +24905,14 @@ func (h *HTTPLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPReadSettings. func (h HTTPReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalHeaders", &h.AdditionalHeaders) - populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", h.EnablePartitionDiscovery) - populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) - populate(objectMap, "partitionRootPath", &h.PartitionRootPath) - populate(objectMap, "requestBody", &h.RequestBody) - populate(objectMap, "requestMethod", &h.RequestMethod) - populate(objectMap, "requestTimeout", &h.RequestTimeout) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", h.AdditionalColumns) + populateAny(objectMap, "additionalHeaders", h.AdditionalHeaders) + populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) + populateAny(objectMap, "requestBody", h.RequestBody) + populateAny(objectMap, "requestMethod", h.RequestMethod) + populateAny(objectMap, "requestTimeout", h.RequestTimeout) objectMap["type"] = "HttpReadSettings" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -24265,21 +24931,18 @@ func (h *HTTPReadSettings) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &h.AdditionalColumns) + delete(rawMsg, key) case "additionalHeaders": err = unpopulate(val, "AdditionalHeaders", &h.AdditionalHeaders) delete(rawMsg, key) case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &h.DisableMetricsCollection) delete(rawMsg, key) - case "enablePartitionDiscovery": - err = unpopulate(val, "EnablePartitionDiscovery", &h.EnablePartitionDiscovery) - delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &h.MaxConcurrentConnections) delete(rawMsg, key) - case "partitionRootPath": - err = unpopulate(val, "PartitionRootPath", &h.PartitionRootPath) - delete(rawMsg, key) case "requestBody": err = unpopulate(val, "RequestBody", &h.RequestBody) delete(rawMsg, key) @@ -24294,10 +24957,10 @@ func (h *HTTPReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24312,10 +24975,10 @@ func (h *HTTPReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPServerLocation. func (h HTTPServerLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &h.FileName) - populate(objectMap, "folderPath", &h.FolderPath) - populate(objectMap, "relativeUrl", &h.RelativeURL) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", h.FileName) + populateAny(objectMap, "folderPath", h.FolderPath) + populateAny(objectMap, "relativeUrl", h.RelativeURL) objectMap["type"] = "HttpServerLocation" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -24348,10 +25011,10 @@ func (h *HTTPServerLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24366,12 +25029,12 @@ func (h *HTTPServerLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPSource. func (h HTTPSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &h.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &h.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &h.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", h.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", h.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", h.SourceRetryWait) objectMap["type"] = "HttpSource" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -24410,10 +25073,10 @@ func (h *HTTPSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24428,7 +25091,7 @@ func (h *HTTPSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsLinkedService. func (h HdfsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -24472,10 +25135,10 @@ func (h *HdfsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24490,12 +25153,12 @@ func (h *HdfsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsLinkedServiceTypeProperties. func (h HdfsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &h.AuthenticationType) - populate(objectMap, "encryptedCredential", &h.EncryptedCredential) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", h.AuthenticationType) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populate(objectMap, "password", h.Password) - populate(objectMap, "url", &h.URL) - populate(objectMap, "userName", &h.UserName) + populateAny(objectMap, "url", h.URL) + populateAny(objectMap, "userName", h.UserName) return json.Marshal(objectMap) } @@ -24533,9 +25196,9 @@ func (h *HdfsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsLocation. func (h HdfsLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &h.FileName) - populate(objectMap, "folderPath", &h.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", h.FileName) + populateAny(objectMap, "folderPath", h.FolderPath) objectMap["type"] = "HdfsLocation" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -24565,10 +25228,10 @@ func (h *HdfsLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24583,20 +25246,20 @@ func (h *HdfsLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsReadSettings. func (h HdfsReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &h.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", h.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) populate(objectMap, "distcpSettings", h.DistcpSettings) - populate(objectMap, "enablePartitionDiscovery", h.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &h.FileListPath) - populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &h.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &h.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &h.PartitionRootPath) - populate(objectMap, "recursive", &h.Recursive) + populateAny(objectMap, "enablePartitionDiscovery", h.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", h.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", h.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", h.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", h.PartitionRootPath) + populateAny(objectMap, "recursive", h.Recursive) objectMap["type"] = "HdfsReadSettings" - populate(objectMap, "wildcardFileName", &h.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &h.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", h.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", h.WildcardFolderPath) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -24655,10 +25318,10 @@ func (h *HdfsReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24673,13 +25336,13 @@ func (h *HdfsReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsSource. func (h HdfsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) populate(objectMap, "distcpSettings", h.DistcpSettings) - populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) - populate(objectMap, "recursive", &h.Recursive) - populate(objectMap, "sourceRetryCount", &h.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &h.SourceRetryWait) + populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) + populateAny(objectMap, "recursive", h.Recursive) + populateAny(objectMap, "sourceRetryCount", h.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", h.SourceRetryWait) objectMap["type"] = "HdfsSource" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -24721,10 +25384,10 @@ func (h *HdfsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24739,10 +25402,10 @@ func (h *HdfsSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", h.Schema) + populateAny(objectMap, "table", h.Table) + populateAny(objectMap, "tableName", h.TableName) return json.Marshal(objectMap) } @@ -24774,7 +25437,7 @@ func (h *HiveDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveLinkedService. func (h HiveLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -24818,10 +25481,10 @@ func (h *HiveLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24836,24 +25499,24 @@ func (h *HiveLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveLinkedServiceTypeProperties. func (h HiveLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowHostNameCNMismatch", &h.AllowHostNameCNMismatch) - populate(objectMap, "allowSelfSignedServerCert", &h.AllowSelfSignedServerCert) + objectMap := make(map[string]any) + populateAny(objectMap, "allowHostNameCNMismatch", h.AllowHostNameCNMismatch) + populateAny(objectMap, "allowSelfSignedServerCert", h.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", h.AuthenticationType) - populate(objectMap, "enableSsl", &h.EnableSSL) - populate(objectMap, "encryptedCredential", &h.EncryptedCredential) - populate(objectMap, "httpPath", &h.HTTPPath) - populate(objectMap, "host", &h.Host) + populateAny(objectMap, "enableSsl", h.EnableSSL) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) + populateAny(objectMap, "httpPath", h.HTTPPath) + populateAny(objectMap, "host", h.Host) populate(objectMap, "password", h.Password) - populate(objectMap, "port", &h.Port) + populateAny(objectMap, "port", h.Port) populate(objectMap, "serverType", h.ServerType) - populate(objectMap, "serviceDiscoveryMode", &h.ServiceDiscoveryMode) + populateAny(objectMap, "serviceDiscoveryMode", h.ServiceDiscoveryMode) populate(objectMap, "thriftTransportProtocol", h.ThriftTransportProtocol) - populate(objectMap, "trustedCertPath", &h.TrustedCertPath) - populate(objectMap, "useNativeQuery", &h.UseNativeQuery) - populate(objectMap, "useSystemTrustStore", &h.UseSystemTrustStore) - populate(objectMap, "username", &h.Username) - populate(objectMap, "zooKeeperNameSpace", &h.ZooKeeperNameSpace) + populateAny(objectMap, "trustedCertPath", h.TrustedCertPath) + populateAny(objectMap, "useNativeQuery", h.UseNativeQuery) + populateAny(objectMap, "useSystemTrustStore", h.UseSystemTrustStore) + populateAny(objectMap, "username", h.Username) + populateAny(objectMap, "zooKeeperNameSpace", h.ZooKeeperNameSpace) return json.Marshal(objectMap) } @@ -24927,14 +25590,14 @@ func (h *HiveLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveObjectDataset. func (h HiveObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "parameters", h.Parameters) - populate(objectMap, "schema", &h.Schema) - populate(objectMap, "structure", &h.Structure) + populateAny(objectMap, "schema", h.Schema) + populateAny(objectMap, "structure", h.Structure) objectMap["type"] = "HiveObject" populate(objectMap, "typeProperties", h.TypeProperties) if h.AdditionalProperties != nil { @@ -24983,10 +25646,10 @@ func (h *HiveObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -25001,14 +25664,14 @@ func (h *HiveObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveSource. func (h HiveSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &h.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) - populate(objectMap, "query", &h.Query) - populate(objectMap, "queryTimeout", &h.QueryTimeout) - populate(objectMap, "sourceRetryCount", &h.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &h.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", h.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) + populateAny(objectMap, "query", h.Query) + populateAny(objectMap, "queryTimeout", h.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", h.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", h.SourceRetryWait) objectMap["type"] = "HiveSource" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -25053,10 +25716,10 @@ func (h *HiveSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -25071,7 +25734,7 @@ func (h *HiveSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotLinkedService. func (h HubspotLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -25115,10 +25778,10 @@ func (h *HubspotLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -25133,15 +25796,15 @@ func (h *HubspotLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotLinkedServiceTypeProperties. func (h HubspotLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", h.AccessToken) - populate(objectMap, "clientId", &h.ClientID) + populateAny(objectMap, "clientId", h.ClientID) populate(objectMap, "clientSecret", h.ClientSecret) - populate(objectMap, "encryptedCredential", &h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populate(objectMap, "refreshToken", h.RefreshToken) - populate(objectMap, "useEncryptedEndpoints", &h.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &h.UseHostVerification) - populate(objectMap, "usePeerVerification", &h.UsePeerVerification) + populateAny(objectMap, "useEncryptedEndpoints", h.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", h.UseHostVerification) + populateAny(objectMap, "usePeerVerification", h.UsePeerVerification) return json.Marshal(objectMap) } @@ -25188,14 +25851,14 @@ func (h *HubspotLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotObjectDataset. func (h HubspotObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "parameters", h.Parameters) - populate(objectMap, "schema", &h.Schema) - populate(objectMap, "structure", &h.Structure) + populateAny(objectMap, "schema", h.Schema) + populateAny(objectMap, "structure", h.Structure) objectMap["type"] = "HubspotObject" populate(objectMap, "typeProperties", h.TypeProperties) if h.AdditionalProperties != nil { @@ -25244,10 +25907,10 @@ func (h *HubspotObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -25262,14 +25925,14 @@ func (h *HubspotObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotSource. func (h HubspotSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &h.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) - populate(objectMap, "query", &h.Query) - populate(objectMap, "queryTimeout", &h.QueryTimeout) - populate(objectMap, "sourceRetryCount", &h.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &h.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", h.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) + populateAny(objectMap, "query", h.Query) + populateAny(objectMap, "queryTimeout", h.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", h.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", h.SourceRetryWait) objectMap["type"] = "HubspotSource" if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { @@ -25314,10 +25977,10 @@ func (h *HubspotSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -25332,10 +25995,12 @@ func (h *HubspotSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IfConditionActivity. func (i IfConditionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", i.DependsOn) populate(objectMap, "description", i.Description) populate(objectMap, "name", i.Name) + populate(objectMap, "onInactiveMarkAs", i.OnInactiveMarkAs) + populate(objectMap, "state", i.State) objectMap["type"] = "IfCondition" populate(objectMap, "typeProperties", i.TypeProperties) populate(objectMap, "userProperties", i.UserProperties) @@ -25365,6 +26030,12 @@ func (i *IfConditionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &i.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &i.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &i.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &i.Type) delete(rawMsg, key) @@ -25376,10 +26047,10 @@ func (i *IfConditionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25394,7 +26065,7 @@ func (i *IfConditionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IfConditionActivityTypeProperties. func (i IfConditionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "expression", i.Expression) populate(objectMap, "ifFalseActivities", i.IfFalseActivities) populate(objectMap, "ifTrueActivities", i.IfTrueActivities) @@ -25429,10 +26100,10 @@ func (i *IfConditionActivityTypeProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", i.Schema) + populateAny(objectMap, "table", i.Table) + populateAny(objectMap, "tableName", i.TableName) return json.Marshal(objectMap) } @@ -25464,7 +26135,7 @@ func (i *ImpalaDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaLinkedService. func (i ImpalaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "connectVia", i.ConnectVia) populate(objectMap, "description", i.Description) @@ -25508,10 +26179,10 @@ func (i *ImpalaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25526,18 +26197,18 @@ func (i *ImpalaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaLinkedServiceTypeProperties. func (i ImpalaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowHostNameCNMismatch", &i.AllowHostNameCNMismatch) - populate(objectMap, "allowSelfSignedServerCert", &i.AllowSelfSignedServerCert) + objectMap := make(map[string]any) + populateAny(objectMap, "allowHostNameCNMismatch", i.AllowHostNameCNMismatch) + populateAny(objectMap, "allowSelfSignedServerCert", i.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", i.AuthenticationType) - populate(objectMap, "enableSsl", &i.EnableSSL) - populate(objectMap, "encryptedCredential", &i.EncryptedCredential) - populate(objectMap, "host", &i.Host) + populateAny(objectMap, "enableSsl", i.EnableSSL) + populate(objectMap, "encryptedCredential", i.EncryptedCredential) + populateAny(objectMap, "host", i.Host) populate(objectMap, "password", i.Password) - populate(objectMap, "port", &i.Port) - populate(objectMap, "trustedCertPath", &i.TrustedCertPath) - populate(objectMap, "useSystemTrustStore", &i.UseSystemTrustStore) - populate(objectMap, "username", &i.Username) + populateAny(objectMap, "port", i.Port) + populateAny(objectMap, "trustedCertPath", i.TrustedCertPath) + populateAny(objectMap, "useSystemTrustStore", i.UseSystemTrustStore) + populateAny(objectMap, "username", i.Username) return json.Marshal(objectMap) } @@ -25593,14 +26264,14 @@ func (i *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaObjectDataset. func (i ImpalaObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "description", i.Description) populate(objectMap, "folder", i.Folder) populate(objectMap, "linkedServiceName", i.LinkedServiceName) populate(objectMap, "parameters", i.Parameters) - populate(objectMap, "schema", &i.Schema) - populate(objectMap, "structure", &i.Structure) + populateAny(objectMap, "schema", i.Schema) + populateAny(objectMap, "structure", i.Structure) objectMap["type"] = "ImpalaObject" populate(objectMap, "typeProperties", i.TypeProperties) if i.AdditionalProperties != nil { @@ -25649,10 +26320,10 @@ func (i *ImpalaObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25667,14 +26338,14 @@ func (i *ImpalaObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaSource. func (i ImpalaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &i.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &i.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &i.MaxConcurrentConnections) - populate(objectMap, "query", &i.Query) - populate(objectMap, "queryTimeout", &i.QueryTimeout) - populate(objectMap, "sourceRetryCount", &i.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &i.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", i.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", i.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", i.MaxConcurrentConnections) + populateAny(objectMap, "query", i.Query) + populateAny(objectMap, "queryTimeout", i.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", i.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", i.SourceRetryWait) objectMap["type"] = "ImpalaSource" if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { @@ -25719,10 +26390,10 @@ func (i *ImpalaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25737,7 +26408,7 @@ func (i *ImpalaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImportSettings. func (i ImportSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = i.Type if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { @@ -25761,10 +26432,10 @@ func (i *ImportSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25779,7 +26450,7 @@ func (i *ImportSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixLinkedService. func (i InformixLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "connectVia", i.ConnectVia) populate(objectMap, "description", i.Description) @@ -25823,10 +26494,10 @@ func (i *InformixLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25841,13 +26512,13 @@ func (i *InformixLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixLinkedServiceTypeProperties. func (i InformixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &i.AuthenticationType) - populate(objectMap, "connectionString", &i.ConnectionString) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", i.AuthenticationType) + populateAny(objectMap, "connectionString", i.ConnectionString) populate(objectMap, "credential", i.Credential) - populate(objectMap, "encryptedCredential", &i.EncryptedCredential) + populate(objectMap, "encryptedCredential", i.EncryptedCredential) populate(objectMap, "password", i.Password) - populate(objectMap, "userName", &i.UserName) + populateAny(objectMap, "userName", i.UserName) return json.Marshal(objectMap) } @@ -25888,15 +26559,15 @@ func (i *InformixLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixSink. func (i InformixSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &i.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &i.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &i.PreCopyScript) - populate(objectMap, "sinkRetryCount", &i.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &i.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", i.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", i.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", i.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", i.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", i.SinkRetryWait) objectMap["type"] = "InformixSink" - populate(objectMap, "writeBatchSize", &i.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &i.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", i.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", i.WriteBatchTimeout) if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { objectMap[key] = val @@ -25940,10 +26611,10 @@ func (i *InformixSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25958,14 +26629,14 @@ func (i *InformixSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixSource. func (i InformixSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &i.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &i.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &i.MaxConcurrentConnections) - populate(objectMap, "query", &i.Query) - populate(objectMap, "queryTimeout", &i.QueryTimeout) - populate(objectMap, "sourceRetryCount", &i.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &i.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", i.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", i.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", i.MaxConcurrentConnections) + populateAny(objectMap, "query", i.Query) + populateAny(objectMap, "queryTimeout", i.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", i.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", i.SourceRetryWait) objectMap["type"] = "InformixSource" if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { @@ -26010,10 +26681,10 @@ func (i *InformixSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26028,14 +26699,14 @@ func (i *InformixSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixTableDataset. func (i InformixTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "description", i.Description) populate(objectMap, "folder", i.Folder) populate(objectMap, "linkedServiceName", i.LinkedServiceName) populate(objectMap, "parameters", i.Parameters) - populate(objectMap, "schema", &i.Schema) - populate(objectMap, "structure", &i.Structure) + populateAny(objectMap, "schema", i.Schema) + populateAny(objectMap, "structure", i.Structure) objectMap["type"] = "InformixTable" populate(objectMap, "typeProperties", i.TypeProperties) if i.AdditionalProperties != nil { @@ -26084,10 +26755,10 @@ func (i *InformixTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26102,8 +26773,8 @@ func (i *InformixTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", i.TableName) return json.Marshal(objectMap) } @@ -26129,7 +26800,7 @@ func (i *InformixTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntime. func (i IntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", i.Description) objectMap["type"] = i.Type if i.AdditionalProperties != nil { @@ -26157,10 +26828,10 @@ func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26175,7 +26846,7 @@ func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeAuthKeys. func (i IntegrationRuntimeAuthKeys) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authKey1", i.AuthKey1) populate(objectMap, "authKey2", i.AuthKey2) return json.Marshal(objectMap) @@ -26206,12 +26877,14 @@ func (i *IntegrationRuntimeAuthKeys) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeComputeProperties. func (i IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "copyComputeScaleProperties", i.CopyComputeScaleProperties) populate(objectMap, "dataFlowProperties", i.DataFlowProperties) populate(objectMap, "location", i.Location) populate(objectMap, "maxParallelExecutionsPerNode", i.MaxParallelExecutionsPerNode) populate(objectMap, "nodeSize", i.NodeSize) populate(objectMap, "numberOfNodes", i.NumberOfNodes) + populate(objectMap, "pipelineExternalComputeScaleProperties", i.PipelineExternalComputeScaleProperties) populate(objectMap, "vNetProperties", i.VNetProperties) if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { @@ -26230,6 +26903,9 @@ func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "copyComputeScaleProperties": + err = unpopulate(val, "CopyComputeScaleProperties", &i.CopyComputeScaleProperties) + delete(rawMsg, key) case "dataFlowProperties": err = unpopulate(val, "DataFlowProperties", &i.DataFlowProperties) delete(rawMsg, key) @@ -26245,15 +26921,18 @@ func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { case "numberOfNodes": err = unpopulate(val, "NumberOfNodes", &i.NumberOfNodes) delete(rawMsg, key) + case "pipelineExternalComputeScaleProperties": + err = unpopulate(val, "PipelineExternalComputeScaleProperties", &i.PipelineExternalComputeScaleProperties) + delete(rawMsg, key) case "vNetProperties": err = unpopulate(val, "VNetProperties", &i.VNetProperties) delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26268,7 +26947,7 @@ func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeConnectionInfo. func (i IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hostServiceUri", i.HostServiceURI) populate(objectMap, "identityCertThumbprint", i.IdentityCertThumbprint) populate(objectMap, "isIdentityCertExprired", i.IsIdentityCertExprired) @@ -26312,10 +26991,10 @@ func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26330,7 +27009,7 @@ func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. func (i IntegrationRuntimeCustomSetupScriptProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobContainerUri", i.BlobContainerURI) populate(objectMap, "sasToken", i.SasToken) return json.Marshal(objectMap) @@ -26361,7 +27040,7 @@ func (i *IntegrationRuntimeCustomSetupScriptProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomerVirtualNetwork. func (i IntegrationRuntimeCustomerVirtualNetwork) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "subnetId", i.SubnetID) return json.Marshal(objectMap) } @@ -26388,10 +27067,11 @@ func (i *IntegrationRuntimeCustomerVirtualNetwork) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataFlowProperties. func (i IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cleanup", i.Cleanup) populate(objectMap, "computeType", i.ComputeType) populate(objectMap, "coreCount", i.CoreCount) + populate(objectMap, "customProperties", i.CustomProperties) populate(objectMap, "timeToLive", i.TimeToLive) if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { @@ -26419,15 +27099,18 @@ func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error case "coreCount": err = unpopulate(val, "CoreCount", &i.CoreCount) delete(rawMsg, key) + case "customProperties": + err = unpopulate(val, "CustomProperties", &i.CustomProperties) + delete(rawMsg, key) case "timeToLive": err = unpopulate(val, "TimeToLive", &i.TimeToLive) delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26440,9 +27123,40 @@ func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. +func (i IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", i.Name) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. +func (i *IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataProxyProperties. func (i IntegrationRuntimeDataProxyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectVia", i.ConnectVia) populate(objectMap, "path", i.Path) populate(objectMap, "stagingLinkedService", i.StagingLinkedService) @@ -26477,7 +27191,7 @@ func (i *IntegrationRuntimeDataProxyProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDebugResource. func (i IntegrationRuntimeDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", i.Name) populate(objectMap, "properties", i.Properties) return json.Marshal(objectMap) @@ -26508,7 +27222,7 @@ func (i *IntegrationRuntimeDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeListResponse. func (i IntegrationRuntimeListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", i.NextLink) populate(objectMap, "value", i.Value) return json.Marshal(objectMap) @@ -26539,7 +27253,7 @@ func (i *IntegrationRuntimeListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeMonitoringData. func (i IntegrationRuntimeMonitoringData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", i.Name) populate(objectMap, "nodes", i.Nodes) return json.Marshal(objectMap) @@ -26570,7 +27284,7 @@ func (i *IntegrationRuntimeMonitoringData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeIPAddress. func (i IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ipAddress", i.IPAddress) return json.Marshal(objectMap) } @@ -26597,7 +27311,7 @@ func (i *IntegrationRuntimeNodeIPAddress) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeMonitoringData. func (i IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "availableMemoryInMB", i.AvailableMemoryInMB) populate(objectMap, "cpuUtilization", i.CPUUtilization) populate(objectMap, "concurrentJobsLimit", i.ConcurrentJobsLimit) @@ -26649,10 +27363,10 @@ func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26667,7 +27381,7 @@ func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. func (i IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "category", i.Category) populate(objectMap, "endpoints", i.Endpoints) return json.Marshal(objectMap) @@ -26698,7 +27412,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) Unmarsha // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpoint. func (i IntegrationRuntimeOutboundNetworkDependenciesEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "domainName", i.DomainName) populate(objectMap, "endpointDetails", i.EndpointDetails) return json.Marshal(objectMap) @@ -26729,7 +27443,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpoint) UnmarshalJSON(da // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "port", i.Port) return json.Marshal(objectMap) } @@ -26756,7 +27470,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) Unmarshal // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", i.Value) return json.Marshal(objectMap) } @@ -26783,7 +27497,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) Unmarsh // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeReference. func (i IntegrationRuntimeReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", i.Parameters) populate(objectMap, "referenceName", i.ReferenceName) populate(objectMap, "type", i.Type) @@ -26818,7 +27532,7 @@ func (i *IntegrationRuntimeReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeRegenerateKeyParameters. func (i IntegrationRuntimeRegenerateKeyParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyName", i.KeyName) return json.Marshal(objectMap) } @@ -26845,7 +27559,7 @@ func (i *IntegrationRuntimeRegenerateKeyParameters) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeResource. func (i IntegrationRuntimeResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", i.Etag) populate(objectMap, "id", i.ID) populate(objectMap, "name", i.Name) @@ -26888,7 +27602,7 @@ func (i *IntegrationRuntimeResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisCatalogInfo. func (i IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "catalogAdminPassword", i.CatalogAdminPassword) populate(objectMap, "catalogAdminUserName", i.CatalogAdminUserName) populate(objectMap, "catalogPricingTier", i.CatalogPricingTier) @@ -26928,10 +27642,10 @@ func (i *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26946,7 +27660,7 @@ func (i *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisProperties. func (i IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "catalogInfo", i.CatalogInfo) populate(objectMap, "credential", i.Credential) populate(objectMap, "customSetupScriptProperties", i.CustomSetupScriptProperties) @@ -26998,10 +27712,10 @@ func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -27016,7 +27730,7 @@ func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatus. func (i IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryName", i.DataFactoryName) populate(objectMap, "state", i.State) objectMap["type"] = i.Type @@ -27048,10 +27762,10 @@ func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -27064,40 +27778,9 @@ 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{}) + objectMap := make(map[string]any) populate(objectMap, "name", i.Name) populate(objectMap, "properties", i.Properties) return json.Marshal(objectMap) @@ -27128,7 +27811,7 @@ func (i *IntegrationRuntimeStatusResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeVNetProperties. func (i IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "publicIPs", i.PublicIPs) populate(objectMap, "subnet", i.Subnet) populate(objectMap, "subnetId", i.SubnetID) @@ -27164,10 +27847,10 @@ func (i *IntegrationRuntimeVNetProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -27182,14 +27865,14 @@ func (i *IntegrationRuntimeVNetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONDataset. func (j JSONDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", j.Annotations) populate(objectMap, "description", j.Description) populate(objectMap, "folder", j.Folder) populate(objectMap, "linkedServiceName", j.LinkedServiceName) populate(objectMap, "parameters", j.Parameters) - populate(objectMap, "schema", &j.Schema) - populate(objectMap, "structure", &j.Structure) + populateAny(objectMap, "schema", j.Schema) + populateAny(objectMap, "structure", j.Structure) objectMap["type"] = "Json" populate(objectMap, "typeProperties", j.TypeProperties) if j.AdditionalProperties != nil { @@ -27238,10 +27921,10 @@ func (j *JSONDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27256,9 +27939,9 @@ func (j *JSONDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONDatasetTypeProperties. func (j JSONDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", j.Compression) - populate(objectMap, "encodingName", &j.EncodingName) + populateAny(objectMap, "encodingName", j.EncodingName) populate(objectMap, "location", j.Location) return json.Marshal(objectMap) } @@ -27291,14 +27974,14 @@ func (j *JSONDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONFormat. func (j JSONFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deserializer", &j.Deserializer) - populate(objectMap, "encodingName", &j.EncodingName) - populate(objectMap, "filePattern", &j.FilePattern) - populate(objectMap, "jsonNodeReference", &j.JSONNodeReference) - populate(objectMap, "jsonPathDefinition", &j.JSONPathDefinition) - populate(objectMap, "nestingSeparator", &j.NestingSeparator) - populate(objectMap, "serializer", &j.Serializer) + objectMap := make(map[string]any) + populateAny(objectMap, "deserializer", j.Deserializer) + populateAny(objectMap, "encodingName", j.EncodingName) + populateAny(objectMap, "filePattern", j.FilePattern) + populateAny(objectMap, "jsonNodeReference", j.JSONNodeReference) + populateAny(objectMap, "jsonPathDefinition", j.JSONPathDefinition) + populateAny(objectMap, "nestingSeparator", j.NestingSeparator) + populateAny(objectMap, "serializer", j.Serializer) objectMap["type"] = "JsonFormat" if j.AdditionalProperties != nil { for key, val := range j.AdditionalProperties { @@ -27343,10 +28026,10 @@ func (j *JSONFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27361,7 +28044,7 @@ func (j *JSONFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONReadSettings. func (j JSONReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", j.CompressionProperties) objectMap["type"] = "JsonReadSettings" if j.AdditionalProperties != nil { @@ -27389,10 +28072,10 @@ func (j *JSONReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27407,16 +28090,16 @@ func (j *JSONReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONSink. func (j JSONSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &j.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", j.DisableMetricsCollection) populate(objectMap, "formatSettings", j.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &j.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &j.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &j.SinkRetryWait) + populateAny(objectMap, "maxConcurrentConnections", j.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", j.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", j.SinkRetryWait) populate(objectMap, "storeSettings", j.StoreSettings) objectMap["type"] = "JsonSink" - populate(objectMap, "writeBatchSize", &j.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &j.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", j.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", j.WriteBatchTimeout) if j.AdditionalProperties != nil { for key, val := range j.AdditionalProperties { objectMap[key] = val @@ -27463,10 +28146,10 @@ func (j *JSONSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27481,13 +28164,13 @@ func (j *JSONSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONSource. func (j JSONSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &j.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &j.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", j.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", j.DisableMetricsCollection) populate(objectMap, "formatSettings", j.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &j.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &j.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &j.SourceRetryWait) + populateAny(objectMap, "maxConcurrentConnections", j.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", j.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", j.SourceRetryWait) populate(objectMap, "storeSettings", j.StoreSettings) objectMap["type"] = "JsonSource" if j.AdditionalProperties != nil { @@ -27533,10 +28216,10 @@ func (j *JSONSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27551,8 +28234,8 @@ func (j *JSONSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONWriteSettings. func (j JSONWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "filePattern", &j.FilePattern) + objectMap := make(map[string]any) + populateAny(objectMap, "filePattern", j.FilePattern) objectMap["type"] = "JsonWriteSettings" if j.AdditionalProperties != nil { for key, val := range j.AdditionalProperties { @@ -27579,10 +28262,10 @@ func (j *JSONWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27597,7 +28280,7 @@ func (j *JSONWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraLinkedService. func (j JiraLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", j.Annotations) populate(objectMap, "connectVia", j.ConnectVia) populate(objectMap, "description", j.Description) @@ -27641,10 +28324,10 @@ func (j *JiraLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27659,15 +28342,15 @@ func (j *JiraLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraLinkedServiceTypeProperties. func (j JiraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &j.EncryptedCredential) - populate(objectMap, "host", &j.Host) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", j.EncryptedCredential) + populateAny(objectMap, "host", j.Host) populate(objectMap, "password", j.Password) - populate(objectMap, "port", &j.Port) - populate(objectMap, "useEncryptedEndpoints", &j.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &j.UseHostVerification) - populate(objectMap, "usePeerVerification", &j.UsePeerVerification) - populate(objectMap, "username", &j.Username) + populateAny(objectMap, "port", j.Port) + populateAny(objectMap, "useEncryptedEndpoints", j.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", j.UseHostVerification) + populateAny(objectMap, "usePeerVerification", j.UsePeerVerification) + populateAny(objectMap, "username", j.Username) return json.Marshal(objectMap) } @@ -27714,14 +28397,14 @@ func (j *JiraLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraObjectDataset. func (j JiraObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", j.Annotations) populate(objectMap, "description", j.Description) populate(objectMap, "folder", j.Folder) populate(objectMap, "linkedServiceName", j.LinkedServiceName) populate(objectMap, "parameters", j.Parameters) - populate(objectMap, "schema", &j.Schema) - populate(objectMap, "structure", &j.Structure) + populateAny(objectMap, "schema", j.Schema) + populateAny(objectMap, "structure", j.Structure) objectMap["type"] = "JiraObject" populate(objectMap, "typeProperties", j.TypeProperties) if j.AdditionalProperties != nil { @@ -27770,10 +28453,10 @@ func (j *JiraObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27788,14 +28471,14 @@ func (j *JiraObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraSource. func (j JiraSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &j.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &j.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &j.MaxConcurrentConnections) - populate(objectMap, "query", &j.Query) - populate(objectMap, "queryTimeout", &j.QueryTimeout) - populate(objectMap, "sourceRetryCount", &j.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &j.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", j.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", j.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", j.MaxConcurrentConnections) + populateAny(objectMap, "query", j.Query) + populateAny(objectMap, "queryTimeout", j.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", j.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", j.SourceRetryWait) objectMap["type"] = "JiraSource" if j.AdditionalProperties != nil { for key, val := range j.AdditionalProperties { @@ -27840,10 +28523,10 @@ func (j *JiraSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27856,9 +28539,569 @@ func (j *JiraSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type LakeHouseLinkedService. +func (l LakeHouseLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", l.Annotations) + populate(objectMap, "connectVia", l.ConnectVia) + populate(objectMap, "description", l.Description) + populate(objectMap, "parameters", l.Parameters) + objectMap["type"] = "LakeHouse" + populate(objectMap, "typeProperties", l.TypeProperties) + if l.AdditionalProperties != nil { + for key, val := range l.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseLinkedService. +func (l *LakeHouseLinkedService) UnmarshalJSON(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 "annotations": + err = unpopulate(val, "Annotations", &l.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &l.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &l.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &l.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &l.TypeProperties) + delete(rawMsg, key) + default: + if l.AdditionalProperties == nil { + l.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + l.AdditionalProperties[key] = aux + } + 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 LakeHouseLinkedServiceTypeProperties. +func (l LakeHouseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "artifactId", l.ArtifactID) + populate(objectMap, "encryptedCredential", l.EncryptedCredential) + populate(objectMap, "servicePrincipalCredential", l.ServicePrincipalCredential) + populateAny(objectMap, "servicePrincipalCredentialType", l.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalId", l.ServicePrincipalID) + populate(objectMap, "servicePrincipalKey", l.ServicePrincipalKey) + populateAny(objectMap, "tenant", l.Tenant) + populateAny(objectMap, "workspaceId", l.WorkspaceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseLinkedServiceTypeProperties. +func (l *LakeHouseLinkedServiceTypeProperties) UnmarshalJSON(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 "artifactId": + err = unpopulate(val, "ArtifactID", &l.ArtifactID) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &l.EncryptedCredential) + delete(rawMsg, key) + case "servicePrincipalCredential": + l.ServicePrincipalCredential, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "servicePrincipalCredentialType": + err = unpopulate(val, "ServicePrincipalCredentialType", &l.ServicePrincipalCredentialType) + delete(rawMsg, key) + case "servicePrincipalId": + err = unpopulate(val, "ServicePrincipalID", &l.ServicePrincipalID) + delete(rawMsg, key) + case "servicePrincipalKey": + l.ServicePrincipalKey, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "tenant": + err = unpopulate(val, "Tenant", &l.Tenant) + delete(rawMsg, key) + case "workspaceId": + err = unpopulate(val, "WorkspaceID", &l.WorkspaceID) + 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 LakeHouseLocation. +func (l LakeHouseLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", l.FileName) + populateAny(objectMap, "folderPath", l.FolderPath) + objectMap["type"] = "LakeHouseLocation" + if l.AdditionalProperties != nil { + for key, val := range l.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseLocation. +func (l *LakeHouseLocation) UnmarshalJSON(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 "fileName": + err = unpopulate(val, "FileName", &l.FileName) + delete(rawMsg, key) + case "folderPath": + err = unpopulate(val, "FolderPath", &l.FolderPath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + default: + if l.AdditionalProperties == nil { + l.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + l.AdditionalProperties[key] = aux + } + 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 LakeHouseReadSettings. +func (l LakeHouseReadSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", l.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", l.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", l.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", l.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", l.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", l.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", l.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", l.PartitionRootPath) + populateAny(objectMap, "recursive", l.Recursive) + objectMap["type"] = "LakeHouseReadSettings" + populateAny(objectMap, "wildcardFileName", l.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", l.WildcardFolderPath) + if l.AdditionalProperties != nil { + for key, val := range l.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseReadSettings. +func (l *LakeHouseReadSettings) UnmarshalJSON(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 "deleteFilesAfterCompletion": + err = unpopulate(val, "DeleteFilesAfterCompletion", &l.DeleteFilesAfterCompletion) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &l.DisableMetricsCollection) + delete(rawMsg, key) + case "enablePartitionDiscovery": + err = unpopulate(val, "EnablePartitionDiscovery", &l.EnablePartitionDiscovery) + delete(rawMsg, key) + case "fileListPath": + err = unpopulate(val, "FileListPath", &l.FileListPath) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &l.MaxConcurrentConnections) + delete(rawMsg, key) + case "modifiedDatetimeEnd": + err = unpopulate(val, "ModifiedDatetimeEnd", &l.ModifiedDatetimeEnd) + delete(rawMsg, key) + case "modifiedDatetimeStart": + err = unpopulate(val, "ModifiedDatetimeStart", &l.ModifiedDatetimeStart) + delete(rawMsg, key) + case "partitionRootPath": + err = unpopulate(val, "PartitionRootPath", &l.PartitionRootPath) + delete(rawMsg, key) + case "recursive": + err = unpopulate(val, "Recursive", &l.Recursive) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + case "wildcardFileName": + err = unpopulate(val, "WildcardFileName", &l.WildcardFileName) + delete(rawMsg, key) + case "wildcardFolderPath": + err = unpopulate(val, "WildcardFolderPath", &l.WildcardFolderPath) + delete(rawMsg, key) + default: + if l.AdditionalProperties == nil { + l.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + l.AdditionalProperties[key] = aux + } + 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 LakeHouseTableDataset. +func (l LakeHouseTableDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", l.Annotations) + populate(objectMap, "description", l.Description) + populate(objectMap, "folder", l.Folder) + populate(objectMap, "linkedServiceName", l.LinkedServiceName) + populate(objectMap, "parameters", l.Parameters) + populateAny(objectMap, "schema", l.Schema) + populateAny(objectMap, "structure", l.Structure) + objectMap["type"] = "LakeHouseTable" + populate(objectMap, "typeProperties", l.TypeProperties) + if l.AdditionalProperties != nil { + for key, val := range l.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseTableDataset. +func (l *LakeHouseTableDataset) UnmarshalJSON(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 "annotations": + err = unpopulate(val, "Annotations", &l.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &l.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &l.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &l.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &l.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &l.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &l.Structure) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &l.TypeProperties) + delete(rawMsg, key) + default: + if l.AdditionalProperties == nil { + l.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + l.AdditionalProperties[key] = aux + } + 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 LakeHouseTableDatasetTypeProperties. +func (l LakeHouseTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "table", l.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseTableDatasetTypeProperties. +func (l *LakeHouseTableDatasetTypeProperties) UnmarshalJSON(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 "table": + err = unpopulate(val, "Table", &l.Table) + 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 LakeHouseTableSink. +func (l LakeHouseTableSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", l.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", l.MaxConcurrentConnections) + populateAny(objectMap, "partitionNameList", l.PartitionNameList) + populateAny(objectMap, "partitionOption", l.PartitionOption) + populateAny(objectMap, "sinkRetryCount", l.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", l.SinkRetryWait) + populateAny(objectMap, "tableActionOption", l.TableActionOption) + objectMap["type"] = "LakeHouseTableSink" + populateAny(objectMap, "writeBatchSize", l.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", l.WriteBatchTimeout) + if l.AdditionalProperties != nil { + for key, val := range l.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseTableSink. +func (l *LakeHouseTableSink) UnmarshalJSON(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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &l.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &l.MaxConcurrentConnections) + delete(rawMsg, key) + case "partitionNameList": + err = unpopulate(val, "PartitionNameList", &l.PartitionNameList) + delete(rawMsg, key) + case "partitionOption": + err = unpopulate(val, "PartitionOption", &l.PartitionOption) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &l.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &l.SinkRetryWait) + delete(rawMsg, key) + case "tableActionOption": + err = unpopulate(val, "TableActionOption", &l.TableActionOption) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &l.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &l.WriteBatchTimeout) + delete(rawMsg, key) + default: + if l.AdditionalProperties == nil { + l.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + l.AdditionalProperties[key] = aux + } + 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 LakeHouseTableSource. +func (l LakeHouseTableSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", l.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", l.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", l.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", l.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", l.SourceRetryWait) + populateAny(objectMap, "timestampAsOf", l.TimestampAsOf) + objectMap["type"] = "LakeHouseTableSource" + populateAny(objectMap, "versionAsOf", l.VersionAsOf) + if l.AdditionalProperties != nil { + for key, val := range l.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseTableSource. +func (l *LakeHouseTableSource) UnmarshalJSON(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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &l.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &l.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &l.MaxConcurrentConnections) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &l.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &l.SourceRetryWait) + delete(rawMsg, key) + case "timestampAsOf": + err = unpopulate(val, "TimestampAsOf", &l.TimestampAsOf) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + case "versionAsOf": + err = unpopulate(val, "VersionAsOf", &l.VersionAsOf) + delete(rawMsg, key) + default: + if l.AdditionalProperties == nil { + l.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + l.AdditionalProperties[key] = aux + } + 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 LakeHouseWriteSettings. +func (l LakeHouseWriteSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", l.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", l.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", l.MaxConcurrentConnections) + populate(objectMap, "metadata", l.Metadata) + objectMap["type"] = "LakeHouseWriteSettings" + if l.AdditionalProperties != nil { + for key, val := range l.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LakeHouseWriteSettings. +func (l *LakeHouseWriteSettings) UnmarshalJSON(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 "copyBehavior": + err = unpopulate(val, "CopyBehavior", &l.CopyBehavior) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &l.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &l.MaxConcurrentConnections) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &l.Metadata) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + default: + if l.AdditionalProperties == nil { + l.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + l.AdditionalProperties[key] = aux + } + 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 LicensedComponentSetupTypeProperties. func (l LicensedComponentSetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "componentName", l.ComponentName) populate(objectMap, "licenseKey", l.LicenseKey) return json.Marshal(objectMap) @@ -27889,8 +29132,8 @@ func (l *LicensedComponentSetupTypeProperties) UnmarshalJSON(data []byte) error // 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) + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "createTime", l.CreateTime) populate(objectMap, "dataFactoryLocation", l.DataFactoryLocation) populate(objectMap, "dataFactoryName", l.DataFactoryName) populate(objectMap, "name", l.Name) @@ -27908,7 +29151,7 @@ func (l *LinkedIntegrationRuntime) UnmarshalJSON(data []byte) error { var err error switch key { case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &l.CreateTime) + err = unpopulateDateTimeRFC3339(val, "CreateTime", &l.CreateTime) delete(rawMsg, key) case "dataFactoryLocation": err = unpopulate(val, "DataFactoryLocation", &l.DataFactoryLocation) @@ -27932,7 +29175,7 @@ func (l *LinkedIntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. func (l LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authorizationType"] = "Key" populate(objectMap, "key", l.Key) return json.Marshal(objectMap) @@ -27963,7 +29206,7 @@ func (l *LinkedIntegrationRuntimeKeyAuthorization) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. func (l LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authorizationType"] = "RBAC" populate(objectMap, "credential", l.Credential) populate(objectMap, "resourceId", l.ResourceID) @@ -27998,7 +29241,7 @@ func (l *LinkedIntegrationRuntimeRbacAuthorization) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRequest. func (l LinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "factoryName", l.LinkedFactoryName) return json.Marshal(objectMap) } @@ -28025,7 +29268,7 @@ func (l *LinkedIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeType. func (l LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authorizationType"] = l.AuthorizationType return json.Marshal(objectMap) } @@ -28052,7 +29295,7 @@ func (l *LinkedIntegrationRuntimeType) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedService. func (l LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", l.Annotations) populate(objectMap, "connectVia", l.ConnectVia) populate(objectMap, "description", l.Description) @@ -28092,10 +29335,10 @@ func (l *LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if l.AdditionalProperties == nil { - l.AdditionalProperties = map[string]interface{}{} + l.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) l.AdditionalProperties[key] = aux } @@ -28110,7 +29353,7 @@ func (l *LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceDebugResource. func (l LinkedServiceDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", l.Name) populate(objectMap, "properties", l.Properties) return json.Marshal(objectMap) @@ -28141,7 +29384,7 @@ func (l *LinkedServiceDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceListResponse. func (l LinkedServiceListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", l.NextLink) populate(objectMap, "value", l.Value) return json.Marshal(objectMap) @@ -28172,7 +29415,7 @@ func (l *LinkedServiceListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceReference. func (l LinkedServiceReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", l.Parameters) populate(objectMap, "referenceName", l.ReferenceName) populate(objectMap, "type", l.Type) @@ -28207,7 +29450,7 @@ func (l *LinkedServiceReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceResource. func (l LinkedServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", l.Etag) populate(objectMap, "id", l.ID) populate(objectMap, "name", l.Name) @@ -28250,9 +29493,9 @@ func (l *LinkedServiceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogLocationSettings. func (l LogLocationSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "linkedServiceName", l.LinkedServiceName) - populate(objectMap, "path", &l.Path) + populateAny(objectMap, "path", l.Path) return json.Marshal(objectMap) } @@ -28281,9 +29524,9 @@ func (l *LogLocationSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogSettings. func (l LogSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyActivityLogSettings", l.CopyActivityLogSettings) - populate(objectMap, "enableCopyActivityLog", &l.EnableCopyActivityLog) + populateAny(objectMap, "enableCopyActivityLog", l.EnableCopyActivityLog) populate(objectMap, "logLocationSettings", l.LogLocationSettings) return json.Marshal(objectMap) } @@ -28316,11 +29559,11 @@ func (l *LogSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogStorageSettings. func (l LogStorageSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enableReliableLogging", &l.EnableReliableLogging) + objectMap := make(map[string]any) + populateAny(objectMap, "enableReliableLogging", l.EnableReliableLogging) populate(objectMap, "linkedServiceName", l.LinkedServiceName) - populate(objectMap, "logLevel", &l.LogLevel) - populate(objectMap, "path", &l.Path) + populateAny(objectMap, "logLevel", l.LogLevel) + populateAny(objectMap, "path", l.Path) if l.AdditionalProperties != nil { for key, val := range l.AdditionalProperties { objectMap[key] = val @@ -28352,10 +29595,10 @@ func (l *LogStorageSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if l.AdditionalProperties == nil { - l.AdditionalProperties = map[string]interface{}{} + l.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) l.AdditionalProperties[key] = aux } @@ -28370,12 +29613,14 @@ func (l *LogStorageSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LookupActivity. func (l LookupActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", l.DependsOn) populate(objectMap, "description", l.Description) populate(objectMap, "linkedServiceName", l.LinkedServiceName) populate(objectMap, "name", l.Name) + populate(objectMap, "onInactiveMarkAs", l.OnInactiveMarkAs) populate(objectMap, "policy", l.Policy) + populate(objectMap, "state", l.State) objectMap["type"] = "Lookup" populate(objectMap, "typeProperties", l.TypeProperties) populate(objectMap, "userProperties", l.UserProperties) @@ -28408,9 +29653,15 @@ func (l *LookupActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &l.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &l.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &l.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &l.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &l.Type) delete(rawMsg, key) @@ -28422,10 +29673,10 @@ func (l *LookupActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if l.AdditionalProperties == nil { - l.AdditionalProperties = map[string]interface{}{} + l.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) l.AdditionalProperties[key] = aux } @@ -28440,9 +29691,9 @@ func (l *LookupActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LookupActivityTypeProperties. func (l LookupActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", l.Dataset) - populate(objectMap, "firstRowOnly", &l.FirstRowOnly) + populateAny(objectMap, "firstRowOnly", l.FirstRowOnly) populate(objectMap, "source", l.Source) return json.Marshal(objectMap) } @@ -28475,7 +29726,7 @@ func (l *LookupActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoLinkedService. func (m MagentoLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -28519,10 +29770,10 @@ func (m *MagentoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28537,13 +29788,13 @@ func (m *MagentoLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoLinkedServiceTypeProperties. func (m MagentoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", m.AccessToken) - populate(objectMap, "encryptedCredential", &m.EncryptedCredential) - populate(objectMap, "host", &m.Host) - populate(objectMap, "useEncryptedEndpoints", &m.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &m.UseHostVerification) - populate(objectMap, "usePeerVerification", &m.UsePeerVerification) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) + populateAny(objectMap, "host", m.Host) + populateAny(objectMap, "useEncryptedEndpoints", m.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", m.UseHostVerification) + populateAny(objectMap, "usePeerVerification", m.UsePeerVerification) return json.Marshal(objectMap) } @@ -28584,14 +29835,14 @@ func (m *MagentoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoObjectDataset. func (m MagentoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MagentoObject" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -28640,10 +29891,10 @@ func (m *MagentoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28658,14 +29909,14 @@ func (m *MagentoObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoSource. func (m MagentoSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "query", &m.Query) - populate(objectMap, "queryTimeout", &m.QueryTimeout) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "query", m.Query) + populateAny(objectMap, "queryTimeout", m.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MagentoSource" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -28710,10 +29961,10 @@ func (m *MagentoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28728,11 +29979,10 @@ func (m *MagentoSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIdentityCredential. func (m ManagedIdentityCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) objectMap["type"] = "ManagedIdentity" - populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -28759,15 +30009,12 @@ func (m *ManagedIdentityCredential) UnmarshalJSON(data []byte) error { case "type": err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &m.TypeProperties) - delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28780,36 +30027,9 @@ 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{}) + objectMap := make(map[string]any) populate(objectMap, "description", m.Description) populate(objectMap, "managedVirtualNetwork", m.ManagedVirtualNetwork) populate(objectMap, "state", m.State) @@ -28849,10 +30069,10 @@ func (m *ManagedIntegrationRuntime) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28867,11 +30087,11 @@ func (m *ManagedIntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeError. func (m ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", m.Code) populate(objectMap, "message", m.Message) populate(objectMap, "parameters", m.Parameters) - populateTimeRFC3339(objectMap, "time", m.Time) + populateDateTimeRFC3339(objectMap, "time", m.Time) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -28899,14 +30119,14 @@ func (m *ManagedIntegrationRuntimeError) UnmarshalJSON(data []byte) error { err = unpopulate(val, "Parameters", &m.Parameters) delete(rawMsg, key) case "time": - err = unpopulateTimeRFC3339(val, "Time", &m.Time) + err = unpopulateDateTimeRFC3339(val, "Time", &m.Time) delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28921,7 +30141,7 @@ func (m *ManagedIntegrationRuntimeError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeNode. func (m ManagedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "errors", m.Errors) populate(objectMap, "nodeId", m.NodeID) populate(objectMap, "status", m.Status) @@ -28953,10 +30173,10 @@ func (m *ManagedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28971,12 +30191,12 @@ func (m *ManagedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeOperationResult. func (m ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateDateTimeRFC3339(objectMap, "startTime", m.StartTime) populate(objectMap, "type", m.Type) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -29008,17 +30228,17 @@ func (m *ManagedIntegrationRuntimeOperationResult) UnmarshalJSON(data []byte) er err = unpopulate(val, "Result", &m.Result) delete(rawMsg, key) case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &m.StartTime) + err = unpopulateDateTimeRFC3339(val, "StartTime", &m.StartTime) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29033,7 +30253,7 @@ func (m *ManagedIntegrationRuntimeOperationResult) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeStatus. func (m ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryName", m.DataFactoryName) populate(objectMap, "state", m.State) objectMap["type"] = IntegrationRuntimeTypeManaged @@ -29069,10 +30289,10 @@ func (m *ManagedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29087,8 +30307,8 @@ func (m *ManagedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "createTime", m.CreateTime) populate(objectMap, "lastOperation", m.LastOperation) populate(objectMap, "nodes", m.Nodes) populate(objectMap, "otherErrors", m.OtherErrors) @@ -29105,7 +30325,7 @@ func (m *ManagedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byt var err error switch key { case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &m.CreateTime) + err = unpopulateDateTimeRFC3339(val, "CreateTime", &m.CreateTime) delete(rawMsg, key) case "lastOperation": err = unpopulate(val, "LastOperation", &m.LastOperation) @@ -29126,7 +30346,7 @@ func (m *ManagedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeTypeProperties. func (m ManagedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeProperties", m.ComputeProperties) populate(objectMap, "customerVirtualNetwork", m.CustomerVirtualNetwork) populate(objectMap, "ssisProperties", m.SsisProperties) @@ -29161,7 +30381,7 @@ func (m *ManagedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpoint. func (m ManagedPrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionState", m.ConnectionState) populate(objectMap, "fqdns", m.Fqdns) populate(objectMap, "groupId", m.GroupID) @@ -29205,10 +30425,10 @@ func (m *ManagedPrivateEndpoint) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29223,7 +30443,7 @@ func (m *ManagedPrivateEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointListResponse. func (m ManagedPrivateEndpointListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", m.NextLink) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) @@ -29254,7 +30474,7 @@ func (m *ManagedPrivateEndpointListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointResource. func (m ManagedPrivateEndpointResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", m.Etag) populate(objectMap, "id", m.ID) populate(objectMap, "name", m.Name) @@ -29297,7 +30517,7 @@ func (m *ManagedPrivateEndpointResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetwork. func (m ManagedVirtualNetwork) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alias", m.Alias) populate(objectMap, "vNetId", m.VNetID) if m.AdditionalProperties != nil { @@ -29325,10 +30545,10 @@ func (m *ManagedVirtualNetwork) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29343,7 +30563,7 @@ func (m *ManagedVirtualNetwork) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkListResponse. func (m ManagedVirtualNetworkListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", m.NextLink) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) @@ -29374,7 +30594,7 @@ func (m *ManagedVirtualNetworkListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkReference. func (m ManagedVirtualNetworkReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", m.ReferenceName) populate(objectMap, "type", m.Type) return json.Marshal(objectMap) @@ -29405,7 +30625,7 @@ func (m *ManagedVirtualNetworkReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkResource. func (m ManagedVirtualNetworkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", m.Etag) populate(objectMap, "id", m.ID) populate(objectMap, "name", m.Name) @@ -29446,9 +30666,448 @@ func (m *ManagedVirtualNetworkResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MapperAttributeMapping. +func (m MapperAttributeMapping) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "attributeReference", m.AttributeReference) + populate(objectMap, "attributeReferences", m.AttributeReferences) + populate(objectMap, "expression", m.Expression) + populate(objectMap, "functionName", m.FunctionName) + populate(objectMap, "name", m.Name) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperAttributeMapping. +func (m *MapperAttributeMapping) UnmarshalJSON(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 "attributeReference": + err = unpopulate(val, "AttributeReference", &m.AttributeReference) + delete(rawMsg, key) + case "attributeReferences": + err = unpopulate(val, "AttributeReferences", &m.AttributeReferences) + delete(rawMsg, key) + case "expression": + err = unpopulate(val, "Expression", &m.Expression) + delete(rawMsg, key) + case "functionName": + err = unpopulate(val, "FunctionName", &m.FunctionName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + 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 MapperAttributeMappings. +func (m MapperAttributeMappings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "attributeMappings", m.AttributeMappings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperAttributeMappings. +func (m *MapperAttributeMappings) UnmarshalJSON(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 "attributeMappings": + err = unpopulate(val, "AttributeMappings", &m.AttributeMappings) + 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 MapperAttributeReference. +func (m MapperAttributeReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "entity", m.Entity) + populate(objectMap, "entityConnectionReference", m.EntityConnectionReference) + populate(objectMap, "name", m.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperAttributeReference. +func (m *MapperAttributeReference) UnmarshalJSON(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 "entity": + err = unpopulate(val, "Entity", &m.Entity) + delete(rawMsg, key) + case "entityConnectionReference": + err = unpopulate(val, "EntityConnectionReference", &m.EntityConnectionReference) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + 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 MapperConnection. +func (m MapperConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "commonDslConnectorProperties", m.CommonDslConnectorProperties) + populate(objectMap, "isInlineDataset", m.IsInlineDataset) + populate(objectMap, "linkedService", m.LinkedService) + populate(objectMap, "linkedServiceType", m.LinkedServiceType) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperConnection. +func (m *MapperConnection) UnmarshalJSON(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 "commonDslConnectorProperties": + err = unpopulate(val, "CommonDslConnectorProperties", &m.CommonDslConnectorProperties) + delete(rawMsg, key) + case "isInlineDataset": + err = unpopulate(val, "IsInlineDataset", &m.IsInlineDataset) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &m.LinkedService) + delete(rawMsg, key) + case "linkedServiceType": + err = unpopulate(val, "LinkedServiceType", &m.LinkedServiceType) + 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 MapperConnectionReference. +func (m MapperConnectionReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectionName", m.ConnectionName) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperConnectionReference. +func (m *MapperConnectionReference) UnmarshalJSON(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 "connectionName": + err = unpopulate(val, "ConnectionName", &m.ConnectionName) + 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 MapperDslConnectorProperties. +func (m MapperDslConnectorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", m.Name) + populateAny(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperDslConnectorProperties. +func (m *MapperDslConnectorProperties) UnmarshalJSON(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 MapperPolicy. +func (m MapperPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "mode", m.Mode) + populate(objectMap, "recurrence", m.Recurrence) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperPolicy. +func (m *MapperPolicy) UnmarshalJSON(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 "mode": + err = unpopulate(val, "Mode", &m.Mode) + delete(rawMsg, key) + case "recurrence": + err = unpopulate(val, "Recurrence", &m.Recurrence) + 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 MapperPolicyRecurrence. +func (m MapperPolicyRecurrence) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "frequency", m.Frequency) + populate(objectMap, "interval", m.Interval) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperPolicyRecurrence. +func (m *MapperPolicyRecurrence) UnmarshalJSON(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 "frequency": + err = unpopulate(val, "Frequency", &m.Frequency) + delete(rawMsg, key) + case "interval": + err = unpopulate(val, "Interval", &m.Interval) + 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 MapperSourceConnectionsInfo. +func (m MapperSourceConnectionsInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connection", m.Connection) + populate(objectMap, "sourceEntities", m.SourceEntities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperSourceConnectionsInfo. +func (m *MapperSourceConnectionsInfo) UnmarshalJSON(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 "connection": + err = unpopulate(val, "Connection", &m.Connection) + delete(rawMsg, key) + case "sourceEntities": + err = unpopulate(val, "SourceEntities", &m.SourceEntities) + 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 MapperTable. +func (m MapperTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperTable. +func (m *MapperTable) UnmarshalJSON(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 "properties": + err = unpopulate(val, "Properties", &m.Properties) + 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 MapperTableProperties. +func (m MapperTableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dslConnectorProperties", m.DslConnectorProperties) + populate(objectMap, "schema", m.Schema) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperTableProperties. +func (m *MapperTableProperties) UnmarshalJSON(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 "dslConnectorProperties": + err = unpopulate(val, "DslConnectorProperties", &m.DslConnectorProperties) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &m.Schema) + 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 MapperTableSchema. +func (m MapperTableSchema) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataType", m.DataType) + populate(objectMap, "name", m.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperTableSchema. +func (m *MapperTableSchema) UnmarshalJSON(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 "dataType": + err = unpopulate(val, "DataType", &m.DataType) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + 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 MapperTargetConnectionsInfo. +func (m MapperTargetConnectionsInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connection", m.Connection) + populate(objectMap, "dataMapperMappings", m.DataMapperMappings) + populate(objectMap, "relationships", m.Relationships) + populate(objectMap, "targetEntities", m.TargetEntities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MapperTargetConnectionsInfo. +func (m *MapperTargetConnectionsInfo) UnmarshalJSON(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 "connection": + err = unpopulate(val, "Connection", &m.Connection) + delete(rawMsg, key) + case "dataMapperMappings": + err = unpopulate(val, "DataMapperMappings", &m.DataMapperMappings) + delete(rawMsg, key) + case "relationships": + err = unpopulate(val, "Relationships", &m.Relationships) + delete(rawMsg, key) + case "targetEntities": + err = unpopulate(val, "TargetEntities", &m.TargetEntities) + 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{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -29491,7 +31150,7 @@ func (m *MappingDataFlow) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MappingDataFlowTypeProperties. func (m MappingDataFlowTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "script", m.Script) populate(objectMap, "scriptLines", m.ScriptLines) populate(objectMap, "sinks", m.Sinks) @@ -29534,7 +31193,7 @@ func (m *MappingDataFlowTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MariaDBLinkedService. func (m MariaDBLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -29578,10 +31237,10 @@ func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29596,10 +31255,15 @@ func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", m.ConnectionString) + populateAny(objectMap, "database", m.Database) + populateAny(objectMap, "driverVersion", m.DriverVersion) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) + populate(objectMap, "password", m.Password) + populateAny(objectMap, "port", m.Port) + populateAny(objectMap, "server", m.Server) + populateAny(objectMap, "username", m.Username) return json.Marshal(objectMap) } @@ -29615,11 +31279,26 @@ func (m *MariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { case "connectionString": err = unpopulate(val, "ConnectionString", &m.ConnectionString) delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &m.Database) + delete(rawMsg, key) + case "driverVersion": + err = unpopulate(val, "DriverVersion", &m.DriverVersion) + delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &m.EncryptedCredential) delete(rawMsg, key) - case "pwd": - err = unpopulate(val, "Pwd", &m.Pwd) + case "password": + err = unpopulate(val, "Password", &m.Password) + delete(rawMsg, key) + case "port": + err = unpopulate(val, "Port", &m.Port) + delete(rawMsg, key) + case "server": + err = unpopulate(val, "Server", &m.Server) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &m.Username) delete(rawMsg, key) } if err != nil { @@ -29631,14 +31310,14 @@ func (m *MariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MariaDBSource. func (m MariaDBSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "query", &m.Query) - populate(objectMap, "queryTimeout", &m.QueryTimeout) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "query", m.Query) + populateAny(objectMap, "queryTimeout", m.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MariaDBSource" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -29683,10 +31362,10 @@ func (m *MariaDBSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29701,14 +31380,14 @@ func (m *MariaDBSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MariaDBTableDataset. func (m MariaDBTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MariaDBTable" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -29757,10 +31436,10 @@ func (m *MariaDBTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29775,7 +31454,7 @@ func (m *MariaDBTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoLinkedService. func (m MarketoLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -29819,10 +31498,10 @@ func (m *MarketoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29837,14 +31516,14 @@ func (m *MarketoLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoLinkedServiceTypeProperties. func (m MarketoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &m.ClientID) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", m.ClientID) populate(objectMap, "clientSecret", m.ClientSecret) - populate(objectMap, "encryptedCredential", &m.EncryptedCredential) - populate(objectMap, "endpoint", &m.Endpoint) - populate(objectMap, "useEncryptedEndpoints", &m.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &m.UseHostVerification) - populate(objectMap, "usePeerVerification", &m.UsePeerVerification) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) + populateAny(objectMap, "endpoint", m.Endpoint) + populateAny(objectMap, "useEncryptedEndpoints", m.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", m.UseHostVerification) + populateAny(objectMap, "usePeerVerification", m.UsePeerVerification) return json.Marshal(objectMap) } @@ -29888,14 +31567,14 @@ func (m *MarketoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoObjectDataset. func (m MarketoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MarketoObject" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -29944,10 +31623,10 @@ func (m *MarketoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29962,14 +31641,14 @@ func (m *MarketoObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoSource. func (m MarketoSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "query", &m.Query) - populate(objectMap, "queryTimeout", &m.QueryTimeout) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "query", m.Query) + populateAny(objectMap, "queryTimeout", m.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MarketoSource" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -30014,10 +31693,10 @@ func (m *MarketoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30032,9 +31711,9 @@ func (m *MarketoSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "name", m.Name) + populateAny(objectMap, "value", m.Value) return json.Marshal(objectMap) } @@ -30063,7 +31742,7 @@ func (m *MetadataItem) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessLinkedService. func (m MicrosoftAccessLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -30107,10 +31786,10 @@ func (m *MicrosoftAccessLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30125,13 +31804,13 @@ func (m *MicrosoftAccessLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessLinkedServiceTypeProperties. func (m MicrosoftAccessLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &m.AuthenticationType) - populate(objectMap, "connectionString", &m.ConnectionString) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", m.AuthenticationType) + populateAny(objectMap, "connectionString", m.ConnectionString) populate(objectMap, "credential", m.Credential) - populate(objectMap, "encryptedCredential", &m.EncryptedCredential) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "password", m.Password) - populate(objectMap, "userName", &m.UserName) + populateAny(objectMap, "userName", m.UserName) return json.Marshal(objectMap) } @@ -30172,15 +31851,15 @@ func (m *MicrosoftAccessLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessSink. func (m MicrosoftAccessSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &m.PreCopyScript) - populate(objectMap, "sinkRetryCount", &m.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &m.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", m.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", m.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", m.SinkRetryWait) objectMap["type"] = "MicrosoftAccessSink" - populate(objectMap, "writeBatchSize", &m.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &m.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", m.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", m.WriteBatchTimeout) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -30224,10 +31903,10 @@ func (m *MicrosoftAccessSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30242,13 +31921,13 @@ func (m *MicrosoftAccessSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessSource. func (m MicrosoftAccessSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "query", &m.Query) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "query", m.Query) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MicrosoftAccessSource" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -30290,10 +31969,10 @@ func (m *MicrosoftAccessSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30308,14 +31987,14 @@ func (m *MicrosoftAccessSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessTableDataset. func (m MicrosoftAccessTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MicrosoftAccessTable" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -30364,10 +32043,10 @@ func (m *MicrosoftAccessTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30382,8 +32061,8 @@ func (m *MicrosoftAccessTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", m.TableName) return json.Marshal(objectMap) } @@ -30409,14 +32088,14 @@ func (m *MicrosoftAccessTableDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasCollectionDataset. func (m MongoDbAtlasCollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MongoDbAtlasCollection" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -30465,10 +32144,10 @@ func (m *MongoDbAtlasCollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30483,8 +32162,8 @@ func (m *MongoDbAtlasCollectionDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "collection", m.Collection) return json.Marshal(objectMap) } @@ -30510,7 +32189,7 @@ func (m *MongoDbAtlasCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasLinkedService. func (m MongoDbAtlasLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -30554,10 +32233,10 @@ func (m *MongoDbAtlasLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30572,9 +32251,10 @@ func (m *MongoDbAtlasLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", m.ConnectionString) + populateAny(objectMap, "database", m.Database) + populateAny(objectMap, "driverVersion", m.DriverVersion) return json.Marshal(objectMap) } @@ -30593,6 +32273,9 @@ func (m *MongoDbAtlasLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err case "database": err = unpopulate(val, "Database", &m.Database) delete(rawMsg, key) + case "driverVersion": + err = unpopulate(val, "DriverVersion", &m.DriverVersion) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -30603,15 +32286,15 @@ func (m *MongoDbAtlasLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasSink. func (m MongoDbAtlasSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &m.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &m.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", m.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", m.SinkRetryWait) objectMap["type"] = "MongoDbAtlasSink" - populate(objectMap, "writeBatchSize", &m.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &m.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &m.WriteBehavior) + populateAny(objectMap, "writeBatchSize", m.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", m.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", m.WriteBehavior) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -30655,10 +32338,10 @@ func (m *MongoDbAtlasSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30673,16 +32356,16 @@ func (m *MongoDbAtlasSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasSource. func (m MongoDbAtlasSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "batchSize", &m.BatchSize) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "batchSize", m.BatchSize) populate(objectMap, "cursorMethods", m.CursorMethods) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "filter", &m.Filter) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "queryTimeout", &m.QueryTimeout) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "filter", m.Filter) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", m.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MongoDbAtlasSource" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -30733,10 +32416,10 @@ func (m *MongoDbAtlasSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30751,14 +32434,14 @@ func (m *MongoDbAtlasSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionDataset. func (m MongoDbCollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MongoDbCollection" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -30807,10 +32490,10 @@ func (m *MongoDbCollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30825,8 +32508,8 @@ func (m *MongoDbCollectionDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "collectionName", m.CollectionName) return json.Marshal(objectMap) } @@ -30852,11 +32535,11 @@ func (m *MongoDbCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type MongoDbCursorMethodsProperties. func (m MongoDbCursorMethodsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "limit", &m.Limit) - populate(objectMap, "project", &m.Project) - populate(objectMap, "skip", &m.Skip) - populate(objectMap, "sort", &m.Sort) + objectMap := make(map[string]any) + populateAny(objectMap, "limit", m.Limit) + populateAny(objectMap, "project", m.Project) + populateAny(objectMap, "skip", m.Skip) + populateAny(objectMap, "sort", m.Sort) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -30888,10 +32571,10 @@ func (m *MongoDbCursorMethodsProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30906,7 +32589,7 @@ func (m *MongoDbCursorMethodsProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbLinkedService. func (m MongoDbLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -30950,10 +32633,10 @@ func (m *MongoDbLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30968,17 +32651,17 @@ func (m *MongoDbLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbLinkedServiceTypeProperties. func (m MongoDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowSelfSignedServerCert", &m.AllowSelfSignedServerCert) - populate(objectMap, "authSource", &m.AuthSource) + objectMap := make(map[string]any) + populateAny(objectMap, "allowSelfSignedServerCert", m.AllowSelfSignedServerCert) + populateAny(objectMap, "authSource", m.AuthSource) populate(objectMap, "authenticationType", m.AuthenticationType) - populate(objectMap, "databaseName", &m.DatabaseName) - populate(objectMap, "enableSsl", &m.EnableSSL) - populate(objectMap, "encryptedCredential", &m.EncryptedCredential) + populateAny(objectMap, "databaseName", m.DatabaseName) + populateAny(objectMap, "enableSsl", m.EnableSSL) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "password", m.Password) - populate(objectMap, "port", &m.Port) - populate(objectMap, "server", &m.Server) - populate(objectMap, "username", &m.Username) + populateAny(objectMap, "port", m.Port) + populateAny(objectMap, "server", m.Server) + populateAny(objectMap, "username", m.Username) return json.Marshal(objectMap) } @@ -31031,13 +32714,13 @@ func (m *MongoDbLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbSource. func (m MongoDbSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "query", &m.Query) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "query", m.Query) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MongoDbSource" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -31079,10 +32762,10 @@ func (m *MongoDbSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31097,14 +32780,14 @@ func (m *MongoDbSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbV2CollectionDataset. func (m MongoDbV2CollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MongoDbV2Collection" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -31153,10 +32836,10 @@ func (m *MongoDbV2CollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31171,8 +32854,8 @@ func (m *MongoDbV2CollectionDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "collection", m.Collection) return json.Marshal(objectMap) } @@ -31198,7 +32881,7 @@ func (m *MongoDbV2CollectionDatasetTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type MongoDbV2LinkedService. func (m MongoDbV2LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -31242,10 +32925,10 @@ func (m *MongoDbV2LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31260,9 +32943,9 @@ func (m *MongoDbV2LinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", m.ConnectionString) + populateAny(objectMap, "database", m.Database) return json.Marshal(objectMap) } @@ -31291,15 +32974,15 @@ func (m *MongoDbV2LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type MongoDbV2Sink. func (m MongoDbV2Sink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &m.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &m.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", m.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", m.SinkRetryWait) objectMap["type"] = "MongoDbV2Sink" - populate(objectMap, "writeBatchSize", &m.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &m.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &m.WriteBehavior) + populateAny(objectMap, "writeBatchSize", m.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", m.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", m.WriteBehavior) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -31343,10 +33026,10 @@ func (m *MongoDbV2Sink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31361,16 +33044,16 @@ func (m *MongoDbV2Sink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbV2Source. func (m MongoDbV2Source) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "batchSize", &m.BatchSize) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "batchSize", m.BatchSize) populate(objectMap, "cursorMethods", m.CursorMethods) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "filter", &m.Filter) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "queryTimeout", &m.QueryTimeout) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "filter", m.Filter) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", m.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MongoDbV2Source" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -31421,10 +33104,10 @@ func (m *MongoDbV2Source) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31439,7 +33122,7 @@ func (m *MongoDbV2Source) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MultiplePipelineTrigger. func (m MultiplePipelineTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "pipelines", m.Pipelines) @@ -31479,10 +33162,10 @@ func (m *MultiplePipelineTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31497,7 +33180,7 @@ func (m *MultiplePipelineTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLLinkedService. func (m MySQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -31541,10 +33224,10 @@ func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31559,10 +33242,17 @@ func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", m.ConnectionString) + populateAny(objectMap, "database", m.Database) + populateAny(objectMap, "driverVersion", m.DriverVersion) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "password", m.Password) + populateAny(objectMap, "port", m.Port) + populateAny(objectMap, "sslMode", m.SSLMode) + populateAny(objectMap, "server", m.Server) + populateAny(objectMap, "useSystemTrustStore", m.UseSystemTrustStore) + populateAny(objectMap, "username", m.Username) return json.Marshal(objectMap) } @@ -31578,12 +33268,33 @@ func (m *MySQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { case "connectionString": err = unpopulate(val, "ConnectionString", &m.ConnectionString) delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &m.Database) + delete(rawMsg, key) + case "driverVersion": + err = unpopulate(val, "DriverVersion", &m.DriverVersion) + 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) + case "port": + err = unpopulate(val, "Port", &m.Port) + delete(rawMsg, key) + case "sslMode": + err = unpopulate(val, "SSLMode", &m.SSLMode) + delete(rawMsg, key) + case "server": + err = unpopulate(val, "Server", &m.Server) + delete(rawMsg, key) + case "useSystemTrustStore": + err = unpopulate(val, "UseSystemTrustStore", &m.UseSystemTrustStore) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &m.Username) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -31594,14 +33305,14 @@ func (m *MySQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLSource. func (m MySQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &m.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) - populate(objectMap, "query", &m.Query) - populate(objectMap, "queryTimeout", &m.QueryTimeout) - populate(objectMap, "sourceRetryCount", &m.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &m.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", m.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", m.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", m.MaxConcurrentConnections) + populateAny(objectMap, "query", m.Query) + populateAny(objectMap, "queryTimeout", m.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", m.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", m.SourceRetryWait) objectMap["type"] = "MySqlSource" if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { @@ -31646,10 +33357,10 @@ func (m *MySQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31664,14 +33375,14 @@ func (m *MySQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLTableDataset. func (m MySQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) populate(objectMap, "linkedServiceName", m.LinkedServiceName) populate(objectMap, "parameters", m.Parameters) - populate(objectMap, "schema", &m.Schema) - populate(objectMap, "structure", &m.Structure) + populateAny(objectMap, "schema", m.Schema) + populateAny(objectMap, "structure", m.Structure) objectMap["type"] = "MySqlTable" populate(objectMap, "typeProperties", m.TypeProperties) if m.AdditionalProperties != nil { @@ -31720,10 +33431,10 @@ func (m *MySQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31738,8 +33449,8 @@ func (m *MySQLTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", m.TableName) return json.Marshal(objectMap) } @@ -31765,7 +33476,7 @@ func (m *MySQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaLinkedService. func (n NetezzaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", n.Annotations) populate(objectMap, "connectVia", n.ConnectVia) populate(objectMap, "description", n.Description) @@ -31809,10 +33520,10 @@ func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if n.AdditionalProperties == nil { - n.AdditionalProperties = map[string]interface{}{} + n.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) n.AdditionalProperties[key] = aux } @@ -31827,9 +33538,9 @@ func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", n.ConnectionString) + populate(objectMap, "encryptedCredential", n.EncryptedCredential) populate(objectMap, "pwd", n.Pwd) return json.Marshal(objectMap) } @@ -31862,10 +33573,10 @@ func (n *NetezzaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "partitionColumnName", n.PartitionColumnName) + populateAny(objectMap, "partitionLowerBound", n.PartitionLowerBound) + populateAny(objectMap, "partitionUpperBound", n.PartitionUpperBound) return json.Marshal(objectMap) } @@ -31897,16 +33608,16 @@ func (n *NetezzaPartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaSource. func (n NetezzaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &n.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &n.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &n.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &n.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", n.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", n.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", n.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", n.PartitionOption) populate(objectMap, "partitionSettings", n.PartitionSettings) - populate(objectMap, "query", &n.Query) - populate(objectMap, "queryTimeout", &n.QueryTimeout) - populate(objectMap, "sourceRetryCount", &n.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &n.SourceRetryWait) + populateAny(objectMap, "query", n.Query) + populateAny(objectMap, "queryTimeout", n.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", n.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", n.SourceRetryWait) objectMap["type"] = "NetezzaSource" if n.AdditionalProperties != nil { for key, val := range n.AdditionalProperties { @@ -31957,10 +33668,10 @@ func (n *NetezzaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if n.AdditionalProperties == nil { - n.AdditionalProperties = map[string]interface{}{} + n.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) n.AdditionalProperties[key] = aux } @@ -31975,14 +33686,14 @@ func (n *NetezzaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaTableDataset. func (n NetezzaTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", n.Annotations) populate(objectMap, "description", n.Description) populate(objectMap, "folder", n.Folder) populate(objectMap, "linkedServiceName", n.LinkedServiceName) populate(objectMap, "parameters", n.Parameters) - populate(objectMap, "schema", &n.Schema) - populate(objectMap, "structure", &n.Structure) + populateAny(objectMap, "schema", n.Schema) + populateAny(objectMap, "structure", n.Structure) objectMap["type"] = "NetezzaTable" populate(objectMap, "typeProperties", n.TypeProperties) if n.AdditionalProperties != nil { @@ -32031,10 +33742,10 @@ func (n *NetezzaTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if n.AdditionalProperties == nil { - n.AdditionalProperties = map[string]interface{}{} + n.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) n.AdditionalProperties[key] = aux } @@ -32049,10 +33760,10 @@ func (n *NetezzaTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", n.Schema) + populateAny(objectMap, "table", n.Table) + populateAny(objectMap, "tableName", n.TableName) return json.Marshal(objectMap) } @@ -32084,9 +33795,9 @@ func (n *NetezzaTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NotebookParameter. func (n NotebookParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", n.Type) - populate(objectMap, "value", &n.Value) + populateAny(objectMap, "value", n.Value) return json.Marshal(objectMap) } @@ -32115,7 +33826,7 @@ func (n *NotebookParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataLinkedService. func (o ODataLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -32159,10 +33870,10 @@ func (o *ODataLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32177,21 +33888,21 @@ func (o *ODataLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataLinkedServiceTypeProperties. func (o ODataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aadResourceId", &o.AADResourceID) + objectMap := make(map[string]any) + populateAny(objectMap, "aadResourceId", o.AADResourceID) populate(objectMap, "aadServicePrincipalCredentialType", o.AADServicePrincipalCredentialType) - populate(objectMap, "authHeaders", &o.AuthHeaders) + populateAny(objectMap, "authHeaders", o.AuthHeaders) populate(objectMap, "authenticationType", o.AuthenticationType) - populate(objectMap, "azureCloudType", &o.AzureCloudType) - populate(objectMap, "encryptedCredential", &o.EncryptedCredential) + populateAny(objectMap, "azureCloudType", o.AzureCloudType) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "password", o.Password) populate(objectMap, "servicePrincipalEmbeddedCert", o.ServicePrincipalEmbeddedCert) populate(objectMap, "servicePrincipalEmbeddedCertPassword", o.ServicePrincipalEmbeddedCertPassword) - populate(objectMap, "servicePrincipalId", &o.ServicePrincipalID) + populateAny(objectMap, "servicePrincipalId", o.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", o.ServicePrincipalKey) - populate(objectMap, "tenant", &o.Tenant) - populate(objectMap, "url", &o.URL) - populate(objectMap, "userName", &o.UserName) + populateAny(objectMap, "tenant", o.Tenant) + populateAny(objectMap, "url", o.URL) + populateAny(objectMap, "userName", o.UserName) return json.Marshal(objectMap) } @@ -32256,14 +33967,14 @@ func (o *ODataLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataResourceDataset. func (o ODataResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) populate(objectMap, "linkedServiceName", o.LinkedServiceName) populate(objectMap, "parameters", o.Parameters) - populate(objectMap, "schema", &o.Schema) - populate(objectMap, "structure", &o.Structure) + populateAny(objectMap, "schema", o.Schema) + populateAny(objectMap, "structure", o.Structure) objectMap["type"] = "ODataResource" populate(objectMap, "typeProperties", o.TypeProperties) if o.AdditionalProperties != nil { @@ -32312,10 +34023,10 @@ func (o *ODataResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32330,8 +34041,8 @@ func (o *ODataResourceDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "path", o.Path) return json.Marshal(objectMap) } @@ -32357,14 +34068,14 @@ func (o *ODataResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataSource. func (o ODataSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &o.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &o.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "query", &o.Query) - populate(objectMap, "sourceRetryCount", &o.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &o.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", o.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", o.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "query", o.Query) + populateAny(objectMap, "sourceRetryCount", o.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", o.SourceRetryWait) objectMap["type"] = "ODataSource" if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { @@ -32409,10 +34120,10 @@ func (o *ODataSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32427,7 +34138,7 @@ func (o *ODataSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcLinkedService. func (o OdbcLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -32471,10 +34182,10 @@ func (o *OdbcLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32489,13 +34200,13 @@ func (o *OdbcLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcLinkedServiceTypeProperties. func (o OdbcLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationType", &o.AuthenticationType) - populate(objectMap, "connectionString", &o.ConnectionString) + objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", o.AuthenticationType) + populateAny(objectMap, "connectionString", o.ConnectionString) populate(objectMap, "credential", o.Credential) - populate(objectMap, "encryptedCredential", &o.EncryptedCredential) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "password", o.Password) - populate(objectMap, "userName", &o.UserName) + populateAny(objectMap, "userName", o.UserName) return json.Marshal(objectMap) } @@ -32536,15 +34247,15 @@ func (o *OdbcLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcSink. func (o OdbcSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &o.PreCopyScript) - populate(objectMap, "sinkRetryCount", &o.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &o.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", o.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", o.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", o.SinkRetryWait) objectMap["type"] = "OdbcSink" - populate(objectMap, "writeBatchSize", &o.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &o.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", o.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", o.WriteBatchTimeout) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -32588,10 +34299,10 @@ func (o *OdbcSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32606,14 +34317,14 @@ func (o *OdbcSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcSource. func (o OdbcSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &o.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "query", &o.Query) - populate(objectMap, "queryTimeout", &o.QueryTimeout) - populate(objectMap, "sourceRetryCount", &o.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &o.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", o.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "query", o.Query) + populateAny(objectMap, "queryTimeout", o.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", o.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", o.SourceRetryWait) objectMap["type"] = "OdbcSource" if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { @@ -32658,10 +34369,10 @@ func (o *OdbcSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32676,14 +34387,14 @@ func (o *OdbcSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcTableDataset. func (o OdbcTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) populate(objectMap, "linkedServiceName", o.LinkedServiceName) populate(objectMap, "parameters", o.Parameters) - populate(objectMap, "schema", &o.Schema) - populate(objectMap, "structure", &o.Structure) + populateAny(objectMap, "schema", o.Schema) + populateAny(objectMap, "structure", o.Structure) objectMap["type"] = "OdbcTable" populate(objectMap, "typeProperties", o.TypeProperties) if o.AdditionalProperties != nil { @@ -32732,10 +34443,10 @@ func (o *OdbcTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32750,8 +34461,8 @@ func (o *OdbcTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", o.TableName) return json.Marshal(objectMap) } @@ -32777,14 +34488,14 @@ func (o *OdbcTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365Dataset. func (o Office365Dataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) populate(objectMap, "linkedServiceName", o.LinkedServiceName) populate(objectMap, "parameters", o.Parameters) - populate(objectMap, "schema", &o.Schema) - populate(objectMap, "structure", &o.Structure) + populateAny(objectMap, "schema", o.Schema) + populateAny(objectMap, "structure", o.Structure) objectMap["type"] = "Office365Table" populate(objectMap, "typeProperties", o.TypeProperties) if o.AdditionalProperties != nil { @@ -32833,10 +34544,10 @@ func (o *Office365Dataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32851,9 +34562,9 @@ func (o *Office365Dataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365DatasetTypeProperties. func (o Office365DatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "predicate", &o.Predicate) - populate(objectMap, "tableName", &o.TableName) + objectMap := make(map[string]any) + populateAny(objectMap, "predicate", o.Predicate) + populateAny(objectMap, "tableName", o.TableName) return json.Marshal(objectMap) } @@ -32882,7 +34593,7 @@ func (o *Office365DatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365LinkedService. func (o Office365LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -32926,10 +34637,10 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32944,12 +34655,12 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365LinkedServiceTypeProperties. func (o Office365LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &o.EncryptedCredential) - populate(objectMap, "office365TenantId", &o.Office365TenantID) - populate(objectMap, "servicePrincipalId", &o.ServicePrincipalID) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) + populateAny(objectMap, "office365TenantId", o.Office365TenantID) + populateAny(objectMap, "servicePrincipalId", o.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", o.ServicePrincipalKey) - populate(objectMap, "servicePrincipalTenantId", &o.ServicePrincipalTenantID) + populateAny(objectMap, "servicePrincipalTenantId", o.ServicePrincipalTenantID) return json.Marshal(objectMap) } @@ -32987,18 +34698,18 @@ func (o *Office365LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // 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 := make(map[string]any) + populateAny(objectMap, "allowedGroups", o.AllowedGroups) + populateAny(objectMap, "dateFilterColumn", o.DateFilterColumn) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "endTime", o.EndTime) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "outputColumns", o.OutputColumns) + populateAny(objectMap, "sourceRetryCount", o.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", o.SourceRetryWait) + populateAny(objectMap, "startTime", o.StartTime) objectMap["type"] = "Office365Source" - populate(objectMap, "userScopeFilterUri", &o.UserScopeFilterURI) + populateAny(objectMap, "userScopeFilterUri", o.UserScopeFilterURI) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -33051,10 +34762,10 @@ func (o *Office365Source) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33069,7 +34780,7 @@ func (o *Office365Source) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", o.Display) populate(objectMap, "name", o.Name) populate(objectMap, "origin", o.Origin) @@ -33108,7 +34819,7 @@ func (o *Operation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationDisplay. func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -33147,7 +34858,7 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationListResponse. func (o OperationListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -33178,7 +34889,7 @@ func (o *OperationListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationLogSpecification. func (o OperationLogSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", o.BlobDuration) populate(objectMap, "displayName", o.DisplayName) populate(objectMap, "name", o.Name) @@ -33213,7 +34924,7 @@ func (o *OperationLogSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationMetricAvailability. func (o OperationMetricAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", o.BlobDuration) populate(objectMap, "timeGrain", o.TimeGrain) return json.Marshal(objectMap) @@ -33244,7 +34955,7 @@ func (o *OperationMetricAvailability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationMetricDimension. func (o OperationMetricDimension) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayName", o.DisplayName) populate(objectMap, "name", o.Name) populate(objectMap, "toBeExportedForShoebox", o.ToBeExportedForShoebox) @@ -33279,7 +34990,7 @@ func (o *OperationMetricDimension) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationMetricSpecification. func (o OperationMetricSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aggregationType", o.AggregationType) populate(objectMap, "availabilities", o.Availabilities) populate(objectMap, "dimensions", o.Dimensions) @@ -33342,7 +35053,7 @@ func (o *OperationMetricSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationProperties. func (o OperationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "serviceSpecification", o.ServiceSpecification) return json.Marshal(objectMap) } @@ -33369,7 +35080,7 @@ func (o *OperationProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationServiceSpecification. func (o OperationServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSpecifications", o.LogSpecifications) populate(objectMap, "metricSpecifications", o.MetricSpecifications) return json.Marshal(objectMap) @@ -33400,7 +35111,7 @@ func (o *OperationServiceSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLinkedService. func (o OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -33444,10 +35155,10 @@ func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33462,11 +35173,11 @@ func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLinkedServiceTypeProperties. func (o OracleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessKeyId", &o.AccessKeyID) - populate(objectMap, "encryptedCredential", &o.EncryptedCredential) + objectMap := make(map[string]any) + populateAny(objectMap, "accessKeyId", o.AccessKeyID) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "secretAccessKey", o.SecretAccessKey) - populate(objectMap, "serviceUrl", &o.ServiceURL) + populateAny(objectMap, "serviceUrl", o.ServiceURL) return json.Marshal(objectMap) } @@ -33501,12 +35212,12 @@ func (o *OracleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLocation. func (o OracleCloudStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bucketName", &o.BucketName) - populate(objectMap, "fileName", &o.FileName) - populate(objectMap, "folderPath", &o.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "bucketName", o.BucketName) + populateAny(objectMap, "fileName", o.FileName) + populateAny(objectMap, "folderPath", o.FolderPath) objectMap["type"] = "OracleCloudStorageLocation" - populate(objectMap, "version", &o.Version) + populateAny(objectMap, "version", o.Version) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -33541,10 +35252,10 @@ func (o *OracleCloudStorageLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33559,20 +35270,20 @@ func (o *OracleCloudStorageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageReadSettings. func (o OracleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &o.DeleteFilesAfterCompletion) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", o.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &o.FileListPath) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &o.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &o.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &o.PartitionRootPath) - populate(objectMap, "prefix", &o.Prefix) - populate(objectMap, "recursive", &o.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", o.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", o.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", o.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", o.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", o.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", o.PartitionRootPath) + populateAny(objectMap, "prefix", o.Prefix) + populateAny(objectMap, "recursive", o.Recursive) objectMap["type"] = "OracleCloudStorageReadSettings" - populate(objectMap, "wildcardFileName", &o.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &o.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", o.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", o.WildcardFolderPath) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -33631,10 +35342,10 @@ func (o *OracleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33649,7 +35360,7 @@ func (o *OracleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleLinkedService. func (o OracleLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -33693,10 +35404,10 @@ func (o *OracleLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33711,9 +35422,9 @@ func (o *OracleLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", o.ConnectionString) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "password", o.Password) return json.Marshal(objectMap) } @@ -33746,11 +35457,11 @@ func (o *OracleLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "partitionColumnName", o.PartitionColumnName) + populateAny(objectMap, "partitionLowerBound", o.PartitionLowerBound) + populateAny(objectMap, "partitionNames", o.PartitionNames) + populateAny(objectMap, "partitionUpperBound", o.PartitionUpperBound) return json.Marshal(objectMap) } @@ -33785,7 +35496,7 @@ func (o *OraclePartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudLinkedService. func (o OracleServiceCloudLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -33829,10 +35540,10 @@ func (o *OracleServiceCloudLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33847,14 +35558,14 @@ func (o *OracleServiceCloudLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudLinkedServiceTypeProperties. func (o OracleServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &o.EncryptedCredential) - populate(objectMap, "host", &o.Host) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) + populateAny(objectMap, "host", o.Host) populate(objectMap, "password", o.Password) - populate(objectMap, "useEncryptedEndpoints", &o.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &o.UseHostVerification) - populate(objectMap, "usePeerVerification", &o.UsePeerVerification) - populate(objectMap, "username", &o.Username) + populateAny(objectMap, "useEncryptedEndpoints", o.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", o.UseHostVerification) + populateAny(objectMap, "usePeerVerification", o.UsePeerVerification) + populateAny(objectMap, "username", o.Username) return json.Marshal(objectMap) } @@ -33898,14 +35609,14 @@ func (o *OracleServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudObjectDataset. func (o OracleServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) populate(objectMap, "linkedServiceName", o.LinkedServiceName) populate(objectMap, "parameters", o.Parameters) - populate(objectMap, "schema", &o.Schema) - populate(objectMap, "structure", &o.Structure) + populateAny(objectMap, "schema", o.Schema) + populateAny(objectMap, "structure", o.Structure) objectMap["type"] = "OracleServiceCloudObject" populate(objectMap, "typeProperties", o.TypeProperties) if o.AdditionalProperties != nil { @@ -33954,10 +35665,10 @@ func (o *OracleServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33972,14 +35683,14 @@ func (o *OracleServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudSource. func (o OracleServiceCloudSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &o.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "query", &o.Query) - populate(objectMap, "queryTimeout", &o.QueryTimeout) - populate(objectMap, "sourceRetryCount", &o.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &o.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", o.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "query", o.Query) + populateAny(objectMap, "queryTimeout", o.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", o.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", o.SourceRetryWait) objectMap["type"] = "OracleServiceCloudSource" if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { @@ -34024,10 +35735,10 @@ func (o *OracleServiceCloudSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34042,15 +35753,15 @@ func (o *OracleServiceCloudSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleSink. func (o OracleSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &o.PreCopyScript) - populate(objectMap, "sinkRetryCount", &o.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &o.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", o.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", o.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", o.SinkRetryWait) objectMap["type"] = "OracleSink" - populate(objectMap, "writeBatchSize", &o.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &o.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", o.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", o.WriteBatchTimeout) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -34094,10 +35805,10 @@ func (o *OracleSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34112,16 +35823,16 @@ func (o *OracleSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleSource. func (o OracleSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &o.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "oracleReaderQuery", &o.OracleReaderQuery) - populate(objectMap, "partitionOption", &o.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", o.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "oracleReaderQuery", o.OracleReaderQuery) + populateAny(objectMap, "partitionOption", o.PartitionOption) populate(objectMap, "partitionSettings", o.PartitionSettings) - populate(objectMap, "queryTimeout", &o.QueryTimeout) - populate(objectMap, "sourceRetryCount", &o.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &o.SourceRetryWait) + populateAny(objectMap, "queryTimeout", o.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", o.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", o.SourceRetryWait) objectMap["type"] = "OracleSource" if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { @@ -34172,10 +35883,10 @@ func (o *OracleSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34190,14 +35901,14 @@ func (o *OracleSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleTableDataset. func (o OracleTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) populate(objectMap, "linkedServiceName", o.LinkedServiceName) populate(objectMap, "parameters", o.Parameters) - populate(objectMap, "schema", &o.Schema) - populate(objectMap, "structure", &o.Structure) + populateAny(objectMap, "schema", o.Schema) + populateAny(objectMap, "structure", o.Structure) objectMap["type"] = "OracleTable" populate(objectMap, "typeProperties", o.TypeProperties) if o.AdditionalProperties != nil { @@ -34246,10 +35957,10 @@ func (o *OracleTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34264,10 +35975,10 @@ func (o *OracleTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", o.Schema) + populateAny(objectMap, "table", o.Table) + populateAny(objectMap, "tableName", o.TableName) return json.Marshal(objectMap) } @@ -34299,14 +36010,14 @@ func (o *OracleTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcDataset. func (o OrcDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) populate(objectMap, "linkedServiceName", o.LinkedServiceName) populate(objectMap, "parameters", o.Parameters) - populate(objectMap, "schema", &o.Schema) - populate(objectMap, "structure", &o.Structure) + populateAny(objectMap, "schema", o.Schema) + populateAny(objectMap, "structure", o.Structure) objectMap["type"] = "Orc" populate(objectMap, "typeProperties", o.TypeProperties) if o.AdditionalProperties != nil { @@ -34355,10 +36066,10 @@ func (o *OrcDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34373,9 +36084,9 @@ func (o *OrcDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcDatasetTypeProperties. func (o OrcDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", o.Location) - populate(objectMap, "orcCompressionCodec", &o.OrcCompressionCodec) + populateAny(objectMap, "orcCompressionCodec", o.OrcCompressionCodec) return json.Marshal(objectMap) } @@ -34404,9 +36115,9 @@ func (o *OrcDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcFormat. func (o OrcFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deserializer", &o.Deserializer) - populate(objectMap, "serializer", &o.Serializer) + objectMap := make(map[string]any) + populateAny(objectMap, "deserializer", o.Deserializer) + populateAny(objectMap, "serializer", o.Serializer) objectMap["type"] = "OrcFormat" if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { @@ -34436,10 +36147,10 @@ func (o *OrcFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34454,16 +36165,16 @@ func (o *OrcFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcSink. func (o OrcSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) populate(objectMap, "formatSettings", o.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &o.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &o.SinkRetryWait) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", o.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", o.SinkRetryWait) populate(objectMap, "storeSettings", o.StoreSettings) objectMap["type"] = "OrcSink" - populate(objectMap, "writeBatchSize", &o.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &o.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", o.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", o.WriteBatchTimeout) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -34510,10 +36221,10 @@ func (o *OrcSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34528,12 +36239,12 @@ func (o *OrcSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcSource. func (o OrcSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &o.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &o.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &o.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", o.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", o.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", o.SourceRetryWait) populate(objectMap, "storeSettings", o.StoreSettings) objectMap["type"] = "OrcSource" if o.AdditionalProperties != nil { @@ -34576,10 +36287,10 @@ func (o *OrcSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34594,9 +36305,9 @@ func (o *OrcSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcWriteSettings. func (o OrcWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileNamePrefix", &o.FileNamePrefix) - populate(objectMap, "maxRowsPerFile", &o.MaxRowsPerFile) + objectMap := make(map[string]any) + populateAny(objectMap, "fileNamePrefix", o.FileNamePrefix) + populateAny(objectMap, "maxRowsPerFile", o.MaxRowsPerFile) objectMap["type"] = "OrcWriteSettings" if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { @@ -34626,10 +36337,10 @@ func (o *OrcWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34644,7 +36355,7 @@ func (o *OrcWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PackageStore. func (p PackageStore) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", p.Name) populate(objectMap, "packageStoreLinkedService", p.PackageStoreLinkedService) return json.Marshal(objectMap) @@ -34675,8 +36386,8 @@ func (p *PackageStore) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "defaultValue", p.DefaultValue) populate(objectMap, "type", p.Type) return json.Marshal(objectMap) } @@ -34706,14 +36417,14 @@ func (p *ParameterSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetDataset. func (p ParquetDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "structure", p.Structure) objectMap["type"] = "Parquet" populate(objectMap, "typeProperties", p.TypeProperties) if p.AdditionalProperties != nil { @@ -34762,10 +36473,10 @@ func (p *ParquetDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34780,8 +36491,8 @@ func (p *ParquetDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetDatasetTypeProperties. func (p ParquetDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "compressionCodec", &p.CompressionCodec) + objectMap := make(map[string]any) + populateAny(objectMap, "compressionCodec", p.CompressionCodec) populate(objectMap, "location", p.Location) return json.Marshal(objectMap) } @@ -34811,9 +36522,9 @@ func (p *ParquetDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetFormat. func (p ParquetFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deserializer", &p.Deserializer) - populate(objectMap, "serializer", &p.Serializer) + objectMap := make(map[string]any) + populateAny(objectMap, "deserializer", p.Deserializer) + populateAny(objectMap, "serializer", p.Serializer) objectMap["type"] = "ParquetFormat" if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -34843,10 +36554,56 @@ func (p *ParquetFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any + 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 ParquetReadSettings. +func (p ParquetReadSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "compressionProperties", p.CompressionProperties) + objectMap["type"] = "ParquetReadSettings" + 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 ParquetReadSettings. +func (p *ParquetReadSettings) UnmarshalJSON(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 "compressionProperties": + p.CompressionProperties, err = unmarshalCompressionReadSettingsClassification(val) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34861,16 +36618,16 @@ func (p *ParquetFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetSink. func (p ParquetSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", p.DisableMetricsCollection) populate(objectMap, "formatSettings", p.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &p.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &p.SinkRetryWait) + populateAny(objectMap, "maxConcurrentConnections", p.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", p.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", p.SinkRetryWait) populate(objectMap, "storeSettings", p.StoreSettings) objectMap["type"] = "ParquetSink" - populate(objectMap, "writeBatchSize", &p.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &p.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", p.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", p.WriteBatchTimeout) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -34917,10 +36674,10 @@ func (p *ParquetSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34935,12 +36692,13 @@ func (p *ParquetSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetSource. func (p ParquetSource) 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, "sourceRetryCount", &p.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &p.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", p.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", p.DisableMetricsCollection) + populate(objectMap, "formatSettings", p.FormatSettings) + populateAny(objectMap, "maxConcurrentConnections", p.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", p.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", p.SourceRetryWait) populate(objectMap, "storeSettings", p.StoreSettings) objectMap["type"] = "ParquetSource" if p.AdditionalProperties != nil { @@ -34966,6 +36724,9 @@ func (p *ParquetSource) UnmarshalJSON(data []byte) error { case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &p.DisableMetricsCollection) delete(rawMsg, key) + case "formatSettings": + err = unpopulate(val, "FormatSettings", &p.FormatSettings) + delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &p.MaxConcurrentConnections) delete(rawMsg, key) @@ -34983,10 +36744,10 @@ func (p *ParquetSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35001,9 +36762,9 @@ func (p *ParquetSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetWriteSettings. func (p ParquetWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileNamePrefix", &p.FileNamePrefix) - populate(objectMap, "maxRowsPerFile", &p.MaxRowsPerFile) + objectMap := make(map[string]any) + populateAny(objectMap, "fileNamePrefix", p.FileNamePrefix) + populateAny(objectMap, "maxRowsPerFile", p.MaxRowsPerFile) objectMap["type"] = "ParquetWriteSettings" if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -35033,10 +36794,10 @@ func (p *ParquetWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35051,7 +36812,7 @@ func (p *ParquetWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalLinkedService. func (p PaypalLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) @@ -35095,10 +36856,10 @@ func (p *PaypalLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35113,14 +36874,14 @@ func (p *PaypalLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalLinkedServiceTypeProperties. func (p PaypalLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &p.ClientID) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", p.ClientID) populate(objectMap, "clientSecret", p.ClientSecret) - populate(objectMap, "encryptedCredential", &p.EncryptedCredential) - populate(objectMap, "host", &p.Host) - populate(objectMap, "useEncryptedEndpoints", &p.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &p.UseHostVerification) - populate(objectMap, "usePeerVerification", &p.UsePeerVerification) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) + populateAny(objectMap, "host", p.Host) + populateAny(objectMap, "useEncryptedEndpoints", p.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", p.UseHostVerification) + populateAny(objectMap, "usePeerVerification", p.UsePeerVerification) return json.Marshal(objectMap) } @@ -35164,14 +36925,14 @@ func (p *PaypalLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalObjectDataset. func (p PaypalObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "structure", p.Structure) objectMap["type"] = "PaypalObject" populate(objectMap, "typeProperties", p.TypeProperties) if p.AdditionalProperties != nil { @@ -35220,10 +36981,10 @@ func (p *PaypalObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35238,14 +36999,14 @@ func (p *PaypalObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalSource. func (p PaypalSource) 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 := make(map[string]any) + populateAny(objectMap, "additionalColumns", p.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", p.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", p.MaxConcurrentConnections) + populateAny(objectMap, "query", p.Query) + populateAny(objectMap, "queryTimeout", p.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", p.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", p.SourceRetryWait) objectMap["type"] = "PaypalSource" if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -35290,10 +37051,10 @@ func (p *PaypalSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35308,10 +37069,10 @@ func (p *PaypalSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "table", p.Table) + populateAny(objectMap, "tableName", p.TableName) return json.Marshal(objectMap) } @@ -35343,7 +37104,7 @@ func (p *PhoenixDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixLinkedService. func (p PhoenixLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) @@ -35387,10 +37148,10 @@ func (p *PhoenixLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35405,19 +37166,19 @@ func (p *PhoenixLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixLinkedServiceTypeProperties. func (p PhoenixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowHostNameCNMismatch", &p.AllowHostNameCNMismatch) - populate(objectMap, "allowSelfSignedServerCert", &p.AllowSelfSignedServerCert) + objectMap := make(map[string]any) + populateAny(objectMap, "allowHostNameCNMismatch", p.AllowHostNameCNMismatch) + populateAny(objectMap, "allowSelfSignedServerCert", p.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", p.AuthenticationType) - populate(objectMap, "enableSsl", &p.EnableSSL) - populate(objectMap, "encryptedCredential", &p.EncryptedCredential) - populate(objectMap, "httpPath", &p.HTTPPath) - populate(objectMap, "host", &p.Host) + populateAny(objectMap, "enableSsl", p.EnableSSL) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) + populateAny(objectMap, "httpPath", p.HTTPPath) + populateAny(objectMap, "host", p.Host) populate(objectMap, "password", p.Password) - populate(objectMap, "port", &p.Port) - populate(objectMap, "trustedCertPath", &p.TrustedCertPath) - populate(objectMap, "useSystemTrustStore", &p.UseSystemTrustStore) - populate(objectMap, "username", &p.Username) + populateAny(objectMap, "port", p.Port) + populateAny(objectMap, "trustedCertPath", p.TrustedCertPath) + populateAny(objectMap, "useSystemTrustStore", p.UseSystemTrustStore) + populateAny(objectMap, "username", p.Username) return json.Marshal(objectMap) } @@ -35476,14 +37237,14 @@ func (p *PhoenixLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixObjectDataset. func (p PhoenixObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "structure", p.Structure) objectMap["type"] = "PhoenixObject" populate(objectMap, "typeProperties", p.TypeProperties) if p.AdditionalProperties != nil { @@ -35532,10 +37293,10 @@ func (p *PhoenixObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35550,14 +37311,14 @@ func (p *PhoenixObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixSource. func (p PhoenixSource) 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 := make(map[string]any) + populateAny(objectMap, "additionalColumns", p.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", p.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", p.MaxConcurrentConnections) + populateAny(objectMap, "query", p.Query) + populateAny(objectMap, "queryTimeout", p.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", p.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", p.SourceRetryWait) objectMap["type"] = "PhoenixSource" if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -35602,10 +37363,10 @@ func (p *PhoenixSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35620,7 +37381,7 @@ func (p *PhoenixSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Pipeline. func (p Pipeline) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", p.Activities) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "concurrency", p.Concurrency) @@ -35679,8 +37440,8 @@ func (p *Pipeline) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineElapsedTimeMetricPolicy. func (p PipelineElapsedTimeMetricPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "duration", &p.Duration) + objectMap := make(map[string]any) + populateAny(objectMap, "duration", p.Duration) return json.Marshal(objectMap) } @@ -35704,9 +37465,59 @@ func (p *PipelineElapsedTimeMetricPolicy) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type PipelineExternalComputeScaleProperties. +func (p PipelineExternalComputeScaleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "numberOfExternalNodes", p.NumberOfExternalNodes) + populate(objectMap, "numberOfPipelineNodes", p.NumberOfPipelineNodes) + populate(objectMap, "timeToLive", p.TimeToLive) + 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 PipelineExternalComputeScaleProperties. +func (p *PipelineExternalComputeScaleProperties) UnmarshalJSON(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 "numberOfExternalNodes": + err = unpopulate(val, "NumberOfExternalNodes", &p.NumberOfExternalNodes) + delete(rawMsg, key) + case "numberOfPipelineNodes": + err = unpopulate(val, "NumberOfPipelineNodes", &p.NumberOfPipelineNodes) + delete(rawMsg, key) + case "timeToLive": + err = unpopulate(val, "TimeToLive", &p.TimeToLive) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 PipelineFolder. func (p PipelineFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", p.Name) return json.Marshal(objectMap) } @@ -35733,7 +37544,7 @@ func (p *PipelineFolder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineListResponse. func (p PipelineListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -35764,7 +37575,7 @@ func (p *PipelineListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelinePolicy. func (p PipelinePolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "elapsedTimeMetric", p.ElapsedTimeMetric) return json.Marshal(objectMap) } @@ -35791,7 +37602,7 @@ func (p *PipelinePolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineReference. func (p PipelineReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", p.Name) populate(objectMap, "referenceName", p.ReferenceName) populate(objectMap, "type", p.Type) @@ -35826,7 +37637,7 @@ func (p *PipelineReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineResource. func (p PipelineResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -35866,10 +37677,10 @@ func (p *PipelineResource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35884,19 +37695,19 @@ func (p *PipelineResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineRun. func (p PipelineRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "durationInMs", p.DurationInMs) populate(objectMap, "invokedBy", p.InvokedBy) populate(objectMap, "isLatest", p.IsLatest) - populateTimeRFC3339(objectMap, "lastUpdated", p.LastUpdated) + populateDateTimeRFC3339(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) + populateDateTimeRFC3339(objectMap, "runEnd", p.RunEnd) populate(objectMap, "runGroupId", p.RunGroupID) populate(objectMap, "runId", p.RunID) - populateTimeRFC3339(objectMap, "runStart", p.RunStart) + populateDateTimeRFC3339(objectMap, "runStart", p.RunStart) populate(objectMap, "status", p.Status) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -35925,7 +37736,7 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { err = unpopulate(val, "IsLatest", &p.IsLatest) delete(rawMsg, key) case "lastUpdated": - err = unpopulateTimeRFC3339(val, "LastUpdated", &p.LastUpdated) + err = unpopulateDateTimeRFC3339(val, "LastUpdated", &p.LastUpdated) delete(rawMsg, key) case "message": err = unpopulate(val, "Message", &p.Message) @@ -35940,7 +37751,7 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { err = unpopulate(val, "RunDimensions", &p.RunDimensions) delete(rawMsg, key) case "runEnd": - err = unpopulateTimeRFC3339(val, "RunEnd", &p.RunEnd) + err = unpopulateDateTimeRFC3339(val, "RunEnd", &p.RunEnd) delete(rawMsg, key) case "runGroupId": err = unpopulate(val, "RunGroupID", &p.RunGroupID) @@ -35949,17 +37760,17 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { err = unpopulate(val, "RunID", &p.RunID) delete(rawMsg, key) case "runStart": - err = unpopulateTimeRFC3339(val, "RunStart", &p.RunStart) + err = unpopulateDateTimeRFC3339(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{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35974,7 +37785,7 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineRunInvokedBy. func (p PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "invokedByType", p.InvokedByType) populate(objectMap, "name", p.Name) @@ -36017,7 +37828,7 @@ func (p *PipelineRunInvokedBy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineRunsQueryResponse. func (p PipelineRunsQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", p.ContinuationToken) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -36048,11 +37859,11 @@ func (p *PipelineRunsQueryResponse) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "rejectSampleValue", p.RejectSampleValue) populate(objectMap, "rejectType", p.RejectType) - populate(objectMap, "rejectValue", &p.RejectValue) - populate(objectMap, "useTypeDefault", &p.UseTypeDefault) + populateAny(objectMap, "rejectValue", p.RejectValue) + populateAny(objectMap, "useTypeDefault", p.UseTypeDefault) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -36084,10 +37895,10 @@ func (p *PolybaseSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36102,7 +37913,7 @@ func (p *PolybaseSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PostgreSQLLinkedService. func (p PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) @@ -36146,10 +37957,10 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36164,9 +37975,9 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", p.ConnectionString) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) populate(objectMap, "password", p.Password) return json.Marshal(objectMap) } @@ -36199,14 +38010,14 @@ func (p *PostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // 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 := make(map[string]any) + populateAny(objectMap, "additionalColumns", p.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", p.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", p.MaxConcurrentConnections) + populateAny(objectMap, "query", p.Query) + populateAny(objectMap, "queryTimeout", p.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", p.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", p.SourceRetryWait) objectMap["type"] = "PostgreSqlSource" if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -36251,10 +38062,10 @@ func (p *PostgreSQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36269,14 +38080,14 @@ func (p *PostgreSQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PostgreSQLTableDataset. func (p PostgreSQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "structure", p.Structure) objectMap["type"] = "PostgreSqlTable" populate(objectMap, "typeProperties", p.TypeProperties) if p.AdditionalProperties != nil { @@ -36325,10 +38136,10 @@ func (p *PostgreSQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36343,10 +38154,10 @@ func (p *PostgreSQLTableDataset) UnmarshalJSON(data []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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "table", p.Table) + populateAny(objectMap, "tableName", p.TableName) return json.Marshal(objectMap) } @@ -36376,221 +38187,14 @@ func (p *PostgreSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error 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{}) +// MarshalJSON implements the json.Marshaller interface for type PostgreSQLV2LinkedService. +func (p PostgreSQLV2LinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) populate(objectMap, "parameters", p.Parameters) - objectMap["type"] = "Presto" + objectMap["type"] = "PostgreSqlV2" populate(objectMap, "typeProperties", p.TypeProperties) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -36600,8 +38204,8 @@ func (p PrestoLinkedService) MarshalJSON() ([]byte, error) { 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 PostgreSQLV2LinkedService. +func (p *PostgreSQLV2LinkedService) UnmarshalJSON(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) @@ -36629,10 +38233,553 @@ func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any + 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 PostgreSQLV2LinkedServiceTypeProperties. +func (p PostgreSQLV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "commandTimeout", p.CommandTimeout) + populateAny(objectMap, "connectionTimeout", p.ConnectionTimeout) + populateAny(objectMap, "database", p.Database) + populateAny(objectMap, "encoding", p.Encoding) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) + populateAny(objectMap, "logParameters", p.LogParameters) + populate(objectMap, "password", p.Password) + populateAny(objectMap, "pooling", p.Pooling) + populateAny(objectMap, "port", p.Port) + populateAny(objectMap, "readBufferSize", p.ReadBufferSize) + populateAny(objectMap, "sslCertificate", p.SSLCertificate) + populateAny(objectMap, "sslKey", p.SSLKey) + populateAny(objectMap, "sslMode", p.SSLMode) + populateAny(objectMap, "sslPassword", p.SSLPassword) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "server", p.Server) + populateAny(objectMap, "timezone", p.Timezone) + populateAny(objectMap, "trustServerCertificate", p.TrustServerCertificate) + populateAny(objectMap, "username", p.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLV2LinkedServiceTypeProperties. +func (p *PostgreSQLV2LinkedServiceTypeProperties) UnmarshalJSON(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 "commandTimeout": + err = unpopulate(val, "CommandTimeout", &p.CommandTimeout) + delete(rawMsg, key) + case "connectionTimeout": + err = unpopulate(val, "ConnectionTimeout", &p.ConnectionTimeout) + delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &p.Database) + delete(rawMsg, key) + case "encoding": + err = unpopulate(val, "Encoding", &p.Encoding) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &p.EncryptedCredential) + delete(rawMsg, key) + case "logParameters": + err = unpopulate(val, "LogParameters", &p.LogParameters) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &p.Password) + delete(rawMsg, key) + case "pooling": + err = unpopulate(val, "Pooling", &p.Pooling) + delete(rawMsg, key) + case "port": + err = unpopulate(val, "Port", &p.Port) + delete(rawMsg, key) + case "readBufferSize": + err = unpopulate(val, "ReadBufferSize", &p.ReadBufferSize) + delete(rawMsg, key) + case "sslCertificate": + err = unpopulate(val, "SSLCertificate", &p.SSLCertificate) + delete(rawMsg, key) + case "sslKey": + err = unpopulate(val, "SSLKey", &p.SSLKey) + delete(rawMsg, key) + case "sslMode": + err = unpopulate(val, "SSLMode", &p.SSLMode) + delete(rawMsg, key) + case "sslPassword": + err = unpopulate(val, "SSLPassword", &p.SSLPassword) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &p.Schema) + delete(rawMsg, key) + case "server": + err = unpopulate(val, "Server", &p.Server) + delete(rawMsg, key) + case "timezone": + err = unpopulate(val, "Timezone", &p.Timezone) + delete(rawMsg, key) + case "trustServerCertificate": + err = unpopulate(val, "TrustServerCertificate", &p.TrustServerCertificate) + 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 PostgreSQLV2Source. +func (p PostgreSQLV2Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", p.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", p.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", p.MaxConcurrentConnections) + populateAny(objectMap, "query", p.Query) + populateAny(objectMap, "queryTimeout", p.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", p.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", p.SourceRetryWait) + objectMap["type"] = "PostgreSqlV2Source" + 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 PostgreSQLV2Source. +func (p *PostgreSQLV2Source) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 PostgreSQLV2TableDataset. +func (p PostgreSQLV2TableDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "structure", p.Structure) + objectMap["type"] = "PostgreSqlV2Table" + 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 PostgreSQLV2TableDataset. +func (p *PostgreSQLV2TableDataset) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 PostgreSQLV2TableDatasetTypeProperties. +func (p PostgreSQLV2TableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "table", p.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLV2TableDatasetTypeProperties. +func (p *PostgreSQLV2TableDatasetTypeProperties) UnmarshalJSON(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) + } + 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]any) + 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]any) + 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]any) + 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]any) + 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]any) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "table", p.Table) + populateAny(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]any) + 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]any{} + } + if val != nil { + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36647,21 +38794,21 @@ func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "allowHostNameCNMismatch", p.AllowHostNameCNMismatch) + populateAny(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) + populateAny(objectMap, "catalog", p.Catalog) + populateAny(objectMap, "enableSsl", p.EnableSSL) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) + populateAny(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) + populateAny(objectMap, "port", p.Port) + populateAny(objectMap, "serverVersion", p.ServerVersion) + populateAny(objectMap, "timeZoneID", p.TimeZoneID) + populateAny(objectMap, "trustedCertPath", p.TrustedCertPath) + populateAny(objectMap, "useSystemTrustStore", p.UseSystemTrustStore) + populateAny(objectMap, "username", p.Username) return json.Marshal(objectMap) } @@ -36726,14 +38873,14 @@ func (p *PrestoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrestoObjectDataset. func (p PrestoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", p.Schema) + populateAny(objectMap, "structure", p.Structure) objectMap["type"] = "PrestoObject" populate(objectMap, "typeProperties", p.TypeProperties) if p.AdditionalProperties != nil { @@ -36782,10 +38929,10 @@ func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36800,14 +38947,14 @@ func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error { // 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 := make(map[string]any) + populateAny(objectMap, "additionalColumns", p.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", p.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", p.MaxConcurrentConnections) + populateAny(objectMap, "query", p.Query) + populateAny(objectMap, "queryTimeout", p.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", p.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", p.SourceRetryWait) objectMap["type"] = "PrestoSource" if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { @@ -36852,10 +38999,10 @@ func (p *PrestoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36870,7 +39017,7 @@ func (p *PrestoSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) return json.Marshal(objectMap) } @@ -36897,7 +39044,7 @@ func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResponse. func (p PrivateEndpointConnectionListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -36928,7 +39075,7 @@ func (p *PrivateEndpointConnectionListResponse) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionResource. func (p PrivateEndpointConnectionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -36971,7 +39118,7 @@ func (p *PrivateEndpointConnectionResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequest. func (p PrivateLinkConnectionApprovalRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "privateEndpoint", p.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) return json.Marshal(objectMap) @@ -37002,7 +39149,7 @@ func (p *PrivateLinkConnectionApprovalRequest) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequestResource. func (p PrivateLinkConnectionApprovalRequestResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -37045,7 +39192,7 @@ func (p *PrivateLinkConnectionApprovalRequestResource) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionState. func (p PrivateLinkConnectionState) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", p.ActionsRequired) populate(objectMap, "description", p.Description) populate(objectMap, "status", p.Status) @@ -37080,7 +39227,7 @@ func (p *PrivateLinkConnectionState) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -37123,7 +39270,7 @@ func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "requiredMembers", p.RequiredMembers) populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) @@ -37158,7 +39305,7 @@ func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesWrapper. func (p PrivateLinkResourcesWrapper) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -37185,7 +39332,7 @@ func (p *PrivateLinkResourcesWrapper) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PurviewConfiguration. func (p PurviewConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "purviewResourceId", p.PurviewResourceID) return json.Marshal(objectMap) } @@ -37212,7 +39359,7 @@ func (p *PurviewConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QueryDataFlowDebugSessionsResponse. func (q QueryDataFlowDebugSessionsResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", q.NextLink) populate(objectMap, "value", q.Value) return json.Marshal(objectMap) @@ -37243,7 +39390,7 @@ func (q *QueryDataFlowDebugSessionsResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickBooksLinkedService. func (q QuickBooksLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", q.Annotations) populate(objectMap, "connectVia", q.ConnectVia) populate(objectMap, "description", q.Description) @@ -37287,10 +39434,10 @@ func (q *QuickBooksLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -37305,16 +39452,16 @@ func (q *QuickBooksLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickBooksLinkedServiceTypeProperties. func (q QuickBooksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", q.AccessToken) populate(objectMap, "accessTokenSecret", q.AccessTokenSecret) - populate(objectMap, "companyId", &q.CompanyID) - populate(objectMap, "connectionProperties", &q.ConnectionProperties) - populate(objectMap, "consumerKey", &q.ConsumerKey) + populateAny(objectMap, "companyId", q.CompanyID) + populateAny(objectMap, "connectionProperties", q.ConnectionProperties) + populateAny(objectMap, "consumerKey", q.ConsumerKey) populate(objectMap, "consumerSecret", q.ConsumerSecret) - populate(objectMap, "encryptedCredential", &q.EncryptedCredential) - populate(objectMap, "endpoint", &q.Endpoint) - populate(objectMap, "useEncryptedEndpoints", &q.UseEncryptedEndpoints) + populate(objectMap, "encryptedCredential", q.EncryptedCredential) + populateAny(objectMap, "endpoint", q.Endpoint) + populateAny(objectMap, "useEncryptedEndpoints", q.UseEncryptedEndpoints) return json.Marshal(objectMap) } @@ -37364,14 +39511,14 @@ func (q *QuickBooksLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type QuickBooksObjectDataset. func (q QuickBooksObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", q.Annotations) populate(objectMap, "description", q.Description) populate(objectMap, "folder", q.Folder) populate(objectMap, "linkedServiceName", q.LinkedServiceName) populate(objectMap, "parameters", q.Parameters) - populate(objectMap, "schema", &q.Schema) - populate(objectMap, "structure", &q.Structure) + populateAny(objectMap, "schema", q.Schema) + populateAny(objectMap, "structure", q.Structure) objectMap["type"] = "QuickBooksObject" populate(objectMap, "typeProperties", q.TypeProperties) if q.AdditionalProperties != nil { @@ -37420,10 +39567,10 @@ func (q *QuickBooksObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -37438,14 +39585,14 @@ func (q *QuickBooksObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickBooksSource. func (q QuickBooksSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &q.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &q.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &q.MaxConcurrentConnections) - populate(objectMap, "query", &q.Query) - populate(objectMap, "queryTimeout", &q.QueryTimeout) - populate(objectMap, "sourceRetryCount", &q.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &q.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", q.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", q.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", q.MaxConcurrentConnections) + populateAny(objectMap, "query", q.Query) + populateAny(objectMap, "queryTimeout", q.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", q.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", q.SourceRetryWait) objectMap["type"] = "QuickBooksSource" if q.AdditionalProperties != nil { for key, val := range q.AdditionalProperties { @@ -37490,10 +39637,10 @@ func (q *QuickBooksSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -37508,7 +39655,7 @@ func (q *QuickBooksSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickbaseLinkedService. func (q QuickbaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", q.Annotations) populate(objectMap, "connectVia", q.ConnectVia) populate(objectMap, "description", q.Description) @@ -37552,10 +39699,10 @@ func (q *QuickbaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -37570,9 +39717,9 @@ func (q *QuickbaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickbaseLinkedServiceTypeProperties. func (q QuickbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &q.EncryptedCredential) - populate(objectMap, "url", &q.URL) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", q.EncryptedCredential) + populateAny(objectMap, "url", q.URL) populate(objectMap, "userToken", q.UserToken) return json.Marshal(objectMap) } @@ -37605,7 +39752,7 @@ func (q *QuickbaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RecurrenceSchedule. func (r RecurrenceSchedule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hours", r.Hours) populate(objectMap, "minutes", r.Minutes) populate(objectMap, "monthDays", r.MonthDays) @@ -37645,10 +39792,10 @@ func (r *RecurrenceSchedule) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37663,7 +39810,7 @@ func (r *RecurrenceSchedule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecurrenceScheduleOccurrence. func (r RecurrenceScheduleOccurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "day", r.Day) populate(objectMap, "occurrence", r.Occurrence) if r.AdditionalProperties != nil { @@ -37691,10 +39838,10 @@ func (r *RecurrenceScheduleOccurrence) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37709,9 +39856,9 @@ func (r *RecurrenceScheduleOccurrence) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RedirectIncompatibleRowSettings. func (r RedirectIncompatibleRowSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "linkedServiceName", &r.LinkedServiceName) - populate(objectMap, "path", &r.Path) + objectMap := make(map[string]any) + populateAny(objectMap, "linkedServiceName", r.LinkedServiceName) + populateAny(objectMap, "path", r.Path) if r.AdditionalProperties != nil { for key, val := range r.AdditionalProperties { objectMap[key] = val @@ -37737,10 +39884,10 @@ func (r *RedirectIncompatibleRowSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37755,8 +39902,8 @@ func (r *RedirectIncompatibleRowSettings) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "bucketName", r.BucketName) populate(objectMap, "s3LinkedServiceName", r.S3LinkedServiceName) return json.Marshal(objectMap) } @@ -37786,13 +39933,13 @@ func (r *RedshiftUnloadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RelationalSource. func (r RelationalSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &r.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &r.MaxConcurrentConnections) - populate(objectMap, "query", &r.Query) - populate(objectMap, "sourceRetryCount", &r.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &r.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", r.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", r.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", r.MaxConcurrentConnections) + populateAny(objectMap, "query", r.Query) + populateAny(objectMap, "sourceRetryCount", r.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", r.SourceRetryWait) objectMap["type"] = "RelationalSource" if r.AdditionalProperties != nil { for key, val := range r.AdditionalProperties { @@ -37834,10 +39981,10 @@ func (r *RelationalSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37852,14 +39999,14 @@ func (r *RelationalSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RelationalTableDataset. func (r RelationalTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "folder", r.Folder) populate(objectMap, "linkedServiceName", r.LinkedServiceName) populate(objectMap, "parameters", r.Parameters) - populate(objectMap, "schema", &r.Schema) - populate(objectMap, "structure", &r.Structure) + populateAny(objectMap, "schema", r.Schema) + populateAny(objectMap, "structure", r.Structure) objectMap["type"] = "RelationalTable" populate(objectMap, "typeProperties", r.TypeProperties) if r.AdditionalProperties != nil { @@ -37908,10 +40055,10 @@ func (r *RelationalTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37926,8 +40073,8 @@ func (r *RelationalTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", r.TableName) return json.Marshal(objectMap) } @@ -37953,7 +40100,7 @@ func (r *RelationalTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RemotePrivateEndpointConnection. func (r RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "privateEndpoint", r.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", r.PrivateLinkServiceConnectionState) populate(objectMap, "provisioningState", r.ProvisioningState) @@ -37988,7 +40135,7 @@ func (r *RemotePrivateEndpointConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RerunTumblingWindowTrigger. func (r RerunTumblingWindowTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "runtimeState", r.RuntimeState) @@ -38028,10 +40175,10 @@ func (r *RerunTumblingWindowTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38046,10 +40193,10 @@ func (r *RerunTumblingWindowTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RerunTumblingWindowTriggerTypeProperties. func (r RerunTumblingWindowTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "parentTrigger", &r.ParentTrigger) - populateTimeRFC3339(objectMap, "requestedEndTime", r.RequestedEndTime) - populateTimeRFC3339(objectMap, "requestedStartTime", r.RequestedStartTime) + objectMap := make(map[string]any) + populateAny(objectMap, "parentTrigger", r.ParentTrigger) + populateDateTimeRFC3339(objectMap, "requestedEndTime", r.RequestedEndTime) + populateDateTimeRFC3339(objectMap, "requestedStartTime", r.RequestedStartTime) populate(objectMap, "rerunConcurrency", r.RerunConcurrency) return json.Marshal(objectMap) } @@ -38067,10 +40214,10 @@ func (r *RerunTumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) er err = unpopulate(val, "ParentTrigger", &r.ParentTrigger) delete(rawMsg, key) case "requestedEndTime": - err = unpopulateTimeRFC3339(val, "RequestedEndTime", &r.RequestedEndTime) + err = unpopulateDateTimeRFC3339(val, "RequestedEndTime", &r.RequestedEndTime) delete(rawMsg, key) case "requestedStartTime": - err = unpopulateTimeRFC3339(val, "RequestedStartTime", &r.RequestedStartTime) + err = unpopulateDateTimeRFC3339(val, "RequestedStartTime", &r.RequestedStartTime) delete(rawMsg, key) case "rerunConcurrency": err = unpopulate(val, "RerunConcurrency", &r.RerunConcurrency) @@ -38083,56 +40230,9 @@ func (r *RerunTumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) er return nil } -// MarshalJSON implements the json.Marshaller interface for type Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "eTag", r.ETag) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - 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{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "connectVia", r.ConnectVia) populate(objectMap, "description", r.Description) @@ -38176,10 +40276,10 @@ func (r *ResponsysLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38194,14 +40294,14 @@ func (r *ResponsysLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResponsysLinkedServiceTypeProperties. func (r ResponsysLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &r.ClientID) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", r.ClientID) populate(objectMap, "clientSecret", r.ClientSecret) - populate(objectMap, "encryptedCredential", &r.EncryptedCredential) - populate(objectMap, "endpoint", &r.Endpoint) - populate(objectMap, "useEncryptedEndpoints", &r.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &r.UseHostVerification) - populate(objectMap, "usePeerVerification", &r.UsePeerVerification) + populate(objectMap, "encryptedCredential", r.EncryptedCredential) + populateAny(objectMap, "endpoint", r.Endpoint) + populateAny(objectMap, "useEncryptedEndpoints", r.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", r.UseHostVerification) + populateAny(objectMap, "usePeerVerification", r.UsePeerVerification) return json.Marshal(objectMap) } @@ -38245,14 +40345,14 @@ func (r *ResponsysLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ResponsysObjectDataset. func (r ResponsysObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "folder", r.Folder) populate(objectMap, "linkedServiceName", r.LinkedServiceName) populate(objectMap, "parameters", r.Parameters) - populate(objectMap, "schema", &r.Schema) - populate(objectMap, "structure", &r.Structure) + populateAny(objectMap, "schema", r.Schema) + populateAny(objectMap, "structure", r.Structure) objectMap["type"] = "ResponsysObject" populate(objectMap, "typeProperties", r.TypeProperties) if r.AdditionalProperties != nil { @@ -38301,10 +40401,10 @@ func (r *ResponsysObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38319,14 +40419,14 @@ func (r *ResponsysObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResponsysSource. func (r ResponsysSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &r.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &r.MaxConcurrentConnections) - populate(objectMap, "query", &r.Query) - populate(objectMap, "queryTimeout", &r.QueryTimeout) - populate(objectMap, "sourceRetryCount", &r.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &r.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", r.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", r.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", r.MaxConcurrentConnections) + populateAny(objectMap, "query", r.Query) + populateAny(objectMap, "queryTimeout", r.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", r.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", r.SourceRetryWait) objectMap["type"] = "ResponsysSource" if r.AdditionalProperties != nil { for key, val := range r.AdditionalProperties { @@ -38371,10 +40471,10 @@ func (r *ResponsysSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38389,14 +40489,14 @@ func (r *ResponsysSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestResourceDataset. func (r RestResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "folder", r.Folder) populate(objectMap, "linkedServiceName", r.LinkedServiceName) populate(objectMap, "parameters", r.Parameters) - populate(objectMap, "schema", &r.Schema) - populate(objectMap, "structure", &r.Structure) + populateAny(objectMap, "schema", r.Schema) + populateAny(objectMap, "structure", r.Structure) objectMap["type"] = "RestResource" populate(objectMap, "typeProperties", r.TypeProperties) if r.AdditionalProperties != nil { @@ -38445,10 +40545,10 @@ func (r *RestResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38463,12 +40563,12 @@ func (r *RestResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestResourceDatasetTypeProperties. func (r RestResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]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) + objectMap := make(map[string]any) + populate(objectMap, "additionalHeaders", r.AdditionalHeaders) + populate(objectMap, "paginationRules", r.PaginationRules) + populateAny(objectMap, "relativeUrl", r.RelativeURL) + populateAny(objectMap, "requestBody", r.RequestBody) + populateAny(objectMap, "requestMethod", r.RequestMethod) return json.Marshal(objectMap) } @@ -38506,7 +40606,7 @@ func (r *RestResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestServiceLinkedService. func (r RestServiceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "connectVia", r.ConnectVia) populate(objectMap, "description", r.Description) @@ -38550,10 +40650,10 @@ func (r *RestServiceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38568,25 +40668,25 @@ func (r *RestServiceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestServiceLinkedServiceTypeProperties. func (r RestServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aadResourceId", &r.AADResourceID) - populate(objectMap, "authHeaders", &r.AuthHeaders) + objectMap := make(map[string]any) + populateAny(objectMap, "aadResourceId", r.AADResourceID) + populateAny(objectMap, "authHeaders", r.AuthHeaders) populate(objectMap, "authenticationType", r.AuthenticationType) - populate(objectMap, "azureCloudType", &r.AzureCloudType) - populate(objectMap, "clientId", &r.ClientID) + populateAny(objectMap, "azureCloudType", r.AzureCloudType) + populateAny(objectMap, "clientId", r.ClientID) populate(objectMap, "clientSecret", r.ClientSecret) populate(objectMap, "credential", r.Credential) - populate(objectMap, "enableServerCertificateValidation", &r.EnableServerCertificateValidation) - populate(objectMap, "encryptedCredential", &r.EncryptedCredential) + populateAny(objectMap, "enableServerCertificateValidation", r.EnableServerCertificateValidation) + populate(objectMap, "encryptedCredential", r.EncryptedCredential) populate(objectMap, "password", r.Password) - populate(objectMap, "resource", &r.Resource) - populate(objectMap, "scope", &r.Scope) - populate(objectMap, "servicePrincipalId", &r.ServicePrincipalID) + populateAny(objectMap, "resource", r.Resource) + populateAny(objectMap, "scope", r.Scope) + populateAny(objectMap, "servicePrincipalId", r.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", r.ServicePrincipalKey) - populate(objectMap, "tenant", &r.Tenant) - populate(objectMap, "tokenEndpoint", &r.TokenEndpoint) - populate(objectMap, "url", &r.URL) - populate(objectMap, "userName", &r.UserName) + populateAny(objectMap, "tenant", r.Tenant) + populateAny(objectMap, "tokenEndpoint", r.TokenEndpoint) + populateAny(objectMap, "url", r.URL) + populateAny(objectMap, "userName", r.UserName) return json.Marshal(objectMap) } @@ -38663,19 +40763,19 @@ func (r *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type RestSink. func (r RestSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalHeaders", &r.AdditionalHeaders) - populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) - populate(objectMap, "httpCompressionType", &r.HTTPCompressionType) - populate(objectMap, "httpRequestTimeout", &r.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &r.MaxConcurrentConnections) - populate(objectMap, "requestInterval", &r.RequestInterval) - populate(objectMap, "requestMethod", &r.RequestMethod) - populate(objectMap, "sinkRetryCount", &r.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &r.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalHeaders", r.AdditionalHeaders) + populateAny(objectMap, "disableMetricsCollection", r.DisableMetricsCollection) + populateAny(objectMap, "httpCompressionType", r.HTTPCompressionType) + populateAny(objectMap, "httpRequestTimeout", r.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", r.MaxConcurrentConnections) + populateAny(objectMap, "requestInterval", r.RequestInterval) + populateAny(objectMap, "requestMethod", r.RequestMethod) + populateAny(objectMap, "sinkRetryCount", r.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", r.SinkRetryWait) objectMap["type"] = "RestSink" - populate(objectMap, "writeBatchSize", &r.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &r.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", r.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", r.WriteBatchTimeout) if r.AdditionalProperties != nil { for key, val := range r.AdditionalProperties { objectMap[key] = val @@ -38731,10 +40831,10 @@ func (r *RestSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38749,18 +40849,18 @@ func (r *RestSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestSource. func (r RestSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &r.AdditionalColumns) - populate(objectMap, "additionalHeaders", &r.AdditionalHeaders) - populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &r.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &r.MaxConcurrentConnections) - populate(objectMap, "paginationRules", &r.PaginationRules) - populate(objectMap, "requestBody", &r.RequestBody) - populate(objectMap, "requestInterval", &r.RequestInterval) - populate(objectMap, "requestMethod", &r.RequestMethod) - populate(objectMap, "sourceRetryCount", &r.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &r.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", r.AdditionalColumns) + populateAny(objectMap, "additionalHeaders", r.AdditionalHeaders) + populateAny(objectMap, "disableMetricsCollection", r.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", r.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", r.MaxConcurrentConnections) + populateAny(objectMap, "paginationRules", r.PaginationRules) + populateAny(objectMap, "requestBody", r.RequestBody) + populateAny(objectMap, "requestInterval", r.RequestInterval) + populateAny(objectMap, "requestMethod", r.RequestMethod) + populateAny(objectMap, "sourceRetryCount", r.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", r.SourceRetryWait) objectMap["type"] = "RestSource" if r.AdditionalProperties != nil { for key, val := range r.AdditionalProperties { @@ -38817,10 +40917,10 @@ func (r *RestSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38835,8 +40935,8 @@ func (r *RestSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "count", r.Count) populate(objectMap, "intervalInSeconds", r.IntervalInSeconds) return json.Marshal(objectMap) } @@ -38866,11 +40966,11 @@ func (r *RetryPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunFilterParameters. func (r RunFilterParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", r.ContinuationToken) populate(objectMap, "filters", r.Filters) - populateTimeRFC3339(objectMap, "lastUpdatedAfter", r.LastUpdatedAfter) - populateTimeRFC3339(objectMap, "lastUpdatedBefore", r.LastUpdatedBefore) + populateDateTimeRFC3339(objectMap, "lastUpdatedAfter", r.LastUpdatedAfter) + populateDateTimeRFC3339(objectMap, "lastUpdatedBefore", r.LastUpdatedBefore) populate(objectMap, "orderBy", r.OrderBy) return json.Marshal(objectMap) } @@ -38891,10 +40991,10 @@ func (r *RunFilterParameters) UnmarshalJSON(data []byte) error { err = unpopulate(val, "Filters", &r.Filters) delete(rawMsg, key) case "lastUpdatedAfter": - err = unpopulateTimeRFC3339(val, "LastUpdatedAfter", &r.LastUpdatedAfter) + err = unpopulateDateTimeRFC3339(val, "LastUpdatedAfter", &r.LastUpdatedAfter) delete(rawMsg, key) case "lastUpdatedBefore": - err = unpopulateTimeRFC3339(val, "LastUpdatedBefore", &r.LastUpdatedBefore) + err = unpopulateDateTimeRFC3339(val, "LastUpdatedBefore", &r.LastUpdatedBefore) delete(rawMsg, key) case "orderBy": err = unpopulate(val, "OrderBy", &r.OrderBy) @@ -38909,7 +41009,7 @@ func (r *RunFilterParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunQueryFilter. func (r RunQueryFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "operand", r.Operand) populate(objectMap, "operator", r.Operator) populate(objectMap, "values", r.Values) @@ -38944,7 +41044,7 @@ func (r *RunQueryFilter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunQueryOrderBy. func (r RunQueryOrderBy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "order", r.Order) populate(objectMap, "orderBy", r.OrderBy) return json.Marshal(objectMap) @@ -38975,10 +41075,10 @@ func (r *RunQueryOrderBy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLAlwaysEncryptedProperties. func (s SQLAlwaysEncryptedProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedAkvAuthType", s.AlwaysEncryptedAkvAuthType) populate(objectMap, "credential", s.Credential) - populate(objectMap, "servicePrincipalId", &s.ServicePrincipalID) + populateAny(objectMap, "servicePrincipalId", s.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) return json.Marshal(objectMap) } @@ -39014,23 +41114,23 @@ func (s *SQLAlwaysEncryptedProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDWSink. func (s SQLDWSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowCopyCommand", &s.AllowCopyCommand) - populate(objectMap, "allowPolyBase", &s.AllowPolyBase) + objectMap := make(map[string]any) + populateAny(objectMap, "allowCopyCommand", s.AllowCopyCommand) + populateAny(objectMap, "allowPolyBase", s.AllowPolyBase) populate(objectMap, "copyCommandSettings", s.CopyCommandSettings) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) populate(objectMap, "polyBaseSettings", s.PolyBaseSettings) - populate(objectMap, "preCopyScript", &s.PreCopyScript) - populate(objectMap, "sqlWriterUseTableLock", &s.SQLWriterUseTableLock) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - populate(objectMap, "tableOption", &s.TableOption) + populateAny(objectMap, "preCopyScript", s.PreCopyScript) + populateAny(objectMap, "sqlWriterUseTableLock", s.SQLWriterUseTableLock) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + populateAny(objectMap, "tableOption", s.TableOption) objectMap["type"] = "SqlDWSink" populate(objectMap, "upsertSettings", s.UpsertSettings) - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &s.WriteBehavior) + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", s.WriteBehavior) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -39098,10 +41198,10 @@ func (s *SQLDWSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39116,18 +41216,19 @@ func (s *SQLDWSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDWSource. func (s SQLDWSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &s.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "isolationLevel", s.IsolationLevel) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", s.PartitionOption) populate(objectMap, "partitionSettings", s.PartitionSettings) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sqlReaderQuery", &s.SQLReaderQuery) - populate(objectMap, "sqlReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sqlReaderQuery", s.SQLReaderQuery) + populateAny(objectMap, "sqlReaderStoredProcedureName", s.SQLReaderStoredProcedureName) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) objectMap["type"] = "SqlDWSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -39152,6 +41253,9 @@ func (s *SQLDWSource) UnmarshalJSON(data []byte) error { case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) delete(rawMsg, key) + case "isolationLevel": + err = unpopulate(val, "IsolationLevel", &s.IsolationLevel) + delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) delete(rawMsg, key) @@ -39184,10 +41288,10 @@ func (s *SQLDWSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39202,9 +41306,9 @@ func (s *SQLDWSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "interimSchemaName", s.InterimSchemaName) + populateAny(objectMap, "keys", s.Keys) return json.Marshal(objectMap) } @@ -39233,23 +41337,23 @@ func (s *SQLDWUpsertSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLMISink. func (s SQLMISink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &s.PreCopyScript) - populate(objectMap, "sqlWriterStoredProcedureName", &s.SQLWriterStoredProcedureName) - populate(objectMap, "sqlWriterTableType", &s.SQLWriterTableType) - populate(objectMap, "sqlWriterUseTableLock", &s.SQLWriterUseTableLock) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) - populate(objectMap, "storedProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) - populate(objectMap, "tableOption", &s.TableOption) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", s.PreCopyScript) + populateAny(objectMap, "sqlWriterStoredProcedureName", s.SQLWriterStoredProcedureName) + populateAny(objectMap, "sqlWriterTableType", s.SQLWriterTableType) + populateAny(objectMap, "sqlWriterUseTableLock", s.SQLWriterUseTableLock) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populateAny(objectMap, "storedProcedureTableTypeParameterName", s.StoredProcedureTableTypeParameterName) + populateAny(objectMap, "tableOption", s.TableOption) objectMap["type"] = "SqlMISink" populate(objectMap, "upsertSettings", s.UpsertSettings) - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &s.WriteBehavior) + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", s.WriteBehavior) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -39317,10 +41421,10 @@ func (s *SQLMISink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39335,19 +41439,20 @@ func (s *SQLMISink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLMISource. func (s SQLMISource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &s.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "isolationLevel", s.IsolationLevel) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", s.PartitionOption) populate(objectMap, "partitionSettings", s.PartitionSettings) - populate(objectMap, "produceAdditionalTypes", &s.ProduceAdditionalTypes) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sqlReaderQuery", &s.SQLReaderQuery) - populate(objectMap, "sqlReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populateAny(objectMap, "produceAdditionalTypes", s.ProduceAdditionalTypes) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sqlReaderQuery", s.SQLReaderQuery) + populateAny(objectMap, "sqlReaderStoredProcedureName", s.SQLReaderStoredProcedureName) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) objectMap["type"] = "SqlMISource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -39372,337 +41477,8 @@ func (s *SQLMISource) UnmarshalJSON(data []byte) error { case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) - delete(rawMsg, key) - case "partitionOption": - err = unpopulate(val, "PartitionOption", &s.PartitionOption) - delete(rawMsg, key) - case "partitionSettings": - err = unpopulate(val, "PartitionSettings", &s.PartitionSettings) - delete(rawMsg, key) - case "produceAdditionalTypes": - err = unpopulate(val, "ProduceAdditionalTypes", &s.ProduceAdditionalTypes) - delete(rawMsg, key) - case "queryTimeout": - err = unpopulate(val, "QueryTimeout", &s.QueryTimeout) - delete(rawMsg, key) - case "sqlReaderQuery": - err = unpopulate(val, "SQLReaderQuery", &s.SQLReaderQuery) - delete(rawMsg, key) - case "sqlReaderStoredProcedureName": - err = unpopulate(val, "SQLReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) - delete(rawMsg, key) - case "sourceRetryCount": - err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) - delete(rawMsg, key) - case "sourceRetryWait": - err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) - delete(rawMsg, key) - case "storedProcedureParameters": - err = unpopulate(val, "StoredProcedureParameters", &s.StoredProcedureParameters) - delete(rawMsg, key) - 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 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{}) - populate(objectMap, "annotations", s.Annotations) - populate(objectMap, "connectVia", s.ConnectVia) - populate(objectMap, "description", s.Description) - populate(objectMap, "parameters", s.Parameters) - objectMap["type"] = "SqlServer" - 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 SQLServerLinkedService. -func (s *SQLServerLinkedService) UnmarshalJSON(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 SQLServerLinkedServiceTypeProperties. -func (s SQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alwaysEncryptedSettings", s.AlwaysEncryptedSettings) - populate(objectMap, "connectionString", &s.ConnectionString) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "password", s.Password) - populate(objectMap, "userName", &s.UserName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerLinkedServiceTypeProperties. -func (s *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(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 "alwaysEncryptedSettings": - err = unpopulate(val, "AlwaysEncryptedSettings", &s.AlwaysEncryptedSettings) - delete(rawMsg, 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": - s.Password, 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 SQLServerSink. -func (s SQLServerSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &s.PreCopyScript) - populate(objectMap, "sqlWriterStoredProcedureName", &s.SQLWriterStoredProcedureName) - populate(objectMap, "sqlWriterTableType", &s.SQLWriterTableType) - populate(objectMap, "sqlWriterUseTableLock", &s.SQLWriterUseTableLock) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) - populate(objectMap, "storedProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) - populate(objectMap, "tableOption", &s.TableOption) - objectMap["type"] = "SqlServerSink" - populate(objectMap, "upsertSettings", s.UpsertSettings) - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &s.WriteBehavior) - 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 SQLServerSink. -func (s *SQLServerSink) UnmarshalJSON(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 "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) - delete(rawMsg, key) - case "preCopyScript": - err = unpopulate(val, "PreCopyScript", &s.PreCopyScript) - delete(rawMsg, key) - case "sqlWriterStoredProcedureName": - err = unpopulate(val, "SQLWriterStoredProcedureName", &s.SQLWriterStoredProcedureName) - delete(rawMsg, key) - case "sqlWriterTableType": - err = unpopulate(val, "SQLWriterTableType", &s.SQLWriterTableType) - delete(rawMsg, key) - case "sqlWriterUseTableLock": - err = unpopulate(val, "SQLWriterUseTableLock", &s.SQLWriterUseTableLock) - delete(rawMsg, key) - case "sinkRetryCount": - err = unpopulate(val, "SinkRetryCount", &s.SinkRetryCount) - delete(rawMsg, key) - case "sinkRetryWait": - err = unpopulate(val, "SinkRetryWait", &s.SinkRetryWait) - delete(rawMsg, key) - case "storedProcedureParameters": - err = unpopulate(val, "StoredProcedureParameters", &s.StoredProcedureParameters) - delete(rawMsg, key) - case "storedProcedureTableTypeParameterName": - err = unpopulate(val, "StoredProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) - delete(rawMsg, key) - case "tableOption": - err = unpopulate(val, "TableOption", &s.TableOption) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "upsertSettings": - err = unpopulate(val, "UpsertSettings", &s.UpsertSettings) - delete(rawMsg, key) - case "writeBatchSize": - err = unpopulate(val, "WriteBatchSize", &s.WriteBatchSize) - delete(rawMsg, key) - case "writeBatchTimeout": - err = unpopulate(val, "WriteBatchTimeout", &s.WriteBatchTimeout) - delete(rawMsg, key) - case "writeBehavior": - err = unpopulate(val, "WriteBehavior", &s.WriteBehavior) - 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 SQLServerSource. -func (s SQLServerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &s.PartitionOption) - populate(objectMap, "partitionSettings", s.PartitionSettings) - populate(objectMap, "produceAdditionalTypes", &s.ProduceAdditionalTypes) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sqlReaderQuery", &s.SQLReaderQuery) - populate(objectMap, "sqlReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) - objectMap["type"] = "SqlServerSource" - 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 SQLServerSource. -func (s *SQLServerSource) UnmarshalJSON(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 "additionalColumns": - err = unpopulate(val, "AdditionalColumns", &s.AdditionalColumns) - delete(rawMsg, key) - case "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + case "isolationLevel": + err = unpopulate(val, "IsolationLevel", &s.IsolationLevel) delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) @@ -39739,10 +41515,346 @@ func (s *SQLServerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any + 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 SQLPartitionSettings. +func (s SQLPartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "partitionColumnName", s.PartitionColumnName) + populateAny(objectMap, "partitionLowerBound", s.PartitionLowerBound) + populateAny(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]any) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "connectVia", s.ConnectVia) + populate(objectMap, "description", s.Description) + populate(objectMap, "parameters", s.Parameters) + objectMap["type"] = "SqlServer" + 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 SQLServerLinkedService. +func (s *SQLServerLinkedService) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 SQLServerLinkedServiceTypeProperties. +func (s SQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "alwaysEncryptedSettings", s.AlwaysEncryptedSettings) + populateAny(objectMap, "connectionString", s.ConnectionString) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "password", s.Password) + populateAny(objectMap, "userName", s.UserName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerLinkedServiceTypeProperties. +func (s *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(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 "alwaysEncryptedSettings": + err = unpopulate(val, "AlwaysEncryptedSettings", &s.AlwaysEncryptedSettings) + delete(rawMsg, 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": + s.Password, 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 SQLServerSink. +func (s SQLServerSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", s.PreCopyScript) + populateAny(objectMap, "sqlWriterStoredProcedureName", s.SQLWriterStoredProcedureName) + populateAny(objectMap, "sqlWriterTableType", s.SQLWriterTableType) + populateAny(objectMap, "sqlWriterUseTableLock", s.SQLWriterUseTableLock) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populateAny(objectMap, "storedProcedureTableTypeParameterName", s.StoredProcedureTableTypeParameterName) + populateAny(objectMap, "tableOption", s.TableOption) + objectMap["type"] = "SqlServerSink" + populate(objectMap, "upsertSettings", s.UpsertSettings) + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", s.WriteBehavior) + 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 SQLServerSink. +func (s *SQLServerSink) UnmarshalJSON(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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "preCopyScript": + err = unpopulate(val, "PreCopyScript", &s.PreCopyScript) + delete(rawMsg, key) + case "sqlWriterStoredProcedureName": + err = unpopulate(val, "SQLWriterStoredProcedureName", &s.SQLWriterStoredProcedureName) + delete(rawMsg, key) + case "sqlWriterTableType": + err = unpopulate(val, "SQLWriterTableType", &s.SQLWriterTableType) + delete(rawMsg, key) + case "sqlWriterUseTableLock": + err = unpopulate(val, "SQLWriterUseTableLock", &s.SQLWriterUseTableLock) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &s.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &s.SinkRetryWait) + delete(rawMsg, key) + case "storedProcedureParameters": + err = unpopulate(val, "StoredProcedureParameters", &s.StoredProcedureParameters) + delete(rawMsg, key) + case "storedProcedureTableTypeParameterName": + err = unpopulate(val, "StoredProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) + delete(rawMsg, key) + case "tableOption": + err = unpopulate(val, "TableOption", &s.TableOption) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "upsertSettings": + err = unpopulate(val, "UpsertSettings", &s.UpsertSettings) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &s.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &s.WriteBatchTimeout) + delete(rawMsg, key) + case "writeBehavior": + err = unpopulate(val, "WriteBehavior", &s.WriteBehavior) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SQLServerSource. +func (s SQLServerSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "isolationLevel", s.IsolationLevel) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", s.PartitionOption) + populate(objectMap, "partitionSettings", s.PartitionSettings) + populateAny(objectMap, "produceAdditionalTypes", s.ProduceAdditionalTypes) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sqlReaderQuery", s.SQLReaderQuery) + populateAny(objectMap, "sqlReaderStoredProcedureName", s.SQLReaderStoredProcedureName) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + objectMap["type"] = "SqlServerSource" + 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 SQLServerSource. +func (s *SQLServerSource) UnmarshalJSON(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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &s.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "isolationLevel": + err = unpopulate(val, "IsolationLevel", &s.IsolationLevel) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "partitionOption": + err = unpopulate(val, "PartitionOption", &s.PartitionOption) + delete(rawMsg, key) + case "partitionSettings": + err = unpopulate(val, "PartitionSettings", &s.PartitionSettings) + delete(rawMsg, key) + case "produceAdditionalTypes": + err = unpopulate(val, "ProduceAdditionalTypes", &s.ProduceAdditionalTypes) + delete(rawMsg, key) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &s.QueryTimeout) + delete(rawMsg, key) + case "sqlReaderQuery": + err = unpopulate(val, "SQLReaderQuery", &s.SQLReaderQuery) + delete(rawMsg, key) + case "sqlReaderStoredProcedureName": + err = unpopulate(val, "SQLReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) + delete(rawMsg, key) + case "storedProcedureParameters": + err = unpopulate(val, "StoredProcedureParameters", &s.StoredProcedureParameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39757,12 +41869,14 @@ func (s *SQLServerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLServerStoredProcedureActivity. func (s SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "SqlServerStoredProcedure" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -39795,9 +41909,15 @@ func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -39809,10 +41929,10 @@ func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39827,9 +41947,9 @@ func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "storedProcedureName", s.StoredProcedureName) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) return json.Marshal(objectMap) } @@ -39858,14 +41978,14 @@ func (s *SQLServerStoredProcedureActivityTypeProperties) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type SQLServerTableDataset. func (s SQLServerTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SqlServerTable" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -39914,10 +42034,10 @@ func (s *SQLServerTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39932,10 +42052,10 @@ func (s *SQLServerTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "table", s.Table) + populateAny(objectMap, "tableName", s.TableName) return json.Marshal(objectMap) } @@ -39967,23 +42087,23 @@ func (s *SQLServerTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLSink. func (s SQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &s.PreCopyScript) - populate(objectMap, "sqlWriterStoredProcedureName", &s.SQLWriterStoredProcedureName) - populate(objectMap, "sqlWriterTableType", &s.SQLWriterTableType) - populate(objectMap, "sqlWriterUseTableLock", &s.SQLWriterUseTableLock) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) - populate(objectMap, "storedProcedureTableTypeParameterName", &s.StoredProcedureTableTypeParameterName) - populate(objectMap, "tableOption", &s.TableOption) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", s.PreCopyScript) + populateAny(objectMap, "sqlWriterStoredProcedureName", s.SQLWriterStoredProcedureName) + populateAny(objectMap, "sqlWriterTableType", s.SQLWriterTableType) + populateAny(objectMap, "sqlWriterUseTableLock", s.SQLWriterUseTableLock) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populateAny(objectMap, "storedProcedureTableTypeParameterName", s.StoredProcedureTableTypeParameterName) + populateAny(objectMap, "tableOption", s.TableOption) objectMap["type"] = "SqlSink" populate(objectMap, "upsertSettings", s.UpsertSettings) - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) - populate(objectMap, "writeBehavior", &s.WriteBehavior) + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", s.WriteBehavior) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -40051,10 +42171,10 @@ func (s *SQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40069,19 +42189,19 @@ func (s *SQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLSource. func (s SQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "isolationLevel", &s.IsolationLevel) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &s.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "isolationLevel", s.IsolationLevel) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", s.PartitionOption) populate(objectMap, "partitionSettings", s.PartitionSettings) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sqlReaderQuery", &s.SQLReaderQuery) - populate(objectMap, "sqlReaderStoredProcedureName", &s.SQLReaderStoredProcedureName) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sqlReaderQuery", s.SQLReaderQuery) + populateAny(objectMap, "sqlReaderStoredProcedureName", s.SQLReaderStoredProcedureName) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + populateAny(objectMap, "storedProcedureParameters", s.StoredProcedureParameters) objectMap["type"] = "SqlSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -40141,10 +42261,10 @@ func (s *SQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40159,10 +42279,10 @@ func (s *SQLSource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "interimSchemaName", s.InterimSchemaName) + populateAny(objectMap, "keys", s.Keys) + populateAny(objectMap, "useTempDB", s.UseTempDB) return json.Marshal(objectMap) } @@ -40194,10 +42314,10 @@ func (s *SQLUpsertSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISAccessCredential. func (s SSISAccessCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "domain", &s.Domain) + objectMap := make(map[string]any) + populateAny(objectMap, "domain", s.Domain) populate(objectMap, "password", s.Password) - populate(objectMap, "userName", &s.UserName) + populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) } @@ -40229,11 +42349,11 @@ func (s *SSISAccessCredential) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "packageContent", s.PackageContent) populate(objectMap, "packageLastModifiedDate", s.PackageLastModifiedDate) populate(objectMap, "packageName", s.PackageName) - populate(objectMap, "packagePath", &s.PackagePath) + populateAny(objectMap, "packagePath", s.PackagePath) return json.Marshal(objectMap) } @@ -40268,10 +42388,10 @@ func (s *SSISChildPackage) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "domain", s.Domain) populate(objectMap, "password", s.Password) - populate(objectMap, "userName", &s.UserName) + populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) } @@ -40303,8 +42423,8 @@ func (s *SSISExecutionCredential) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -40330,8 +42450,8 @@ func (s *SSISExecutionParameter) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "logPath", s.LogPath) populate(objectMap, "type", s.Type) populate(objectMap, "typeProperties", s.TypeProperties) return json.Marshal(objectMap) @@ -40365,9 +42485,9 @@ func (s *SSISLogLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISLogLocationTypeProperties. func (s SSISLogLocationTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessCredential", s.AccessCredential) - populate(objectMap, "logRefreshInterval", &s.LogRefreshInterval) + populateAny(objectMap, "logRefreshInterval", s.LogRefreshInterval) return json.Marshal(objectMap) } @@ -40396,8 +42516,8 @@ func (s *SSISLogLocationTypeProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "packagePath", s.PackagePath) populate(objectMap, "type", s.Type) populate(objectMap, "typeProperties", s.TypeProperties) return json.Marshal(objectMap) @@ -40431,12 +42551,12 @@ func (s *SSISPackageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISPackageLocationTypeProperties. func (s SSISPackageLocationTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessCredential", s.AccessCredential) populate(objectMap, "childPackages", s.ChildPackages) populate(objectMap, "configurationAccessCredential", s.ConfigurationAccessCredential) - populate(objectMap, "configurationPath", &s.ConfigurationPath) - populate(objectMap, "packageContent", &s.PackageContent) + populateAny(objectMap, "configurationPath", s.ConfigurationPath) + populateAny(objectMap, "packageContent", s.PackageContent) populate(objectMap, "packageLastModifiedDate", s.PackageLastModifiedDate) populate(objectMap, "packageName", s.PackageName) populate(objectMap, "packagePassword", s.PackagePassword) @@ -40486,9 +42606,9 @@ func (s *SSISPackageLocationTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISPropertyOverride. func (s SSISPropertyOverride) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isSensitive", s.IsSensitive) - populate(objectMap, "value", &s.Value) + populateAny(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -40517,7 +42637,7 @@ func (s *SSISPropertyOverride) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceLinkedService. func (s SalesforceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -40561,10 +42681,10 @@ func (s *SalesforceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40579,13 +42699,13 @@ func (s *SalesforceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceLinkedServiceTypeProperties. func (s SalesforceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "apiVersion", &s.APIVersion) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "environmentUrl", &s.EnvironmentURL) + objectMap := make(map[string]any) + populateAny(objectMap, "apiVersion", s.APIVersion) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "environmentUrl", s.EnvironmentURL) populate(objectMap, "password", s.Password) populate(objectMap, "securityToken", s.SecurityToken) - populate(objectMap, "username", &s.Username) + populateAny(objectMap, "username", s.Username) return json.Marshal(objectMap) } @@ -40626,7 +42746,7 @@ func (s *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudLinkedService. func (s SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -40670,10 +42790,10 @@ func (s *SalesforceMarketingCloudLinkedService) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40688,14 +42808,14 @@ func (s *SalesforceMarketingCloudLinkedService) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudLinkedServiceTypeProperties. func (s SalesforceMarketingCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &s.ClientID) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) - populate(objectMap, "connectionProperties", &s.ConnectionProperties) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "useEncryptedEndpoints", &s.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &s.UseHostVerification) - populate(objectMap, "usePeerVerification", &s.UsePeerVerification) + populateAny(objectMap, "connectionProperties", s.ConnectionProperties) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", s.UseHostVerification) + populateAny(objectMap, "usePeerVerification", s.UsePeerVerification) return json.Marshal(objectMap) } @@ -40739,14 +42859,14 @@ func (s *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudObjectDataset. func (s SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SalesforceMarketingCloudObject" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -40795,10 +42915,10 @@ func (s *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40813,14 +42933,14 @@ func (s *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudSource. func (s SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SalesforceMarketingCloudSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -40865,10 +42985,987 @@ func (s *SalesforceMarketingCloudSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SalesforceObjectDataset. +func (s SalesforceObjectDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) + objectMap["type"] = "SalesforceObject" + 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 SalesforceObjectDataset. +func (s *SalesforceObjectDataset) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 SalesforceObjectDatasetTypeProperties. +func (s SalesforceObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(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]any) + 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]any{} + } + if val != nil { + var aux any + 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]any) + populateAny(objectMap, "apiVersion", s.APIVersion) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "environmentUrl", s.EnvironmentURL) + populateAny(objectMap, "extendedProperties", s.ExtendedProperties) + populate(objectMap, "password", s.Password) + populate(objectMap, "securityToken", s.SecurityToken) + populateAny(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]any) + 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(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]any{} + } + if val != nil { + var aux any + 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]any) + populateAny(objectMap, "objectApiName", s.ObjectAPIName) + return json.Marshal(objectMap) +} + +// 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) + } + 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 SalesforceServiceCloudSink. +func (s SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "externalIdFieldName", s.ExternalIDFieldName) + populateAny(objectMap, "ignoreNullValues", s.IgnoreNullValues) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + objectMap["type"] = "SalesforceServiceCloudSink" + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + populate(objectMap, "writeBehavior", s.WriteBehavior) + 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 SalesforceServiceCloudSink. +func (s *SalesforceServiceCloudSink) UnmarshalJSON(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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "externalIdFieldName": + err = unpopulate(val, "ExternalIDFieldName", &s.ExternalIDFieldName) + delete(rawMsg, key) + case "ignoreNullValues": + err = unpopulate(val, "IgnoreNullValues", &s.IgnoreNullValues) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &s.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &s.SinkRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &s.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &s.WriteBatchTimeout) + delete(rawMsg, key) + case "writeBehavior": + err = unpopulate(val, "WriteBehavior", &s.WriteBehavior) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SalesforceServiceCloudSource. +func (s SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "readBehavior", s.ReadBehavior) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + objectMap["type"] = "SalesforceServiceCloudSource" + 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 SalesforceServiceCloudSource. +func (s *SalesforceServiceCloudSource) UnmarshalJSON(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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &s.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "query": + err = unpopulate(val, "Query", &s.Query) + delete(rawMsg, key) + case "readBehavior": + err = unpopulate(val, "ReadBehavior", &s.ReadBehavior) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SalesforceServiceCloudV2LinkedService. +func (s SalesforceServiceCloudV2LinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "connectVia", s.ConnectVia) + populate(objectMap, "description", s.Description) + populate(objectMap, "parameters", s.Parameters) + objectMap["type"] = "SalesforceServiceCloudV2" + 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 SalesforceServiceCloudV2LinkedService. +func (s *SalesforceServiceCloudV2LinkedService) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 SalesforceServiceCloudV2LinkedServiceTypeProperties. +func (s SalesforceServiceCloudV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "apiVersion", s.APIVersion) + populateAny(objectMap, "authenticationType", s.AuthenticationType) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "clientSecret", s.ClientSecret) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "environmentUrl", s.EnvironmentURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudV2LinkedServiceTypeProperties. +func (s *SalesforceServiceCloudV2LinkedServiceTypeProperties) UnmarshalJSON(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 "authenticationType": + err = unpopulate(val, "AuthenticationType", &s.AuthenticationType) + delete(rawMsg, key) + case "clientId": + err = unpopulate(val, "ClientID", &s.ClientID) + delete(rawMsg, key) + case "clientSecret": + s.ClientSecret, err = unmarshalSecretBaseClassification(val) + 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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudV2ObjectDataset. +func (s SalesforceServiceCloudV2ObjectDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) + objectMap["type"] = "SalesforceServiceCloudV2Object" + 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 SalesforceServiceCloudV2ObjectDataset. +func (s *SalesforceServiceCloudV2ObjectDataset) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 SalesforceServiceCloudV2ObjectDatasetTypeProperties. +func (s SalesforceServiceCloudV2ObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "objectApiName", s.ObjectAPIName) + populateAny(objectMap, "reportId", s.ReportID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudV2ObjectDatasetTypeProperties. +func (s *SalesforceServiceCloudV2ObjectDatasetTypeProperties) UnmarshalJSON(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) + case "reportId": + err = unpopulate(val, "ReportID", &s.ReportID) + 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 SalesforceServiceCloudV2Sink. +func (s SalesforceServiceCloudV2Sink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "externalIdFieldName", s.ExternalIDFieldName) + populateAny(objectMap, "ignoreNullValues", s.IgnoreNullValues) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + objectMap["type"] = "SalesforceServiceCloudV2Sink" + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + populate(objectMap, "writeBehavior", s.WriteBehavior) + 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 SalesforceServiceCloudV2Sink. +func (s *SalesforceServiceCloudV2Sink) UnmarshalJSON(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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "externalIdFieldName": + err = unpopulate(val, "ExternalIDFieldName", &s.ExternalIDFieldName) + delete(rawMsg, key) + case "ignoreNullValues": + err = unpopulate(val, "IgnoreNullValues", &s.IgnoreNullValues) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &s.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &s.SinkRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &s.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &s.WriteBatchTimeout) + delete(rawMsg, key) + case "writeBehavior": + err = unpopulate(val, "WriteBehavior", &s.WriteBehavior) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SalesforceServiceCloudV2Source. +func (s SalesforceServiceCloudV2Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "includeDeletedObjects", s.IncludeDeletedObjects) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "SOQLQuery", s.SOQLQuery) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + objectMap["type"] = "SalesforceServiceCloudV2Source" + 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 SalesforceServiceCloudV2Source. +func (s *SalesforceServiceCloudV2Source) UnmarshalJSON(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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &s.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "includeDeletedObjects": + err = unpopulate(val, "IncludeDeletedObjects", &s.IncludeDeletedObjects) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "SOQLQuery": + err = unpopulate(val, "SOQLQuery", &s.SOQLQuery) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SalesforceSink. +func (s SalesforceSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "externalIdFieldName", s.ExternalIDFieldName) + populateAny(objectMap, "ignoreNullValues", s.IgnoreNullValues) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + objectMap["type"] = "SalesforceSink" + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + populate(objectMap, "writeBehavior", s.WriteBehavior) + 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 SalesforceSink. +func (s *SalesforceSink) UnmarshalJSON(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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "externalIdFieldName": + err = unpopulate(val, "ExternalIDFieldName", &s.ExternalIDFieldName) + delete(rawMsg, key) + case "ignoreNullValues": + err = unpopulate(val, "IgnoreNullValues", &s.IgnoreNullValues) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &s.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &s.SinkRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &s.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &s.WriteBatchTimeout) + delete(rawMsg, key) + case "writeBehavior": + err = unpopulate(val, "WriteBehavior", &s.WriteBehavior) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SalesforceSource. +func (s SalesforceSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "readBehavior", s.ReadBehavior) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + objectMap["type"] = "SalesforceSource" + 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 SalesforceSource. +func (s *SalesforceSource) UnmarshalJSON(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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &s.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "query": + err = unpopulate(val, "Query", &s.Query) + delete(rawMsg, key) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &s.QueryTimeout) + delete(rawMsg, key) + case "readBehavior": + err = unpopulate(val, "ReadBehavior", &s.ReadBehavior) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40881,115 +43978,14 @@ func (s *SalesforceMarketingCloudSource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SalesforceObjectDataset. -func (s SalesforceObjectDataset) 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"] = "SalesforceObject" - 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 SalesforceObjectDataset. -func (s *SalesforceObjectDataset) UnmarshalJSON(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 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{}) +// MarshalJSON implements the json.Marshaller interface for type SalesforceV2LinkedService. +func (s SalesforceV2LinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) populate(objectMap, "parameters", s.Parameters) - objectMap["type"] = "SalesforceServiceCloud" + objectMap["type"] = "SalesforceV2" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -40999,8 +43995,8 @@ func (s SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { 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 SalesforceV2LinkedService. +func (s *SalesforceV2LinkedService) UnmarshalJSON(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) @@ -41028,10 +44024,10 @@ func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41044,21 +44040,20 @@ func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { 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) +// MarshalJSON implements the json.Marshaller interface for type SalesforceV2LinkedServiceTypeProperties. +func (s SalesforceV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "apiVersion", s.APIVersion) + populateAny(objectMap, "authenticationType", s.AuthenticationType) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "clientSecret", s.ClientSecret) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "environmentUrl", s.EnvironmentURL) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudLinkedServiceTypeProperties. -func (s *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceV2LinkedServiceTypeProperties. +func (s *SalesforceV2LinkedServiceTypeProperties) UnmarshalJSON(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) @@ -41069,24 +44064,21 @@ func (s *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data [ case "apiVersion": err = unpopulate(val, "APIVersion", &s.APIVersion) delete(rawMsg, key) + case "authenticationType": + err = unpopulate(val, "AuthenticationType", &s.AuthenticationType) + delete(rawMsg, key) + case "clientId": + err = unpopulate(val, "ClientID", &s.ClientID) + delete(rawMsg, key) + case "clientSecret": + s.ClientSecret, err = unmarshalSecretBaseClassification(val) + 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) @@ -41095,17 +44087,17 @@ func (s *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data [ return nil } -// MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudObjectDataset. -func (s SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type SalesforceV2ObjectDataset. +func (s SalesforceV2ObjectDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) 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" + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) + objectMap["type"] = "SalesforceV2Object" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -41115,8 +44107,8 @@ func (s SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudObjectDataset. -func (s *SalesforceServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceV2ObjectDataset. +func (s *SalesforceV2ObjectDataset) UnmarshalJSON(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) @@ -41153,10 +44145,10 @@ func (s *SalesforceServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41169,15 +44161,16 @@ func (s *SalesforceServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudObjectDatasetTypeProperties. -func (s SalesforceServiceCloudObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "objectApiName", &s.ObjectAPIName) +// MarshalJSON implements the json.Marshaller interface for type SalesforceV2ObjectDatasetTypeProperties. +func (s SalesforceV2ObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "objectApiName", s.ObjectAPIName) + populateAny(objectMap, "reportId", s.ReportID) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudObjectDatasetTypeProperties. -func (s *SalesforceServiceCloudObjectDatasetTypeProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceV2ObjectDatasetTypeProperties. +func (s *SalesforceV2ObjectDatasetTypeProperties) UnmarshalJSON(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) @@ -41188,153 +44181,8 @@ func (s *SalesforceServiceCloudObjectDatasetTypeProperties) UnmarshalJSON(data [ 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 SalesforceServiceCloudSink. -func (s SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "externalIdFieldName", &s.ExternalIDFieldName) - populate(objectMap, "ignoreNullValues", &s.IgnoreNullValues) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - objectMap["type"] = "SalesforceServiceCloudSink" - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) - populate(objectMap, "writeBehavior", s.WriteBehavior) - 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 SalesforceServiceCloudSink. -func (s *SalesforceServiceCloudSink) UnmarshalJSON(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 "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) - delete(rawMsg, key) - case "externalIdFieldName": - err = unpopulate(val, "ExternalIDFieldName", &s.ExternalIDFieldName) - delete(rawMsg, key) - case "ignoreNullValues": - err = unpopulate(val, "IgnoreNullValues", &s.IgnoreNullValues) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) - delete(rawMsg, key) - case "sinkRetryCount": - err = unpopulate(val, "SinkRetryCount", &s.SinkRetryCount) - delete(rawMsg, key) - case "sinkRetryWait": - err = unpopulate(val, "SinkRetryWait", &s.SinkRetryWait) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "writeBatchSize": - err = unpopulate(val, "WriteBatchSize", &s.WriteBatchSize) - delete(rawMsg, key) - case "writeBatchTimeout": - err = unpopulate(val, "WriteBatchTimeout", &s.WriteBatchTimeout) - delete(rawMsg, key) - case "writeBehavior": - err = unpopulate(val, "WriteBehavior", &s.WriteBehavior) - 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 SalesforceServiceCloudSource. -func (s SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "readBehavior", s.ReadBehavior) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - objectMap["type"] = "SalesforceServiceCloudSource" - 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 SalesforceServiceCloudSource. -func (s *SalesforceServiceCloudSource) UnmarshalJSON(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 "additionalColumns": - err = unpopulate(val, "AdditionalColumns", &s.AdditionalColumns) - delete(rawMsg, key) - case "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) - delete(rawMsg, key) - case "query": - err = unpopulate(val, "Query", &s.Query) - delete(rawMsg, key) - case "readBehavior": - err = unpopulate(val, "ReadBehavior", &s.ReadBehavior) - delete(rawMsg, key) - case "sourceRetryCount": - err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) - delete(rawMsg, key) - case "sourceRetryWait": - err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) - delete(rawMsg, key) - 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 - } + case "reportId": + err = unpopulate(val, "ReportID", &s.ReportID) delete(rawMsg, key) } if err != nil { @@ -41344,18 +44192,18 @@ func (s *SalesforceServiceCloudSource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SalesforceSink. -func (s SalesforceSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "externalIdFieldName", &s.ExternalIDFieldName) - populate(objectMap, "ignoreNullValues", &s.IgnoreNullValues) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - objectMap["type"] = "SalesforceSink" - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) +// MarshalJSON implements the json.Marshaller interface for type SalesforceV2Sink. +func (s SalesforceV2Sink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "externalIdFieldName", s.ExternalIDFieldName) + populateAny(objectMap, "ignoreNullValues", s.IgnoreNullValues) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + objectMap["type"] = "SalesforceV2Sink" + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) populate(objectMap, "writeBehavior", s.WriteBehavior) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -41365,8 +44213,8 @@ func (s SalesforceSink) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceSink. -func (s *SalesforceSink) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceV2Sink. +func (s *SalesforceV2Sink) UnmarshalJSON(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) @@ -41406,10 +44254,10 @@ func (s *SalesforceSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41422,18 +44270,18 @@ func (s *SalesforceSink) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SalesforceSource. -func (s SalesforceSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "readBehavior", s.ReadBehavior) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - objectMap["type"] = "SalesforceSource" +// MarshalJSON implements the json.Marshaller interface for type SalesforceV2Source. +func (s SalesforceV2Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "includeDeletedObjects", s.IncludeDeletedObjects) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "SOQLQuery", s.SOQLQuery) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + objectMap["type"] = "SalesforceV2Source" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -41442,8 +44290,8 @@ func (s SalesforceSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceSource. -func (s *SalesforceSource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceV2Source. +func (s *SalesforceV2Source) UnmarshalJSON(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) @@ -41457,17 +44305,17 @@ func (s *SalesforceSource) UnmarshalJSON(data []byte) error { case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) delete(rawMsg, key) + case "includeDeletedObjects": + err = unpopulate(val, "IncludeDeletedObjects", &s.IncludeDeletedObjects) + delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) delete(rawMsg, key) - case "query": - err = unpopulate(val, "Query", &s.Query) - delete(rawMsg, key) case "queryTimeout": err = unpopulate(val, "QueryTimeout", &s.QueryTimeout) delete(rawMsg, key) - case "readBehavior": - err = unpopulate(val, "ReadBehavior", &s.ReadBehavior) + case "SOQLQuery": + err = unpopulate(val, "SOQLQuery", &s.SOQLQuery) delete(rawMsg, key) case "sourceRetryCount": err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) @@ -41480,10 +44328,10 @@ func (s *SalesforceSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41498,7 +44346,7 @@ func (s *SalesforceSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBWLinkedService. func (s SapBWLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -41542,10 +44390,10 @@ func (s *SapBWLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41560,13 +44408,13 @@ func (s *SapBWLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBWLinkedServiceTypeProperties. func (s SapBWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &s.ClientID) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) - populate(objectMap, "server", &s.Server) - populate(objectMap, "systemNumber", &s.SystemNumber) - populate(objectMap, "userName", &s.UserName) + populateAny(objectMap, "server", s.Server) + populateAny(objectMap, "systemNumber", s.SystemNumber) + populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) } @@ -41607,14 +44455,14 @@ func (s *SapBWLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBwCubeDataset. func (s SapBwCubeDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SapBwCube" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -41659,10 +44507,10 @@ func (s *SapBwCubeDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41677,14 +44525,14 @@ func (s *SapBwCubeDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBwSource. func (s SapBwSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SapBwSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -41729,10 +44577,10 @@ func (s *SapBwSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41747,7 +44595,7 @@ func (s *SapBwSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerLinkedService. func (s SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -41791,10 +44639,10 @@ func (s *SapCloudForCustomerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41809,11 +44657,11 @@ func (s *SapCloudForCustomerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerLinkedServiceTypeProperties. func (s SapCloudForCustomerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) - populate(objectMap, "url", &s.URL) - populate(objectMap, "username", &s.Username) + populateAny(objectMap, "url", s.URL) + populateAny(objectMap, "username", s.Username) return json.Marshal(objectMap) } @@ -41848,14 +44696,14 @@ func (s *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerResourceDataset. func (s SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SapCloudForCustomerResource" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -41904,10 +44752,10 @@ func (s *SapCloudForCustomerResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41922,8 +44770,8 @@ func (s *SapCloudForCustomerResourceDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "path", s.Path) return json.Marshal(objectMap) } @@ -41949,15 +44797,15 @@ func (s *SapCloudForCustomerResourceDatasetTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerSink. func (s SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", s.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) objectMap["type"] = "SapCloudForCustomerSink" - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) populate(objectMap, "writeBehavior", s.WriteBehavior) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -42005,10 +44853,10 @@ func (s *SapCloudForCustomerSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42023,15 +44871,15 @@ func (s *SapCloudForCustomerSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerSource. func (s SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", s.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SapCloudForCustomerSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -42079,10 +44927,10 @@ func (s *SapCloudForCustomerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42097,7 +44945,7 @@ func (s *SapCloudForCustomerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccLinkedService. func (s SapEccLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -42141,10 +44989,10 @@ func (s *SapEccLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42159,11 +45007,11 @@ func (s *SapEccLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccLinkedServiceTypeProperties. func (s SapEccLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) - populate(objectMap, "url", s.URL) - populate(objectMap, "username", s.Username) + populateAny(objectMap, "url", s.URL) + populateAny(objectMap, "username", s.Username) return json.Marshal(objectMap) } @@ -42198,14 +45046,14 @@ func (s *SapEccLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccResourceDataset. func (s SapEccResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SapEccResource" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -42254,10 +45102,10 @@ func (s *SapEccResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42272,8 +45120,8 @@ func (s *SapEccResourceDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "path", s.Path) return json.Marshal(objectMap) } @@ -42299,15 +45147,15 @@ func (s *SapEccResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccSource. func (s SapEccSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", s.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SapEccSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -42355,10 +45203,10 @@ func (s *SapEccSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42373,7 +45221,7 @@ func (s *SapEccSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaLinkedService. func (s SapHanaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -42417,10 +45265,10 @@ func (s *SapHanaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42435,13 +45283,13 @@ func (s *SapHanaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaLinkedServiceProperties. func (s SapHanaLinkedServiceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) - populate(objectMap, "connectionString", &s.ConnectionString) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) + populateAny(objectMap, "connectionString", s.ConnectionString) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) - populate(objectMap, "server", &s.Server) - populate(objectMap, "userName", &s.UserName) + populateAny(objectMap, "server", s.Server) + populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) } @@ -42482,8 +45330,8 @@ func (s *SapHanaLinkedServiceProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "partitionColumnName", s.PartitionColumnName) return json.Marshal(objectMap) } @@ -42509,17 +45357,17 @@ func (s *SapHanaPartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaSource. func (s SapHanaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "packetSize", &s.PacketSize) - populate(objectMap, "partitionOption", &s.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "packetSize", s.PacketSize) + populateAny(objectMap, "partitionOption", s.PartitionOption) populate(objectMap, "partitionSettings", s.PartitionSettings) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SapHanaSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -42573,10 +45421,10 @@ func (s *SapHanaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42591,14 +45439,14 @@ func (s *SapHanaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaTableDataset. func (s SapHanaTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SapHanaTable" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -42647,10 +45495,10 @@ func (s *SapHanaTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42665,9 +45513,9 @@ func (s *SapHanaTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "table", s.Table) return json.Marshal(objectMap) } @@ -42696,7 +45544,7 @@ func (s *SapHanaTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpLinkedService. func (s SapOdpLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -42740,10 +45588,10 @@ func (s *SapOdpLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42758,25 +45606,25 @@ func (s *SapOdpLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpLinkedServiceTypeProperties. func (s SapOdpLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &s.ClientID) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "language", &s.Language) - populate(objectMap, "logonGroup", &s.LogonGroup) - populate(objectMap, "messageServer", &s.MessageServer) - populate(objectMap, "messageServerService", &s.MessageServerService) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "language", s.Language) + populateAny(objectMap, "logonGroup", s.LogonGroup) + populateAny(objectMap, "messageServer", s.MessageServer) + populateAny(objectMap, "messageServerService", s.MessageServerService) populate(objectMap, "password", s.Password) - populate(objectMap, "server", &s.Server) - populate(objectMap, "sncLibraryPath", &s.SncLibraryPath) - populate(objectMap, "sncMode", &s.SncMode) - populate(objectMap, "sncMyName", &s.SncMyName) - populate(objectMap, "sncPartnerName", &s.SncPartnerName) - populate(objectMap, "sncQop", &s.SncQop) - populate(objectMap, "subscriberName", &s.SubscriberName) - populate(objectMap, "systemId", &s.SystemID) - populate(objectMap, "systemNumber", &s.SystemNumber) - populate(objectMap, "userName", &s.UserName) - populate(objectMap, "x509CertificatePath", &s.X509CertificatePath) + populateAny(objectMap, "server", s.Server) + populateAny(objectMap, "sncLibraryPath", s.SncLibraryPath) + populateAny(objectMap, "sncMode", s.SncMode) + populateAny(objectMap, "sncMyName", s.SncMyName) + populateAny(objectMap, "sncPartnerName", s.SncPartnerName) + populateAny(objectMap, "sncQop", s.SncQop) + populateAny(objectMap, "subscriberName", s.SubscriberName) + populateAny(objectMap, "systemId", s.SystemID) + populateAny(objectMap, "systemNumber", s.SystemNumber) + populateAny(objectMap, "userName", s.UserName) + populateAny(objectMap, "x509CertificatePath", s.X509CertificatePath) return json.Marshal(objectMap) } @@ -42853,14 +45701,14 @@ func (s *SapOdpLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpResourceDataset. func (s SapOdpResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SapOdpResource" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -42909,10 +45757,10 @@ func (s *SapOdpResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42927,9 +45775,9 @@ func (s *SapOdpResourceDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "context", s.Context) + populateAny(objectMap, "objectName", s.ObjectName) return json.Marshal(objectMap) } @@ -42958,17 +45806,17 @@ func (s *SapOdpResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpSource. func (s SapOdpSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "extractionMode", &s.ExtractionMode) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "projection", &s.Projection) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "selection", &s.Selection) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - populate(objectMap, "subscriberProcess", &s.SubscriberProcess) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "extractionMode", s.ExtractionMode) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "projection", s.Projection) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "selection", s.Selection) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + populateAny(objectMap, "subscriberProcess", s.SubscriberProcess) objectMap["type"] = "SapOdpSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -43022,10 +45870,10 @@ func (s *SapOdpSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43040,7 +45888,7 @@ func (s *SapOdpSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOpenHubLinkedService. func (s SapOpenHubLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -43084,10 +45932,10 @@ func (s *SapOpenHubLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43102,18 +45950,18 @@ func (s *SapOpenHubLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOpenHubLinkedServiceTypeProperties. func (s SapOpenHubLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &s.ClientID) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "language", &s.Language) - populate(objectMap, "logonGroup", &s.LogonGroup) - populate(objectMap, "messageServer", &s.MessageServer) - populate(objectMap, "messageServerService", &s.MessageServerService) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "language", s.Language) + populateAny(objectMap, "logonGroup", s.LogonGroup) + populateAny(objectMap, "messageServer", s.MessageServer) + populateAny(objectMap, "messageServerService", s.MessageServerService) populate(objectMap, "password", s.Password) - populate(objectMap, "server", &s.Server) - populate(objectMap, "systemId", &s.SystemID) - populate(objectMap, "systemNumber", &s.SystemNumber) - populate(objectMap, "userName", &s.UserName) + populateAny(objectMap, "server", s.Server) + populateAny(objectMap, "systemId", s.SystemID) + populateAny(objectMap, "systemNumber", s.SystemNumber) + populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) } @@ -43169,17 +46017,17 @@ func (s *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SapOpenHubSource. func (s SapOpenHubSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "baseRequestId", &s.BaseRequestID) - populate(objectMap, "customRfcReadTableFunctionModule", &s.CustomRFCReadTableFunctionModule) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "excludeLastRequest", &s.ExcludeLastRequest) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sapDataColumnDelimiter", &s.SapDataColumnDelimiter) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "baseRequestId", s.BaseRequestID) + populateAny(objectMap, "customRfcReadTableFunctionModule", s.CustomRFCReadTableFunctionModule) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "excludeLastRequest", s.ExcludeLastRequest) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sapDataColumnDelimiter", s.SapDataColumnDelimiter) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SapOpenHubSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -43233,10 +46081,10 @@ func (s *SapOpenHubSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43251,14 +46099,14 @@ func (s *SapOpenHubSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOpenHubTableDataset. func (s SapOpenHubTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SapOpenHubTable" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -43307,10 +46155,10 @@ func (s *SapOpenHubTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43325,10 +46173,10 @@ func (s *SapOpenHubTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "baseRequestId", s.BaseRequestID) + populateAny(objectMap, "excludeLastRequest", s.ExcludeLastRequest) + populateAny(objectMap, "openHubDestinationName", s.OpenHubDestinationName) return json.Marshal(objectMap) } @@ -43360,7 +46208,7 @@ func (s *SapOpenHubTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SapTableLinkedService. func (s SapTableLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -43404,10 +46252,10 @@ func (s *SapTableLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43422,23 +46270,23 @@ func (s *SapTableLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapTableLinkedServiceTypeProperties. func (s SapTableLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &s.ClientID) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "language", &s.Language) - populate(objectMap, "logonGroup", &s.LogonGroup) - populate(objectMap, "messageServer", &s.MessageServer) - populate(objectMap, "messageServerService", &s.MessageServerService) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "language", s.Language) + populateAny(objectMap, "logonGroup", s.LogonGroup) + populateAny(objectMap, "messageServer", s.MessageServer) + populateAny(objectMap, "messageServerService", s.MessageServerService) populate(objectMap, "password", s.Password) - populate(objectMap, "server", &s.Server) - populate(objectMap, "sncLibraryPath", &s.SncLibraryPath) - populate(objectMap, "sncMode", &s.SncMode) - populate(objectMap, "sncMyName", &s.SncMyName) - populate(objectMap, "sncPartnerName", &s.SncPartnerName) - populate(objectMap, "sncQop", &s.SncQop) - populate(objectMap, "systemId", &s.SystemID) - populate(objectMap, "systemNumber", &s.SystemNumber) - populate(objectMap, "userName", &s.UserName) + populateAny(objectMap, "server", s.Server) + populateAny(objectMap, "sncLibraryPath", s.SncLibraryPath) + populateAny(objectMap, "sncMode", s.SncMode) + populateAny(objectMap, "sncMyName", s.SncMyName) + populateAny(objectMap, "sncPartnerName", s.SncPartnerName) + populateAny(objectMap, "sncQop", s.SncQop) + populateAny(objectMap, "systemId", s.SystemID) + populateAny(objectMap, "systemNumber", s.SystemNumber) + populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) } @@ -43509,11 +46357,11 @@ func (s *SapTableLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "maxPartitionsNumber", s.MaxPartitionsNumber) + populateAny(objectMap, "partitionColumnName", s.PartitionColumnName) + populateAny(objectMap, "partitionLowerBound", s.PartitionLowerBound) + populateAny(objectMap, "partitionUpperBound", s.PartitionUpperBound) return json.Marshal(objectMap) } @@ -43548,14 +46396,14 @@ func (s *SapTablePartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapTableResourceDataset. func (s SapTableResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SapTableResource" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -43604,10 +46452,10 @@ func (s *SapTableResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43622,8 +46470,8 @@ func (s *SapTableResourceDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", s.TableName) return json.Marshal(objectMap) } @@ -43649,22 +46497,22 @@ func (s *SapTableResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SapTableSource. func (s SapTableSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "batchSize", &s.BatchSize) - populate(objectMap, "customRfcReadTableFunctionModule", &s.CustomRFCReadTableFunctionModule) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &s.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "batchSize", s.BatchSize) + populateAny(objectMap, "customRfcReadTableFunctionModule", s.CustomRFCReadTableFunctionModule) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", s.PartitionOption) populate(objectMap, "partitionSettings", s.PartitionSettings) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "rfcTableFields", &s.RFCTableFields) - populate(objectMap, "rfcTableOptions", &s.RFCTableOptions) - populate(objectMap, "rowCount", &s.RowCount) - populate(objectMap, "rowSkips", &s.RowSkips) - populate(objectMap, "sapDataColumnDelimiter", &s.SapDataColumnDelimiter) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "rfcTableFields", s.RFCTableFields) + populateAny(objectMap, "rfcTableOptions", s.RFCTableOptions) + populateAny(objectMap, "rowCount", s.RowCount) + populateAny(objectMap, "rowSkips", s.RowSkips) + populateAny(objectMap, "sapDataColumnDelimiter", s.SapDataColumnDelimiter) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SapTableSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -43733,10 +46581,10 @@ func (s *SapTableSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43751,7 +46599,7 @@ func (s *SapTableSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleTrigger. func (s ScheduleTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "pipelines", s.Pipelines) @@ -43795,10 +46643,10 @@ func (s *ScheduleTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43813,12 +46661,12 @@ func (s *ScheduleTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleTriggerRecurrence. func (s ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endTime", s.EndTime) + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "endTime", s.EndTime) populate(objectMap, "frequency", s.Frequency) populate(objectMap, "interval", s.Interval) populate(objectMap, "schedule", s.Schedule) - populateTimeRFC3339(objectMap, "startTime", s.StartTime) + populateDateTimeRFC3339(objectMap, "startTime", s.StartTime) populate(objectMap, "timeZone", s.TimeZone) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -43838,7 +46686,7 @@ func (s *ScheduleTriggerRecurrence) UnmarshalJSON(data []byte) error { var err error switch key { case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &s.EndTime) + err = unpopulateDateTimeRFC3339(val, "EndTime", &s.EndTime) delete(rawMsg, key) case "frequency": err = unpopulate(val, "Frequency", &s.Frequency) @@ -43850,17 +46698,17 @@ func (s *ScheduleTriggerRecurrence) UnmarshalJSON(data []byte) error { err = unpopulate(val, "Schedule", &s.Schedule) delete(rawMsg, key) case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &s.StartTime) + err = unpopulateDateTimeRFC3339(val, "StartTime", &s.StartTime) delete(rawMsg, key) case "timeZone": err = unpopulate(val, "TimeZone", &s.TimeZone) delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43875,7 +46723,7 @@ func (s *ScheduleTriggerRecurrence) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleTriggerTypeProperties. func (s ScheduleTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "recurrence", s.Recurrence) return json.Marshal(objectMap) } @@ -43902,10 +46750,10 @@ func (s *ScheduleTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptAction. func (s ScriptAction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) populate(objectMap, "parameters", s.Parameters) - populate(objectMap, "roles", &s.Roles) + populateAny(objectMap, "roles", s.Roles) populate(objectMap, "uri", s.URI) return json.Marshal(objectMap) } @@ -43941,12 +46789,14 @@ func (s *ScriptAction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivity. func (s ScriptActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "Script" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -43979,9 +46829,15 @@ func (s *ScriptActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -43993,10 +46849,10 @@ func (s *ScriptActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44011,12 +46867,12 @@ func (s *ScriptActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityParameter. func (s ScriptActivityParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "direction", s.Direction) - populate(objectMap, "name", &s.Name) + populateAny(objectMap, "name", s.Name) populate(objectMap, "size", s.Size) populate(objectMap, "type", s.Type) - populate(objectMap, "value", &s.Value) + populateAny(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -44054,9 +46910,9 @@ func (s *ScriptActivityParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityScriptBlock. func (s ScriptActivityScriptBlock) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", s.Parameters) - populate(objectMap, "text", &s.Text) + populateAny(objectMap, "text", s.Text) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) } @@ -44089,8 +46945,9 @@ func (s *ScriptActivityScriptBlock) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityTypeProperties. func (s ScriptActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSettings", s.LogSettings) + populateAny(objectMap, "scriptBlockExecutionTimeout", s.ScriptBlockExecutionTimeout) populate(objectMap, "scripts", s.Scripts) return json.Marshal(objectMap) } @@ -44107,6 +46964,9 @@ func (s *ScriptActivityTypeProperties) UnmarshalJSON(data []byte) error { case "logSettings": err = unpopulate(val, "LogSettings", &s.LogSettings) delete(rawMsg, key) + case "scriptBlockExecutionTimeout": + err = unpopulate(val, "ScriptBlockExecutionTimeout", &s.ScriptBlockExecutionTimeout) + delete(rawMsg, key) case "scripts": err = unpopulate(val, "Scripts", &s.Scripts) delete(rawMsg, key) @@ -44120,7 +46980,7 @@ func (s *ScriptActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityTypePropertiesLogSettings. func (s ScriptActivityTypePropertiesLogSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logDestination", s.LogDestination) populate(objectMap, "logLocationSettings", s.LogLocationSettings) return json.Marshal(objectMap) @@ -44151,7 +47011,7 @@ func (s *ScriptActivityTypePropertiesLogSettings) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type SecretBase. func (s SecretBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = s.Type return json.Marshal(objectMap) } @@ -44176,9 +47036,40 @@ func (s *SecretBase) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SecureInputOutputPolicy. +func (s SecureInputOutputPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "secureInput", s.SecureInput) + populate(objectMap, "secureOutput", s.SecureOutput) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecureInputOutputPolicy. +func (s *SecureInputOutputPolicy) UnmarshalJSON(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 "secureInput": + err = unpopulate(val, "SecureInput", &s.SecureInput) + delete(rawMsg, key) + case "secureOutput": + err = unpopulate(val, "SecureOutput", &s.SecureOutput) + 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{}) + objectMap := make(map[string]any) objectMap["type"] = "SecureString" populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -44209,7 +47100,7 @@ func (s *SecureString) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfDependencyTumblingWindowTriggerReference. func (s SelfDependencyTumblingWindowTriggerReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "offset", s.Offset) populate(objectMap, "size", s.Size) objectMap["type"] = "SelfDependencyTumblingWindowTriggerReference" @@ -44244,7 +47135,7 @@ func (s *SelfDependencyTumblingWindowTriggerReference) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntime. func (s SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) objectMap["type"] = IntegrationRuntimeTypeSelfHosted populate(objectMap, "typeProperties", s.TypeProperties) @@ -44276,10 +47167,10 @@ func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44294,22 +47185,22 @@ func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeNode. func (s SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capabilities", s.Capabilities) populate(objectMap, "concurrentJobsLimit", s.ConcurrentJobsLimit) - populateTimeRFC3339(objectMap, "expiryTime", s.ExpiryTime) + populateDateTimeRFC3339(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) + populateDateTimeRFC3339(objectMap, "lastConnectTime", s.LastConnectTime) + populateDateTimeRFC3339(objectMap, "lastEndUpdateTime", s.LastEndUpdateTime) + populateDateTimeRFC3339(objectMap, "lastStartTime", s.LastStartTime) + populateDateTimeRFC3339(objectMap, "lastStartUpdateTime", s.LastStartUpdateTime) + populateDateTimeRFC3339(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) + populateDateTimeRFC3339(objectMap, "registerTime", s.RegisterTime) populate(objectMap, "status", s.Status) populate(objectMap, "version", s.Version) populate(objectMap, "versionStatus", s.VersionStatus) @@ -44337,7 +47228,7 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { err = unpopulate(val, "ConcurrentJobsLimit", &s.ConcurrentJobsLimit) delete(rawMsg, key) case "expiryTime": - err = unpopulateTimeRFC3339(val, "ExpiryTime", &s.ExpiryTime) + err = unpopulateDateTimeRFC3339(val, "ExpiryTime", &s.ExpiryTime) delete(rawMsg, key) case "hostServiceUri": err = unpopulate(val, "HostServiceURI", &s.HostServiceURI) @@ -44346,19 +47237,19 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { err = unpopulate(val, "IsActiveDispatcher", &s.IsActiveDispatcher) delete(rawMsg, key) case "lastConnectTime": - err = unpopulateTimeRFC3339(val, "LastConnectTime", &s.LastConnectTime) + err = unpopulateDateTimeRFC3339(val, "LastConnectTime", &s.LastConnectTime) delete(rawMsg, key) case "lastEndUpdateTime": - err = unpopulateTimeRFC3339(val, "LastEndUpdateTime", &s.LastEndUpdateTime) + err = unpopulateDateTimeRFC3339(val, "LastEndUpdateTime", &s.LastEndUpdateTime) delete(rawMsg, key) case "lastStartTime": - err = unpopulateTimeRFC3339(val, "LastStartTime", &s.LastStartTime) + err = unpopulateDateTimeRFC3339(val, "LastStartTime", &s.LastStartTime) delete(rawMsg, key) case "lastStartUpdateTime": - err = unpopulateTimeRFC3339(val, "LastStartUpdateTime", &s.LastStartUpdateTime) + err = unpopulateDateTimeRFC3339(val, "LastStartUpdateTime", &s.LastStartUpdateTime) delete(rawMsg, key) case "lastStopTime": - err = unpopulateTimeRFC3339(val, "LastStopTime", &s.LastStopTime) + err = unpopulateDateTimeRFC3339(val, "LastStopTime", &s.LastStopTime) delete(rawMsg, key) case "lastUpdateResult": err = unpopulate(val, "LastUpdateResult", &s.LastUpdateResult) @@ -44373,7 +47264,7 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { err = unpopulate(val, "NodeName", &s.NodeName) delete(rawMsg, key) case "registerTime": - err = unpopulateTimeRFC3339(val, "RegisterTime", &s.RegisterTime) + err = unpopulateDateTimeRFC3339(val, "RegisterTime", &s.RegisterTime) delete(rawMsg, key) case "status": err = unpopulate(val, "Status", &s.Status) @@ -44386,10 +47277,10 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44404,7 +47295,7 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatus. func (s SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryName", s.DataFactoryName) populate(objectMap, "state", s.State) objectMap["type"] = IntegrationRuntimeTypeSelfHosted @@ -44440,10 +47331,10 @@ func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44458,18 +47349,19 @@ func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. func (s SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoUpdate", s.AutoUpdate) - populateTimeRFC3339(objectMap, "autoUpdateETA", s.AutoUpdateETA) + populateDateTimeRFC3339(objectMap, "autoUpdateETA", s.AutoUpdateETA) populate(objectMap, "capabilities", s.Capabilities) - populateTimeRFC3339(objectMap, "createTime", s.CreateTime) + populateDateTimeRFC3339(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) + populateDateTimeRFC3339(objectMap, "scheduledUpdateDate", s.ScheduledUpdateDate) + populate(objectMap, "selfContainedInteractiveAuthoringEnabled", s.SelfContainedInteractiveAuthoringEnabled) populate(objectMap, "serviceUrls", s.ServiceUrls) populate(objectMap, "taskQueueId", s.TaskQueueID) populate(objectMap, "updateDelayOffset", s.UpdateDelayOffset) @@ -44491,13 +47383,13 @@ func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data [] err = unpopulate(val, "AutoUpdate", &s.AutoUpdate) delete(rawMsg, key) case "autoUpdateETA": - err = unpopulateTimeRFC3339(val, "AutoUpdateETA", &s.AutoUpdateETA) + err = unpopulateDateTimeRFC3339(val, "AutoUpdateETA", &s.AutoUpdateETA) delete(rawMsg, key) case "capabilities": err = unpopulate(val, "Capabilities", &s.Capabilities) delete(rawMsg, key) case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &s.CreateTime) + err = unpopulateDateTimeRFC3339(val, "CreateTime", &s.CreateTime) delete(rawMsg, key) case "internalChannelEncryption": err = unpopulate(val, "InternalChannelEncryption", &s.InternalChannelEncryption) @@ -44518,7 +47410,10 @@ func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data [] err = unpopulate(val, "PushedVersion", &s.PushedVersion) delete(rawMsg, key) case "scheduledUpdateDate": - err = unpopulateTimeRFC3339(val, "ScheduledUpdateDate", &s.ScheduledUpdateDate) + err = unpopulateDateTimeRFC3339(val, "ScheduledUpdateDate", &s.ScheduledUpdateDate) + delete(rawMsg, key) + case "selfContainedInteractiveAuthoringEnabled": + err = unpopulate(val, "SelfContainedInteractiveAuthoringEnabled", &s.SelfContainedInteractiveAuthoringEnabled) delete(rawMsg, key) case "serviceUrls": err = unpopulate(val, "ServiceUrls", &s.ServiceUrls) @@ -44545,8 +47440,9 @@ func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. func (s SelfHostedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "linkedInfo", s.LinkedInfo) + populate(objectMap, "selfContainedInteractiveAuthoringEnabled", s.SelfContainedInteractiveAuthoringEnabled) return json.Marshal(objectMap) } @@ -44562,6 +47458,9 @@ func (s *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) case "linkedInfo": s.LinkedInfo, err = unmarshalLinkedIntegrationRuntimeTypeClassification(val) delete(rawMsg, key) + case "selfContainedInteractiveAuthoringEnabled": + err = unpopulate(val, "SelfContainedInteractiveAuthoringEnabled", &s.SelfContainedInteractiveAuthoringEnabled) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -44572,7 +47471,7 @@ func (s *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type ServiceNowLinkedService. func (s ServiceNowLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -44616,10 +47515,10 @@ func (s *ServiceNowLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44634,17 +47533,17 @@ func (s *ServiceNowLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceNowLinkedServiceTypeProperties. func (s ServiceNowLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) - populate(objectMap, "clientId", &s.ClientID) + populateAny(objectMap, "clientId", s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "endpoint", &s.Endpoint) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "endpoint", s.Endpoint) populate(objectMap, "password", s.Password) - populate(objectMap, "useEncryptedEndpoints", &s.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &s.UseHostVerification) - populate(objectMap, "usePeerVerification", &s.UsePeerVerification) - populate(objectMap, "username", &s.Username) + populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", s.UseHostVerification) + populateAny(objectMap, "usePeerVerification", s.UsePeerVerification) + populateAny(objectMap, "username", s.Username) return json.Marshal(objectMap) } @@ -44697,14 +47596,14 @@ func (s *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ServiceNowObjectDataset. func (s ServiceNowObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "ServiceNowObject" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -44753,10 +47652,10 @@ func (s *ServiceNowObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44771,14 +47670,14 @@ func (s *ServiceNowObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceNowSource. func (s ServiceNowSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "ServiceNowSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -44823,10 +47722,271 @@ func (s *ServiceNowSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 ServiceNowV2LinkedService. +func (s ServiceNowV2LinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "connectVia", s.ConnectVia) + populate(objectMap, "description", s.Description) + populate(objectMap, "parameters", s.Parameters) + objectMap["type"] = "ServiceNowV2" + 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 ServiceNowV2LinkedService. +func (s *ServiceNowV2LinkedService) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 ServiceNowV2LinkedServiceTypeProperties. +func (s ServiceNowV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authenticationType", s.AuthenticationType) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "clientSecret", s.ClientSecret) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "endpoint", s.Endpoint) + populateAny(objectMap, "grantType", s.GrantType) + populate(objectMap, "password", s.Password) + populateAny(objectMap, "username", s.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceNowV2LinkedServiceTypeProperties. +func (s *ServiceNowV2LinkedServiceTypeProperties) UnmarshalJSON(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 "authenticationType": + err = unpopulate(val, "AuthenticationType", &s.AuthenticationType) + delete(rawMsg, key) + case "clientId": + err = unpopulate(val, "ClientID", &s.ClientID) + delete(rawMsg, key) + case "clientSecret": + s.ClientSecret, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) + delete(rawMsg, key) + case "endpoint": + err = unpopulate(val, "Endpoint", &s.Endpoint) + delete(rawMsg, key) + case "grantType": + err = unpopulate(val, "GrantType", &s.GrantType) + delete(rawMsg, key) + case "password": + s.Password, 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 ServiceNowV2ObjectDataset. +func (s ServiceNowV2ObjectDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) + objectMap["type"] = "ServiceNowV2Object" + 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 ServiceNowV2ObjectDataset. +func (s *ServiceNowV2ObjectDataset) UnmarshalJSON(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]any{} + } + if val != nil { + var aux any + 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 ServiceNowV2Source. +func (s ServiceNowV2Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populate(objectMap, "expression", s.Expression) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + objectMap["type"] = "ServiceNowV2Source" + 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 ServiceNowV2Source. +func (s *ServiceNowV2Source) UnmarshalJSON(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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &s.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "expression": + err = unpopulate(val, "Expression", &s.Expression) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &s.QueryTimeout) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44841,7 +48001,7 @@ func (s *ServiceNowSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredential. func (s ServicePrincipalCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) objectMap["type"] = "ServicePrincipal" @@ -44877,10 +48037,10 @@ func (s *ServicePrincipalCredential) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44895,10 +48055,10 @@ func (s *ServicePrincipalCredential) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "servicePrincipalId", s.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) - populate(objectMap, "tenant", &s.Tenant) + populateAny(objectMap, "tenant", s.Tenant) return json.Marshal(objectMap) } @@ -44930,10 +48090,13 @@ func (s *ServicePrincipalCredentialTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type SetVariableActivity. func (s SetVariableActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) + populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "SetVariable" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -44963,6 +48126,15 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, "Policy", &s.Policy) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -44974,10 +48146,10 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44992,8 +48164,9 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SetVariableActivityTypeProperties. func (s SetVariableActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", &s.Value) + objectMap := make(map[string]any) + populate(objectMap, "setSystemVariable", s.SetSystemVariable) + populateAny(objectMap, "value", s.Value) populate(objectMap, "variableName", s.VariableName) return json.Marshal(objectMap) } @@ -45007,6 +48180,9 @@ func (s *SetVariableActivityTypeProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "setSystemVariable": + err = unpopulate(val, "SetSystemVariable", &s.SetSystemVariable) + delete(rawMsg, key) case "value": err = unpopulate(val, "Value", &s.Value) delete(rawMsg, key) @@ -45023,9 +48199,9 @@ func (s *SetVariableActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpLocation. func (s SftpLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "fileName", &s.FileName) - populate(objectMap, "folderPath", &s.FolderPath) + objectMap := make(map[string]any) + populateAny(objectMap, "fileName", s.FileName) + populateAny(objectMap, "folderPath", s.FolderPath) objectMap["type"] = "SftpLocation" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -45055,10 +48231,10 @@ func (s *SftpLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45073,20 +48249,20 @@ func (s *SftpLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpReadSettings. func (s SftpReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "deleteFilesAfterCompletion", &s.DeleteFilesAfterCompletion) - populate(objectMap, "disableChunking", &s.DisableChunking) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", s.EnablePartitionDiscovery) - populate(objectMap, "fileListPath", &s.FileListPath) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "modifiedDatetimeEnd", &s.ModifiedDatetimeEnd) - populate(objectMap, "modifiedDatetimeStart", &s.ModifiedDatetimeStart) - populate(objectMap, "partitionRootPath", &s.PartitionRootPath) - populate(objectMap, "recursive", &s.Recursive) + objectMap := make(map[string]any) + populateAny(objectMap, "deleteFilesAfterCompletion", s.DeleteFilesAfterCompletion) + populateAny(objectMap, "disableChunking", s.DisableChunking) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "enablePartitionDiscovery", s.EnablePartitionDiscovery) + populateAny(objectMap, "fileListPath", s.FileListPath) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "modifiedDatetimeEnd", s.ModifiedDatetimeEnd) + populateAny(objectMap, "modifiedDatetimeStart", s.ModifiedDatetimeStart) + populateAny(objectMap, "partitionRootPath", s.PartitionRootPath) + populateAny(objectMap, "recursive", s.Recursive) objectMap["type"] = "SftpReadSettings" - populate(objectMap, "wildcardFileName", &s.WildcardFileName) - populate(objectMap, "wildcardFolderPath", &s.WildcardFolderPath) + populateAny(objectMap, "wildcardFileName", s.WildcardFileName) + populateAny(objectMap, "wildcardFolderPath", s.WildcardFolderPath) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -45145,10 +48321,10 @@ func (s *SftpReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45163,7 +48339,7 @@ func (s *SftpReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpServerLinkedService. func (s SftpServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45207,10 +48383,10 @@ func (s *SftpServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45225,18 +48401,18 @@ func (s *SftpServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpServerLinkedServiceTypeProperties. func (s SftpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "host", &s.Host) - populate(objectMap, "hostKeyFingerprint", &s.HostKeyFingerprint) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "host", s.Host) + populateAny(objectMap, "hostKeyFingerprint", s.HostKeyFingerprint) populate(objectMap, "passPhrase", s.PassPhrase) populate(objectMap, "password", s.Password) - populate(objectMap, "port", &s.Port) + populateAny(objectMap, "port", s.Port) populate(objectMap, "privateKeyContent", s.PrivateKeyContent) - populate(objectMap, "privateKeyPath", &s.PrivateKeyPath) - populate(objectMap, "skipHostKeyValidation", &s.SkipHostKeyValidation) - populate(objectMap, "userName", &s.UserName) + populateAny(objectMap, "privateKeyPath", s.PrivateKeyPath) + populateAny(objectMap, "skipHostKeyValidation", s.SkipHostKeyValidation) + populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) } @@ -45292,13 +48468,14 @@ func (s *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SftpWriteSettings. func (s SftpWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &s.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "operationTimeout", &s.OperationTimeout) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", s.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populate(objectMap, "metadata", s.Metadata) + populateAny(objectMap, "operationTimeout", s.OperationTimeout) objectMap["type"] = "SftpWriteSettings" - populate(objectMap, "useTempFileRename", &s.UseTempFileRename) + populateAny(objectMap, "useTempFileRename", s.UseTempFileRename) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -45325,6 +48502,9 @@ func (s *SftpWriteSettings) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &s.Metadata) + delete(rawMsg, key) case "operationTimeout": err = unpopulate(val, "OperationTimeout", &s.OperationTimeout) delete(rawMsg, key) @@ -45336,10 +48516,10 @@ func (s *SftpWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45354,8 +48534,8 @@ func (s *SftpWriteSettings) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "listName", s.ListName) return json.Marshal(objectMap) } @@ -45381,7 +48561,7 @@ func (s *SharePointOnlineListDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListLinkedService. func (s SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45425,10 +48605,10 @@ func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45443,12 +48623,12 @@ func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListLinkedServiceTypeProperties. func (s SharePointOnlineListLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "servicePrincipalId", &s.ServicePrincipalID) + objectMap := make(map[string]any) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "servicePrincipalId", s.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) - populate(objectMap, "siteUrl", &s.SiteURL) - populate(objectMap, "tenantId", &s.TenantID) + populateAny(objectMap, "siteUrl", s.SiteURL) + populateAny(objectMap, "tenantId", s.TenantID) return json.Marshal(objectMap) } @@ -45486,14 +48666,14 @@ func (s *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListResourceDataset. func (s SharePointOnlineListResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SharePointOnlineListResource" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -45542,10 +48722,10 @@ func (s *SharePointOnlineListResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45560,13 +48740,13 @@ func (s *SharePointOnlineListResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListSource. func (s SharePointOnlineListSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "httpRequestTimeout", s.HTTPRequestTimeout) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SharePointOnlineListSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -45608,10 +48788,10 @@ func (s *SharePointOnlineListSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45626,7 +48806,7 @@ func (s *SharePointOnlineListSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifyLinkedService. func (s ShopifyLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45670,10 +48850,10 @@ func (s *ShopifyLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45688,13 +48868,13 @@ func (s *ShopifyLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifyLinkedServiceTypeProperties. func (s ShopifyLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", s.AccessToken) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "host", &s.Host) - populate(objectMap, "useEncryptedEndpoints", &s.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &s.UseHostVerification) - populate(objectMap, "usePeerVerification", &s.UsePeerVerification) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "host", s.Host) + populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", s.UseHostVerification) + populateAny(objectMap, "usePeerVerification", s.UsePeerVerification) return json.Marshal(objectMap) } @@ -45735,14 +48915,14 @@ func (s *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifyObjectDataset. func (s ShopifyObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "ShopifyObject" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -45791,10 +48971,10 @@ func (s *ShopifyObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45809,14 +48989,14 @@ func (s *ShopifyObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifySource. func (s ShopifySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "ShopifySource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -45861,10 +49041,10 @@ func (s *ShopifySource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45879,9 +49059,9 @@ func (s *ShopifySource) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "dataInconsistency", s.DataInconsistency) + populateAny(objectMap, "fileMissing", s.FileMissing) return json.Marshal(objectMap) } @@ -45910,7 +49090,7 @@ func (s *SkipErrorFile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SmartsheetLinkedService. func (s SmartsheetLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45954,10 +49134,10 @@ func (s *SmartsheetLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45972,9 +49152,9 @@ func (s *SmartsheetLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SmartsheetLinkedServiceTypeProperties. func (s SmartsheetLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", s.APIToken) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) return json.Marshal(objectMap) } @@ -46003,14 +49183,14 @@ func (s *SmartsheetLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SnowflakeDataset. func (s SnowflakeDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SnowflakeTable" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -46059,10 +49239,10 @@ func (s *SnowflakeDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46077,9 +49257,9 @@ func (s *SnowflakeDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "table", s.Table) return json.Marshal(objectMap) } @@ -46108,7 +49288,7 @@ func (s *SnowflakeDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeExportCopyCommand. func (s SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalCopyOptions", s.AdditionalCopyOptions) populate(objectMap, "additionalFormatOptions", s.AdditionalFormatOptions) objectMap["type"] = "SnowflakeExportCopyCommand" @@ -46140,10 +49320,10 @@ func (s *SnowflakeExportCopyCommand) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46158,7 +49338,7 @@ func (s *SnowflakeExportCopyCommand) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeImportCopyCommand. func (s SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalCopyOptions", s.AdditionalCopyOptions) populate(objectMap, "additionalFormatOptions", s.AdditionalFormatOptions) objectMap["type"] = "SnowflakeImportCopyCommand" @@ -46190,10 +49370,10 @@ func (s *SnowflakeImportCopyCommand) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46208,7 +49388,7 @@ func (s *SnowflakeImportCopyCommand) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeLinkedService. func (s SnowflakeLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -46252,10 +49432,334 @@ func (s *SnowflakeLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SnowflakeLinkedServiceTypeProperties. +func (s SnowflakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(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 SnowflakeLinkedV2ServiceTypeProperties. +func (s SnowflakeLinkedV2ServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "accountIdentifier", s.AccountIdentifier) + populate(objectMap, "authenticationType", s.AuthenticationType) + populateAny(objectMap, "clientId", s.ClientID) + populate(objectMap, "clientSecret", s.ClientSecret) + populateAny(objectMap, "database", s.Database) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "password", s.Password) + populate(objectMap, "privateKey", s.PrivateKey) + populate(objectMap, "privateKeyPassphrase", s.PrivateKeyPassphrase) + populateAny(objectMap, "scope", s.Scope) + populateAny(objectMap, "tenantId", s.TenantID) + populateAny(objectMap, "user", s.User) + populateAny(objectMap, "warehouse", s.Warehouse) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeLinkedV2ServiceTypeProperties. +func (s *SnowflakeLinkedV2ServiceTypeProperties) UnmarshalJSON(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 "accountIdentifier": + err = unpopulate(val, "AccountIdentifier", &s.AccountIdentifier) + delete(rawMsg, key) + case "authenticationType": + err = unpopulate(val, "AuthenticationType", &s.AuthenticationType) + delete(rawMsg, key) + case "clientId": + err = unpopulate(val, "ClientID", &s.ClientID) + delete(rawMsg, key) + case "clientSecret": + s.ClientSecret, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &s.Database) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) + delete(rawMsg, key) + case "password": + s.Password, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "privateKey": + s.PrivateKey, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "privateKeyPassphrase": + s.PrivateKeyPassphrase, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &s.Scope) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &s.TenantID) + delete(rawMsg, key) + case "user": + err = unpopulate(val, "User", &s.User) + delete(rawMsg, key) + case "warehouse": + err = unpopulate(val, "Warehouse", &s.Warehouse) + 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]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populate(objectMap, "importSettings", s.ImportSettings) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", s.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + objectMap["type"] = "SnowflakeSink" + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) + 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 SnowflakeSink. +func (s *SnowflakeSink) UnmarshalJSON(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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "importSettings": + err = unpopulate(val, "ImportSettings", &s.ImportSettings) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "preCopyScript": + err = unpopulate(val, "PreCopyScript", &s.PreCopyScript) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &s.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &s.SinkRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &s.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &s.WriteBatchTimeout) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SnowflakeSource. +func (s SnowflakeSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populate(objectMap, "exportSettings", s.ExportSettings) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + objectMap["type"] = "SnowflakeSource" + 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 SnowflakeSource. +func (s *SnowflakeSource) UnmarshalJSON(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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &s.DisableMetricsCollection) + delete(rawMsg, key) + case "exportSettings": + err = unpopulate(val, "ExportSettings", &s.ExportSettings) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) + delete(rawMsg, key) + case "query": + err = unpopulate(val, "Query", &s.Query) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &s.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + 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 SnowflakeV2Dataset. +func (s SnowflakeV2Dataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) + objectMap["type"] = "SnowflakeV2Table" + 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 SnowflakeV2Dataset. +func (s *SnowflakeV2Dataset) UnmarshalJSON(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]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46268,17 +49772,25 @@ 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) +// MarshalJSON implements the json.Marshaller interface for type SnowflakeV2LinkedService. +func (s SnowflakeV2LinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "connectVia", s.ConnectVia) + populate(objectMap, "description", s.Description) + populate(objectMap, "parameters", s.Parameters) + objectMap["type"] = "SnowflakeV2" + 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 SnowflakeLinkedServiceTypeProperties. -func (s *SnowflakeLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeV2LinkedService. +func (s *SnowflakeV2LinkedService) UnmarshalJSON(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) @@ -46286,14 +49798,33 @@ func (s *SnowflakeLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error for key, val := range rawMsg { var err error switch key { - case "connectionString": - err = unpopulate(val, "ConnectionString", &s.ConnectionString) + case "annotations": + err = unpopulate(val, "Annotations", &s.Annotations) delete(rawMsg, key) - case "encryptedCredential": - err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) + case "connectVia": + err = unpopulate(val, "ConnectVia", &s.ConnectVia) delete(rawMsg, key) - case "password": - err = unpopulate(val, "Password", &s.Password) + 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]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } delete(rawMsg, key) } if err != nil { @@ -46303,18 +49834,18 @@ func (s *SnowflakeLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error return nil } -// MarshalJSON implements the json.Marshaller interface for type SnowflakeSink. -func (s SnowflakeSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) +// MarshalJSON implements the json.Marshaller interface for type SnowflakeV2Sink. +func (s SnowflakeV2Sink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) populate(objectMap, "importSettings", s.ImportSettings) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "preCopyScript", &s.PreCopyScript) - populate(objectMap, "sinkRetryCount", &s.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &s.SinkRetryWait) - objectMap["type"] = "SnowflakeSink" - populate(objectMap, "writeBatchSize", &s.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &s.WriteBatchTimeout) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", s.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", s.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", s.SinkRetryWait) + objectMap["type"] = "SnowflakeV2Sink" + populateAny(objectMap, "writeBatchSize", s.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", s.WriteBatchTimeout) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -46323,8 +49854,8 @@ func (s SnowflakeSink) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeSink. -func (s *SnowflakeSink) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeV2Sink. +func (s *SnowflakeV2Sink) UnmarshalJSON(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) @@ -46361,10 +49892,10 @@ func (s *SnowflakeSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46377,16 +49908,16 @@ func (s *SnowflakeSink) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SnowflakeSource. -func (s SnowflakeSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) +// MarshalJSON implements the json.Marshaller interface for type SnowflakeV2Source. +func (s SnowflakeV2Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) populate(objectMap, "exportSettings", s.ExportSettings) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) - objectMap["type"] = "SnowflakeSource" + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) + objectMap["type"] = "SnowflakeV2Source" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -46395,8 +49926,8 @@ func (s SnowflakeSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeSource. -func (s *SnowflakeSource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeV2Source. +func (s *SnowflakeV2Source) UnmarshalJSON(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) @@ -46427,10 +49958,10 @@ func (s *SnowflakeSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46443,12 +49974,43 @@ func (s *SnowflakeSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SparkConfigurationParametrizationReference. +func (s SparkConfigurationParametrizationReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "referenceName", s.ReferenceName) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigurationParametrizationReference. +func (s *SparkConfigurationParametrizationReference) UnmarshalJSON(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 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "table", s.Table) + populateAny(objectMap, "tableName", s.TableName) return json.Marshal(objectMap) } @@ -46480,7 +50042,7 @@ func (s *SparkDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkLinkedService. func (s SparkLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -46524,10 +50086,10 @@ func (s *SparkLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46542,21 +50104,21 @@ func (s *SparkLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkLinkedServiceTypeProperties. func (s SparkLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowHostNameCNMismatch", &s.AllowHostNameCNMismatch) - populate(objectMap, "allowSelfSignedServerCert", &s.AllowSelfSignedServerCert) + objectMap := make(map[string]any) + populateAny(objectMap, "allowHostNameCNMismatch", s.AllowHostNameCNMismatch) + populateAny(objectMap, "allowSelfSignedServerCert", s.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", s.AuthenticationType) - populate(objectMap, "enableSsl", &s.EnableSSL) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "httpPath", &s.HTTPPath) - populate(objectMap, "host", &s.Host) + populateAny(objectMap, "enableSsl", s.EnableSSL) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "httpPath", s.HTTPPath) + populateAny(objectMap, "host", s.Host) populate(objectMap, "password", s.Password) - populate(objectMap, "port", &s.Port) + populateAny(objectMap, "port", s.Port) populate(objectMap, "serverType", s.ServerType) populate(objectMap, "thriftTransportProtocol", s.ThriftTransportProtocol) - populate(objectMap, "trustedCertPath", &s.TrustedCertPath) - populate(objectMap, "useSystemTrustStore", &s.UseSystemTrustStore) - populate(objectMap, "username", &s.Username) + populateAny(objectMap, "trustedCertPath", s.TrustedCertPath) + populateAny(objectMap, "useSystemTrustStore", s.UseSystemTrustStore) + populateAny(objectMap, "username", s.Username) return json.Marshal(objectMap) } @@ -46621,14 +50183,14 @@ func (s *SparkLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkObjectDataset. func (s SparkObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SparkObject" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -46677,10 +50239,10 @@ func (s *SparkObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46695,14 +50257,14 @@ func (s *SparkObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkSource. func (s SparkSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SparkSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -46747,10 +50309,10 @@ func (s *SparkSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46765,7 +50327,7 @@ func (s *SparkSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareLinkedService. func (s SquareLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -46809,10 +50371,10 @@ func (s *SquareLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46827,16 +50389,16 @@ func (s *SquareLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareLinkedServiceTypeProperties. func (s SquareLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", &s.ClientID) + objectMap := make(map[string]any) + populateAny(objectMap, "clientId", s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) - populate(objectMap, "connectionProperties", &s.ConnectionProperties) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "host", &s.Host) - populate(objectMap, "redirectUri", &s.RedirectURI) - populate(objectMap, "useEncryptedEndpoints", &s.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &s.UseHostVerification) - populate(objectMap, "usePeerVerification", &s.UsePeerVerification) + populateAny(objectMap, "connectionProperties", s.ConnectionProperties) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "host", s.Host) + populateAny(objectMap, "redirectUri", s.RedirectURI) + populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", s.UseHostVerification) + populateAny(objectMap, "usePeerVerification", s.UsePeerVerification) return json.Marshal(objectMap) } @@ -46886,14 +50448,14 @@ func (s *SquareLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareObjectDataset. func (s SquareObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SquareObject" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -46942,10 +50504,10 @@ func (s *SquareObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46960,14 +50522,14 @@ func (s *SquareObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareSource. func (s SquareSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SquareSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -47012,10 +50574,10 @@ func (s *SquareSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47030,7 +50592,7 @@ func (s *SquareSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisEnvironment. func (s SsisEnvironment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "folderId", s.FolderID) populate(objectMap, "id", s.ID) @@ -47077,7 +50639,7 @@ func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisEnvironmentReference. func (s SsisEnvironmentReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "environmentFolderName", s.EnvironmentFolderName) populate(objectMap, "environmentName", s.EnvironmentName) populate(objectMap, "id", s.ID) @@ -47116,7 +50678,7 @@ func (s *SsisEnvironmentReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisFolder. func (s SsisFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) @@ -47155,7 +50717,7 @@ 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{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) @@ -47194,7 +50756,7 @@ func (s *SsisObjectMetadata) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataListResponse. func (s SsisObjectMetadataListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -47225,7 +50787,7 @@ func (s *SsisObjectMetadataListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataStatusResponse. func (s SsisObjectMetadataStatusResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", s.Error) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -47264,7 +50826,7 @@ func (s *SsisObjectMetadataStatusResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisPackage. func (s SsisPackage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "folderId", s.FolderID) populate(objectMap, "id", s.ID) @@ -47319,7 +50881,7 @@ func (s *SsisPackage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisParameter. func (s SsisParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataType", s.DataType) populate(objectMap, "defaultValue", s.DefaultValue) populate(objectMap, "description", s.Description) @@ -47390,7 +50952,7 @@ func (s *SsisParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisProject. func (s SsisProject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "environmentRefs", s.EnvironmentRefs) populate(objectMap, "folderId", s.FolderID) @@ -47445,7 +51007,7 @@ func (s *SsisProject) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisVariable. func (s SsisVariable) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataType", s.DataType) populate(objectMap, "description", s.Description) populate(objectMap, "id", s.ID) @@ -47496,10 +51058,10 @@ func (s *SsisVariable) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StagingSettings. func (s StagingSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enableCompression", &s.EnableCompression) + objectMap := make(map[string]any) + populateAny(objectMap, "enableCompression", s.EnableCompression) populate(objectMap, "linkedServiceName", s.LinkedServiceName) - populate(objectMap, "path", &s.Path) + populateAny(objectMap, "path", s.Path) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -47528,10 +51090,10 @@ func (s *StagingSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47546,9 +51108,9 @@ func (s *StagingSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StoreReadSettings. func (s StoreReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) objectMap["type"] = s.Type if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -47578,10 +51140,10 @@ func (s *StoreReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47596,10 +51158,11 @@ func (s *StoreReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StoreWriteSettings. func (s StoreWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "copyBehavior", &s.CopyBehavior) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) + objectMap := make(map[string]any) + populateAny(objectMap, "copyBehavior", s.CopyBehavior) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populate(objectMap, "metadata", s.Metadata) objectMap["type"] = s.Type if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -47627,15 +51190,18 @@ func (s *StoreWriteSettings) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &s.Metadata) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47648,109 +51214,14 @@ 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{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) + populate(objectMap, "state", s.State) objectMap["type"] = "Switch" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -47780,6 +51251,12 @@ func (s *SwitchActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -47791,10 +51268,10 @@ func (s *SwitchActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47809,7 +51286,7 @@ func (s *SwitchActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SwitchActivityTypeProperties. func (s SwitchActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cases", s.Cases) populate(objectMap, "defaultActivities", s.DefaultActivities) populate(objectMap, "on", s.On) @@ -47844,7 +51321,7 @@ func (s *SwitchActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SwitchCase. func (s SwitchCase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", s.Activities) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -47875,7 +51352,7 @@ func (s *SwitchCase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseLinkedService. func (s SybaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -47919,10 +51396,10 @@ func (s *SybaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47937,14 +51414,14 @@ func (s *SybaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseLinkedServiceTypeProperties. func (s SybaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) - populate(objectMap, "database", &s.Database) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) + populateAny(objectMap, "database", s.Database) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) - populate(objectMap, "schema", &s.Schema) - populate(objectMap, "server", &s.Server) - populate(objectMap, "username", &s.Username) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "server", s.Server) + populateAny(objectMap, "username", s.Username) return json.Marshal(objectMap) } @@ -47988,14 +51465,14 @@ func (s *SybaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseSource. func (s SybaseSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &s.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) - populate(objectMap, "query", &s.Query) - populate(objectMap, "queryTimeout", &s.QueryTimeout) - populate(objectMap, "sourceRetryCount", &s.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &s.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", s.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "query", s.Query) + populateAny(objectMap, "queryTimeout", s.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) objectMap["type"] = "SybaseSource" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -48040,10 +51517,10 @@ func (s *SybaseSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -48058,14 +51535,14 @@ func (s *SybaseSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseTableDataset. func (s SybaseTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "schema", s.Schema) + populateAny(objectMap, "structure", s.Structure) objectMap["type"] = "SybaseTable" populate(objectMap, "typeProperties", s.TypeProperties) if s.AdditionalProperties != nil { @@ -48114,10 +51591,10 @@ func (s *SybaseTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -48132,8 +51609,8 @@ func (s *SybaseTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "tableName", s.TableName) return json.Marshal(objectMap) } @@ -48159,12 +51636,14 @@ func (s *SybaseTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SynapseNotebookActivity. func (s SynapseNotebookActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "SynapseNotebook" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -48197,9 +51676,15 @@ func (s *SynapseNotebookActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -48211,10 +51696,10 @@ func (s *SynapseNotebookActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -48229,14 +51714,17 @@ func (s *SynapseNotebookActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "conf", s.Conf) + populate(objectMap, "configurationType", s.ConfigurationType) + populateAny(objectMap, "driverSize", s.DriverSize) + populateAny(objectMap, "executorSize", s.ExecutorSize) populate(objectMap, "notebook", s.Notebook) - populate(objectMap, "numExecutors", s.NumExecutors) + populateAny(objectMap, "numExecutors", s.NumExecutors) populate(objectMap, "parameters", s.Parameters) + populate(objectMap, "sparkConfig", s.SparkConfig) populate(objectMap, "sparkPool", s.SparkPool) + populate(objectMap, "targetSparkConfiguration", s.TargetSparkConfiguration) return json.Marshal(objectMap) } @@ -48252,6 +51740,9 @@ func (s *SynapseNotebookActivityTypeProperties) UnmarshalJSON(data []byte) error case "conf": err = unpopulate(val, "Conf", &s.Conf) delete(rawMsg, key) + case "configurationType": + err = unpopulate(val, "ConfigurationType", &s.ConfigurationType) + delete(rawMsg, key) case "driverSize": err = unpopulate(val, "DriverSize", &s.DriverSize) delete(rawMsg, key) @@ -48267,9 +51758,15 @@ func (s *SynapseNotebookActivityTypeProperties) UnmarshalJSON(data []byte) error case "parameters": err = unpopulate(val, "Parameters", &s.Parameters) delete(rawMsg, key) + case "sparkConfig": + err = unpopulate(val, "SparkConfig", &s.SparkConfig) + delete(rawMsg, key) case "sparkPool": err = unpopulate(val, "SparkPool", &s.SparkPool) delete(rawMsg, key) + case "targetSparkConfiguration": + err = unpopulate(val, "TargetSparkConfiguration", &s.TargetSparkConfiguration) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -48280,8 +51777,8 @@ func (s *SynapseNotebookActivityTypeProperties) UnmarshalJSON(data []byte) error // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "referenceName", s.ReferenceName) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) } @@ -48311,17 +51808,23 @@ func (s *SynapseNotebookReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobActivityTypeProperties. func (s SynapseSparkJobActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) 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) + populateAny(objectMap, "className", s.ClassName) + populateAny(objectMap, "conf", s.Conf) + populate(objectMap, "configurationType", s.ConfigurationType) + populateAny(objectMap, "driverSize", s.DriverSize) + populateAny(objectMap, "executorSize", s.ExecutorSize) + populateAny(objectMap, "file", s.File) populate(objectMap, "files", s.Files) - populate(objectMap, "numExecutors", s.NumExecutors) + populate(objectMap, "filesV2", s.FilesV2) + populateAny(objectMap, "numExecutors", s.NumExecutors) + populate(objectMap, "pythonCodeReference", s.PythonCodeReference) + populateAny(objectMap, "scanFolder", s.ScanFolder) + populate(objectMap, "sparkConfig", s.SparkConfig) populate(objectMap, "sparkJob", s.SparkJob) populate(objectMap, "targetBigDataPool", s.TargetBigDataPool) + populate(objectMap, "targetSparkConfiguration", s.TargetSparkConfiguration) return json.Marshal(objectMap) } @@ -48343,6 +51846,9 @@ func (s *SynapseSparkJobActivityTypeProperties) UnmarshalJSON(data []byte) error case "conf": err = unpopulate(val, "Conf", &s.Conf) delete(rawMsg, key) + case "configurationType": + err = unpopulate(val, "ConfigurationType", &s.ConfigurationType) + delete(rawMsg, key) case "driverSize": err = unpopulate(val, "DriverSize", &s.DriverSize) delete(rawMsg, key) @@ -48355,15 +51861,30 @@ func (s *SynapseSparkJobActivityTypeProperties) UnmarshalJSON(data []byte) error case "files": err = unpopulate(val, "Files", &s.Files) delete(rawMsg, key) + case "filesV2": + err = unpopulate(val, "FilesV2", &s.FilesV2) + delete(rawMsg, key) case "numExecutors": err = unpopulate(val, "NumExecutors", &s.NumExecutors) delete(rawMsg, key) + case "pythonCodeReference": + err = unpopulate(val, "PythonCodeReference", &s.PythonCodeReference) + delete(rawMsg, key) + case "scanFolder": + err = unpopulate(val, "ScanFolder", &s.ScanFolder) + delete(rawMsg, key) + case "sparkConfig": + err = unpopulate(val, "SparkConfig", &s.SparkConfig) + 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) + case "targetSparkConfiguration": + err = unpopulate(val, "TargetSparkConfiguration", &s.TargetSparkConfiguration) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -48374,12 +51895,14 @@ func (s *SynapseSparkJobActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobDefinitionActivity. func (s SynapseSparkJobDefinitionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "SparkJob" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -48412,9 +51935,15 @@ func (s *SynapseSparkJobDefinitionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -48426,10 +51955,10 @@ func (s *SynapseSparkJobDefinitionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -48444,8 +51973,8 @@ func (s *SynapseSparkJobDefinitionActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "referenceName", s.ReferenceName) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) } @@ -48475,13 +52004,13 @@ func (s *SynapseSparkJobReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TabularSource. func (t TabularSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &t.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &t.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &t.MaxConcurrentConnections) - populate(objectMap, "queryTimeout", &t.QueryTimeout) - populate(objectMap, "sourceRetryCount", &t.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &t.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", t.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", t.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", t.MaxConcurrentConnections) + populateAny(objectMap, "queryTimeout", t.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", t.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", t.SourceRetryWait) objectMap["type"] = "TabularSource" if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { @@ -48523,80 +52052,10 @@ func (t *TabularSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - t.AdditionalProperties[key] = aux - } - 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 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 - 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 "collectionReference": - err = unpopulate(val, "CollectionReference", &t.CollectionReference) - delete(rawMsg, key) - case "columnMappings": - err = unpopulate(val, "ColumnMappings", &t.ColumnMappings) - delete(rawMsg, key) - case "mapComplexValuesToString": - err = unpopulate(val, "MapComplexValuesToString", &t.MapComplexValuesToString) - delete(rawMsg, key) - case "mappings": - err = unpopulate(val, "Mappings", &t.Mappings) - delete(rawMsg, key) - case "schemaMapping": - err = unpopulate(val, "SchemaMapping", &t.SchemaMapping) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &t.Type) - delete(rawMsg, key) - case "typeConversion": - err = unpopulate(val, "TypeConversion", &t.TypeConversion) - delete(rawMsg, key) - case "typeConversionSettings": - err = unpopulate(val, "TypeConversionSettings", &t.TypeConversionSettings) - delete(rawMsg, key) - default: - if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48611,8 +52070,8 @@ func (t *TabularTranslator) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TarGZipReadSettings. func (t TarGZipReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "preserveCompressionFileNameAsFolder", &t.PreserveCompressionFileNameAsFolder) + objectMap := make(map[string]any) + populateAny(objectMap, "preserveCompressionFileNameAsFolder", t.PreserveCompressionFileNameAsFolder) objectMap["type"] = "TarGZipReadSettings" if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { @@ -48639,10 +52098,10 @@ func (t *TarGZipReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48657,8 +52116,8 @@ func (t *TarGZipReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TarReadSettings. func (t TarReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "preserveCompressionFileNameAsFolder", &t.PreserveCompressionFileNameAsFolder) + objectMap := make(map[string]any) + populateAny(objectMap, "preserveCompressionFileNameAsFolder", t.PreserveCompressionFileNameAsFolder) objectMap["type"] = "TarReadSettings" if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { @@ -48685,10 +52144,10 @@ func (t *TarReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48703,7 +52162,7 @@ func (t *TarReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeamDeskLinkedService. func (t TeamDeskLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "connectVia", t.ConnectVia) populate(objectMap, "description", t.Description) @@ -48747,10 +52206,10 @@ func (t *TeamDeskLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48765,13 +52224,13 @@ func (t *TeamDeskLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeamDeskLinkedServiceTypeProperties. func (t TeamDeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", t.APIToken) populate(objectMap, "authenticationType", t.AuthenticationType) - populate(objectMap, "encryptedCredential", &t.EncryptedCredential) + populate(objectMap, "encryptedCredential", t.EncryptedCredential) populate(objectMap, "password", t.Password) - populate(objectMap, "url", &t.URL) - populate(objectMap, "userName", &t.UserName) + populateAny(objectMap, "url", t.URL) + populateAny(objectMap, "userName", t.UserName) return json.Marshal(objectMap) } @@ -48812,7 +52271,7 @@ func (t *TeamDeskLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataLinkedService. func (t TeradataLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "connectVia", t.ConnectVia) populate(objectMap, "description", t.Description) @@ -48856,10 +52315,10 @@ func (t *TeradataLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48874,13 +52333,13 @@ func (t *TeradataLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataLinkedServiceTypeProperties. func (t TeradataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", t.AuthenticationType) - populate(objectMap, "connectionString", &t.ConnectionString) - populate(objectMap, "encryptedCredential", &t.EncryptedCredential) + populateAny(objectMap, "connectionString", t.ConnectionString) + populate(objectMap, "encryptedCredential", t.EncryptedCredential) populate(objectMap, "password", t.Password) - populate(objectMap, "server", &t.Server) - populate(objectMap, "username", &t.Username) + populateAny(objectMap, "server", t.Server) + populateAny(objectMap, "username", t.Username) return json.Marshal(objectMap) } @@ -48921,10 +52380,10 @@ func (t *TeradataLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "partitionColumnName", t.PartitionColumnName) + populateAny(objectMap, "partitionLowerBound", t.PartitionLowerBound) + populateAny(objectMap, "partitionUpperBound", t.PartitionUpperBound) return json.Marshal(objectMap) } @@ -48956,16 +52415,16 @@ func (t *TeradataPartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataSource. func (t TeradataSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &t.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &t.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &t.MaxConcurrentConnections) - populate(objectMap, "partitionOption", &t.PartitionOption) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", t.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", t.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", t.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", t.PartitionOption) populate(objectMap, "partitionSettings", t.PartitionSettings) - populate(objectMap, "query", &t.Query) - populate(objectMap, "queryTimeout", &t.QueryTimeout) - populate(objectMap, "sourceRetryCount", &t.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &t.SourceRetryWait) + populateAny(objectMap, "query", t.Query) + populateAny(objectMap, "queryTimeout", t.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", t.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", t.SourceRetryWait) objectMap["type"] = "TeradataSource" if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { @@ -49016,10 +52475,10 @@ func (t *TeradataSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49034,14 +52493,14 @@ func (t *TeradataSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataTableDataset. func (t TeradataTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "description", t.Description) populate(objectMap, "folder", t.Folder) populate(objectMap, "linkedServiceName", t.LinkedServiceName) populate(objectMap, "parameters", t.Parameters) - populate(objectMap, "schema", &t.Schema) - populate(objectMap, "structure", &t.Structure) + populateAny(objectMap, "schema", t.Schema) + populateAny(objectMap, "structure", t.Structure) objectMap["type"] = "TeradataTable" populate(objectMap, "typeProperties", t.TypeProperties) if t.AdditionalProperties != nil { @@ -49090,10 +52549,10 @@ func (t *TeradataTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49108,9 +52567,9 @@ func (t *TeradataTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "database", t.Database) + populateAny(objectMap, "table", t.Table) return json.Marshal(objectMap) } @@ -49139,18 +52598,18 @@ func (t *TeradataTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TextFormat. func (t TextFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "columnDelimiter", &t.ColumnDelimiter) - populate(objectMap, "deserializer", &t.Deserializer) - populate(objectMap, "encodingName", &t.EncodingName) - populate(objectMap, "escapeChar", &t.EscapeChar) - populate(objectMap, "firstRowAsHeader", &t.FirstRowAsHeader) - populate(objectMap, "nullValue", &t.NullValue) - populate(objectMap, "quoteChar", &t.QuoteChar) - populate(objectMap, "rowDelimiter", &t.RowDelimiter) - populate(objectMap, "serializer", &t.Serializer) - populate(objectMap, "skipLineCount", &t.SkipLineCount) - populate(objectMap, "treatEmptyAsNull", &t.TreatEmptyAsNull) + objectMap := make(map[string]any) + populateAny(objectMap, "columnDelimiter", t.ColumnDelimiter) + populateAny(objectMap, "deserializer", t.Deserializer) + populateAny(objectMap, "encodingName", t.EncodingName) + populateAny(objectMap, "escapeChar", t.EscapeChar) + populateAny(objectMap, "firstRowAsHeader", t.FirstRowAsHeader) + populateAny(objectMap, "nullValue", t.NullValue) + populateAny(objectMap, "quoteChar", t.QuoteChar) + populateAny(objectMap, "rowDelimiter", t.RowDelimiter) + populateAny(objectMap, "serializer", t.Serializer) + populateAny(objectMap, "skipLineCount", t.SkipLineCount) + populateAny(objectMap, "treatEmptyAsNull", t.TreatEmptyAsNull) objectMap["type"] = "TextFormat" if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { @@ -49207,10 +52666,10 @@ func (t *TextFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49225,7 +52684,7 @@ func (t *TextFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Transformation. func (t Transformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", t.Dataset) populate(objectMap, "description", t.Description) populate(objectMap, "flowlet", t.Flowlet) @@ -49268,7 +52727,7 @@ func (t *Transformation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Trigger. func (t Trigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "description", t.Description) populate(objectMap, "runtimeState", t.RuntimeState) @@ -49304,10 +52763,10 @@ func (t *Trigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49322,7 +52781,7 @@ func (t *Trigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerDependencyReference. func (t TriggerDependencyReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceTrigger", t.ReferenceTrigger) objectMap["type"] = "TriggerDependencyReference" return json.Marshal(objectMap) @@ -49353,7 +52812,7 @@ func (t *TriggerDependencyReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerFilterParameters. func (t TriggerFilterParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", t.ContinuationToken) populate(objectMap, "parentTriggerName", t.ParentTriggerName) return json.Marshal(objectMap) @@ -49384,7 +52843,7 @@ func (t *TriggerFilterParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerListResponse. func (t TriggerListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", t.NextLink) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -49415,7 +52874,7 @@ func (t *TriggerListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerPipelineReference. func (t TriggerPipelineReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", t.Parameters) populate(objectMap, "pipelineReference", t.PipelineReference) return json.Marshal(objectMap) @@ -49446,7 +52905,7 @@ func (t *TriggerPipelineReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerQueryResponse. func (t TriggerQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", t.ContinuationToken) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -49477,7 +52936,7 @@ func (t *TriggerQueryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerReference. func (t TriggerReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", t.ReferenceName) populate(objectMap, "type", t.Type) return json.Marshal(objectMap) @@ -49508,7 +52967,7 @@ func (t *TriggerReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerResource. func (t TriggerResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", t.Etag) populate(objectMap, "id", t.ID) populate(objectMap, "name", t.Name) @@ -49551,7 +53010,7 @@ func (t *TriggerResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerRun. func (t TriggerRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependencyStatus", t.DependencyStatus) populate(objectMap, "message", t.Message) populate(objectMap, "properties", t.Properties) @@ -49559,7 +53018,7 @@ func (t TriggerRun) MarshalJSON() ([]byte, error) { populate(objectMap, "status", t.Status) populate(objectMap, "triggerName", t.TriggerName) populate(objectMap, "triggerRunId", t.TriggerRunID) - populateTimeRFC3339(objectMap, "triggerRunTimestamp", t.TriggerRunTimestamp) + populateDateTimeRFC3339(objectMap, "triggerRunTimestamp", t.TriggerRunTimestamp) populate(objectMap, "triggerType", t.TriggerType) populate(objectMap, "triggeredPipelines", t.TriggeredPipelines) if t.AdditionalProperties != nil { @@ -49601,7 +53060,7 @@ func (t *TriggerRun) UnmarshalJSON(data []byte) error { err = unpopulate(val, "TriggerRunID", &t.TriggerRunID) delete(rawMsg, key) case "triggerRunTimestamp": - err = unpopulateTimeRFC3339(val, "TriggerRunTimestamp", &t.TriggerRunTimestamp) + err = unpopulateDateTimeRFC3339(val, "TriggerRunTimestamp", &t.TriggerRunTimestamp) delete(rawMsg, key) case "triggerType": err = unpopulate(val, "TriggerType", &t.TriggerType) @@ -49611,10 +53070,10 @@ func (t *TriggerRun) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49629,7 +53088,7 @@ func (t *TriggerRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerRunsQueryResponse. func (t TriggerRunsQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", t.ContinuationToken) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -49660,7 +53119,7 @@ func (t *TriggerRunsQueryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerSubscriptionOperationStatus. func (t TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "status", t.Status) populate(objectMap, "triggerName", t.TriggerName) return json.Marshal(objectMap) @@ -49691,7 +53150,7 @@ func (t *TriggerSubscriptionOperationStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TumblingWindowTrigger. func (t TumblingWindowTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "description", t.Description) populate(objectMap, "pipeline", t.Pipeline) @@ -49735,10 +53194,10 @@ func (t *TumblingWindowTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49753,7 +53212,7 @@ func (t *TumblingWindowTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TumblingWindowTriggerDependencyReference. func (t TumblingWindowTriggerDependencyReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "offset", t.Offset) populate(objectMap, "referenceTrigger", t.ReferenceTrigger) populate(objectMap, "size", t.Size) @@ -49792,15 +53251,15 @@ func (t *TumblingWindowTriggerDependencyReference) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type TumblingWindowTriggerTypeProperties. func (t TumblingWindowTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "delay", &t.Delay) + objectMap := make(map[string]any) + populateAny(objectMap, "delay", t.Delay) populate(objectMap, "dependsOn", t.DependsOn) - populateTimeRFC3339(objectMap, "endTime", t.EndTime) + populateDateTimeRFC3339(objectMap, "endTime", t.EndTime) populate(objectMap, "frequency", t.Frequency) populate(objectMap, "interval", t.Interval) populate(objectMap, "maxConcurrency", t.MaxConcurrency) populate(objectMap, "retryPolicy", t.RetryPolicy) - populateTimeRFC3339(objectMap, "startTime", t.StartTime) + populateDateTimeRFC3339(objectMap, "startTime", t.StartTime) return json.Marshal(objectMap) } @@ -49820,7 +53279,7 @@ func (t *TumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) error { t.DependsOn, err = unmarshalDependencyReferenceClassificationArray(val) delete(rawMsg, key) case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &t.EndTime) + err = unpopulateDateTimeRFC3339(val, "EndTime", &t.EndTime) delete(rawMsg, key) case "frequency": err = unpopulate(val, "Frequency", &t.Frequency) @@ -49835,7 +53294,7 @@ func (t *TumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) error { err = unpopulate(val, "RetryPolicy", &t.RetryPolicy) delete(rawMsg, key) case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &t.StartTime) + err = unpopulateDateTimeRFC3339(val, "StartTime", &t.StartTime) delete(rawMsg, key) } if err != nil { @@ -49847,7 +53306,7 @@ func (t *TumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TwilioLinkedService. func (t TwilioLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "connectVia", t.ConnectVia) populate(objectMap, "description", t.Description) @@ -49891,10 +53350,10 @@ func (t *TwilioLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49909,9 +53368,9 @@ func (t *TwilioLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TwilioLinkedServiceTypeProperties. func (t TwilioLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "password", t.Password) - populate(objectMap, "userName", &t.UserName) + populateAny(objectMap, "userName", t.UserName) return json.Marshal(objectMap) } @@ -49938,59 +53397,14 @@ 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{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", u.DependsOn) populate(objectMap, "description", u.Description) populate(objectMap, "name", u.Name) + populate(objectMap, "onInactiveMarkAs", u.OnInactiveMarkAs) + populate(objectMap, "state", u.State) objectMap["type"] = "Until" populate(objectMap, "typeProperties", u.TypeProperties) populate(objectMap, "userProperties", u.UserProperties) @@ -50020,6 +53434,12 @@ func (u *UntilActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &u.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &u.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &u.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &u.Type) delete(rawMsg, key) @@ -50031,10 +53451,10 @@ func (u *UntilActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if u.AdditionalProperties == nil { - u.AdditionalProperties = map[string]interface{}{} + u.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) u.AdditionalProperties[key] = aux } @@ -50049,10 +53469,10 @@ func (u *UntilActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UntilActivityTypeProperties. func (u UntilActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", u.Activities) populate(objectMap, "expression", u.Expression) - populate(objectMap, "timeout", &u.Timeout) + populateAny(objectMap, "timeout", u.Timeout) return json.Marshal(objectMap) } @@ -50084,7 +53504,7 @@ func (u *UntilActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeNodeRequest. func (u UpdateIntegrationRuntimeNodeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "concurrentJobsLimit", u.ConcurrentJobsLimit) return json.Marshal(objectMap) } @@ -50111,7 +53531,7 @@ func (u *UpdateIntegrationRuntimeNodeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeRequest. func (u UpdateIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoUpdate", u.AutoUpdate) populate(objectMap, "updateDelayOffset", u.UpdateDelayOffset) return json.Marshal(objectMap) @@ -50142,7 +53562,7 @@ func (u *UpdateIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserAccessPolicy. func (u UserAccessPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessResourcePath", u.AccessResourcePath) populate(objectMap, "expireTime", u.ExpireTime) populate(objectMap, "permissions", u.Permissions) @@ -50185,9 +53605,9 @@ func (u *UserAccessPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserProperty. func (u UserProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", u.Name) - populate(objectMap, "value", &u.Value) + populateAny(objectMap, "value", u.Value) return json.Marshal(objectMap) } @@ -50216,10 +53636,12 @@ func (u *UserProperty) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidationActivity. func (v ValidationActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", v.DependsOn) populate(objectMap, "description", v.Description) populate(objectMap, "name", v.Name) + populate(objectMap, "onInactiveMarkAs", v.OnInactiveMarkAs) + populate(objectMap, "state", v.State) objectMap["type"] = "Validation" populate(objectMap, "typeProperties", v.TypeProperties) populate(objectMap, "userProperties", v.UserProperties) @@ -50249,6 +53671,12 @@ func (v *ValidationActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &v.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &v.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &v.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &v.Type) delete(rawMsg, key) @@ -50260,10 +53688,10 @@ func (v *ValidationActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -50278,12 +53706,12 @@ func (v *ValidationActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "childItems", v.ChildItems) populate(objectMap, "dataset", v.Dataset) - populate(objectMap, "minimumSize", &v.MinimumSize) - populate(objectMap, "sleep", &v.Sleep) - populate(objectMap, "timeout", &v.Timeout) + populateAny(objectMap, "minimumSize", v.MinimumSize) + populateAny(objectMap, "sleep", v.Sleep) + populateAny(objectMap, "timeout", v.Timeout) return json.Marshal(objectMap) } @@ -50321,8 +53749,8 @@ func (v *ValidationActivityTypeProperties) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "defaultValue", v.DefaultValue) populate(objectMap, "type", v.Type) return json.Marshal(objectMap) } @@ -50352,10 +53780,10 @@ func (v *VariableSpecification) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "schema", v.Schema) + populateAny(objectMap, "table", v.Table) + populateAny(objectMap, "tableName", v.TableName) return json.Marshal(objectMap) } @@ -50387,7 +53815,7 @@ func (v *VerticaDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaLinkedService. func (v VerticaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", v.Annotations) populate(objectMap, "connectVia", v.ConnectVia) populate(objectMap, "description", v.Description) @@ -50431,10 +53859,10 @@ func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -50449,9 +53877,9 @@ func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionString", v.ConnectionString) + populate(objectMap, "encryptedCredential", v.EncryptedCredential) populate(objectMap, "pwd", v.Pwd) return json.Marshal(objectMap) } @@ -50484,14 +53912,14 @@ func (v *VerticaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaSource. func (v VerticaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &v.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &v.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &v.MaxConcurrentConnections) - populate(objectMap, "query", &v.Query) - populate(objectMap, "queryTimeout", &v.QueryTimeout) - populate(objectMap, "sourceRetryCount", &v.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &v.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", v.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", v.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", v.MaxConcurrentConnections) + populateAny(objectMap, "query", v.Query) + populateAny(objectMap, "queryTimeout", v.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", v.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", v.SourceRetryWait) objectMap["type"] = "VerticaSource" if v.AdditionalProperties != nil { for key, val := range v.AdditionalProperties { @@ -50536,10 +53964,10 @@ func (v *VerticaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -50554,14 +53982,14 @@ func (v *VerticaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaTableDataset. func (v VerticaTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", v.Annotations) populate(objectMap, "description", v.Description) populate(objectMap, "folder", v.Folder) populate(objectMap, "linkedServiceName", v.LinkedServiceName) populate(objectMap, "parameters", v.Parameters) - populate(objectMap, "schema", &v.Schema) - populate(objectMap, "structure", &v.Structure) + populateAny(objectMap, "schema", v.Schema) + populateAny(objectMap, "structure", v.Structure) objectMap["type"] = "VerticaTable" populate(objectMap, "typeProperties", v.TypeProperties) if v.AdditionalProperties != nil { @@ -50610,10 +54038,10 @@ func (v *VerticaTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -50628,10 +54056,12 @@ func (v *VerticaTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WaitActivity. func (w WaitActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "name", w.Name) + populate(objectMap, "onInactiveMarkAs", w.OnInactiveMarkAs) + populate(objectMap, "state", w.State) objectMap["type"] = "Wait" populate(objectMap, "typeProperties", w.TypeProperties) populate(objectMap, "userProperties", w.UserProperties) @@ -50661,6 +54091,12 @@ func (w *WaitActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &w.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &w.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &w.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &w.Type) delete(rawMsg, key) @@ -50672,10 +54108,10 @@ func (w *WaitActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -50690,8 +54126,8 @@ func (w *WaitActivity) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "waitTimeInSeconds", w.WaitTimeInSeconds) return json.Marshal(objectMap) } @@ -50715,14 +54151,418 @@ func (w *WaitActivityTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type WarehouseLinkedService. +func (w WarehouseLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", w.Annotations) + populate(objectMap, "connectVia", w.ConnectVia) + populate(objectMap, "description", w.Description) + populate(objectMap, "parameters", w.Parameters) + objectMap["type"] = "Warehouse" + populate(objectMap, "typeProperties", w.TypeProperties) + if w.AdditionalProperties != nil { + for key, val := range w.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WarehouseLinkedService. +func (w *WarehouseLinkedService) UnmarshalJSON(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 "annotations": + err = unpopulate(val, "Annotations", &w.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &w.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &w.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &w.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &w.TypeProperties) + delete(rawMsg, key) + default: + if w.AdditionalProperties == nil { + w.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + w.AdditionalProperties[key] = aux + } + 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 WarehouseLinkedServiceTypeProperties. +func (w WarehouseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "artifactId", w.ArtifactID) + populate(objectMap, "encryptedCredential", w.EncryptedCredential) + populateAny(objectMap, "endpoint", w.Endpoint) + populate(objectMap, "servicePrincipalCredential", w.ServicePrincipalCredential) + populateAny(objectMap, "servicePrincipalCredentialType", w.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalId", w.ServicePrincipalID) + populate(objectMap, "servicePrincipalKey", w.ServicePrincipalKey) + populateAny(objectMap, "tenant", w.Tenant) + populateAny(objectMap, "workspaceId", w.WorkspaceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WarehouseLinkedServiceTypeProperties. +func (w *WarehouseLinkedServiceTypeProperties) UnmarshalJSON(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 "artifactId": + err = unpopulate(val, "ArtifactID", &w.ArtifactID) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &w.EncryptedCredential) + delete(rawMsg, key) + case "endpoint": + err = unpopulate(val, "Endpoint", &w.Endpoint) + delete(rawMsg, key) + case "servicePrincipalCredential": + w.ServicePrincipalCredential, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "servicePrincipalCredentialType": + err = unpopulate(val, "ServicePrincipalCredentialType", &w.ServicePrincipalCredentialType) + delete(rawMsg, key) + case "servicePrincipalId": + err = unpopulate(val, "ServicePrincipalID", &w.ServicePrincipalID) + delete(rawMsg, key) + case "servicePrincipalKey": + w.ServicePrincipalKey, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "tenant": + err = unpopulate(val, "Tenant", &w.Tenant) + delete(rawMsg, key) + case "workspaceId": + err = unpopulate(val, "WorkspaceID", &w.WorkspaceID) + 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 WarehouseSink. +func (w WarehouseSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "allowCopyCommand", w.AllowCopyCommand) + populate(objectMap, "copyCommandSettings", w.CopyCommandSettings) + populateAny(objectMap, "disableMetricsCollection", w.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", w.MaxConcurrentConnections) + populateAny(objectMap, "preCopyScript", w.PreCopyScript) + populateAny(objectMap, "sinkRetryCount", w.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", w.SinkRetryWait) + populateAny(objectMap, "tableOption", w.TableOption) + objectMap["type"] = "WarehouseSink" + populateAny(objectMap, "writeBatchSize", w.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", w.WriteBatchTimeout) + populateAny(objectMap, "writeBehavior", w.WriteBehavior) + if w.AdditionalProperties != nil { + for key, val := range w.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WarehouseSink. +func (w *WarehouseSink) UnmarshalJSON(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 "allowCopyCommand": + err = unpopulate(val, "AllowCopyCommand", &w.AllowCopyCommand) + delete(rawMsg, key) + case "copyCommandSettings": + err = unpopulate(val, "CopyCommandSettings", &w.CopyCommandSettings) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &w.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &w.MaxConcurrentConnections) + delete(rawMsg, key) + case "preCopyScript": + err = unpopulate(val, "PreCopyScript", &w.PreCopyScript) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &w.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &w.SinkRetryWait) + delete(rawMsg, key) + case "tableOption": + err = unpopulate(val, "TableOption", &w.TableOption) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &w.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &w.WriteBatchTimeout) + delete(rawMsg, key) + case "writeBehavior": + err = unpopulate(val, "WriteBehavior", &w.WriteBehavior) + delete(rawMsg, key) + default: + if w.AdditionalProperties == nil { + w.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + w.AdditionalProperties[key] = aux + } + 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 WarehouseSource. +func (w WarehouseSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", w.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", w.DisableMetricsCollection) + populateAny(objectMap, "isolationLevel", w.IsolationLevel) + populateAny(objectMap, "maxConcurrentConnections", w.MaxConcurrentConnections) + populateAny(objectMap, "partitionOption", w.PartitionOption) + populate(objectMap, "partitionSettings", w.PartitionSettings) + populateAny(objectMap, "queryTimeout", w.QueryTimeout) + populateAny(objectMap, "sqlReaderQuery", w.SQLReaderQuery) + populateAny(objectMap, "sqlReaderStoredProcedureName", w.SQLReaderStoredProcedureName) + populateAny(objectMap, "sourceRetryCount", w.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", w.SourceRetryWait) + populateAny(objectMap, "storedProcedureParameters", w.StoredProcedureParameters) + objectMap["type"] = "WarehouseSource" + if w.AdditionalProperties != nil { + for key, val := range w.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WarehouseSource. +func (w *WarehouseSource) UnmarshalJSON(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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &w.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &w.DisableMetricsCollection) + delete(rawMsg, key) + case "isolationLevel": + err = unpopulate(val, "IsolationLevel", &w.IsolationLevel) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &w.MaxConcurrentConnections) + delete(rawMsg, key) + case "partitionOption": + err = unpopulate(val, "PartitionOption", &w.PartitionOption) + delete(rawMsg, key) + case "partitionSettings": + err = unpopulate(val, "PartitionSettings", &w.PartitionSettings) + delete(rawMsg, key) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &w.QueryTimeout) + delete(rawMsg, key) + case "sqlReaderQuery": + err = unpopulate(val, "SQLReaderQuery", &w.SQLReaderQuery) + delete(rawMsg, key) + case "sqlReaderStoredProcedureName": + err = unpopulate(val, "SQLReaderStoredProcedureName", &w.SQLReaderStoredProcedureName) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &w.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &w.SourceRetryWait) + delete(rawMsg, key) + case "storedProcedureParameters": + err = unpopulate(val, "StoredProcedureParameters", &w.StoredProcedureParameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + default: + if w.AdditionalProperties == nil { + w.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + w.AdditionalProperties[key] = aux + } + 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 WarehouseTableDataset. +func (w WarehouseTableDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", w.Annotations) + populate(objectMap, "description", w.Description) + populate(objectMap, "folder", w.Folder) + populate(objectMap, "linkedServiceName", w.LinkedServiceName) + populate(objectMap, "parameters", w.Parameters) + populateAny(objectMap, "schema", w.Schema) + populateAny(objectMap, "structure", w.Structure) + objectMap["type"] = "WarehouseTable" + populate(objectMap, "typeProperties", w.TypeProperties) + if w.AdditionalProperties != nil { + for key, val := range w.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WarehouseTableDataset. +func (w *WarehouseTableDataset) UnmarshalJSON(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 "annotations": + err = unpopulate(val, "Annotations", &w.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &w.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &w.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &w.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &w.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &w.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &w.Structure) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &w.TypeProperties) + delete(rawMsg, key) + default: + if w.AdditionalProperties == nil { + w.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + w.AdditionalProperties[key] = aux + } + 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 WarehouseTableDatasetTypeProperties. +func (w WarehouseTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "schema", w.Schema) + populateAny(objectMap, "table", w.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WarehouseTableDatasetTypeProperties. +func (w *WarehouseTableDatasetTypeProperties) UnmarshalJSON(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 "schema": + err = unpopulate(val, "Schema", &w.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &w.Table) + 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{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "linkedServiceName", w.LinkedServiceName) populate(objectMap, "name", w.Name) + populate(objectMap, "onInactiveMarkAs", w.OnInactiveMarkAs) populate(objectMap, "policy", w.Policy) + populate(objectMap, "state", w.State) objectMap["type"] = "WebActivity" populate(objectMap, "typeProperties", w.TypeProperties) populate(objectMap, "userProperties", w.UserProperties) @@ -50755,9 +54595,15 @@ func (w *WebActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &w.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &w.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &w.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &w.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &w.Type) delete(rawMsg, key) @@ -50769,10 +54615,10 @@ func (w *WebActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -50787,14 +54633,14 @@ func (w *WebActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebActivityAuthentication. func (w WebActivityAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "credential", w.Credential) populate(objectMap, "password", w.Password) populate(objectMap, "pfx", w.Pfx) - populate(objectMap, "resource", &w.Resource) + populateAny(objectMap, "resource", w.Resource) populate(objectMap, "type", w.Type) - populate(objectMap, "userTenant", &w.UserTenant) - populate(objectMap, "username", &w.Username) + populateAny(objectMap, "userTenant", w.UserTenant) + populateAny(objectMap, "username", w.Username) return json.Marshal(objectMap) } @@ -50838,16 +54684,18 @@ func (w *WebActivityAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebActivityTypeProperties. func (w WebActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authentication", w.Authentication) - populate(objectMap, "body", &w.Body) + populateAny(objectMap, "body", w.Body) populate(objectMap, "connectVia", w.ConnectVia) populate(objectMap, "datasets", w.Datasets) populate(objectMap, "disableCertValidation", w.DisableCertValidation) - populate(objectMap, "headers", &w.Headers) + populateAny(objectMap, "httpRequestTimeout", w.HTTPRequestTimeout) + populate(objectMap, "headers", w.Headers) populate(objectMap, "linkedServices", w.LinkedServices) populate(objectMap, "method", w.Method) - populate(objectMap, "url", &w.URL) + populate(objectMap, "turnOffAsync", w.TurnOffAsync) + populateAny(objectMap, "url", w.URL) return json.Marshal(objectMap) } @@ -50875,6 +54723,9 @@ func (w *WebActivityTypeProperties) UnmarshalJSON(data []byte) error { case "disableCertValidation": err = unpopulate(val, "DisableCertValidation", &w.DisableCertValidation) delete(rawMsg, key) + case "httpRequestTimeout": + err = unpopulate(val, "HTTPRequestTimeout", &w.HTTPRequestTimeout) + delete(rawMsg, key) case "headers": err = unpopulate(val, "Headers", &w.Headers) delete(rawMsg, key) @@ -50884,6 +54735,9 @@ func (w *WebActivityTypeProperties) UnmarshalJSON(data []byte) error { case "method": err = unpopulate(val, "Method", &w.Method) delete(rawMsg, key) + case "turnOffAsync": + err = unpopulate(val, "TurnOffAsync", &w.TurnOffAsync) + delete(rawMsg, key) case "url": err = unpopulate(val, "URL", &w.URL) delete(rawMsg, key) @@ -50897,9 +54751,9 @@ func (w *WebActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAnonymousAuthentication. func (w WebAnonymousAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = WebAuthenticationTypeAnonymous - populate(objectMap, "url", &w.URL) + populateAny(objectMap, "url", w.URL) return json.Marshal(objectMap) } @@ -50928,11 +54782,11 @@ func (w *WebAnonymousAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebBasicAuthentication. func (w WebBasicAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = WebAuthenticationTypeBasic populate(objectMap, "password", w.Password) - populate(objectMap, "url", &w.URL) - populate(objectMap, "username", &w.Username) + populateAny(objectMap, "url", w.URL) + populateAny(objectMap, "username", w.Username) return json.Marshal(objectMap) } @@ -50967,11 +54821,11 @@ func (w *WebBasicAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebClientCertificateAuthentication. func (w WebClientCertificateAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = WebAuthenticationTypeClientCertificate populate(objectMap, "password", w.Password) populate(objectMap, "pfx", w.Pfx) - populate(objectMap, "url", &w.URL) + populateAny(objectMap, "url", w.URL) return json.Marshal(objectMap) } @@ -51006,10 +54860,13 @@ func (w *WebClientCertificateAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebHookActivity. func (w WebHookActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "name", w.Name) + populate(objectMap, "onInactiveMarkAs", w.OnInactiveMarkAs) + populate(objectMap, "policy", w.Policy) + populate(objectMap, "state", w.State) objectMap["type"] = "WebHook" populate(objectMap, "typeProperties", w.TypeProperties) populate(objectMap, "userProperties", w.UserProperties) @@ -51039,6 +54896,15 @@ func (w *WebHookActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &w.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &w.OnInactiveMarkAs) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, "Policy", &w.Policy) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &w.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &w.Type) delete(rawMsg, key) @@ -51050,10 +54916,10 @@ func (w *WebHookActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -51068,14 +54934,14 @@ func (w *WebHookActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebHookActivityTypeProperties. func (w WebHookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authentication", w.Authentication) - populate(objectMap, "body", &w.Body) - populate(objectMap, "headers", &w.Headers) + populateAny(objectMap, "body", w.Body) + populate(objectMap, "headers", w.Headers) populate(objectMap, "method", w.Method) - populate(objectMap, "reportStatusOnCallBack", &w.ReportStatusOnCallBack) + populateAny(objectMap, "reportStatusOnCallBack", w.ReportStatusOnCallBack) populate(objectMap, "timeout", w.Timeout) - populate(objectMap, "url", &w.URL) + populateAny(objectMap, "url", w.URL) return json.Marshal(objectMap) } @@ -51119,7 +54985,7 @@ func (w *WebHookActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebLinkedService. func (w WebLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", w.Annotations) populate(objectMap, "connectVia", w.ConnectVia) populate(objectMap, "description", w.Description) @@ -51163,10 +55029,10 @@ func (w *WebLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -51181,9 +55047,9 @@ func (w *WebLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebLinkedServiceTypeProperties. func (w WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = w.AuthenticationType - populate(objectMap, "url", &w.URL) + populateAny(objectMap, "url", w.URL) return json.Marshal(objectMap) } @@ -51212,12 +55078,12 @@ func (w *WebLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebSource. func (w WebSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &w.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &w.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &w.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &w.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &w.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", w.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", w.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", w.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", w.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", w.SourceRetryWait) objectMap["type"] = "WebSource" if w.AdditionalProperties != nil { for key, val := range w.AdditionalProperties { @@ -51256,10 +55122,10 @@ func (w *WebSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -51274,14 +55140,14 @@ func (w *WebSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebTableDataset. func (w WebTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", w.Annotations) populate(objectMap, "description", w.Description) populate(objectMap, "folder", w.Folder) populate(objectMap, "linkedServiceName", w.LinkedServiceName) populate(objectMap, "parameters", w.Parameters) - populate(objectMap, "schema", &w.Schema) - populate(objectMap, "structure", &w.Structure) + populateAny(objectMap, "schema", w.Schema) + populateAny(objectMap, "structure", w.Structure) objectMap["type"] = "WebTable" populate(objectMap, "typeProperties", w.TypeProperties) if w.AdditionalProperties != nil { @@ -51330,10 +55196,10 @@ func (w *WebTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -51348,9 +55214,9 @@ func (w *WebTableDataset) UnmarshalJSON(data []byte) error { // 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) + objectMap := make(map[string]any) + populateAny(objectMap, "index", w.Index) + populateAny(objectMap, "path", w.Path) return json.Marshal(objectMap) } @@ -51379,7 +55245,7 @@ func (w *WebTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WranglingDataFlow. func (w WranglingDataFlow) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", w.Annotations) populate(objectMap, "description", w.Description) populate(objectMap, "folder", w.Folder) @@ -51422,14 +55288,14 @@ func (w *WranglingDataFlow) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLDataset. func (x XMLDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", x.Annotations) populate(objectMap, "description", x.Description) populate(objectMap, "folder", x.Folder) populate(objectMap, "linkedServiceName", x.LinkedServiceName) populate(objectMap, "parameters", x.Parameters) - populate(objectMap, "schema", &x.Schema) - populate(objectMap, "structure", &x.Structure) + populateAny(objectMap, "schema", x.Schema) + populateAny(objectMap, "structure", x.Structure) objectMap["type"] = "Xml" populate(objectMap, "typeProperties", x.TypeProperties) if x.AdditionalProperties != nil { @@ -51478,10 +55344,10 @@ func (x *XMLDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51496,11 +55362,11 @@ func (x *XMLDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLDatasetTypeProperties. func (x XMLDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", x.Compression) - populate(objectMap, "encodingName", &x.EncodingName) + populateAny(objectMap, "encodingName", x.EncodingName) populate(objectMap, "location", x.Location) - populate(objectMap, "nullValue", &x.NullValue) + populateAny(objectMap, "nullValue", x.NullValue) return json.Marshal(objectMap) } @@ -51535,13 +55401,13 @@ func (x *XMLDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLReadSettings. func (x XMLReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", x.CompressionProperties) - populate(objectMap, "detectDataType", &x.DetectDataType) - populate(objectMap, "namespacePrefixes", &x.NamespacePrefixes) - populate(objectMap, "namespaces", &x.Namespaces) + populateAny(objectMap, "detectDataType", x.DetectDataType) + populateAny(objectMap, "namespacePrefixes", x.NamespacePrefixes) + populateAny(objectMap, "namespaces", x.Namespaces) objectMap["type"] = "XmlReadSettings" - populate(objectMap, "validationMode", &x.ValidationMode) + populateAny(objectMap, "validationMode", x.ValidationMode) if x.AdditionalProperties != nil { for key, val := range x.AdditionalProperties { objectMap[key] = val @@ -51579,10 +55445,10 @@ func (x *XMLReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51597,13 +55463,13 @@ func (x *XMLReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLSource. func (x XMLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &x.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &x.DisableMetricsCollection) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", x.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", x.DisableMetricsCollection) populate(objectMap, "formatSettings", x.FormatSettings) - populate(objectMap, "maxConcurrentConnections", &x.MaxConcurrentConnections) - populate(objectMap, "sourceRetryCount", &x.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &x.SourceRetryWait) + populateAny(objectMap, "maxConcurrentConnections", x.MaxConcurrentConnections) + populateAny(objectMap, "sourceRetryCount", x.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", x.SourceRetryWait) populate(objectMap, "storeSettings", x.StoreSettings) objectMap["type"] = "XmlSource" if x.AdditionalProperties != nil { @@ -51649,10 +55515,10 @@ func (x *XMLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51667,7 +55533,7 @@ func (x *XMLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroLinkedService. func (x XeroLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", x.Annotations) populate(objectMap, "connectVia", x.ConnectVia) populate(objectMap, "description", x.Description) @@ -51711,10 +55577,10 @@ func (x *XeroLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51729,15 +55595,15 @@ func (x *XeroLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroLinkedServiceTypeProperties. func (x XeroLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "connectionProperties", &x.ConnectionProperties) + objectMap := make(map[string]any) + populateAny(objectMap, "connectionProperties", x.ConnectionProperties) populate(objectMap, "consumerKey", x.ConsumerKey) - populate(objectMap, "encryptedCredential", &x.EncryptedCredential) - populate(objectMap, "host", &x.Host) + populate(objectMap, "encryptedCredential", x.EncryptedCredential) + populateAny(objectMap, "host", x.Host) populate(objectMap, "privateKey", x.PrivateKey) - populate(objectMap, "useEncryptedEndpoints", &x.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &x.UseHostVerification) - populate(objectMap, "usePeerVerification", &x.UsePeerVerification) + populateAny(objectMap, "useEncryptedEndpoints", x.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", x.UseHostVerification) + populateAny(objectMap, "usePeerVerification", x.UsePeerVerification) return json.Marshal(objectMap) } @@ -51784,14 +55650,14 @@ func (x *XeroLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroObjectDataset. func (x XeroObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", x.Annotations) populate(objectMap, "description", x.Description) populate(objectMap, "folder", x.Folder) populate(objectMap, "linkedServiceName", x.LinkedServiceName) populate(objectMap, "parameters", x.Parameters) - populate(objectMap, "schema", &x.Schema) - populate(objectMap, "structure", &x.Structure) + populateAny(objectMap, "schema", x.Schema) + populateAny(objectMap, "structure", x.Structure) objectMap["type"] = "XeroObject" populate(objectMap, "typeProperties", x.TypeProperties) if x.AdditionalProperties != nil { @@ -51840,10 +55706,10 @@ func (x *XeroObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51858,14 +55724,14 @@ func (x *XeroObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroSource. func (x XeroSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &x.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &x.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &x.MaxConcurrentConnections) - populate(objectMap, "query", &x.Query) - populate(objectMap, "queryTimeout", &x.QueryTimeout) - populate(objectMap, "sourceRetryCount", &x.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &x.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", x.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", x.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", x.MaxConcurrentConnections) + populateAny(objectMap, "query", x.Query) + populateAny(objectMap, "queryTimeout", x.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", x.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", x.SourceRetryWait) objectMap["type"] = "XeroSource" if x.AdditionalProperties != nil { for key, val := range x.AdditionalProperties { @@ -51910,10 +55776,10 @@ func (x *XeroSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51928,7 +55794,7 @@ func (x *XeroSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZendeskLinkedService. func (z ZendeskLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", z.Annotations) populate(objectMap, "connectVia", z.ConnectVia) populate(objectMap, "description", z.Description) @@ -51972,10 +55838,10 @@ func (z *ZendeskLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -51990,13 +55856,13 @@ func (z *ZendeskLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZendeskLinkedServiceTypeProperties. func (z ZendeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", z.APIToken) populate(objectMap, "authenticationType", z.AuthenticationType) - populate(objectMap, "encryptedCredential", &z.EncryptedCredential) + populate(objectMap, "encryptedCredential", z.EncryptedCredential) populate(objectMap, "password", z.Password) - populate(objectMap, "url", &z.URL) - populate(objectMap, "userName", &z.UserName) + populateAny(objectMap, "url", z.URL) + populateAny(objectMap, "userName", z.UserName) return json.Marshal(objectMap) } @@ -52037,8 +55903,8 @@ func (z *ZendeskLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZipDeflateReadSettings. func (z ZipDeflateReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "preserveZipFileNameAsFolder", &z.PreserveZipFileNameAsFolder) + objectMap := make(map[string]any) + populateAny(objectMap, "preserveZipFileNameAsFolder", z.PreserveZipFileNameAsFolder) objectMap["type"] = "ZipDeflateReadSettings" if z.AdditionalProperties != nil { for key, val := range z.AdditionalProperties { @@ -52065,10 +55931,10 @@ func (z *ZipDeflateReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -52083,7 +55949,7 @@ func (z *ZipDeflateReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoLinkedService. func (z ZohoLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", z.Annotations) populate(objectMap, "connectVia", z.ConnectVia) populate(objectMap, "description", z.Description) @@ -52127,10 +55993,10 @@ func (z *ZohoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -52145,14 +56011,14 @@ func (z *ZohoLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoLinkedServiceTypeProperties. func (z ZohoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", z.AccessToken) - populate(objectMap, "connectionProperties", &z.ConnectionProperties) - populate(objectMap, "encryptedCredential", &z.EncryptedCredential) - populate(objectMap, "endpoint", &z.Endpoint) - populate(objectMap, "useEncryptedEndpoints", &z.UseEncryptedEndpoints) - populate(objectMap, "useHostVerification", &z.UseHostVerification) - populate(objectMap, "usePeerVerification", &z.UsePeerVerification) + populateAny(objectMap, "connectionProperties", z.ConnectionProperties) + populate(objectMap, "encryptedCredential", z.EncryptedCredential) + populateAny(objectMap, "endpoint", z.Endpoint) + populateAny(objectMap, "useEncryptedEndpoints", z.UseEncryptedEndpoints) + populateAny(objectMap, "useHostVerification", z.UseHostVerification) + populateAny(objectMap, "usePeerVerification", z.UsePeerVerification) return json.Marshal(objectMap) } @@ -52196,14 +56062,14 @@ func (z *ZohoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoObjectDataset. func (z ZohoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", z.Annotations) populate(objectMap, "description", z.Description) populate(objectMap, "folder", z.Folder) populate(objectMap, "linkedServiceName", z.LinkedServiceName) populate(objectMap, "parameters", z.Parameters) - populate(objectMap, "schema", &z.Schema) - populate(objectMap, "structure", &z.Structure) + populateAny(objectMap, "schema", z.Schema) + populateAny(objectMap, "structure", z.Structure) objectMap["type"] = "ZohoObject" populate(objectMap, "typeProperties", z.TypeProperties) if z.AdditionalProperties != nil { @@ -52252,10 +56118,10 @@ func (z *ZohoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -52270,14 +56136,14 @@ func (z *ZohoObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoSource. func (z ZohoSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &z.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &z.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &z.MaxConcurrentConnections) - populate(objectMap, "query", &z.Query) - populate(objectMap, "queryTimeout", &z.QueryTimeout) - populate(objectMap, "sourceRetryCount", &z.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &z.SourceRetryWait) + objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", z.AdditionalColumns) + populateAny(objectMap, "disableMetricsCollection", z.DisableMetricsCollection) + populateAny(objectMap, "maxConcurrentConnections", z.MaxConcurrentConnections) + populateAny(objectMap, "query", z.Query) + populateAny(objectMap, "queryTimeout", z.QueryTimeout) + populateAny(objectMap, "sourceRetryCount", z.SourceRetryCount) + populateAny(objectMap, "sourceRetryWait", z.SourceRetryWait) objectMap["type"] = "ZohoSource" if z.AdditionalProperties != nil { for key, val := range z.AdditionalProperties { @@ -52322,10 +56188,10 @@ func (z *ZohoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -52338,7 +56204,7 @@ func (z *ZohoSource) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -52348,8 +56214,18 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { - if data == nil { +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil || string(data) == "null" { return nil } if err := json.Unmarshal(data, v); err != nil { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/operations_client.go similarity index 65% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/operations_client.go index 2e9c3e89..37450c1e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/operations_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -13,8 +12,6 @@ import ( "context" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -23,68 +20,54 @@ import ( // OperationsClient contains the methods for the Operations group. // Don't use this type directly, use NewOperationsClient() instead. type OperationsClient struct { - host string - pl runtime.Pipeline + internal *arm.Client } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &OperationsClient{ - host: ep, - pl: pl, + internal: cl, } return client, nil } // NewListPager - Lists the available Azure Data Factory API operations. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return OperationsClientListResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "OperationsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, options) + }, nil) if err != nil { return OperationsClientListResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return OperationsClientListResponse{}, runtime.NewResponseError(resp) - } return client.listHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } // listCreateRequest creates the List request. func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.DataFactory/operations" - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/options.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/options.go new file mode 100644 index 00000000..19b4d1c6 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/options.go @@ -0,0 +1,642 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armdatafactory + +// ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun +// method. +type ActivityRunsClientQueryByPipelineRunOptions struct { + // placeholder for future optional parameters +} + +// ChangeDataCaptureClientCreateOrUpdateOptions contains the optional parameters for the ChangeDataCaptureClient.CreateOrUpdate +// method. +type ChangeDataCaptureClientCreateOrUpdateOptions struct { + // ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity + // or can be * for unconditional update. + IfMatch *string +} + +// ChangeDataCaptureClientDeleteOptions contains the optional parameters for the ChangeDataCaptureClient.Delete method. +type ChangeDataCaptureClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ChangeDataCaptureClientGetOptions contains the optional parameters for the ChangeDataCaptureClient.Get method. +type ChangeDataCaptureClientGetOptions struct { + // ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, + // or if * was provided, then no content will be returned. + IfNoneMatch *string +} + +// ChangeDataCaptureClientListByFactoryOptions contains the optional parameters for the ChangeDataCaptureClient.NewListByFactoryPager +// method. +type ChangeDataCaptureClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// ChangeDataCaptureClientStartOptions contains the optional parameters for the ChangeDataCaptureClient.Start method. +type ChangeDataCaptureClientStartOptions struct { + // placeholder for future optional parameters +} + +// ChangeDataCaptureClientStatusOptions contains the optional parameters for the ChangeDataCaptureClient.Status method. +type ChangeDataCaptureClientStatusOptions struct { + // placeholder for future optional parameters +} + +// ChangeDataCaptureClientStopOptions contains the optional parameters for the ChangeDataCaptureClient.Stop method. +type ChangeDataCaptureClientStopOptions struct { + // placeholder for future optional parameters +} + +// CredentialOperationsClientCreateOrUpdateOptions contains the optional parameters for the CredentialOperationsClient.CreateOrUpdate +// method. +type CredentialOperationsClientCreateOrUpdateOptions struct { + // ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be + // * for unconditional update. + IfMatch *string +} + +// CredentialOperationsClientDeleteOptions contains the optional parameters for the CredentialOperationsClient.Delete method. +type CredentialOperationsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// CredentialOperationsClientGetOptions contains the optional parameters for the CredentialOperationsClient.Get method. +type CredentialOperationsClientGetOptions struct { + // ETag of the credential entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was + // provided, then no content will be returned. + IfNoneMatch *string +} + +// CredentialOperationsClientListByFactoryOptions contains the optional parameters for the CredentialOperationsClient.NewListByFactoryPager +// method. +type CredentialOperationsClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow +// method. +type DataFlowDebugSessionClientAddDataFlowOptions struct { + // placeholder for future optional parameters +} + +// DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate +// method. +type DataFlowDebugSessionClientBeginCreateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand +// method. +type DataFlowDebugSessionClientBeginExecuteCommandOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete method. +type DataFlowDebugSessionClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.NewQueryByFactoryPager +// method. +type DataFlowDebugSessionClientQueryByFactoryOptions struct { + // placeholder for future optional parameters +} + +// DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate method. +type DataFlowsClientCreateOrUpdateOptions struct { + // ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be + // * for unconditional update. + IfMatch *string +} + +// DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. +type DataFlowsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. +type DataFlowsClientGetOptions struct { + // ETag of the data flow entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was + // provided, then no content will be returned. + IfNoneMatch *string +} + +// DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.NewListByFactoryPager method. +type DataFlowsClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. +type DatasetsClientCreateOrUpdateOptions struct { + // ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * + // for unconditional update. + IfMatch *string +} + +// DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. +type DatasetsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. +type DatasetsClientGetOptions struct { + // ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was + // provided, then no content will be returned. + IfNoneMatch *string +} + +// DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.NewListByFactoryPager method. +type DatasetsClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory +// method. +type ExposureControlClientGetFeatureValueByFactoryOptions struct { + // placeholder for future optional parameters +} + +// ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue +// method. +type ExposureControlClientGetFeatureValueOptions struct { + // placeholder for future optional parameters +} + +// ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory +// method. +type ExposureControlClientQueryFeatureValuesByFactoryOptions struct { + // placeholder for future optional parameters +} + +// FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo +// method. +type FactoriesClientConfigureFactoryRepoOptions struct { + // placeholder for future optional parameters +} + +// FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate method. +type FactoriesClientCreateOrUpdateOptions struct { + // ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * + // for unconditional update. + IfMatch *string +} + +// FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. +type FactoriesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess method. +type FactoriesClientGetDataPlaneAccessOptions struct { + // placeholder for future optional parameters +} + +// FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken +// method. +type FactoriesClientGetGitHubAccessTokenOptions struct { + // placeholder for future optional parameters +} + +// FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. +type FactoriesClientGetOptions struct { + // ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was + // provided, then no content will be returned. + IfNoneMatch *string +} + +// FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.NewListByResourceGroupPager +// method. +type FactoriesClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// FactoriesClientListOptions contains the optional parameters for the FactoriesClient.NewListPager method. +type FactoriesClientListOptions struct { + // placeholder for future optional parameters +} + +// FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. +type FactoriesClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate +// method. +type GlobalParametersClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. +type GlobalParametersClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. +type GlobalParametersClientGetOptions struct { + // placeholder for future optional parameters +} + +// GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.NewListByFactoryPager +// method. +type GlobalParametersClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete +// method. +type IntegrationRuntimeNodesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress +// method. +type IntegrationRuntimeNodesClientGetIPAddressOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get method. +type IntegrationRuntimeNodesClientGetOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update +// method. +type IntegrationRuntimeNodesClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh +// method. +type IntegrationRuntimeObjectMetadataClientBeginRefreshOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get +// method. +type IntegrationRuntimeObjectMetadataClientGetOptions struct { + // The parameters for getting a SSIS object metadata. + GetMetadataRequest *GetSsisObjectMetadataRequest +} + +// IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart +// method. +type IntegrationRuntimesClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop +// method. +type IntegrationRuntimesClientBeginStopOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime +// method. +type IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate +// method. +type IntegrationRuntimesClientCreateOrUpdateOptions struct { + // ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity + // or can be * for unconditional update. + IfMatch *string +} + +// IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete method. +type IntegrationRuntimesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo +// method. +type IntegrationRuntimesClientGetConnectionInfoOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData +// method. +type IntegrationRuntimesClientGetMonitoringDataOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. +type IntegrationRuntimesClientGetOptions struct { + // ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, + // or if * was provided, then no content will be returned. + IfNoneMatch *string +} + +// IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus +// method. +type IntegrationRuntimesClientGetStatusOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys +// method. +type IntegrationRuntimesClientListAuthKeysOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.NewListByFactoryPager +// method. +type IntegrationRuntimesClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints +// method. +type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey +// method. +type IntegrationRuntimesClientRegenerateAuthKeyOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks +// method. +type IntegrationRuntimesClientRemoveLinksOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials +// method. +type IntegrationRuntimesClientSyncCredentialsOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update method. +type IntegrationRuntimesClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade method. +type IntegrationRuntimesClientUpgradeOptions struct { + // placeholder for future optional parameters +} + +// LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate +// method. +type LinkedServicesClientCreateOrUpdateOptions struct { + // ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can + // be * for unconditional update. + IfMatch *string +} + +// LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. +type LinkedServicesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. +type LinkedServicesClientGetOptions struct { + // ETag of the linked service entity. Should only be specified for get. If the ETag matches the existing entity tag, or if + // * was provided, then no content will be returned. + IfNoneMatch *string +} + +// LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.NewListByFactoryPager +// method. +type LinkedServicesClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate +// method. +type ManagedPrivateEndpointsClientCreateOrUpdateOptions struct { + // ETag of the managed private endpoint entity. Should only be specified for update, for which it should match existing entity + // or can be * for unconditional update. + IfMatch *string +} + +// ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete +// method. +type ManagedPrivateEndpointsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get method. +type ManagedPrivateEndpointsClientGetOptions struct { + // ETag of the managed private endpoint entity. Should only be specified for get. If the ETag matches the existing entity + // tag, or if * was provided, then no content will be returned. + IfNoneMatch *string +} + +// ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListByFactoryPager +// method. +type ManagedPrivateEndpointsClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate +// method. +type ManagedVirtualNetworksClientCreateOrUpdateOptions struct { + // ETag of the managed Virtual Network entity. Should only be specified for update, for which it should match existing entity + // or can be * for unconditional update. + IfMatch *string +} + +// ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get method. +type ManagedVirtualNetworksClientGetOptions struct { + // ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag matches the existing entity tag, + // or if * was provided, then no content will be returned. + IfNoneMatch *string +} + +// ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.NewListByFactoryPager +// method. +type ManagedVirtualNetworksClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. +type OperationsClientListOptions struct { + // placeholder for future optional parameters +} + +// PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. +type PipelineRunsClientCancelOptions struct { + // If true, cancel all the Child pipelines that are triggered by the current pipeline. + IsRecursive *bool +} + +// PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. +type PipelineRunsClientGetOptions struct { + // placeholder for future optional parameters +} + +// PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory method. +type PipelineRunsClientQueryByFactoryOptions struct { + // placeholder for future optional parameters +} + +// PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate method. +type PipelinesClientCreateOrUpdateOptions struct { + // ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * + // for unconditional update. + IfMatch *string +} + +// PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. +type PipelinesClientCreateRunOptions struct { + // Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped + // under the same groupId. + IsRecovery *bool + + // Parameters of the pipeline run. These parameters will be used only if the runId is not specified. + Parameters map[string]any + + // The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. + ReferencePipelineRunID *string + + // In recovery mode, the rerun will start from this activity. If not specified, all activities will run. + StartActivityName *string + + // In recovery mode, if set to true, the rerun will start from failed activities. The property will be used only if startActivityName + // is not specified. + StartFromFailure *bool +} + +// PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. +type PipelinesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. +type PipelinesClientGetOptions struct { + // ETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was + // provided, then no content will be returned. + IfNoneMatch *string +} + +// PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.NewListByFactoryPager method. +type PipelinesClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.NewListByFactoryPager +// method. +type PrivateEndPointConnectionsClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate +// method. +type PrivateEndpointConnectionClientCreateOrUpdateOptions struct { + // ETag of the private endpoint connection entity. Should only be specified for update, for which it should match existing + // entity or can be * for unconditional update. + IfMatch *string +} + +// PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete +// method. +type PrivateEndpointConnectionClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get +// method. +type PrivateEndpointConnectionClientGetOptions struct { + // ETag of the private endpoint connection entity. Should only be specified for get. If the ETag matches the existing entity + // tag, or if * was provided, then no content will be returned. + IfNoneMatch *string +} + +// PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. +type PrivateLinkResourcesClientGetOptions struct { + // placeholder for future optional parameters +} + +// TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. +type TriggerRunsClientCancelOptions struct { + // placeholder for future optional parameters +} + +// TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory method. +type TriggerRunsClientQueryByFactoryOptions struct { + // placeholder for future optional parameters +} + +// TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. +type TriggerRunsClientRerunOptions struct { + // placeholder for future optional parameters +} + +// TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. +type TriggersClientBeginStartOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. +type TriggersClientBeginStopOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents +// method. +type TriggersClientBeginSubscribeToEventsOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents +// method. +type TriggersClientBeginUnsubscribeFromEventsOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. +type TriggersClientCreateOrUpdateOptions struct { + // ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * + // for unconditional update. + IfMatch *string +} + +// TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. +type TriggersClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus +// method. +type TriggersClientGetEventSubscriptionStatusOptions struct { + // placeholder for future optional parameters +} + +// TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. +type TriggersClientGetOptions struct { + // ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was + // provided, then no content will be returned. + IfNoneMatch *string +} + +// TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.NewListByFactoryPager method. +type TriggersClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + +// TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. +type TriggersClientQueryByFactoryOptions struct { + // placeholder for future optional parameters +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/pipelineruns_client.go similarity index 73% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/pipelineruns_client.go index 70f04730..f67d198a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/pipelineruns_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -27,53 +24,51 @@ import ( // PipelineRunsClient contains the methods for the PipelineRuns group. // Don't use this type directly, use NewPipelineRunsClient() instead. type PipelineRunsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewPipelineRunsClient creates a new instance of PipelineRunsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPipelineRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PipelineRunsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &PipelineRunsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Cancel - Cancel a pipeline run by its run ID. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// runID - The pipeline run identifier. -// options - PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - runID - The pipeline run identifier. +// - options - PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. func (client *PipelineRunsClient) Cancel(ctx context.Context, resourceGroupName string, factoryName string, runID string, options *PipelineRunsClientCancelOptions) (PipelineRunsClientCancelResponse, error) { + var err error + const operationName = "PipelineRunsClient.Cancel" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.cancelCreateRequest(ctx, resourceGroupName, factoryName, runID, options) if err != nil { return PipelineRunsClientCancelResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PipelineRunsClientCancelResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PipelineRunsClientCancelResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PipelineRunsClientCancelResponse{}, err } return PipelineRunsClientCancelResponse{}, nil } @@ -97,15 +92,15 @@ func (client *PipelineRunsClient) cancelCreateRequest(ctx context.Context, resou return nil, errors.New("parameter runID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{runId}", url.PathEscape(runID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") if options != nil && options.IsRecursive != nil { reqQP.Set("isRecursive", strconv.FormatBool(*options.IsRecursive)) } - reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -113,24 +108,32 @@ func (client *PipelineRunsClient) cancelCreateRequest(ctx context.Context, resou // Get - Get a pipeline run by its run ID. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// runID - The pipeline run identifier. -// options - PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - runID - The pipeline run identifier. +// - options - PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. func (client *PipelineRunsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, runID string, options *PipelineRunsClientGetOptions) (PipelineRunsClientGetResponse, error) { + var err error + const operationName = "PipelineRunsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, runID, options) if err != nil { return PipelineRunsClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PipelineRunsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PipelineRunsClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PipelineRunsClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -152,7 +155,7 @@ func (client *PipelineRunsClient) getCreateRequest(ctx context.Context, resource return nil, errors.New("parameter runID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{runId}", url.PathEscape(runID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -174,25 +177,33 @@ func (client *PipelineRunsClient) getHandleResponse(resp *http.Response) (Pipeli // QueryByFactory - Query pipeline runs in the factory based on input filter conditions. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// filterParameters - Parameters to filter the pipeline run. -// options - PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - filterParameters - Parameters to filter the pipeline run. +// - options - PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory +// method. func (client *PipelineRunsClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, filterParameters RunFilterParameters, options *PipelineRunsClientQueryByFactoryOptions) (PipelineRunsClientQueryByFactoryResponse, error) { + var err error + const operationName = "PipelineRunsClient.QueryByFactory" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, filterParameters, options) if err != nil { return PipelineRunsClientQueryByFactoryResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PipelineRunsClientQueryByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PipelineRunsClientQueryByFactoryResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PipelineRunsClientQueryByFactoryResponse{}, err } - return client.queryByFactoryHandleResponse(resp) + resp, err := client.queryByFactoryHandleResponse(httpResp) + return resp, err } // queryByFactoryCreateRequest creates the QueryByFactory request. @@ -210,7 +221,7 @@ func (client *PipelineRunsClient) queryByFactoryCreateRequest(ctx context.Contex return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -218,7 +229,10 @@ func (client *PipelineRunsClient) queryByFactoryCreateRequest(ctx context.Contex reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, filterParameters) + if err := runtime.MarshalAsJSON(req, filterParameters); err != nil { + return nil, err + } + return req, nil } // queryByFactoryHandleResponse handles the QueryByFactory response. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/pipelines_client.go similarity index 75% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/pipelines_client.go index 86a73d3b..e13e170a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/pipelines_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -27,57 +24,56 @@ import ( // PipelinesClient contains the methods for the Pipelines group. // Don't use this type directly, use NewPipelinesClient() instead. type PipelinesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewPipelinesClient creates a new instance of PipelinesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPipelinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PipelinesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &PipelinesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// pipeline - Pipeline resource definition. -// options - PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - pipeline - Pipeline resource definition. +// - options - PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate +// method. func (client *PipelinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, pipeline PipelineResource, options *PipelinesClientCreateOrUpdateOptions) (PipelinesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "PipelinesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, pipeline, options) if err != nil { return PipelinesClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PipelinesClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PipelinesClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PipelinesClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -99,18 +95,21 @@ func (client *PipelinesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, errors.New("parameter pipelineName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{pipelineName}", url.PathEscape(pipelineName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, pipeline) + if err := runtime.MarshalAsJSON(req, pipeline); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -124,24 +123,32 @@ func (client *PipelinesClient) createOrUpdateHandleResponse(resp *http.Response) // CreateRun - Creates a run of a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// options - PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - options - PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. func (client *PipelinesClient) CreateRun(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, options *PipelinesClientCreateRunOptions) (PipelinesClientCreateRunResponse, error) { + var err error + const operationName = "PipelinesClient.CreateRun" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createRunCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, options) if err != nil { return PipelinesClientCreateRunResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PipelinesClientCreateRunResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PipelinesClientCreateRunResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PipelinesClientCreateRunResponse{}, err } - return client.createRunHandleResponse(resp) + resp, err := client.createRunHandleResponse(httpResp) + return resp, err } // createRunCreateRequest creates the CreateRun request. @@ -163,18 +170,18 @@ func (client *PipelinesClient) createRunCreateRequest(ctx context.Context, resou return nil, errors.New("parameter pipelineName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{pipelineName}", url.PathEscape(pipelineName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") - if options != nil && options.ReferencePipelineRunID != nil { - reqQP.Set("referencePipelineRunId", *options.ReferencePipelineRunID) - } if options != nil && options.IsRecovery != nil { reqQP.Set("isRecovery", strconv.FormatBool(*options.IsRecovery)) } + if options != nil && options.ReferencePipelineRunID != nil { + reqQP.Set("referencePipelineRunId", *options.ReferencePipelineRunID) + } if options != nil && options.StartActivityName != nil { reqQP.Set("startActivityName", *options.StartActivityName) } @@ -184,7 +191,10 @@ func (client *PipelinesClient) createRunCreateRequest(ctx context.Context, resou req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { - return req, runtime.MarshalAsJSON(req, options.Parameters) + if err := runtime.MarshalAsJSON(req, options.Parameters); err != nil { + return nil, err + } + return req, nil } return req, nil } @@ -200,22 +210,29 @@ func (client *PipelinesClient) createRunHandleResponse(resp *http.Response) (Pip // Delete - Deletes a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// options - PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - options - PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. func (client *PipelinesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, options *PipelinesClientDeleteOptions) (PipelinesClientDeleteResponse, error) { + var err error + const operationName = "PipelinesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, options) if err != nil { return PipelinesClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PipelinesClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return PipelinesClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return PipelinesClientDeleteResponse{}, err } return PipelinesClientDeleteResponse{}, nil } @@ -239,7 +256,7 @@ func (client *PipelinesClient) deleteCreateRequest(ctx context.Context, resource return nil, errors.New("parameter pipelineName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{pipelineName}", url.PathEscape(pipelineName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -252,24 +269,32 @@ func (client *PipelinesClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// options - PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - options - PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. func (client *PipelinesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, options *PipelinesClientGetOptions) (PipelinesClientGetResponse, error) { + var err error + const operationName = "PipelinesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, options) if err != nil { return PipelinesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PipelinesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotModified) { - return PipelinesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNotModified) { + err = runtime.NewResponseError(httpResp) + return PipelinesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -291,17 +316,17 @@ func (client *PipelinesClient) getCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter pipelineName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{pipelineName}", url.PathEscape(pipelineName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -315,36 +340,32 @@ func (client *PipelinesClient) getHandleResponse(resp *http.Response) (Pipelines } // NewListByFactoryPager - Lists pipelines. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.NewListByFactoryPager +// method. func (client *PipelinesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *PipelinesClientListByFactoryOptions) *runtime.Pager[PipelinesClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[PipelinesClientListByFactoryResponse]{ More: func(page PipelinesClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *PipelinesClientListByFactoryResponse) (PipelinesClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return PipelinesClientListByFactoryResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "PipelinesClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return PipelinesClientListByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PipelinesClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -363,7 +384,7 @@ func (client *PipelinesClient) listByFactoryCreateRequest(ctx context.Context, r return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/polymorphic_helpers.go similarity index 85% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/polymorphic_helpers.go index fcb8c675..b433700e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/polymorphic_helpers.go @@ -3,19 +3,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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory import "encoding/json" func unmarshalActivityClassification(rawMsg json.RawMessage) (ActivityClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -106,11 +105,14 @@ func unmarshalActivityClassification(rawMsg json.RawMessage) (ActivityClassifica default: b = &Activity{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalActivityClassificationArray(rawMsg json.RawMessage) ([]ActivityClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } var rawMessages []json.RawMessage @@ -129,10 +131,10 @@ func unmarshalActivityClassificationArray(rawMsg json.RawMessage) ([]ActivityCla } func unmarshalCompressionReadSettingsClassification(rawMsg json.RawMessage) (CompressionReadSettingsClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -147,14 +149,17 @@ func unmarshalCompressionReadSettingsClassification(rawMsg json.RawMessage) (Com default: b = &CompressionReadSettings{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalCopySinkClassification(rawMsg json.RawMessage) (CopySinkClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -206,6 +211,8 @@ func unmarshalCopySinkClassification(rawMsg json.RawMessage) (CopySinkClassifica b = &InformixSink{} case "JsonSink": b = &JSONSink{} + case "LakeHouseTableSink": + b = &LakeHouseTableSink{} case "MicrosoftAccessSink": b = &MicrosoftAccessSink{} case "MongoDbAtlasSink": @@ -224,12 +231,18 @@ func unmarshalCopySinkClassification(rawMsg json.RawMessage) (CopySinkClassifica b = &RestSink{} case "SalesforceServiceCloudSink": b = &SalesforceServiceCloudSink{} + case "SalesforceServiceCloudV2Sink": + b = &SalesforceServiceCloudV2Sink{} case "SalesforceSink": b = &SalesforceSink{} + case "SalesforceV2Sink": + b = &SalesforceV2Sink{} case "SapCloudForCustomerSink": b = &SapCloudForCustomerSink{} case "SnowflakeSink": b = &SnowflakeSink{} + case "SnowflakeV2Sink": + b = &SnowflakeV2Sink{} case "SqlDWSink": b = &SQLDWSink{} case "SqlMISink": @@ -238,17 +251,22 @@ func unmarshalCopySinkClassification(rawMsg json.RawMessage) (CopySinkClassifica b = &SQLServerSink{} case "SqlSink": b = &SQLSink{} + case "WarehouseSink": + b = &WarehouseSink{} default: b = &CopySink{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -322,6 +340,8 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi b = &GoogleAdWordsSource{} case "GoogleBigQuerySource": b = &GoogleBigQuerySource{} + case "GoogleBigQueryV2Source": + b = &GoogleBigQueryV2Source{} case "GreenplumSource": b = &GreenplumSource{} case "HBaseSource": @@ -342,6 +362,8 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi b = &JiraSource{} case "JsonSource": b = &JSONSource{} + case "LakeHouseTableSource": + b = &LakeHouseTableSource{} case "MagentoSource": b = &MagentoSource{} case "MariaDBSource": @@ -380,6 +402,8 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi b = &PhoenixSource{} case "PostgreSqlSource": b = &PostgreSQLSource{} + case "PostgreSqlV2Source": + b = &PostgreSQLV2Source{} case "PrestoSource": b = &PrestoSource{} case "QuickBooksSource": @@ -394,8 +418,12 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi b = &SalesforceMarketingCloudSource{} case "SalesforceServiceCloudSource": b = &SalesforceServiceCloudSource{} + case "SalesforceServiceCloudV2Source": + b = &SalesforceServiceCloudV2Source{} case "SalesforceSource": b = &SalesforceSource{} + case "SalesforceV2Source": + b = &SalesforceV2Source{} case "SapBwSource": b = &SapBwSource{} case "SapCloudForCustomerSource": @@ -412,12 +440,16 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi b = &SapTableSource{} case "ServiceNowSource": b = &ServiceNowSource{} + case "ServiceNowV2Source": + b = &ServiceNowV2Source{} case "SharePointOnlineListSource": b = &SharePointOnlineListSource{} case "ShopifySource": b = &ShopifySource{} case "SnowflakeSource": b = &SnowflakeSource{} + case "SnowflakeV2Source": + b = &SnowflakeV2Source{} case "SparkSource": b = &SparkSource{} case "SqlDWSource": @@ -438,6 +470,8 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi b = &TeradataSource{} case "VerticaSource": b = &VerticaSource{} + case "WarehouseSource": + b = &WarehouseSource{} case "WebSource": b = &WebSource{} case "XeroSource": @@ -449,14 +483,17 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi default: b = &CopySource{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalCredentialClassification(rawMsg json.RawMessage) (CredentialClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -469,14 +506,17 @@ func unmarshalCredentialClassification(rawMsg json.RawMessage) (CredentialClassi default: b = &Credential{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalCustomSetupBaseClassification(rawMsg json.RawMessage) (CustomSetupBaseClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -493,11 +533,14 @@ func unmarshalCustomSetupBaseClassification(rawMsg json.RawMessage) (CustomSetup default: b = &CustomSetupBase{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalCustomSetupBaseClassificationArray(rawMsg json.RawMessage) ([]CustomSetupBaseClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } var rawMessages []json.RawMessage @@ -516,10 +559,10 @@ func unmarshalCustomSetupBaseClassificationArray(rawMsg json.RawMessage) ([]Cust } func unmarshalDataFlowClassification(rawMsg json.RawMessage) (DataFlowClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -534,14 +577,17 @@ func unmarshalDataFlowClassification(rawMsg json.RawMessage) (DataFlowClassifica default: b = &DataFlow{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -625,6 +671,8 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati b = &GoogleAdWordsObjectDataset{} case "GoogleBigQueryObject": b = &GoogleBigQueryObjectDataset{} + case "GoogleBigQueryV2Object": + b = &GoogleBigQueryV2ObjectDataset{} case "GreenplumTable": b = &GreenplumTableDataset{} case "HBaseObject": @@ -643,6 +691,8 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati b = &JiraObjectDataset{} case "Json": b = &JSONDataset{} + case "LakeHouseTable": + b = &LakeHouseTableDataset{} case "MagentoObject": b = &MagentoObjectDataset{} case "MariaDBTable": @@ -681,6 +731,8 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati b = &PhoenixObjectDataset{} case "PostgreSqlTable": b = &PostgreSQLTableDataset{} + case "PostgreSqlV2Table": + b = &PostgreSQLV2TableDataset{} case "PrestoObject": b = &PrestoObjectDataset{} case "QuickBooksObject": @@ -697,6 +749,10 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati b = &SalesforceObjectDataset{} case "SalesforceServiceCloudObject": b = &SalesforceServiceCloudObjectDataset{} + case "SalesforceServiceCloudV2Object": + b = &SalesforceServiceCloudV2ObjectDataset{} + case "SalesforceV2Object": + b = &SalesforceV2ObjectDataset{} case "SapBwCube": b = &SapBwCubeDataset{} case "SapCloudForCustomerResource": @@ -713,12 +769,16 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati b = &SapTableResourceDataset{} case "ServiceNowObject": b = &ServiceNowObjectDataset{} + case "ServiceNowV2Object": + b = &ServiceNowV2ObjectDataset{} case "SharePointOnlineListResource": b = &SharePointOnlineListResourceDataset{} case "ShopifyObject": b = &ShopifyObjectDataset{} case "SnowflakeTable": b = &SnowflakeDataset{} + case "SnowflakeV2Table": + b = &SnowflakeV2Dataset{} case "SparkObject": b = &SparkObjectDataset{} case "SqlServerTable": @@ -731,6 +791,8 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati b = &TeradataTableDataset{} case "VerticaTable": b = &VerticaTableDataset{} + case "WarehouseTable": + b = &WarehouseTableDataset{} case "WebTable": b = &WebTableDataset{} case "XeroObject": @@ -742,14 +804,17 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati default: b = &Dataset{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalDatasetLocationClassification(rawMsg json.RawMessage) (DatasetLocationClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -777,6 +842,8 @@ func unmarshalDatasetLocationClassification(rawMsg json.RawMessage) (DatasetLoca b = &HdfsLocation{} case "HttpServerLocation": b = &HTTPServerLocation{} + case "LakeHouseLocation": + b = &LakeHouseLocation{} case "OracleCloudStorageLocation": b = &OracleCloudStorageLocation{} case "SftpLocation": @@ -784,14 +851,17 @@ func unmarshalDatasetLocationClassification(rawMsg json.RawMessage) (DatasetLoca default: b = &DatasetLocation{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalDatasetStorageFormatClassification(rawMsg json.RawMessage) (DatasetStorageFormatClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -810,14 +880,17 @@ func unmarshalDatasetStorageFormatClassification(rawMsg json.RawMessage) (Datase default: b = &DatasetStorageFormat{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalDependencyReferenceClassification(rawMsg json.RawMessage) (DependencyReferenceClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -832,11 +905,14 @@ func unmarshalDependencyReferenceClassification(rawMsg json.RawMessage) (Depende default: b = &DependencyReference{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalDependencyReferenceClassificationArray(rawMsg json.RawMessage) ([]DependencyReferenceClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } var rawMessages []json.RawMessage @@ -855,10 +931,10 @@ func unmarshalDependencyReferenceClassificationArray(rawMsg json.RawMessage) ([] } func unmarshalFactoryRepoConfigurationClassification(rawMsg json.RawMessage) (FactoryRepoConfigurationClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -871,14 +947,17 @@ func unmarshalFactoryRepoConfigurationClassification(rawMsg json.RawMessage) (Fa default: b = &FactoryRepoConfiguration{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalFormatReadSettingsClassification(rawMsg json.RawMessage) (FormatReadSettingsClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -890,19 +969,24 @@ func unmarshalFormatReadSettingsClassification(rawMsg json.RawMessage) (FormatRe b = &DelimitedTextReadSettings{} case "JsonReadSettings": b = &JSONReadSettings{} + case "ParquetReadSettings": + b = &ParquetReadSettings{} case "XmlReadSettings": b = &XMLReadSettings{} default: b = &FormatReadSettings{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalIntegrationRuntimeClassification(rawMsg json.RawMessage) (IntegrationRuntimeClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -915,14 +999,17 @@ func unmarshalIntegrationRuntimeClassification(rawMsg json.RawMessage) (Integrat default: b = &IntegrationRuntime{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalIntegrationRuntimeStatusClassification(rawMsg json.RawMessage) (IntegrationRuntimeStatusClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -935,14 +1022,17 @@ func unmarshalIntegrationRuntimeStatusClassification(rawMsg json.RawMessage) (In default: b = &IntegrationRuntimeStatus{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalLinkedIntegrationRuntimeTypeClassification(rawMsg json.RawMessage) (LinkedIntegrationRuntimeTypeClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -955,14 +1045,17 @@ func unmarshalLinkedIntegrationRuntimeTypeClassification(rawMsg json.RawMessage) default: b = &LinkedIntegrationRuntimeType{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedServiceClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1066,6 +1159,8 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &GoogleAdWordsLinkedService{} case "GoogleBigQuery": b = &GoogleBigQueryLinkedService{} + case "GoogleBigQueryV2": + b = &GoogleBigQueryV2LinkedService{} case "GoogleCloudStorage": b = &GoogleCloudStorageLinkedService{} case "GoogleSheets": @@ -1092,6 +1187,8 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &InformixLinkedService{} case "Jira": b = &JiraLinkedService{} + case "LakeHouse": + b = &LakeHouseLinkedService{} case "Magento": b = &MagentoLinkedService{} case "MariaDB": @@ -1128,6 +1225,8 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &PhoenixLinkedService{} case "PostgreSql": b = &PostgreSQLLinkedService{} + case "PostgreSqlV2": + b = &PostgreSQLV2LinkedService{} case "Presto": b = &PrestoLinkedService{} case "QuickBooks": @@ -1144,6 +1243,10 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &SalesforceMarketingCloudLinkedService{} case "SalesforceServiceCloud": b = &SalesforceServiceCloudLinkedService{} + case "SalesforceServiceCloudV2": + b = &SalesforceServiceCloudV2LinkedService{} + case "SalesforceV2": + b = &SalesforceV2LinkedService{} case "SapBW": b = &SapBWLinkedService{} case "SapCloudForCustomer": @@ -1160,6 +1263,8 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &SapTableLinkedService{} case "ServiceNow": b = &ServiceNowLinkedService{} + case "ServiceNowV2": + b = &ServiceNowV2LinkedService{} case "Sftp": b = &SftpServerLinkedService{} case "SharePointOnlineList": @@ -1170,6 +1275,8 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &SmartsheetLinkedService{} case "Snowflake": b = &SnowflakeLinkedService{} + case "SnowflakeV2": + b = &SnowflakeV2LinkedService{} case "Spark": b = &SparkLinkedService{} case "SqlServer": @@ -1186,6 +1293,8 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &TwilioLinkedService{} case "Vertica": b = &VerticaLinkedService{} + case "Warehouse": + b = &WarehouseLinkedService{} case "Web": b = &WebLinkedService{} case "Xero": @@ -1197,14 +1306,17 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService default: b = &LinkedService{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalSecretBaseClassification(rawMsg json.RawMessage) (SecretBaseClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1217,14 +1329,17 @@ func unmarshalSecretBaseClassification(rawMsg json.RawMessage) (SecretBaseClassi default: b = &SecretBase{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalSsisObjectMetadataClassification(rawMsg json.RawMessage) (SsisObjectMetadataClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1241,11 +1356,14 @@ func unmarshalSsisObjectMetadataClassification(rawMsg json.RawMessage) (SsisObje default: b = &SsisObjectMetadata{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalSsisObjectMetadataClassificationArray(rawMsg json.RawMessage) ([]SsisObjectMetadataClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } var rawMessages []json.RawMessage @@ -1264,10 +1382,10 @@ func unmarshalSsisObjectMetadataClassificationArray(rawMsg json.RawMessage) ([]S } func unmarshalStoreReadSettingsClassification(rawMsg json.RawMessage) (StoreReadSettingsClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1295,6 +1413,8 @@ func unmarshalStoreReadSettingsClassification(rawMsg json.RawMessage) (StoreRead b = &HdfsReadSettings{} case "HttpReadSettings": b = &HTTPReadSettings{} + case "LakeHouseReadSettings": + b = &LakeHouseReadSettings{} case "OracleCloudStorageReadSettings": b = &OracleCloudStorageReadSettings{} case "SftpReadSettings": @@ -1302,14 +1422,17 @@ func unmarshalStoreReadSettingsClassification(rawMsg json.RawMessage) (StoreRead default: b = &StoreReadSettings{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalStoreWriteSettingsClassification(rawMsg json.RawMessage) (StoreWriteSettingsClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1325,19 +1448,24 @@ func unmarshalStoreWriteSettingsClassification(rawMsg json.RawMessage) (StoreWri b = &AzureFileStorageWriteSettings{} case "FileServerWriteSettings": b = &FileServerWriteSettings{} + case "LakeHouseWriteSettings": + b = &LakeHouseWriteSettings{} case "SftpWriteSettings": b = &SftpWriteSettings{} default: b = &StoreWriteSettings{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalTriggerClassification(rawMsg json.RawMessage) (TriggerClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1362,14 +1490,17 @@ func unmarshalTriggerClassification(rawMsg json.RawMessage) (TriggerClassificati default: b = &Trigger{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } func unmarshalWebLinkedServiceTypePropertiesClassification(rawMsg json.RawMessage) (WebLinkedServiceTypePropertiesClassification, error) { - if rawMsg == nil { + if rawMsg == nil || string(rawMsg) == "null" { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1384,5 +1515,8 @@ func unmarshalWebLinkedServiceTypePropertiesClassification(rawMsg json.RawMessag default: b = &WebLinkedServiceTypeProperties{} } - return b, json.Unmarshal(rawMsg, b) + if err := json.Unmarshal(rawMsg, b); err != nil { + return nil, err + } + return b, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privateendpointconnection_client.go similarity index 75% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privateendpointconnection_client.go index 3af1e26a..184ab9d2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privateendpointconnection_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,56 +23,55 @@ import ( // PrivateEndpointConnectionClient contains the methods for the PrivateEndpointConnection group. // Don't use this type directly, use NewPrivateEndpointConnectionClient() instead. type PrivateEndpointConnectionClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &PrivateEndpointConnectionClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// privateEndpointConnectionName - The private endpoint connection name. -// options - PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - privateEndpointConnectionName - The private endpoint connection name. +// - options - PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate +// method. func (client *PrivateEndpointConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *PrivateEndpointConnectionClientCreateOrUpdateOptions) (PrivateEndpointConnectionClientCreateOrUpdateResponse, error) { + var err error + const operationName = "PrivateEndpointConnectionClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, options) if err != nil { return PrivateEndpointConnectionClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PrivateEndpointConnectionClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PrivateEndpointConnectionClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PrivateEndpointConnectionClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -97,18 +93,21 @@ func (client *PrivateEndpointConnectionClient) createOrUpdateCreateRequest(ctx c return nil, errors.New("parameter privateEndpointConnectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, privateEndpointWrapper) + if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -122,23 +121,30 @@ func (client *PrivateEndpointConnectionClient) createOrUpdateHandleResponse(resp // Delete - Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// privateEndpointConnectionName - The private endpoint connection name. -// options - PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - privateEndpointConnectionName - The private endpoint connection name. +// - options - PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete +// method. func (client *PrivateEndpointConnectionClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientDeleteOptions) (PrivateEndpointConnectionClientDeleteResponse, error) { + var err error + const operationName = "PrivateEndpointConnectionClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, privateEndpointConnectionName, options) if err != nil { return PrivateEndpointConnectionClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PrivateEndpointConnectionClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return PrivateEndpointConnectionClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return PrivateEndpointConnectionClientDeleteResponse{}, err } return PrivateEndpointConnectionClientDeleteResponse{}, nil } @@ -162,7 +168,7 @@ func (client *PrivateEndpointConnectionClient) deleteCreateRequest(ctx context.C return nil, errors.New("parameter privateEndpointConnectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -175,25 +181,33 @@ func (client *PrivateEndpointConnectionClient) deleteCreateRequest(ctx context.C // Get - Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// privateEndpointConnectionName - The private endpoint connection name. -// options - PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - privateEndpointConnectionName - The private endpoint connection name. +// - options - PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get +// method. func (client *PrivateEndpointConnectionClient) Get(ctx context.Context, resourceGroupName string, factoryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientGetOptions) (PrivateEndpointConnectionClientGetResponse, error) { + var err error + const operationName = "PrivateEndpointConnectionClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, privateEndpointConnectionName, options) if err != nil { return PrivateEndpointConnectionClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PrivateEndpointConnectionClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PrivateEndpointConnectionClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PrivateEndpointConnectionClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -215,17 +229,17 @@ func (client *PrivateEndpointConnectionClient) getCreateRequest(ctx context.Cont return nil, errors.New("parameter privateEndpointConnectionName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privateendpointconnections_client.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privateendpointconnections_client.go index 47c4c744..6898ad7c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privateendpointconnections_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,67 +23,53 @@ import ( // PrivateEndPointConnectionsClient contains the methods for the PrivateEndPointConnections group. // Don't use this type directly, use NewPrivateEndPointConnectionsClient() instead. type PrivateEndPointConnectionsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewPrivateEndPointConnectionsClient creates a new instance of PrivateEndPointConnectionsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndPointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndPointConnectionsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &PrivateEndPointConnectionsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // NewListByFactoryPager - Lists Private endpoint connections -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.NewListByFactoryPager +// method. func (client *PrivateEndPointConnectionsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *PrivateEndPointConnectionsClientListByFactoryOptions) *runtime.Pager[PrivateEndPointConnectionsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndPointConnectionsClientListByFactoryResponse]{ More: func(page PrivateEndPointConnectionsClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *PrivateEndPointConnectionsClientListByFactoryResponse) (PrivateEndPointConnectionsClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return PrivateEndPointConnectionsClientListByFactoryResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "PrivateEndPointConnectionsClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return PrivateEndPointConnectionsClientListByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PrivateEndPointConnectionsClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -105,7 +88,7 @@ func (client *PrivateEndPointConnectionsClient) listByFactoryCreateRequest(ctx c return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privatelinkresources_client.go similarity index 73% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privatelinkresources_client.go index ce08c11c..a5f8e7ff 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/privatelinkresources_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,55 +23,54 @@ import ( // PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. // Don't use this type directly, use NewPrivateLinkResourcesClient() instead. type PrivateLinkResourcesClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &PrivateLinkResourcesClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Get - Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error) { + var err error + const operationName = "PrivateLinkResourcesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, options) if err != nil { return PrivateLinkResourcesClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return PrivateLinkResourcesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PrivateLinkResourcesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PrivateLinkResourcesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -92,7 +88,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/response_types.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/responses.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/response_types.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/responses.go index f57a7aca..090f1eb3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/response_types.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/responses.go @@ -3,24 +3,88 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory // ActivityRunsClientQueryByPipelineRunResponse contains the response from method ActivityRunsClient.QueryByPipelineRun. type ActivityRunsClientQueryByPipelineRunResponse struct { + // A list activity runs. ActivityRunsQueryResponse } +// ChangeDataCaptureClientCreateOrUpdateResponse contains the response from method ChangeDataCaptureClient.CreateOrUpdate. +type ChangeDataCaptureClientCreateOrUpdateResponse struct { + // Change data capture resource type. + ChangeDataCaptureResource +} + +// ChangeDataCaptureClientDeleteResponse contains the response from method ChangeDataCaptureClient.Delete. +type ChangeDataCaptureClientDeleteResponse struct { + // placeholder for future response values +} + +// ChangeDataCaptureClientGetResponse contains the response from method ChangeDataCaptureClient.Get. +type ChangeDataCaptureClientGetResponse struct { + // Change data capture resource type. + ChangeDataCaptureResource +} + +// ChangeDataCaptureClientListByFactoryResponse contains the response from method ChangeDataCaptureClient.NewListByFactoryPager. +type ChangeDataCaptureClientListByFactoryResponse struct { + // A list of change data capture resources. + ChangeDataCaptureListResponse +} + +// ChangeDataCaptureClientStartResponse contains the response from method ChangeDataCaptureClient.Start. +type ChangeDataCaptureClientStartResponse struct { + // placeholder for future response values +} + +// ChangeDataCaptureClientStatusResponse contains the response from method ChangeDataCaptureClient.Status. +type ChangeDataCaptureClientStatusResponse struct { + // Current status of the change data capture resource. + Value *string +} + +// ChangeDataCaptureClientStopResponse contains the response from method ChangeDataCaptureClient.Stop. +type ChangeDataCaptureClientStopResponse struct { + // placeholder for future response values +} + +// CredentialOperationsClientCreateOrUpdateResponse contains the response from method CredentialOperationsClient.CreateOrUpdate. +type CredentialOperationsClientCreateOrUpdateResponse struct { + // Credential resource type. + CredentialResource +} + +// CredentialOperationsClientDeleteResponse contains the response from method CredentialOperationsClient.Delete. +type CredentialOperationsClientDeleteResponse struct { + // placeholder for future response values +} + +// CredentialOperationsClientGetResponse contains the response from method CredentialOperationsClient.Get. +type CredentialOperationsClientGetResponse struct { + // Credential resource type. + CredentialResource +} + +// CredentialOperationsClientListByFactoryResponse contains the response from method CredentialOperationsClient.NewListByFactoryPager. +type CredentialOperationsClientListByFactoryResponse struct { + // A list of credential resources. + CredentialListResponse +} + // DataFlowDebugSessionClientAddDataFlowResponse contains the response from method DataFlowDebugSessionClient.AddDataFlow. type DataFlowDebugSessionClientAddDataFlowResponse struct { + // Response body structure for starting data flow debug session. AddDataFlowToDebugSessionResponse } -// DataFlowDebugSessionClientCreateResponse contains the response from method DataFlowDebugSessionClient.Create. +// DataFlowDebugSessionClientCreateResponse contains the response from method DataFlowDebugSessionClient.BeginCreate. type DataFlowDebugSessionClientCreateResponse struct { + // Response body structure for creating data flow debug session. CreateDataFlowDebugSessionResponse } @@ -29,18 +93,21 @@ type DataFlowDebugSessionClientDeleteResponse struct { // placeholder for future response values } -// DataFlowDebugSessionClientExecuteCommandResponse contains the response from method DataFlowDebugSessionClient.ExecuteCommand. +// DataFlowDebugSessionClientExecuteCommandResponse contains the response from method DataFlowDebugSessionClient.BeginExecuteCommand. type DataFlowDebugSessionClientExecuteCommandResponse struct { + // Response body structure of data flow result for data preview, statistics or expression preview. DataFlowDebugCommandResponse } -// DataFlowDebugSessionClientQueryByFactoryResponse contains the response from method DataFlowDebugSessionClient.QueryByFactory. +// DataFlowDebugSessionClientQueryByFactoryResponse contains the response from method DataFlowDebugSessionClient.NewQueryByFactoryPager. type DataFlowDebugSessionClientQueryByFactoryResponse struct { + // A list of active debug sessions. QueryDataFlowDebugSessionsResponse } // DataFlowsClientCreateOrUpdateResponse contains the response from method DataFlowsClient.CreateOrUpdate. type DataFlowsClientCreateOrUpdateResponse struct { + // Data flow resource type. DataFlowResource } @@ -51,16 +118,19 @@ type DataFlowsClientDeleteResponse struct { // DataFlowsClientGetResponse contains the response from method DataFlowsClient.Get. type DataFlowsClientGetResponse struct { + // Data flow resource type. DataFlowResource } -// DataFlowsClientListByFactoryResponse contains the response from method DataFlowsClient.ListByFactory. +// DataFlowsClientListByFactoryResponse contains the response from method DataFlowsClient.NewListByFactoryPager. type DataFlowsClientListByFactoryResponse struct { + // A list of data flow resources. DataFlowListResponse } // DatasetsClientCreateOrUpdateResponse contains the response from method DatasetsClient.CreateOrUpdate. type DatasetsClientCreateOrUpdateResponse struct { + // Dataset resource type. DatasetResource } @@ -71,36 +141,43 @@ type DatasetsClientDeleteResponse struct { // DatasetsClientGetResponse contains the response from method DatasetsClient.Get. type DatasetsClientGetResponse struct { + // Dataset resource type. DatasetResource } -// DatasetsClientListByFactoryResponse contains the response from method DatasetsClient.ListByFactory. +// DatasetsClientListByFactoryResponse contains the response from method DatasetsClient.NewListByFactoryPager. type DatasetsClientListByFactoryResponse struct { + // A list of dataset resources. DatasetListResponse } // ExposureControlClientGetFeatureValueByFactoryResponse contains the response from method ExposureControlClient.GetFeatureValueByFactory. type ExposureControlClientGetFeatureValueByFactoryResponse struct { + // The exposure control response. ExposureControlResponse } // ExposureControlClientGetFeatureValueResponse contains the response from method ExposureControlClient.GetFeatureValue. type ExposureControlClientGetFeatureValueResponse struct { + // The exposure control response. ExposureControlResponse } // ExposureControlClientQueryFeatureValuesByFactoryResponse contains the response from method ExposureControlClient.QueryFeatureValuesByFactory. type ExposureControlClientQueryFeatureValuesByFactoryResponse struct { + // A list of exposure control feature values. ExposureControlBatchResponse } // FactoriesClientConfigureFactoryRepoResponse contains the response from method FactoriesClient.ConfigureFactoryRepo. type FactoriesClientConfigureFactoryRepoResponse struct { + // Factory resource type. Factory } // FactoriesClientCreateOrUpdateResponse contains the response from method FactoriesClient.CreateOrUpdate. type FactoriesClientCreateOrUpdateResponse struct { + // Factory resource type. Factory } @@ -111,36 +188,43 @@ type FactoriesClientDeleteResponse struct { // FactoriesClientGetDataPlaneAccessResponse contains the response from method FactoriesClient.GetDataPlaneAccess. type FactoriesClientGetDataPlaneAccessResponse struct { + // Get Data Plane read only token response definition. AccessPolicyResponse } // FactoriesClientGetGitHubAccessTokenResponse contains the response from method FactoriesClient.GetGitHubAccessToken. type FactoriesClientGetGitHubAccessTokenResponse struct { + // Get GitHub access token response definition. GitHubAccessTokenResponse } // FactoriesClientGetResponse contains the response from method FactoriesClient.Get. type FactoriesClientGetResponse struct { + // Factory resource type. Factory } -// FactoriesClientListByResourceGroupResponse contains the response from method FactoriesClient.ListByResourceGroup. +// FactoriesClientListByResourceGroupResponse contains the response from method FactoriesClient.NewListByResourceGroupPager. type FactoriesClientListByResourceGroupResponse struct { + // A list of factory resources. FactoryListResponse } -// FactoriesClientListResponse contains the response from method FactoriesClient.List. +// FactoriesClientListResponse contains the response from method FactoriesClient.NewListPager. type FactoriesClientListResponse struct { + // A list of factory resources. FactoryListResponse } // FactoriesClientUpdateResponse contains the response from method FactoriesClient.Update. type FactoriesClientUpdateResponse struct { + // Factory resource type. Factory } // GlobalParametersClientCreateOrUpdateResponse contains the response from method GlobalParametersClient.CreateOrUpdate. type GlobalParametersClientCreateOrUpdateResponse struct { + // Global parameters resource type. GlobalParameterResource } @@ -151,11 +235,13 @@ type GlobalParametersClientDeleteResponse struct { // GlobalParametersClientGetResponse contains the response from method GlobalParametersClient.Get. type GlobalParametersClientGetResponse struct { + // Global parameters resource type. GlobalParameterResource } -// GlobalParametersClientListByFactoryResponse contains the response from method GlobalParametersClient.ListByFactory. +// GlobalParametersClientListByFactoryResponse contains the response from method GlobalParametersClient.NewListByFactoryPager. type GlobalParametersClientListByFactoryResponse struct { + // A list of Global parameters. GlobalParameterListResponse } @@ -166,36 +252,43 @@ type IntegrationRuntimeNodesClientDeleteResponse struct { // IntegrationRuntimeNodesClientGetIPAddressResponse contains the response from method IntegrationRuntimeNodesClient.GetIPAddress. type IntegrationRuntimeNodesClientGetIPAddressResponse struct { + // The IP address of self-hosted integration runtime node. IntegrationRuntimeNodeIPAddress } // IntegrationRuntimeNodesClientGetResponse contains the response from method IntegrationRuntimeNodesClient.Get. type IntegrationRuntimeNodesClientGetResponse struct { + // Properties of Self-hosted integration runtime node. SelfHostedIntegrationRuntimeNode } // IntegrationRuntimeNodesClientUpdateResponse contains the response from method IntegrationRuntimeNodesClient.Update. type IntegrationRuntimeNodesClientUpdateResponse struct { + // Properties of Self-hosted integration runtime node. SelfHostedIntegrationRuntimeNode } // IntegrationRuntimeObjectMetadataClientGetResponse contains the response from method IntegrationRuntimeObjectMetadataClient.Get. type IntegrationRuntimeObjectMetadataClientGetResponse struct { + // A list of SSIS object metadata. SsisObjectMetadataListResponse } -// IntegrationRuntimeObjectMetadataClientRefreshResponse contains the response from method IntegrationRuntimeObjectMetadataClient.Refresh. +// IntegrationRuntimeObjectMetadataClientRefreshResponse contains the response from method IntegrationRuntimeObjectMetadataClient.BeginRefresh. type IntegrationRuntimeObjectMetadataClientRefreshResponse struct { + // The status of the operation. SsisObjectMetadataStatusResponse } // IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse contains the response from method IntegrationRuntimesClient.CreateLinkedIntegrationRuntime. type IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse struct { + // Integration runtime status response. IntegrationRuntimeStatusResponse } // IntegrationRuntimesClientCreateOrUpdateResponse contains the response from method IntegrationRuntimesClient.CreateOrUpdate. type IntegrationRuntimesClientCreateOrUpdateResponse struct { + // Integration runtime resource type. IntegrationRuntimeResource } @@ -206,41 +299,49 @@ type IntegrationRuntimesClientDeleteResponse struct { // IntegrationRuntimesClientGetConnectionInfoResponse contains the response from method IntegrationRuntimesClient.GetConnectionInfo. type IntegrationRuntimesClientGetConnectionInfoResponse struct { + // Connection information for encrypting the on-premises data source credentials. IntegrationRuntimeConnectionInfo } // IntegrationRuntimesClientGetMonitoringDataResponse contains the response from method IntegrationRuntimesClient.GetMonitoringData. type IntegrationRuntimesClientGetMonitoringDataResponse struct { + // Get monitoring data response. IntegrationRuntimeMonitoringData } // IntegrationRuntimesClientGetResponse contains the response from method IntegrationRuntimesClient.Get. type IntegrationRuntimesClientGetResponse struct { + // Integration runtime resource type. IntegrationRuntimeResource } // IntegrationRuntimesClientGetStatusResponse contains the response from method IntegrationRuntimesClient.GetStatus. type IntegrationRuntimesClientGetStatusResponse struct { + // Integration runtime status response. IntegrationRuntimeStatusResponse } // IntegrationRuntimesClientListAuthKeysResponse contains the response from method IntegrationRuntimesClient.ListAuthKeys. type IntegrationRuntimesClientListAuthKeysResponse struct { + // The integration runtime authentication keys. IntegrationRuntimeAuthKeys } -// IntegrationRuntimesClientListByFactoryResponse contains the response from method IntegrationRuntimesClient.ListByFactory. +// IntegrationRuntimesClientListByFactoryResponse contains the response from method IntegrationRuntimesClient.NewListByFactoryPager. type IntegrationRuntimesClientListByFactoryResponse struct { + // A list of integration runtime resources. IntegrationRuntimeListResponse } // IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse contains the response from method IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints. type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse struct { + // Azure-SSIS integration runtime outbound network dependency endpoints. IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse } // IntegrationRuntimesClientRegenerateAuthKeyResponse contains the response from method IntegrationRuntimesClient.RegenerateAuthKey. type IntegrationRuntimesClientRegenerateAuthKeyResponse struct { + // The integration runtime authentication keys. IntegrationRuntimeAuthKeys } @@ -249,12 +350,13 @@ type IntegrationRuntimesClientRemoveLinksResponse struct { // placeholder for future response values } -// IntegrationRuntimesClientStartResponse contains the response from method IntegrationRuntimesClient.Start. +// IntegrationRuntimesClientStartResponse contains the response from method IntegrationRuntimesClient.BeginStart. type IntegrationRuntimesClientStartResponse struct { + // Integration runtime status response. IntegrationRuntimeStatusResponse } -// IntegrationRuntimesClientStopResponse contains the response from method IntegrationRuntimesClient.Stop. +// IntegrationRuntimesClientStopResponse contains the response from method IntegrationRuntimesClient.BeginStop. type IntegrationRuntimesClientStopResponse struct { // placeholder for future response values } @@ -266,6 +368,7 @@ type IntegrationRuntimesClientSyncCredentialsResponse struct { // IntegrationRuntimesClientUpdateResponse contains the response from method IntegrationRuntimesClient.Update. type IntegrationRuntimesClientUpdateResponse struct { + // Integration runtime resource type. IntegrationRuntimeResource } @@ -276,6 +379,7 @@ type IntegrationRuntimesClientUpgradeResponse struct { // LinkedServicesClientCreateOrUpdateResponse contains the response from method LinkedServicesClient.CreateOrUpdate. type LinkedServicesClientCreateOrUpdateResponse struct { + // Linked service resource type. LinkedServiceResource } @@ -286,16 +390,19 @@ type LinkedServicesClientDeleteResponse struct { // LinkedServicesClientGetResponse contains the response from method LinkedServicesClient.Get. type LinkedServicesClientGetResponse struct { + // Linked service resource type. LinkedServiceResource } -// LinkedServicesClientListByFactoryResponse contains the response from method LinkedServicesClient.ListByFactory. +// LinkedServicesClientListByFactoryResponse contains the response from method LinkedServicesClient.NewListByFactoryPager. type LinkedServicesClientListByFactoryResponse struct { + // A list of linked service resources. LinkedServiceListResponse } // ManagedPrivateEndpointsClientCreateOrUpdateResponse contains the response from method ManagedPrivateEndpointsClient.CreateOrUpdate. type ManagedPrivateEndpointsClientCreateOrUpdateResponse struct { + // Managed private endpoint resource type. ManagedPrivateEndpointResource } @@ -306,31 +413,37 @@ type ManagedPrivateEndpointsClientDeleteResponse struct { // ManagedPrivateEndpointsClientGetResponse contains the response from method ManagedPrivateEndpointsClient.Get. type ManagedPrivateEndpointsClientGetResponse struct { + // Managed private endpoint resource type. ManagedPrivateEndpointResource } -// ManagedPrivateEndpointsClientListByFactoryResponse contains the response from method ManagedPrivateEndpointsClient.ListByFactory. +// ManagedPrivateEndpointsClientListByFactoryResponse contains the response from method ManagedPrivateEndpointsClient.NewListByFactoryPager. type ManagedPrivateEndpointsClientListByFactoryResponse struct { + // A list of managed private endpoint resources. ManagedPrivateEndpointListResponse } // ManagedVirtualNetworksClientCreateOrUpdateResponse contains the response from method ManagedVirtualNetworksClient.CreateOrUpdate. type ManagedVirtualNetworksClientCreateOrUpdateResponse struct { + // Managed Virtual Network resource type. ManagedVirtualNetworkResource } // ManagedVirtualNetworksClientGetResponse contains the response from method ManagedVirtualNetworksClient.Get. type ManagedVirtualNetworksClientGetResponse struct { + // Managed Virtual Network resource type. ManagedVirtualNetworkResource } -// ManagedVirtualNetworksClientListByFactoryResponse contains the response from method ManagedVirtualNetworksClient.ListByFactory. +// ManagedVirtualNetworksClientListByFactoryResponse contains the response from method ManagedVirtualNetworksClient.NewListByFactoryPager. type ManagedVirtualNetworksClientListByFactoryResponse struct { + // A list of managed Virtual Network resources. ManagedVirtualNetworkListResponse } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { + // A list of operations that can be performed by the Data Factory service. OperationListResponse } @@ -341,21 +454,25 @@ type PipelineRunsClientCancelResponse struct { // PipelineRunsClientGetResponse contains the response from method PipelineRunsClient.Get. type PipelineRunsClientGetResponse struct { + // Information about a pipeline run. PipelineRun } // PipelineRunsClientQueryByFactoryResponse contains the response from method PipelineRunsClient.QueryByFactory. type PipelineRunsClientQueryByFactoryResponse struct { + // A list pipeline runs. PipelineRunsQueryResponse } // PipelinesClientCreateOrUpdateResponse contains the response from method PipelinesClient.CreateOrUpdate. type PipelinesClientCreateOrUpdateResponse struct { + // Pipeline resource type. PipelineResource } // PipelinesClientCreateRunResponse contains the response from method PipelinesClient.CreateRun. type PipelinesClientCreateRunResponse struct { + // Response body with a run identifier. CreateRunResponse } @@ -366,21 +483,25 @@ type PipelinesClientDeleteResponse struct { // PipelinesClientGetResponse contains the response from method PipelinesClient.Get. type PipelinesClientGetResponse struct { + // Pipeline resource type. PipelineResource } -// PipelinesClientListByFactoryResponse contains the response from method PipelinesClient.ListByFactory. +// PipelinesClientListByFactoryResponse contains the response from method PipelinesClient.NewListByFactoryPager. type PipelinesClientListByFactoryResponse struct { + // A list of pipeline resources. PipelineListResponse } -// PrivateEndPointConnectionsClientListByFactoryResponse contains the response from method PrivateEndPointConnectionsClient.ListByFactory. +// PrivateEndPointConnectionsClientListByFactoryResponse contains the response from method PrivateEndPointConnectionsClient.NewListByFactoryPager. type PrivateEndPointConnectionsClientListByFactoryResponse struct { + // A list of linked service resources. PrivateEndpointConnectionListResponse } // PrivateEndpointConnectionClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionClient.CreateOrUpdate. type PrivateEndpointConnectionClientCreateOrUpdateResponse struct { + // Private Endpoint Connection ARM resource. PrivateEndpointConnectionResource } @@ -391,11 +512,13 @@ type PrivateEndpointConnectionClientDeleteResponse struct { // PrivateEndpointConnectionClientGetResponse contains the response from method PrivateEndpointConnectionClient.Get. type PrivateEndpointConnectionClientGetResponse struct { + // Private Endpoint Connection ARM resource. PrivateEndpointConnectionResource } // PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get. type PrivateLinkResourcesClientGetResponse struct { + // Wrapper for a collection of private link resources PrivateLinkResourcesWrapper } @@ -406,6 +529,7 @@ type TriggerRunsClientCancelResponse struct { // TriggerRunsClientQueryByFactoryResponse contains the response from method TriggerRunsClient.QueryByFactory. type TriggerRunsClientQueryByFactoryResponse struct { + // A list of trigger runs. TriggerRunsQueryResponse } @@ -416,6 +540,7 @@ type TriggerRunsClientRerunResponse struct { // TriggersClientCreateOrUpdateResponse contains the response from method TriggersClient.CreateOrUpdate. type TriggersClientCreateOrUpdateResponse struct { + // Trigger resource type. TriggerResource } @@ -426,40 +551,46 @@ type TriggersClientDeleteResponse struct { // TriggersClientGetEventSubscriptionStatusResponse contains the response from method TriggersClient.GetEventSubscriptionStatus. type TriggersClientGetEventSubscriptionStatusResponse struct { + // Defines the response of a trigger subscription operation. TriggerSubscriptionOperationStatus } // TriggersClientGetResponse contains the response from method TriggersClient.Get. type TriggersClientGetResponse struct { + // Trigger resource type. TriggerResource } -// TriggersClientListByFactoryResponse contains the response from method TriggersClient.ListByFactory. +// TriggersClientListByFactoryResponse contains the response from method TriggersClient.NewListByFactoryPager. type TriggersClientListByFactoryResponse struct { + // A list of trigger resources. TriggerListResponse } // TriggersClientQueryByFactoryResponse contains the response from method TriggersClient.QueryByFactory. type TriggersClientQueryByFactoryResponse struct { + // A query of triggers. TriggerQueryResponse } -// TriggersClientStartResponse contains the response from method TriggersClient.Start. +// TriggersClientStartResponse contains the response from method TriggersClient.BeginStart. type TriggersClientStartResponse struct { // placeholder for future response values } -// TriggersClientStopResponse contains the response from method TriggersClient.Stop. +// TriggersClientStopResponse contains the response from method TriggersClient.BeginStop. type TriggersClientStopResponse struct { // placeholder for future response values } -// TriggersClientSubscribeToEventsResponse contains the response from method TriggersClient.SubscribeToEvents. +// TriggersClientSubscribeToEventsResponse contains the response from method TriggersClient.BeginSubscribeToEvents. type TriggersClientSubscribeToEventsResponse struct { + // Defines the response of a trigger subscription operation. TriggerSubscriptionOperationStatus } -// TriggersClientUnsubscribeFromEventsResponse contains the response from method TriggersClient.UnsubscribeFromEvents. +// TriggersClientUnsubscribeFromEventsResponse contains the response from method TriggersClient.BeginUnsubscribeFromEvents. type TriggersClientUnsubscribeFromEventsResponse struct { + // Defines the response of a trigger subscription operation. TriggerSubscriptionOperationStatus } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/time_rfc3339.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/time_rfc3339.go new file mode 100644 index 00000000..db8d170e --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/time_rfc3339.go @@ -0,0 +1,110 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armdatafactory + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/triggerruns_client.go similarity index 73% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/triggerruns_client.go index a6200f4b..ce6b67ea 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/triggerruns_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,54 +23,52 @@ import ( // TriggerRunsClient contains the methods for the TriggerRuns group. // Don't use this type directly, use NewTriggerRunsClient() instead. type TriggerRunsClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewTriggerRunsClient creates a new instance of TriggerRunsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTriggerRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TriggerRunsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &TriggerRunsClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // Cancel - Cancel a single trigger instance by runId. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// runID - The pipeline run identifier. -// options - TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - runID - The pipeline run identifier. +// - options - TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. func (client *TriggerRunsClient) Cancel(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, runID string, options *TriggerRunsClientCancelOptions) (TriggerRunsClientCancelResponse, error) { + var err error + const operationName = "TriggerRunsClient.Cancel" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.cancelCreateRequest(ctx, resourceGroupName, factoryName, triggerName, runID, options) if err != nil { return TriggerRunsClientCancelResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggerRunsClientCancelResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return TriggerRunsClientCancelResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return TriggerRunsClientCancelResponse{}, err } return TriggerRunsClientCancelResponse{}, nil } @@ -101,7 +96,7 @@ func (client *TriggerRunsClient) cancelCreateRequest(ctx context.Context, resour return nil, errors.New("parameter runID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{runId}", url.PathEscape(runID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -114,25 +109,33 @@ func (client *TriggerRunsClient) cancelCreateRequest(ctx context.Context, resour // QueryByFactory - Query trigger runs. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// filterParameters - Parameters to filter the pipeline run. -// options - TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - filterParameters - Parameters to filter the pipeline run. +// - options - TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory +// method. func (client *TriggerRunsClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, filterParameters RunFilterParameters, options *TriggerRunsClientQueryByFactoryOptions) (TriggerRunsClientQueryByFactoryResponse, error) { + var err error + const operationName = "TriggerRunsClient.QueryByFactory" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, filterParameters, options) if err != nil { return TriggerRunsClientQueryByFactoryResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggerRunsClientQueryByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return TriggerRunsClientQueryByFactoryResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return TriggerRunsClientQueryByFactoryResponse{}, err } - return client.queryByFactoryHandleResponse(resp) + resp, err := client.queryByFactoryHandleResponse(httpResp) + return resp, err } // queryByFactoryCreateRequest creates the QueryByFactory request. @@ -150,7 +153,7 @@ func (client *TriggerRunsClient) queryByFactoryCreateRequest(ctx context.Context return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -158,7 +161,10 @@ func (client *TriggerRunsClient) queryByFactoryCreateRequest(ctx context.Context reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, filterParameters) + if err := runtime.MarshalAsJSON(req, filterParameters); err != nil { + return nil, err + } + return req, nil } // queryByFactoryHandleResponse handles the QueryByFactory response. @@ -172,23 +178,30 @@ func (client *TriggerRunsClient) queryByFactoryHandleResponse(resp *http.Respons // Rerun - Rerun single trigger instance by runId. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// runID - The pipeline run identifier. -// options - TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - runID - The pipeline run identifier. +// - options - TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. func (client *TriggerRunsClient) Rerun(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, runID string, options *TriggerRunsClientRerunOptions) (TriggerRunsClientRerunResponse, error) { + var err error + const operationName = "TriggerRunsClient.Rerun" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.rerunCreateRequest(ctx, resourceGroupName, factoryName, triggerName, runID, options) if err != nil { return TriggerRunsClientRerunResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggerRunsClientRerunResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return TriggerRunsClientRerunResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return TriggerRunsClientRerunResponse{}, err } return TriggerRunsClientRerunResponse{}, nil } @@ -216,7 +229,7 @@ func (client *TriggerRunsClient) rerunCreateRequest(ctx context.Context, resourc return nil, errors.New("parameter runID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{runId}", url.PathEscape(runID)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/triggers_client.go similarity index 72% rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/triggers_client.go index 0d2fc2c5..18bc0883 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7/triggers_client.go @@ -3,9 +3,8 @@ // 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. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armdatafactory @@ -14,8 +13,6 @@ import ( "errors" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -26,56 +23,55 @@ import ( // TriggersClient contains the methods for the Triggers group. // Don't use this type directly, use NewTriggersClient() instead. type TriggersClient struct { - host string + internal *arm.Client subscriptionID string - pl runtime.Pipeline } // NewTriggersClient creates a new instance of TriggersClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTriggersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TriggersClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } client := &TriggersClient{ subscriptionID: subscriptionID, - host: ep, - pl: pl, + internal: cl, } return client, nil } // CreateOrUpdate - Creates or updates a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// trigger - Trigger resource definition. -// options - TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - trigger - Trigger resource definition. +// - options - TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. func (client *TriggersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, trigger TriggerResource, options *TriggersClientCreateOrUpdateOptions) (TriggersClientCreateOrUpdateResponse, error) { + var err error + const operationName = "TriggersClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, triggerName, trigger, options) if err != nil { return TriggersClientCreateOrUpdateResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggersClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return TriggersClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return TriggersClientCreateOrUpdateResponse{}, err } - return client.createOrUpdateHandleResponse(resp) + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -97,18 +93,21 @@ func (client *TriggersClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, trigger) + if err := runtime.MarshalAsJSON(req, trigger); err != nil { + return nil, err + } + return req, nil } // createOrUpdateHandleResponse handles the CreateOrUpdate response. @@ -122,22 +121,29 @@ func (client *TriggersClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. func (client *TriggersClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientDeleteOptions) (TriggersClientDeleteResponse, error) { + var err error + const operationName = "TriggersClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return TriggersClientDeleteResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggersClientDeleteResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return TriggersClientDeleteResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return TriggersClientDeleteResponse{}, err } return TriggersClientDeleteResponse{}, nil } @@ -161,7 +167,7 @@ func (client *TriggersClient) deleteCreateRequest(ctx context.Context, resourceG return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -174,24 +180,32 @@ func (client *TriggersClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Gets a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. func (client *TriggersClient) Get(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientGetOptions) (TriggersClientGetResponse, error) { + var err error + const operationName = "TriggersClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return TriggersClientGetResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggersClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotModified) { - return TriggersClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNotModified) { + err = runtime.NewResponseError(httpResp) + return TriggersClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -213,17 +227,17 @@ func (client *TriggersClient) getCreateRequest(ctx context.Context, resourceGrou return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.IfNoneMatch != nil { req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} } - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -238,25 +252,33 @@ func (client *TriggersClient) getHandleResponse(resp *http.Response) (TriggersCl // GetEventSubscriptionStatus - Get a trigger's event subscription status. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus +// method. func (client *TriggersClient) GetEventSubscriptionStatus(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientGetEventSubscriptionStatusOptions) (TriggersClientGetEventSubscriptionStatusResponse, error) { + var err error + const operationName = "TriggersClient.GetEventSubscriptionStatus" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.getEventSubscriptionStatusCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return TriggersClientGetEventSubscriptionStatusResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggersClientGetEventSubscriptionStatusResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return TriggersClientGetEventSubscriptionStatusResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return TriggersClientGetEventSubscriptionStatusResponse{}, err } - return client.getEventSubscriptionStatusHandleResponse(resp) + resp, err := client.getEventSubscriptionStatusHandleResponse(httpResp) + return resp, err } // getEventSubscriptionStatusCreateRequest creates the GetEventSubscriptionStatus request. @@ -278,7 +300,7 @@ func (client *TriggersClient) getEventSubscriptionStatusCreateRequest(ctx contex return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -299,36 +321,32 @@ func (client *TriggersClient) getEventSubscriptionStatusHandleResponse(resp *htt } // NewListByFactoryPager - Lists triggers. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.NewListByFactoryPager +// method. func (client *TriggersClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *TriggersClientListByFactoryOptions) *runtime.Pager[TriggersClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[TriggersClientListByFactoryResponse]{ More: func(page TriggersClientListByFactoryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, Fetcher: func(ctx context.Context, page *TriggersClientListByFactoryResponse) (TriggersClientListByFactoryResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return TriggersClientListByFactoryResponse{}, err + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "TriggersClient.NewListByFactoryPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink } - resp, err := client.pl.Do(req) + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + }, nil) if err != nil { return TriggersClientListByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return TriggersClientListByFactoryResponse{}, runtime.NewResponseError(resp) - } return client.listByFactoryHandleResponse(resp) }, + Tracer: client.internal.Tracer(), }) } @@ -347,7 +365,7 @@ func (client *TriggersClient) listByFactoryCreateRequest(ctx context.Context, re return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -369,24 +387,32 @@ func (client *TriggersClient) listByFactoryHandleResponse(resp *http.Response) ( // QueryByFactory - Query triggers. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// filterParameters - Parameters to filter the triggers. -// options - TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - filterParameters - Parameters to filter the triggers. +// - options - TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. func (client *TriggersClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, filterParameters TriggerFilterParameters, options *TriggersClientQueryByFactoryOptions) (TriggersClientQueryByFactoryResponse, error) { + var err error + const operationName = "TriggersClient.QueryByFactory" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, filterParameters, options) if err != nil { return TriggersClientQueryByFactoryResponse{}, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return TriggersClientQueryByFactoryResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return TriggersClientQueryByFactoryResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return TriggersClientQueryByFactoryResponse{}, err } - return client.queryByFactoryHandleResponse(resp) + resp, err := client.queryByFactoryHandleResponse(httpResp) + return resp, err } // queryByFactoryCreateRequest creates the QueryByFactory request. @@ -404,7 +430,7 @@ func (client *TriggersClient) queryByFactoryCreateRequest(ctx context.Context, r return nil, errors.New("parameter factoryName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -412,7 +438,10 @@ func (client *TriggersClient) queryByFactoryCreateRequest(ctx context.Context, r reqQP.Set("api-version", "2018-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, filterParameters) + if err := runtime.MarshalAsJSON(req, filterParameters); err != nil { + return nil, err + } + return req, nil } // queryByFactoryHandleResponse handles the QueryByFactory response. @@ -426,39 +455,52 @@ func (client *TriggersClient) queryByFactoryHandleResponse(resp *http.Response) // BeginStart - Starts a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. func (client *TriggersClient) BeginStart(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStartOptions) (*runtime.Poller[TriggersClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - return runtime.NewPoller[TriggersClientStartResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TriggersClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[TriggersClientStartResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TriggersClientStartResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Start - Starts a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) start(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStartOptions) (*http.Response, error) { + var err error + const operationName = "TriggersClient.BeginStart" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.startCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // startCreateRequest creates the Start request. @@ -480,7 +522,7 @@ func (client *TriggersClient) startCreateRequest(ctx context.Context, resourceGr return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -493,39 +535,52 @@ func (client *TriggersClient) startCreateRequest(ctx context.Context, resourceGr // BeginStop - Stops a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. func (client *TriggersClient) BeginStop(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStopOptions) (*runtime.Poller[TriggersClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - return runtime.NewPoller[TriggersClientStopResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TriggersClientStopResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[TriggersClientStopResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TriggersClientStopResponse]{ + Tracer: client.internal.Tracer(), + }) } } // Stop - Stops a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) stop(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStopOptions) (*http.Response, error) { + var err error + const operationName = "TriggersClient.BeginStop" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.stopCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // stopCreateRequest creates the Stop request. @@ -547,7 +602,7 @@ func (client *TriggersClient) stopCreateRequest(ctx context.Context, resourceGro return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -560,40 +615,53 @@ func (client *TriggersClient) stopCreateRequest(ctx context.Context, resourceGro // BeginSubscribeToEvents - Subscribe event trigger to events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents +// method. func (client *TriggersClient) BeginSubscribeToEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginSubscribeToEventsOptions) (*runtime.Poller[TriggersClientSubscribeToEventsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.subscribeToEvents(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - return runtime.NewPoller[TriggersClientSubscribeToEventsResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TriggersClientSubscribeToEventsResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[TriggersClientSubscribeToEventsResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TriggersClientSubscribeToEventsResponse]{ + Tracer: client.internal.Tracer(), + }) } } // SubscribeToEvents - Subscribe event trigger to events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) subscribeToEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginSubscribeToEventsOptions) (*http.Response, error) { + var err error + const operationName = "TriggersClient.BeginSubscribeToEvents" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.subscribeToEventsCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // subscribeToEventsCreateRequest creates the SubscribeToEvents request. @@ -615,7 +683,7 @@ func (client *TriggersClient) subscribeToEventsCreateRequest(ctx context.Context return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } @@ -628,40 +696,53 @@ func (client *TriggersClient) subscribeToEventsCreateRequest(ctx context.Context // BeginUnsubscribeFromEvents - Unsubscribe event trigger from events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents +// method. func (client *TriggersClient) BeginUnsubscribeFromEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginUnsubscribeFromEventsOptions) (*runtime.Poller[TriggersClientUnsubscribeFromEventsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.unsubscribeFromEvents(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - return runtime.NewPoller[TriggersClientUnsubscribeFromEventsResponse](resp, client.pl, nil) + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TriggersClientUnsubscribeFromEventsResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err } else { - return runtime.NewPollerFromResumeToken[TriggersClientUnsubscribeFromEventsResponse](options.ResumeToken, client.pl, nil) + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TriggersClientUnsubscribeFromEventsResponse]{ + Tracer: client.internal.Tracer(), + }) } } // UnsubscribeFromEvents - Unsubscribe event trigger from events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) unsubscribeFromEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginUnsubscribeFromEventsOptions) (*http.Response, error) { + var err error + const operationName = "TriggersClient.BeginUnsubscribeFromEvents" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() req, err := client.unsubscribeFromEventsCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { return nil, err } - resp, err := client.pl.Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // unsubscribeFromEventsCreateRequest creates the UnsubscribeFromEvents request. @@ -683,7 +764,7 @@ func (client *TriggersClient) unsubscribeFromEventsCreateRequest(ctx context.Con return nil, errors.New("parameter triggerName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{triggerName}", url.PathEscape(triggerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } diff --git a/vendor/github.com/google/uuid/CHANGELOG.md b/vendor/github.com/google/uuid/CHANGELOG.md index 2bd78667..c9fb829d 100644 --- a/vendor/github.com/google/uuid/CHANGELOG.md +++ b/vendor/github.com/google/uuid/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [1.5.0](https://github.com/google/uuid/compare/v1.4.0...v1.5.0) (2023-12-12) + + +### Features + +* Validate UUID without creating new UUID ([#141](https://github.com/google/uuid/issues/141)) ([9ee7366](https://github.com/google/uuid/commit/9ee7366e66c9ad96bab89139418a713dc584ae29)) + +## [1.4.0](https://github.com/google/uuid/compare/v1.3.1...v1.4.0) (2023-10-26) + + +### Features + +* UUIDs slice type with Strings() convenience method ([#133](https://github.com/google/uuid/issues/133)) ([cd5fbbd](https://github.com/google/uuid/commit/cd5fbbdd02f3e3467ac18940e07e062be1f864b4)) + +### Fixes + +* Clarify that Parse's job is to parse but not necessarily validate strings. (Documents current behavior) + ## [1.3.1](https://github.com/google/uuid/compare/v1.3.0...v1.3.1) (2023-08-18) diff --git a/vendor/github.com/google/uuid/CONTRIBUTING.md b/vendor/github.com/google/uuid/CONTRIBUTING.md index 55668887..a502fdc5 100644 --- a/vendor/github.com/google/uuid/CONTRIBUTING.md +++ b/vendor/github.com/google/uuid/CONTRIBUTING.md @@ -11,7 +11,7 @@ please explain why in the pull request description. ### Releasing -Commits that would precipitate a SemVer change, as desrcibed in the Conventional +Commits that would precipitate a SemVer change, as described in the Conventional Commits Specification, will trigger [`release-please`](https://github.com/google-github-actions/release-please-action) to create a release candidate pull request. Once submitted, `release-please` will create a release. diff --git a/vendor/github.com/google/uuid/time.go b/vendor/github.com/google/uuid/time.go index e6ef06cd..c3511292 100644 --- a/vendor/github.com/google/uuid/time.go +++ b/vendor/github.com/google/uuid/time.go @@ -108,12 +108,23 @@ func setClockSequence(seq int) { } // Time returns the time in 100s of nanoseconds since 15 Oct 1582 encoded in -// uuid. The time is only defined for version 1 and 2 UUIDs. +// uuid. The time is only defined for version 1, 2, 6 and 7 UUIDs. func (uuid UUID) Time() Time { - time := int64(binary.BigEndian.Uint32(uuid[0:4])) - time |= int64(binary.BigEndian.Uint16(uuid[4:6])) << 32 - time |= int64(binary.BigEndian.Uint16(uuid[6:8])&0xfff) << 48 - return Time(time) + var t Time + switch uuid.Version() { + case 6: + time := binary.BigEndian.Uint64(uuid[:8]) // Ignore uuid[6] version b0110 + t = Time(time) + case 7: + time := binary.BigEndian.Uint64(uuid[:8]) + t = Time((time>>16)*10000 + g1582ns100) + default: // forward compatible + time := int64(binary.BigEndian.Uint32(uuid[0:4])) + time |= int64(binary.BigEndian.Uint16(uuid[4:6])) << 32 + time |= int64(binary.BigEndian.Uint16(uuid[6:8])&0xfff) << 48 + t = Time(time) + } + return t } // ClockSequence returns the clock sequence encoded in uuid. diff --git a/vendor/github.com/google/uuid/uuid.go b/vendor/github.com/google/uuid/uuid.go index a56138cc..5232b486 100644 --- a/vendor/github.com/google/uuid/uuid.go +++ b/vendor/github.com/google/uuid/uuid.go @@ -56,11 +56,15 @@ func IsInvalidLengthError(err error) bool { return ok } -// Parse decodes s into a UUID or returns an error. Both the standard UUID -// forms of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and -// urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are decoded as well as the -// Microsoft encoding {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} and the raw hex -// encoding: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. +// Parse decodes s into a UUID or returns an error if it cannot be parsed. Both +// the standard UUID forms defined in RFC 4122 +// (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and +// urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) are decoded. In addition, +// Parse accepts non-standard strings such as the raw hex encoding +// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and 38 byte "Microsoft style" encodings, +// e.g. {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}. Only the middle 36 bytes are +// examined in the latter case. Parse should not be used to validate strings as +// it parses non-standard encodings as indicated above. func Parse(s string) (UUID, error) { var uuid UUID switch len(s) { @@ -182,6 +186,59 @@ func Must(uuid UUID, err error) UUID { return uuid } +// Validate returns an error if s is not a properly formatted UUID in one of the following formats: +// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx +// urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx +// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +// {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} +// It returns an error if the format is invalid, otherwise nil. +func Validate(s string) error { + switch len(s) { + // Standard UUID format + case 36: + + // UUID with "urn:uuid:" prefix + case 36 + 9: + if !strings.EqualFold(s[:9], "urn:uuid:") { + return fmt.Errorf("invalid urn prefix: %q", s[:9]) + } + s = s[9:] + + // UUID enclosed in braces + case 36 + 2: + if s[0] != '{' || s[len(s)-1] != '}' { + return fmt.Errorf("invalid bracketed UUID format") + } + s = s[1 : len(s)-1] + + // UUID without hyphens + case 32: + for i := 0; i < len(s); i += 2 { + _, ok := xtob(s[i], s[i+1]) + if !ok { + return errors.New("invalid UUID format") + } + } + + default: + return invalidLengthError{len(s)} + } + + // Check for standard UUID format + if len(s) == 36 { + if s[8] != '-' || s[13] != '-' || s[18] != '-' || s[23] != '-' { + return errors.New("invalid UUID format") + } + for _, x := range []int{0, 2, 4, 6, 9, 11, 14, 16, 19, 21, 24, 26, 28, 30, 32, 34} { + if _, ok := xtob(s[x], s[x+1]); !ok { + return errors.New("invalid UUID format") + } + } + } + + return nil +} + // String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx // , or "" if uuid is invalid. func (uuid UUID) String() string { @@ -294,3 +351,15 @@ func DisableRandPool() { poolMu.Lock() poolPos = randPoolSize } + +// UUIDs is a slice of UUID types. +type UUIDs []UUID + +// Strings returns a string slice containing the string form of each UUID in uuids. +func (uuids UUIDs) Strings() []string { + var uuidStrs = make([]string, len(uuids)) + for i, uuid := range uuids { + uuidStrs[i] = uuid.String() + } + return uuidStrs +} diff --git a/vendor/github.com/google/uuid/version6.go b/vendor/github.com/google/uuid/version6.go new file mode 100644 index 00000000..339a959a --- /dev/null +++ b/vendor/github.com/google/uuid/version6.go @@ -0,0 +1,56 @@ +// Copyright 2023 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package uuid + +import "encoding/binary" + +// UUID version 6 is a field-compatible version of UUIDv1, reordered for improved DB locality. +// It is expected that UUIDv6 will primarily be used in contexts where there are existing v1 UUIDs. +// Systems that do not involve legacy UUIDv1 SHOULD consider using UUIDv7 instead. +// +// see https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-03#uuidv6 +// +// NewV6 returns a Version 6 UUID based on the current NodeID and clock +// sequence, and the current time. If the NodeID has not been set by SetNodeID +// or SetNodeInterface then it will be set automatically. If the NodeID cannot +// be set NewV6 set NodeID is random bits automatically . If clock sequence has not been set by +// SetClockSequence then it will be set automatically. If GetTime fails to +// return the current NewV6 returns Nil and an error. +func NewV6() (UUID, error) { + var uuid UUID + now, seq, err := GetTime() + if err != nil { + return uuid, err + } + + /* + 0 1 2 3 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | time_high | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | time_mid | time_low_and_version | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + |clk_seq_hi_res | clk_seq_low | node (0-1) | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | node (2-5) | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + */ + + binary.BigEndian.PutUint64(uuid[0:], uint64(now)) + binary.BigEndian.PutUint16(uuid[8:], seq) + + uuid[6] = 0x60 | (uuid[6] & 0x0F) + uuid[8] = 0x80 | (uuid[8] & 0x3F) + + nodeMu.Lock() + if nodeID == zeroID { + setNodeInterface("") + } + copy(uuid[10:], nodeID[:]) + nodeMu.Unlock() + + return uuid, nil +} diff --git a/vendor/github.com/google/uuid/version7.go b/vendor/github.com/google/uuid/version7.go new file mode 100644 index 00000000..ba9dd5eb --- /dev/null +++ b/vendor/github.com/google/uuid/version7.go @@ -0,0 +1,75 @@ +// Copyright 2023 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package uuid + +import ( + "io" +) + +// UUID version 7 features a time-ordered value field derived from the widely +// implemented and well known Unix Epoch timestamp source, +// the number of milliseconds seconds since midnight 1 Jan 1970 UTC, leap seconds excluded. +// As well as improved entropy characteristics over versions 1 or 6. +// +// see https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-03#name-uuid-version-7 +// +// Implementations SHOULD utilize UUID version 7 over UUID version 1 and 6 if possible. +// +// NewV7 returns a Version 7 UUID based on the current time(Unix Epoch). +// Uses the randomness pool if it was enabled with EnableRandPool. +// On error, NewV7 returns Nil and an error +func NewV7() (UUID, error) { + uuid, err := NewRandom() + if err != nil { + return uuid, err + } + makeV7(uuid[:]) + return uuid, nil +} + +// NewV7FromReader returns a Version 7 UUID based on the current time(Unix Epoch). +// it use NewRandomFromReader fill random bits. +// On error, NewV7FromReader returns Nil and an error. +func NewV7FromReader(r io.Reader) (UUID, error) { + uuid, err := NewRandomFromReader(r) + if err != nil { + return uuid, err + } + + makeV7(uuid[:]) + return uuid, nil +} + +// makeV7 fill 48 bits time (uuid[0] - uuid[5]), set version b0111 (uuid[6]) +// uuid[8] already has the right version number (Variant is 10) +// see function NewV7 and NewV7FromReader +func makeV7(uuid []byte) { + /* + 0 1 2 3 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | unix_ts_ms | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | unix_ts_ms | ver | rand_a | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + |var| rand_b | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | rand_b | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + */ + _ = uuid[15] // bounds check + + t := timeNow().UnixMilli() + + uuid[0] = byte(t >> 40) + uuid[1] = byte(t >> 32) + uuid[2] = byte(t >> 24) + uuid[3] = byte(t >> 16) + uuid[4] = byte(t >> 8) + uuid[5] = byte(t) + + uuid[6] = 0x70 | (uuid[6] & 0x0F) + // uuid[8] has already has right version +} diff --git a/vendor/github.com/magodo/aztft/internal/client/client.go b/vendor/github.com/magodo/aztft/internal/client/client.go index 237c4753..24a2554a 100644 --- a/vendor/github.com/magodo/aztft/internal/client/client.go +++ b/vendor/github.com/magodo/aztft/internal/client/client.go @@ -5,15 +5,16 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datashare/armdatashare" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization" @@ -163,6 +164,14 @@ func (b *ClientBuilder) NewDataFactoryIntegrationRuntimesClient(subscriptionId s ) } +func (b *ClientBuilder) NewDataFactoryCredentialsClient(subscriptionId string) (*armdatafactory.CredentialOperationsClient, error) { + return armdatafactory.NewCredentialOperationsClient( + subscriptionId, + b.Cred, + &b.ClientOpt, + ) +} + func (b *ClientBuilder) NewKustoDataConnectionsClient(subscriptionId string) (*armkusto.DataConnectionsClient, error) { return armkusto.NewDataConnectionsClient( subscriptionId, @@ -226,6 +235,14 @@ func (b *ClientBuilder) NewAutomationVariableClient(subscriptionId string) (*arm ) } +func (b *ClientBuilder) NewAutomationJobScheduleClient(subscriptionId string) (*armautomation.JobScheduleClient, error) { + return armautomation.NewJobScheduleClient( + subscriptionId, + b.Cred, + &b.ClientOpt, + ) +} + func (b *ClientBuilder) NewBotServiceBotsClient(subscriptionId string) (*armbotservice.BotsClient, error) { return armbotservice.NewBotsClient( subscriptionId, @@ -490,6 +507,14 @@ func (b *ClientBuilder) NewNetworkManagementDeploymentStatusClient(subscriptionI ) } +func (b *ClientBuilder) NewNetworkLoadBalancersClient(subscriptionId string) (*armnetwork.LoadBalancersClient, error) { + return armnetwork.NewLoadBalancersClient( + subscriptionId, + b.Cred, + &b.ClientOpt, + ) +} + func (b *ClientBuilder) NewFrontdoorPoliciesClient(subscriptionId string) (*armfrontdoor.PoliciesClient, error) { return armfrontdoor.NewPoliciesClient( subscriptionId, @@ -650,3 +675,11 @@ func (b *ClientBuilder) NewWorkloadSAPVirtualInstanceClient(subscriptionId strin &b.ClientOpt, ) } + +func (b *ClientBuilder) NewContainerAppEnvironmentsClient(subscriptionId string) (*armappcontainers.ManagedEnvironmentsClient, error) { + return armappcontainers.NewManagedEnvironmentsClient( + subscriptionId, + b.Cred, + &b.ClientOpt, + ) +} diff --git a/vendor/github.com/magodo/aztft/internal/populate/populate.go b/vendor/github.com/magodo/aztft/internal/populate/populate.go index 51641ac9..eab68c33 100644 --- a/vendor/github.com/magodo/aztft/internal/populate/populate.go +++ b/vendor/github.com/magodo/aztft/internal/populate/populate.go @@ -22,6 +22,8 @@ var populaters = map[string]populateFunc{ "azurerm_logic_app_workflow": populateLogicAppWorkflow, "azurerm_iothub": populateIotHub, "azurerm_netapp_account": populateNetAppAccount, + "azurerm_lb": populateLoadBalancer, + "azurerm_container_app_environment": populateContainerAppEnv, } func NeedsAPI(rt string) bool { diff --git a/vendor/github.com/magodo/aztft/internal/populate/populate_container_app_env.go b/vendor/github.com/magodo/aztft/internal/populate/populate_container_app_env.go new file mode 100644 index 00000000..5e6b900c --- /dev/null +++ b/vendor/github.com/magodo/aztft/internal/populate/populate_container_app_env.go @@ -0,0 +1,38 @@ +package populate + +import ( + "context" + "fmt" + + "github.com/magodo/armid" + "github.com/magodo/aztft/internal/client" +) + +func populateContainerAppEnv(b *client.ClientBuilder, id armid.ResourceId) ([]armid.ResourceId, error) { + resourceGroupId := id.RootScope().(*armid.ResourceGroup) + client, err := b.NewContainerAppEnvironmentsClient(resourceGroupId.SubscriptionId) + if err != nil { + return nil, err + } + resp, err := client.Get(context.Background(), resourceGroupId.Name, id.Names()[0], nil) + if err != nil { + return nil, fmt.Errorf("retrieving %q: %v", id, err) + } + props := resp.ManagedEnvironment.Properties + if props == nil { + return nil, nil + } + + var result []armid.ResourceId + + if cfg := props.CustomDomainConfiguration; cfg != nil { + if cfg.DNSSuffix != nil { + cid := id.Clone().(*armid.ScopedResourceId) + cid.AttrTypes = append(cid.AttrTypes, "customDomains") + cid.AttrNames = append(cid.AttrTypes, "default") + result = append(result, cid) + } + } + + return result, nil +} diff --git a/vendor/github.com/magodo/aztft/internal/populate/populate_lb.go b/vendor/github.com/magodo/aztft/internal/populate/populate_lb.go new file mode 100644 index 00000000..90c30cb2 --- /dev/null +++ b/vendor/github.com/magodo/aztft/internal/populate/populate_lb.go @@ -0,0 +1,51 @@ +package populate + +import ( + "context" + "fmt" + + "github.com/magodo/armid" + "github.com/magodo/aztft/internal/client" +) + +func populateLoadBalancer(b *client.ClientBuilder, id armid.ResourceId) ([]armid.ResourceId, error) { + resourceGroupId := id.RootScope().(*armid.ResourceGroup) + client, err := b.NewNetworkLoadBalancersClient(resourceGroupId.SubscriptionId) + if err != nil { + return nil, err + } + resp, err := client.Get(context.Background(), resourceGroupId.Name, id.Names()[0], nil) + if err != nil { + return nil, fmt.Errorf("retrieving %q: %v", id, err) + } + props := resp.LoadBalancer.Properties + if props == nil { + return nil, nil + } + + var result []armid.ResourceId + + for _, rule := range props.LoadBalancingRules { + if rule == nil || rule.ID == nil { + continue + } + id, err := armid.ParseResourceId(*rule.ID) + if err != nil { + return nil, fmt.Errorf("parsing %s: %v", *rule.ID, err) + } + result = append(result, id) + } + + for _, probe := range props.Probes { + if probe == nil || probe.ID == nil { + continue + } + id, err := armid.ParseResourceId(*probe.ID) + if err != nil { + return nil, fmt.Errorf("parsing %s: %v", *probe.ID, err) + } + result = append(result, id) + } + + return result, nil +} diff --git a/vendor/github.com/magodo/aztft/internal/resmap/map.json b/vendor/github.com/magodo/aztft/internal/resmap/map.json index 50e8dcb6..ea8a29c8 100644 --- a/vendor/github.com/magodo/aztft/internal/resmap/map.json +++ b/vendor/github.com/magodo/aztft/internal/resmap/map.json @@ -672,6 +672,21 @@ ] } }, + "azurerm_api_management_policy_fragment": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ApiManagement", + "types": [ + "service", + "policyFragments" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ApiManagement/service/policyFragments" + ] + } + }, "azurerm_api_management_product": { "management_plane": { "scopes": [ @@ -2740,6 +2755,21 @@ ] } }, + "azurerm_container_app_environment_custom_domain": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.App", + "types": [ + "managedEnvironments", + "customDomains" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.App/managedEnvironments" + ] + } + }, "azurerm_container_app_environment_dapr_component": { "management_plane": { "scopes": [ @@ -2770,6 +2800,20 @@ ] } }, + "azurerm_container_app_job": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.App", + "types": [ + "jobs" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.App/jobs" + ] + } + }, "azurerm_container_connected_registry": { "management_plane": { "scopes": [ @@ -2828,6 +2872,21 @@ ] } }, + "azurerm_container_registry_cache_rule": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ContainerRegistry", + "types": [ + "registries", + "cacheRules" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ContainerRegistry/registries/cacheRules" + ] + } + }, "azurerm_container_registry_scope_map": { "management_plane": { "scopes": [ @@ -3401,6 +3460,21 @@ ] } }, + "azurerm_data_factory_credential_service_principal": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.DataFactory", + "types": [ + "factories", + "credentials" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.DataFactory/factories/credentials" + ] + } + }, "azurerm_data_factory_credential_user_managed_identity": { "management_plane": { "scopes": [ @@ -4184,6 +4258,21 @@ ] } }, + "azurerm_data_protection_backup_instance_postgresql_flexible_server": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.DataProtection", + "types": [ + "backupVaults", + "backupInstances" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.DataProtection/backupVaults/backupInstances" + ] + } + }, "azurerm_data_protection_backup_policy_blob_storage": { "management_plane": { "scopes": [ @@ -4244,6 +4333,21 @@ ] } }, + "azurerm_data_protection_backup_policy_postgresql_flexible_server": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.DataProtection", + "types": [ + "backupVaults", + "backupPolicies" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.DataProtection/backupVaults/backupPolicies" + ] + } + }, "azurerm_data_protection_backup_vault": { "management_plane": { "scopes": [ @@ -5126,6 +5230,21 @@ ] } }, + "azurerm_email_communication_service_domain": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.Communication", + "types": [ + "emailServices", + "domains" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Communication/emailServices/domains" + ] + } + }, "azurerm_eventgrid_domain": { "management_plane": { "scopes": [ @@ -7914,6 +8033,20 @@ ] } }, + "azurerm_maintenance_assignment_dynamic_scope": { + "management_plane": { + "scopes": [ + "/subscriptions" + ], + "provider": "Microsoft.Maintenance", + "types": [ + "configurationAssignments" + ], + "import_specs": [ + "/subscriptions/Microsoft.Maintenance/configurationAssignments" + ] + } + }, "azurerm_maintenance_assignment_virtual_machine": { "management_plane": { "scopes": [ @@ -10092,6 +10225,21 @@ ] } }, + "azurerm_nginx_configuration": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Nginx.NginxPlus", + "types": [ + "nginxDeployments", + "configurations" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Nginx.NginxPlus/nginxDeployments/configurations" + ] + } + }, "azurerm_nginx_deployment": { "management_plane": { "scopes": [ @@ -11363,6 +11511,28 @@ ] } }, + "azurerm_role_management_policy": { + "management_plane": { + "scopes": [ + "any" + ], + "provider": "Microsoft.Authorization", + "types": [ + "roleManagementPolicies" + ] + } + }, + "azurerm_role_management_policy": { + "management_plane": { + "scopes": [ + "any" + ], + "provider": "Microsoft.Authorization", + "types": [ + "roleManagementPolicies" + ] + } + }, "azurerm_route": { "management_plane": { "scopes": [ @@ -13536,6 +13706,23 @@ ] } }, + "azurerm_storage_container_immutability_policy": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.Storage", + "types": [ + "storageAccounts", + "blobServices", + "containers", + "immutabilityPolicies" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies" + ] + } + }, "azurerm_storage_data_lake_gen2_filesystem": { "management_plane": { "scopes": [ @@ -13792,6 +13979,22 @@ ] } }, + "azurerm_storage_sync_server_endpoint": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.StorageSync", + "types": [ + "storageSyncServices", + "syncGroups", + "serverEndpoints" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + ] + } + }, "azurerm_storage_table": { "management_plane": { "scopes": [ @@ -14668,6 +14871,20 @@ ] } }, + "azurerm_system_center_virtual_machine_manager_cloud": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ScVmm", + "types": [ + "clouds" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ScVmm/clouds" + ] + } + }, "azurerm_system_center_virtual_machine_manager_server": { "management_plane": { "scopes": [ @@ -14682,6 +14899,34 @@ ] } }, + "azurerm_system_center_virtual_machine_manager_virtual_machine_template": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ScVmm", + "types": [ + "virtualMachineTemplates" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ScVmm/virtualMachineTemplates" + ] + } + }, + "azurerm_system_center_virtual_machine_manager_virtual_network": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ScVmm", + "types": [ + "virtualNetworks" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ScVmm/virtualNetworks" + ] + } + }, "azurerm_tenant_template_deployment": { "management_plane": { "scopes": [ @@ -15029,6 +15274,20 @@ ] } }, + "azurerm_virtual_machine_automanage_configuration_assignment": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups/Microsoft.Compute/virtualMachines" + ], + "provider": "Microsoft.AutoManage", + "types": [ + "configurationProfileAssignments" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Compute/virtualMachines/Microsoft.AutoManage/configurationProfileAssignments" + ] + } + }, "azurerm_virtual_machine_data_disk_attachment": { "management_plane": { "scopes": [ @@ -15059,6 +15318,21 @@ ] } }, + "azurerm_virtual_machine_implicit_data_disk_from_source": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.Compute", + "types": [ + "virtualMachines", + "dataDisks" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Compute/virtualMachines/dataDisks" + ] + } + }, "azurerm_virtual_machine_packet_capture": { "management_plane": { "scopes": [ diff --git a/vendor/github.com/magodo/aztft/internal/resmap/map_gen.json b/vendor/github.com/magodo/aztft/internal/resmap/map_gen.json index e5aa4e38..4075e017 100644 --- a/vendor/github.com/magodo/aztft/internal/resmap/map_gen.json +++ b/vendor/github.com/magodo/aztft/internal/resmap/map_gen.json @@ -668,6 +668,21 @@ ] } }, + "azurerm_api_management_policy_fragment": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ApiManagement", + "types": [ + "service", + "policyFragments" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ApiManagement/service/policyFragments" + ] + } + }, "azurerm_api_management_product": { "management_plane": { "scopes": [ @@ -1590,9 +1605,6 @@ "types": [ "automationAccounts", "jobSchedules" - ], - "import_specs": [ - "/subscriptions/resourceGroups/Microsoft.Automation/automationAccounts/jobSchedules" ] } }, @@ -2719,6 +2731,20 @@ ] } }, + "azurerm_container_app_environment_custom_domain": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.App", + "types": [ + "managedEnvironments" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.App/managedEnvironments" + ] + } + }, "azurerm_container_app_environment_dapr_component": { "management_plane": { "scopes": [ @@ -2749,6 +2775,20 @@ ] } }, + "azurerm_container_app_job": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.App", + "types": [ + "jobs" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.App/jobs" + ] + } + }, "azurerm_container_connected_registry": { "management_plane": { "scopes": [ @@ -2807,6 +2847,21 @@ ] } }, + "azurerm_container_registry_cache_rule": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ContainerRegistry", + "types": [ + "registries", + "cacheRules" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ContainerRegistry/registries/cacheRules" + ] + } + }, "azurerm_container_registry_scope_map": { "management_plane": { "scopes": [ @@ -3378,6 +3433,21 @@ ] } }, + "azurerm_data_factory_credential_service_principal": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.DataFactory", + "types": [ + "factories", + "credentials" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.DataFactory/factories/credentials" + ] + } + }, "azurerm_data_factory_credential_user_managed_identity": { "management_plane": { "scopes": [ @@ -4159,6 +4229,21 @@ ] } }, + "azurerm_data_protection_backup_instance_postgresql_flexible_server": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.DataProtection", + "types": [ + "backupVaults", + "backupInstances" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.DataProtection/backupVaults/backupInstances" + ] + } + }, "azurerm_data_protection_backup_policy_blob_storage": { "management_plane": { "scopes": [ @@ -4219,6 +4304,21 @@ ] } }, + "azurerm_data_protection_backup_policy_postgresql_flexible_server": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.DataProtection", + "types": [ + "backupVaults", + "backupPolicies" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.DataProtection/backupVaults/backupPolicies" + ] + } + }, "azurerm_data_protection_backup_vault": { "management_plane": { "scopes": [ @@ -5070,6 +5170,21 @@ ] } }, + "azurerm_email_communication_service_domain": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.Communication", + "types": [ + "emailServices", + "domains" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Communication/emailServices/domains" + ] + } + }, "azurerm_eventgrid_domain": { "management_plane": { "scopes": [ @@ -7845,6 +7960,20 @@ ] } }, + "azurerm_maintenance_assignment_dynamic_scope": { + "management_plane": { + "scopes": [ + "/subscriptions" + ], + "provider": "Microsoft.Maintenance", + "types": [ + "configurationAssignments" + ], + "import_specs": [ + "/subscriptions/Microsoft.Maintenance/configurationAssignments" + ] + } + }, "azurerm_maintenance_assignment_virtual_machine": { "management_plane": { "scopes": [ @@ -9913,6 +10042,21 @@ ] } }, + "azurerm_nginx_configuration": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Nginx.NginxPlus", + "types": [ + "nginxDeployments", + "configurations" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Nginx.NginxPlus/nginxDeployments/configurations" + ] + } + }, "azurerm_nginx_deployment": { "management_plane": { "scopes": [ @@ -11192,6 +11336,17 @@ ] } }, + "azurerm_role_management_policy": { + "management_plane": { + "scopes": [ + "any" + ], + "provider": "Microsoft.Authorization", + "types": [ + "roleManagementPolicies" + ] + } + }, "azurerm_route": { "management_plane": { "scopes": [ @@ -13332,6 +13487,23 @@ ] } }, + "azurerm_storage_container_immutability_policy": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.Storage", + "types": [ + "storageAccounts", + "blobServices", + "containers", + "immutabilityPolicies" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies" + ] + } + }, "azurerm_storage_data_lake_gen2_filesystem": { "management_plane": { "scopes": [ @@ -13588,6 +13760,22 @@ ] } }, + "azurerm_storage_sync_server_endpoint": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.StorageSync", + "types": [ + "storageSyncServices", + "syncGroups", + "serverEndpoints" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + ] + } + }, "azurerm_storage_table": { "management_plane": { "scopes": [ @@ -14468,6 +14656,20 @@ ] } }, + "azurerm_system_center_virtual_machine_manager_cloud": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ScVmm", + "types": [ + "clouds" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ScVmm/clouds" + ] + } + }, "azurerm_system_center_virtual_machine_manager_server": { "management_plane": { "scopes": [ @@ -14482,6 +14684,34 @@ ] } }, + "azurerm_system_center_virtual_machine_manager_virtual_machine_template": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ScVmm", + "types": [ + "virtualMachineTemplates" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ScVmm/virtualMachineTemplates" + ] + } + }, + "azurerm_system_center_virtual_machine_manager_virtual_network": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.ScVmm", + "types": [ + "virtualNetworks" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.ScVmm/virtualNetworks" + ] + } + }, "azurerm_tenant_template_deployment": { "management_plane": { "scopes": [ @@ -14817,6 +15047,20 @@ ] } }, + "azurerm_virtual_machine_automanage_configuration_assignment": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups/Microsoft.Compute/virtualMachines" + ], + "provider": "Microsoft.AutoManage", + "types": [ + "configurationProfileAssignments" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Compute/virtualMachines/Microsoft.AutoManage/configurationProfileAssignments" + ] + } + }, "azurerm_virtual_machine_data_disk_attachment": { "management_plane": { "scopes": [ @@ -14847,6 +15091,21 @@ ] } }, + "azurerm_virtual_machine_implicit_data_disk_from_source": { + "management_plane": { + "scopes": [ + "/subscriptions/resourceGroups" + ], + "provider": "Microsoft.Compute", + "types": [ + "virtualMachines", + "dataDisks" + ], + "import_specs": [ + "/subscriptions/resourceGroups/Microsoft.Compute/virtualMachines/dataDisks" + ] + } + }, "azurerm_virtual_machine_packet_capture": { "management_plane": { "scopes": [ diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve.go index b1f5bedd..974e8dab 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve.go @@ -64,6 +64,9 @@ var Resolvers = map[string]map[string]resolver{ "/MICROSOFT.DATAFACTORY/FACTORIES/INTEGRATIONRUNTIMES": { "/SUBSCRIPTIONS/RESOURCEGROUPS": dataFactoryIntegrationRuntimesResolver{}, }, + "/MICROSOFT.DATAFACTORY/FACTORIES/CREDENTIALS": { + "/SUBSCRIPTIONS/RESOURCEGROUPS": dataFactoryCredentialsResolver{}, + }, "/MICROSOFT.KUSTO/CLUSTERS/DATABASES/DATACONNECTIONS": { "/SUBSCRIPTIONS/RESOURCEGROUPS": kustoDataConnectionsResolver{}, }, @@ -205,6 +208,9 @@ var Resolvers = map[string]map[string]resolver{ "/MICROSOFT.WORKLOADS/SAPVIRTUALINSTANCES": { "/SUBSCRIPTIONS/RESOURCEGROUPS": sapVirtualInstancesResolver{}, }, + "/MICROSOFT.COMPUTE/VIRTUALMACHINES/DATADISKS": { + "/SUBSCRIPTIONS/RESOURCEGROUPS": virutalMachineDataDiskResolver{}, + }, } type ResolveError struct { diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_credential.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_credential.go new file mode 100644 index 00000000..ca6164f0 --- /dev/null +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_credential.go @@ -0,0 +1,43 @@ +package resolve + +import ( + "context" + "fmt" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7" + "github.com/magodo/armid" + "github.com/magodo/aztft/internal/client" +) + +type dataFactoryCredentialsResolver struct{} + +func (dataFactoryCredentialsResolver) ResourceTypes() []string { + return []string{ + "azurerm_data_factory_credential_user_managed_identity", + "azurerm_data_factory_credential_service_principal", + } +} + +func (dataFactoryCredentialsResolver) Resolve(b *client.ClientBuilder, id armid.ResourceId) (string, error) { + resourceGroupId := id.RootScope().(*armid.ResourceGroup) + client, err := b.NewDataFactoryCredentialsClient(resourceGroupId.SubscriptionId) + if err != nil { + return "", err + } + resp, err := client.Get(context.Background(), resourceGroupId.Name, id.Names()[0], id.Names()[1], nil) + if err != nil { + return "", fmt.Errorf("retrieving %q: %v", id, err) + } + props := resp.CredentialResource.Properties + if props == nil { + return "", fmt.Errorf("unexpected nil property in response") + } + switch props.(type) { + case *armdatafactory.ManagedIdentityCredential: + return "azurerm_data_factory_credential_user_managed_identity", nil + case *armdatafactory.ServicePrincipalCredential: + return "azurerm_data_factory_credential_service_principal", nil + default: + return "", fmt.Errorf("unknown data flow type %T", props) + } +} diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataflow.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataflow.go index 98a014e2..97c5da9f 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataflow.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataflow.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7" "github.com/magodo/armid" "github.com/magodo/aztft/internal/client" ) diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataset.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataset.go index 5cd8b32e..20be7223 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataset.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_dataset.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7" "github.com/magodo/armid" "github.com/magodo/aztft/internal/client" ) diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_integration_runtime.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_integration_runtime.go index 26388241..e58fc515 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_integration_runtime.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_integration_runtime.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7" "github.com/magodo/armid" "github.com/magodo/aztft/internal/client" ) diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_linkedservice.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_linkedservice.go index f7967dce..288f1095 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_linkedservice.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_linkedservice.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7" "github.com/magodo/armid" "github.com/magodo/aztft/internal/client" ) diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_trigger.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_trigger.go index e407a086..83f6898c 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_trigger.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_factory_trigger.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7" "github.com/magodo/armid" "github.com/magodo/aztft/internal/client" ) diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_instance.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_instance.go index 13210307..0bd09ad9 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_instance.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_instance.go @@ -14,6 +14,7 @@ type dataProtectionBackupInstancesResolver struct{} func (dataProtectionBackupInstancesResolver) ResourceTypes() []string { return []string{ "azurerm_data_protection_backup_instance_postgresql", + "azurerm_data_protection_backup_instance_postgresql_flexible_server", "azurerm_data_protection_backup_instance_disk", "azurerm_data_protection_backup_instance_blob_storage", "azurerm_data_protection_backup_instance_kubernetes_cluster", @@ -43,8 +44,10 @@ func (dataProtectionBackupInstancesResolver) Resolve(b *client.ClientBuilder, id return "", fmt.Errorf("unexpected nil properties.dataSourceInfo.dataSourceType in response") } switch strings.ToUpper(*pdt) { - case " MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES": + case "MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES": return "azurerm_data_protection_backup_instance_postgresql", nil + case "MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS": + return "azurerm_data_protection_backup_instance_postgresql_flexible_server", nil case "MICROSOFT.COMPUTE/DISKS": return "azurerm_data_protection_backup_instance_disk", nil case "MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES": diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_policies.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_policies.go index 655b21aa..8989630c 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_policies.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_data_protection_backup_policies.go @@ -18,6 +18,7 @@ func (dataProtectionBackupPoliciesResolver) ResourceTypes() []string { "azurerm_data_protection_backup_policy_disk", "azurerm_data_protection_backup_policy_blob_storage", "azurerm_data_protection_backup_policy_kubernetes_cluster", + "azurerm_data_protection_backup_policy_postgresql_flexible_server", } } @@ -55,6 +56,8 @@ func (dataProtectionBackupPoliciesResolver) Resolve(b *client.ClientBuilder, id return "azurerm_data_protection_backup_policy_blob_storage", nil case "MICROSOFT.CONTAINERSERVICE/MANAGEDCLUSTERS": return "azurerm_data_protection_backup_policy_kubernetes_cluster", nil + case "MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS": + return "azurerm_data_protection_backup_policy_postgresql_flexible_server", nil default: return "", fmt.Errorf("unknown data source type: %s", *pdt) } diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine.go index ddb5e7d4..951f5850 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" "github.com/magodo/armid" "github.com/magodo/aztft/internal/client" ) diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_data_disk.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_data_disk.go new file mode 100644 index 00000000..0a544116 --- /dev/null +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_data_disk.go @@ -0,0 +1,66 @@ +package resolve + +import ( + "context" + "fmt" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" + "github.com/magodo/armid" + "github.com/magodo/aztft/internal/client" +) + +type virutalMachineDataDiskResolver struct{} + +func (virutalMachineDataDiskResolver) ResourceTypes() []string { + return []string{ + "azurerm_virtual_machine_implicit_data_disk_from_source", + "azurerm_virtual_machine_data_disk_attachment", + } +} + +func (virutalMachineDataDiskResolver) Resolve(b *client.ClientBuilder, id armid.ResourceId) (string, error) { + resourceGroupId := id.RootScope().(*armid.ResourceGroup) + client, err := b.NewVirtualMachinesClient(resourceGroupId.SubscriptionId) + if err != nil { + return "", err + } + resp, err := client.Get(context.Background(), resourceGroupId.Name, id.Names()[0], nil) + if err != nil { + return "", fmt.Errorf("retrieving %q: %v", id, err) + } + + props := resp.VirtualMachine.Properties + if props == nil { + return "", fmt.Errorf("unexpected nil property in response") + } + profile := props.StorageProfile + if profile == nil { + return "", fmt.Errorf("unexpected nil storageProfile") + } + + diskName := id.Names()[1] + for _, disk := range profile.DataDisks { + if disk == nil { + continue + } + if disk.Name == nil { + continue + } + if *disk.Name != diskName { + continue + } + createOpt := disk.CreateOption + if createOpt == nil { + return "", fmt.Errorf("unexpected nil storageProfile.dataDisks.*.createOption") + } + switch *createOpt { + case armcompute.DiskCreateOptionTypesEmpty, armcompute.DiskCreateOptionTypesAttach: + return "azurerm_virtual_machine_data_disk_attachment", nil + case armcompute.DiskCreateOptionTypesCopy: + return "azurerm_virtual_machine_implicit_data_disk_from_source", nil + default: + return "", fmt.Errorf("unexpected storageProfile.dataDisks.*.createOption: %v", *createOpt) + } + } + return "", fmt.Errorf("data disk named %q not found", diskName) +} diff --git a/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_scale_set.go b/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_scale_set.go index c4cb4e30..ae50bd1d 100644 --- a/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_scale_set.go +++ b/vendor/github.com/magodo/aztft/internal/resolve/resolve_virtual_machine_scale_set.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" "github.com/magodo/armid" "github.com/magodo/aztft/internal/client" ) diff --git a/vendor/github.com/magodo/aztft/internal/tfid/build_automation_job_schedule.go b/vendor/github.com/magodo/aztft/internal/tfid/build_automation_job_schedule.go new file mode 100644 index 00000000..39a7eff5 --- /dev/null +++ b/vendor/github.com/magodo/aztft/internal/tfid/build_automation_job_schedule.go @@ -0,0 +1,51 @@ +package tfid + +import ( + "context" + "fmt" + + "github.com/magodo/armid" + "github.com/magodo/aztft/internal/client" +) + +func buildAutomationJobSchedule(b *client.ClientBuilder, id armid.ResourceId, _ string) (string, error) { + resourceGroupId := id.RootScope().(*armid.ResourceGroup) + client, err := b.NewAutomationJobScheduleClient(resourceGroupId.SubscriptionId) + if err != nil { + return "", err + } + resp, err := client.Get(context.Background(), resourceGroupId.Name, id.Names()[0], id.Names()[1], nil) + if err != nil { + return "", fmt.Errorf("retrieving %q: %v", id, err) + } + props := resp.JobSchedule.Properties + if props == nil { + return "", fmt.Errorf("unexpected nil property in response") + } + runBook := props.Runbook + if runBook == nil { + return "", fmt.Errorf("unexpected nil properties.runBook in response") + } + runBookName := runBook.Name + if runBookName == nil { + return "", fmt.Errorf("unexpected nil properties.runBook.name in response") + } + schedule := props.Schedule + if schedule == nil { + return "", fmt.Errorf("unexpected nil properties.schedule in response") + } + scheduleName := schedule.Name + if scheduleName == nil { + return "", fmt.Errorf("unexpected nil properties.schedule.name in response") + } + + scheduleId := id.Parent().Clone().(*armid.ScopedResourceId) + scheduleId.AttrTypes = append(scheduleId.AttrTypes, "schedules") + scheduleId.AttrNames = append(scheduleId.AttrNames, *scheduleName) + + runBookId := id.Parent().Clone().(*armid.ScopedResourceId) + runBookId.AttrTypes = append(runBookId.AttrTypes, "runbooks") + runBookId.AttrNames = append(runBookId.AttrNames, *runBookName) + + return scheduleId.String() + "|" + runBookId.String(), nil +} diff --git a/vendor/github.com/magodo/aztft/internal/tfid/tfid.go b/vendor/github.com/magodo/aztft/internal/tfid/tfid.go index 56c122a0..9ee6bdcc 100644 --- a/vendor/github.com/magodo/aztft/internal/tfid/tfid.go +++ b/vendor/github.com/magodo/aztft/internal/tfid/tfid.go @@ -35,6 +35,7 @@ var dynamicBuilders = map[string]builderFunc{ "azurerm_storage_data_lake_gen2_filesystem": buildStorageDfs, "azurerm_storage_data_lake_gen2_path": buildStorageDfsPath, "azurerm_api_management_api": buildApiManagementApi, + "azurerm_automation_job_schedule": buildAutomationJobSchedule, } func NeedsAPI(rt string) bool { @@ -188,6 +189,15 @@ func StaticBuild(id armid.ResourceId, rt string) (string, error) { return "", fmt.Errorf("normalizing id %q for %q with import spec %q: %v", pid.String(), rt, importSpec, err) } return pid.String(), nil + case "azurerm_container_app_environment_custom_domain": + pid := id.Parent() + if err := pid.Normalize(importSpec); err != nil { + return "", fmt.Errorf("normalizing id %q for %q with import spec %q: %v", pid.String(), rt, importSpec, err) + } + return pid.String(), nil + case "azurerm_role_management_policy": + parentScopeId := id.ParentScope() + return id.String() + "|" + parentScopeId.String(), nil } if importSpec != "" { diff --git a/vendor/golang.org/x/net/context/go17.go b/vendor/golang.org/x/net/context/go17.go index 2cb9c408..0c1b8679 100644 --- a/vendor/golang.org/x/net/context/go17.go +++ b/vendor/golang.org/x/net/context/go17.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.7 -// +build go1.7 package context diff --git a/vendor/golang.org/x/net/context/go19.go b/vendor/golang.org/x/net/context/go19.go index 64d31ecc..e31e35a9 100644 --- a/vendor/golang.org/x/net/context/go19.go +++ b/vendor/golang.org/x/net/context/go19.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.9 -// +build go1.9 package context diff --git a/vendor/golang.org/x/net/context/pre_go17.go b/vendor/golang.org/x/net/context/pre_go17.go index 7b6b6851..065ff3df 100644 --- a/vendor/golang.org/x/net/context/pre_go17.go +++ b/vendor/golang.org/x/net/context/pre_go17.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.7 -// +build !go1.7 package context diff --git a/vendor/golang.org/x/net/context/pre_go19.go b/vendor/golang.org/x/net/context/pre_go19.go index 1f971534..ec5a6380 100644 --- a/vendor/golang.org/x/net/context/pre_go19.go +++ b/vendor/golang.org/x/net/context/pre_go19.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.9 -// +build !go1.9 package context diff --git a/vendor/golang.org/x/net/http2/databuffer.go b/vendor/golang.org/x/net/http2/databuffer.go index a3067f8d..e6f55cbd 100644 --- a/vendor/golang.org/x/net/http2/databuffer.go +++ b/vendor/golang.org/x/net/http2/databuffer.go @@ -20,41 +20,44 @@ import ( // TODO: Benchmark to determine if the pools are necessary. The GC may have // improved enough that we can instead allocate chunks like this: // make([]byte, max(16<<10, expectedBytesRemaining)) -var ( - dataChunkSizeClasses = []int{ - 1 << 10, - 2 << 10, - 4 << 10, - 8 << 10, - 16 << 10, - } - dataChunkPools = [...]sync.Pool{ - {New: func() interface{} { return make([]byte, 1<<10) }}, - {New: func() interface{} { return make([]byte, 2<<10) }}, - {New: func() interface{} { return make([]byte, 4<<10) }}, - {New: func() interface{} { return make([]byte, 8<<10) }}, - {New: func() interface{} { return make([]byte, 16<<10) }}, - } -) +var dataChunkPools = [...]sync.Pool{ + {New: func() interface{} { return new([1 << 10]byte) }}, + {New: func() interface{} { return new([2 << 10]byte) }}, + {New: func() interface{} { return new([4 << 10]byte) }}, + {New: func() interface{} { return new([8 << 10]byte) }}, + {New: func() interface{} { return new([16 << 10]byte) }}, +} func getDataBufferChunk(size int64) []byte { - i := 0 - for ; i < len(dataChunkSizeClasses)-1; i++ { - if size <= int64(dataChunkSizeClasses[i]) { - break - } + switch { + case size <= 1<<10: + return dataChunkPools[0].Get().(*[1 << 10]byte)[:] + case size <= 2<<10: + return dataChunkPools[1].Get().(*[2 << 10]byte)[:] + case size <= 4<<10: + return dataChunkPools[2].Get().(*[4 << 10]byte)[:] + case size <= 8<<10: + return dataChunkPools[3].Get().(*[8 << 10]byte)[:] + default: + return dataChunkPools[4].Get().(*[16 << 10]byte)[:] } - return dataChunkPools[i].Get().([]byte) } func putDataBufferChunk(p []byte) { - for i, n := range dataChunkSizeClasses { - if len(p) == n { - dataChunkPools[i].Put(p) - return - } + switch len(p) { + case 1 << 10: + dataChunkPools[0].Put((*[1 << 10]byte)(p)) + case 2 << 10: + dataChunkPools[1].Put((*[2 << 10]byte)(p)) + case 4 << 10: + dataChunkPools[2].Put((*[4 << 10]byte)(p)) + case 8 << 10: + dataChunkPools[3].Put((*[8 << 10]byte)(p)) + case 16 << 10: + dataChunkPools[4].Put((*[16 << 10]byte)(p)) + default: + panic(fmt.Sprintf("unexpected buffer len=%v", len(p))) } - panic(fmt.Sprintf("unexpected buffer len=%v", len(p))) } // dataBuffer is an io.ReadWriter backed by a list of data chunks. diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go index c1f6b90d..e2b298d8 100644 --- a/vendor/golang.org/x/net/http2/frame.go +++ b/vendor/golang.org/x/net/http2/frame.go @@ -1510,13 +1510,12 @@ func (mh *MetaHeadersFrame) checkPseudos() error { } func (fr *Framer) maxHeaderStringLen() int { - v := fr.maxHeaderListSize() - if uint32(int(v)) == v { - return int(v) + v := int(fr.maxHeaderListSize()) + if v < 0 { + // If maxHeaderListSize overflows an int, use no limit (0). + return 0 } - // They had a crazy big number for MaxHeaderBytes anyway, - // so give them unlimited header lengths: - return 0 + return v } // readMetaFrame returns 0 or more CONTINUATION frames from fr and diff --git a/vendor/golang.org/x/net/http2/go111.go b/vendor/golang.org/x/net/http2/go111.go deleted file mode 100644 index 5bf62b03..00000000 --- a/vendor/golang.org/x/net/http2/go111.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.11 -// +build go1.11 - -package http2 - -import ( - "net/http/httptrace" - "net/textproto" -) - -func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { - return trace != nil && trace.WroteHeaderField != nil -} - -func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) { - if trace != nil && trace.WroteHeaderField != nil { - trace.WroteHeaderField(k, []string{v}) - } -} - -func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { - if trace != nil { - return trace.Got1xxResponse - } - return nil -} diff --git a/vendor/golang.org/x/net/http2/go115.go b/vendor/golang.org/x/net/http2/go115.go deleted file mode 100644 index 908af1ab..00000000 --- a/vendor/golang.org/x/net/http2/go115.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.15 -// +build go1.15 - -package http2 - -import ( - "context" - "crypto/tls" -) - -// dialTLSWithContext uses tls.Dialer, added in Go 1.15, to open a TLS -// connection. -func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { - dialer := &tls.Dialer{ - Config: cfg, - } - cn, err := dialer.DialContext(ctx, network, addr) - if err != nil { - return nil, err - } - tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed - return tlsCn, nil -} diff --git a/vendor/golang.org/x/net/http2/go118.go b/vendor/golang.org/x/net/http2/go118.go deleted file mode 100644 index aca4b2b3..00000000 --- a/vendor/golang.org/x/net/http2/go118.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.18 -// +build go1.18 - -package http2 - -import ( - "crypto/tls" - "net" -) - -func tlsUnderlyingConn(tc *tls.Conn) net.Conn { - return tc.NetConn() -} diff --git a/vendor/golang.org/x/net/http2/not_go111.go b/vendor/golang.org/x/net/http2/not_go111.go deleted file mode 100644 index cc0baa81..00000000 --- a/vendor/golang.org/x/net/http2/not_go111.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.11 -// +build !go1.11 - -package http2 - -import ( - "net/http/httptrace" - "net/textproto" -) - -func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } - -func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} - -func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { - return nil -} diff --git a/vendor/golang.org/x/net/http2/not_go115.go b/vendor/golang.org/x/net/http2/not_go115.go deleted file mode 100644 index e6c04cf7..00000000 --- a/vendor/golang.org/x/net/http2/not_go115.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.15 -// +build !go1.15 - -package http2 - -import ( - "context" - "crypto/tls" -) - -// dialTLSWithContext opens a TLS connection. -func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { - cn, err := tls.Dial(network, addr, cfg) - if err != nil { - return nil, err - } - if err := cn.Handshake(); err != nil { - return nil, err - } - if cfg.InsecureSkipVerify { - return cn, nil - } - if err := cn.VerifyHostname(cfg.ServerName); err != nil { - return nil, err - } - return cn, nil -} diff --git a/vendor/golang.org/x/net/http2/not_go118.go b/vendor/golang.org/x/net/http2/not_go118.go deleted file mode 100644 index eab532c9..00000000 --- a/vendor/golang.org/x/net/http2/not_go118.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.18 -// +build !go1.18 - -package http2 - -import ( - "crypto/tls" - "net" -) - -func tlsUnderlyingConn(tc *tls.Conn) net.Conn { - return nil -} diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go index 02c88b6b..ae94c640 100644 --- a/vendor/golang.org/x/net/http2/server.go +++ b/vendor/golang.org/x/net/http2/server.go @@ -2549,7 +2549,6 @@ type responseWriterState struct { wroteHeader bool // WriteHeader called (explicitly or implicitly). Not necessarily sent to user yet. sentHeader bool // have we sent the header frame? handlerDone bool // handler has finished - dirty bool // a Write failed; don't reuse this responseWriterState sentContentLen int64 // non-zero if handler set a Content-Length header wroteBytes int64 @@ -2669,7 +2668,6 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { date: date, }) if err != nil { - rws.dirty = true return 0, err } if endStream { @@ -2690,7 +2688,6 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { if len(p) > 0 || endStream { // only send a 0 byte DATA frame if we're ending the stream. if err := rws.conn.writeDataFromHandler(rws.stream, p, endStream); err != nil { - rws.dirty = true return 0, err } } @@ -2702,9 +2699,6 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { trailers: rws.trailers, endStream: true, }) - if err != nil { - rws.dirty = true - } return len(p), err } return len(p), nil @@ -2920,14 +2914,12 @@ func (rws *responseWriterState) writeHeader(code int) { h.Del("Transfer-Encoding") } - if rws.conn.writeHeaders(rws.stream, &writeResHeaders{ + rws.conn.writeHeaders(rws.stream, &writeResHeaders{ streamID: rws.stream.id, httpResCode: code, h: h, endStream: rws.handlerDone && !rws.hasTrailers(), - }) != nil { - rws.dirty = true - } + }) return } @@ -2992,19 +2984,10 @@ func (w *responseWriter) write(lenData int, dataB []byte, dataS string) (n int, func (w *responseWriter) handlerDone() { rws := w.rws - dirty := rws.dirty rws.handlerDone = true w.Flush() w.rws = nil - if !dirty { - // Only recycle the pool if all prior Write calls to - // the serverConn goroutine completed successfully. If - // they returned earlier due to resets from the peer - // there might still be write goroutines outstanding - // from the serverConn referencing the rws memory. See - // issue 20704. - responseWriterStatePool.Put(rws) - } + responseWriterStatePool.Put(rws) } // Push errors. @@ -3187,6 +3170,7 @@ func (sc *serverConn) startPush(msg *startPushRequest) { panic(fmt.Sprintf("newWriterAndRequestNoBody(%+v): %v", msg.url, err)) } + sc.curHandlers++ go sc.runHandler(rw, req, sc.handler.ServeHTTP) return promisedID, nil } diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go index 4515b22c..c2a5b44b 100644 --- a/vendor/golang.org/x/net/http2/transport.go +++ b/vendor/golang.org/x/net/http2/transport.go @@ -1018,7 +1018,7 @@ func (cc *ClientConn) forceCloseConn() { if !ok { return } - if nc := tlsUnderlyingConn(tc); nc != nil { + if nc := tc.NetConn(); nc != nil { nc.Close() } } @@ -2911,6 +2911,15 @@ func (rl *clientConnReadLoop) processWindowUpdate(f *WindowUpdateFrame) error { fl = &cs.flow } if !fl.add(int32(f.Increment)) { + // For stream, the sender sends RST_STREAM with an error code of FLOW_CONTROL_ERROR + if cs != nil { + rl.endStreamError(cs, StreamError{ + StreamID: f.StreamID, + Code: ErrCodeFlowControl, + }) + return nil + } + return ConnectionError(ErrCodeFlowControl) } cc.cond.Broadcast() @@ -3201,3 +3210,34 @@ func traceFirstResponseByte(trace *httptrace.ClientTrace) { trace.GotFirstResponseByte() } } + +func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { + return trace != nil && trace.WroteHeaderField != nil +} + +func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) { + if trace != nil && trace.WroteHeaderField != nil { + trace.WroteHeaderField(k, []string{v}) + } +} + +func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { + if trace != nil { + return trace.Got1xxResponse + } + return nil +} + +// dialTLSWithContext uses tls.Dialer, added in Go 1.15, to open a TLS +// connection. +func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { + dialer := &tls.Dialer{ + Config: cfg, + } + cn, err := dialer.DialContext(ctx, network, addr) + if err != nil { + return nil, err + } + tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed + return tlsCn, nil +} diff --git a/vendor/golang.org/x/net/idna/go118.go b/vendor/golang.org/x/net/idna/go118.go index c5c4338d..712f1ad8 100644 --- a/vendor/golang.org/x/net/idna/go118.go +++ b/vendor/golang.org/x/net/idna/go118.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package idna diff --git a/vendor/golang.org/x/net/idna/idna10.0.0.go b/vendor/golang.org/x/net/idna/idna10.0.0.go index 64ccf85f..7b371788 100644 --- a/vendor/golang.org/x/net/idna/idna10.0.0.go +++ b/vendor/golang.org/x/net/idna/idna10.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build go1.10 -// +build go1.10 // Package idna implements IDNA2008 using the compatibility processing // defined by UTS (Unicode Technical Standard) #46, which defines a standard to diff --git a/vendor/golang.org/x/net/idna/idna9.0.0.go b/vendor/golang.org/x/net/idna/idna9.0.0.go index ee1698ce..cc6a892a 100644 --- a/vendor/golang.org/x/net/idna/idna9.0.0.go +++ b/vendor/golang.org/x/net/idna/idna9.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build !go1.10 -// +build !go1.10 // Package idna implements IDNA2008 using the compatibility processing // defined by UTS (Unicode Technical Standard) #46, which defines a standard to diff --git a/vendor/golang.org/x/net/idna/pre_go118.go b/vendor/golang.org/x/net/idna/pre_go118.go index 3aaccab1..40e74bb3 100644 --- a/vendor/golang.org/x/net/idna/pre_go118.go +++ b/vendor/golang.org/x/net/idna/pre_go118.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build !go1.18 -// +build !go1.18 package idna diff --git a/vendor/golang.org/x/net/idna/tables10.0.0.go b/vendor/golang.org/x/net/idna/tables10.0.0.go index d1d62ef4..c6c2bf10 100644 --- a/vendor/golang.org/x/net/idna/tables10.0.0.go +++ b/vendor/golang.org/x/net/idna/tables10.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.10 && !go1.13 -// +build go1.10,!go1.13 package idna diff --git a/vendor/golang.org/x/net/idna/tables11.0.0.go b/vendor/golang.org/x/net/idna/tables11.0.0.go index 167efba7..76789393 100644 --- a/vendor/golang.org/x/net/idna/tables11.0.0.go +++ b/vendor/golang.org/x/net/idna/tables11.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.13 && !go1.14 -// +build go1.13,!go1.14 package idna diff --git a/vendor/golang.org/x/net/idna/tables12.0.0.go b/vendor/golang.org/x/net/idna/tables12.0.0.go index ab40f7bc..0600cd2a 100644 --- a/vendor/golang.org/x/net/idna/tables12.0.0.go +++ b/vendor/golang.org/x/net/idna/tables12.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.14 && !go1.16 -// +build go1.14,!go1.16 package idna diff --git a/vendor/golang.org/x/net/idna/tables13.0.0.go b/vendor/golang.org/x/net/idna/tables13.0.0.go index 66701ead..2fb768ef 100644 --- a/vendor/golang.org/x/net/idna/tables13.0.0.go +++ b/vendor/golang.org/x/net/idna/tables13.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.16 && !go1.21 -// +build go1.16,!go1.21 package idna diff --git a/vendor/golang.org/x/net/idna/tables15.0.0.go b/vendor/golang.org/x/net/idna/tables15.0.0.go index 40033778..5ff05fe1 100644 --- a/vendor/golang.org/x/net/idna/tables15.0.0.go +++ b/vendor/golang.org/x/net/idna/tables15.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.21 -// +build go1.21 package idna diff --git a/vendor/golang.org/x/net/idna/tables9.0.0.go b/vendor/golang.org/x/net/idna/tables9.0.0.go index 4074b533..0f25e84c 100644 --- a/vendor/golang.org/x/net/idna/tables9.0.0.go +++ b/vendor/golang.org/x/net/idna/tables9.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build !go1.10 -// +build !go1.10 package idna diff --git a/vendor/golang.org/x/net/idna/trie12.0.0.go b/vendor/golang.org/x/net/idna/trie12.0.0.go index bb63f904..8a75b966 100644 --- a/vendor/golang.org/x/net/idna/trie12.0.0.go +++ b/vendor/golang.org/x/net/idna/trie12.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build !go1.16 -// +build !go1.16 package idna diff --git a/vendor/golang.org/x/net/idna/trie13.0.0.go b/vendor/golang.org/x/net/idna/trie13.0.0.go index 7d68a8dc..fa45bb90 100644 --- a/vendor/golang.org/x/net/idna/trie13.0.0.go +++ b/vendor/golang.org/x/net/idna/trie13.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build go1.16 -// +build go1.16 package idna diff --git a/vendor/golang.org/x/sys/unix/aliases.go b/vendor/golang.org/x/sys/unix/aliases.go index e7d3df4b..b0e41985 100644 --- a/vendor/golang.org/x/sys/unix/aliases.go +++ b/vendor/golang.org/x/sys/unix/aliases.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos package unix diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index 6202638b..fdcaa974 100644 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -248,6 +248,7 @@ struct ltchars { #include #include #include +#include #include #include #include @@ -283,10 +284,6 @@ struct ltchars { #include #endif -#ifndef MSG_FASTOPEN -#define MSG_FASTOPEN 0x20000000 -#endif - #ifndef PTRACE_GETREGS #define PTRACE_GETREGS 0xc #endif @@ -295,14 +292,6 @@ struct ltchars { #define PTRACE_SETREGS 0xd #endif -#ifndef SOL_NETLINK -#define SOL_NETLINK 270 -#endif - -#ifndef SOL_SMC -#define SOL_SMC 286 -#endif - #ifdef SOL_BLUETOOTH // SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h // but it is already in bluetooth_linux.go @@ -319,10 +308,23 @@ struct ltchars { #undef TIPC_WAIT_FOREVER #define TIPC_WAIT_FOREVER 0xffffffff -// Copied from linux/l2tp.h -// Including linux/l2tp.h here causes conflicts between linux/in.h -// and netinet/in.h included via net/route.h above. -#define IPPROTO_L2TP 115 +// Copied from linux/netfilter/nf_nat.h +// Including linux/netfilter/nf_nat.h here causes conflicts between linux/in.h +// and netinet/in.h. +#define NF_NAT_RANGE_MAP_IPS (1 << 0) +#define NF_NAT_RANGE_PROTO_SPECIFIED (1 << 1) +#define NF_NAT_RANGE_PROTO_RANDOM (1 << 2) +#define NF_NAT_RANGE_PERSISTENT (1 << 3) +#define NF_NAT_RANGE_PROTO_RANDOM_FULLY (1 << 4) +#define NF_NAT_RANGE_PROTO_OFFSET (1 << 5) +#define NF_NAT_RANGE_NETMAP (1 << 6) +#define NF_NAT_RANGE_PROTO_RANDOM_ALL \ + (NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PROTO_RANDOM_FULLY) +#define NF_NAT_RANGE_MASK \ + (NF_NAT_RANGE_MAP_IPS | NF_NAT_RANGE_PROTO_SPECIFIED | \ + NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PERSISTENT | \ + NF_NAT_RANGE_PROTO_RANDOM_FULLY | NF_NAT_RANGE_PROTO_OFFSET | \ + NF_NAT_RANGE_NETMAP) // Copied from linux/hid.h. // Keep in sync with the size of the referenced fields. @@ -582,7 +584,7 @@ ccflags="$@" $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ || $2 ~ /^KEYCTL_/ || $2 ~ /^PERF_/ || - $2 ~ /^SECCOMP_MODE_/ || + $2 ~ /^SECCOMP_/ || $2 ~ /^SEEK_/ || $2 ~ /^SCHED_/ || $2 ~ /^SPLICE_/ || @@ -603,6 +605,9 @@ ccflags="$@" $2 ~ /^FSOPT_/ || $2 ~ /^WDIO[CFS]_/ || $2 ~ /^NFN/ || + $2 !~ /^NFT_META_IIFTYPE/ && + $2 ~ /^NFT_/ || + $2 ~ /^NF_NAT_/ || $2 ~ /^XDP_/ || $2 ~ /^RWF_/ || $2 ~ /^(HDIO|WIN|SMART)_/ || diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go b/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go index 16dc6993..2f0fa76e 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build darwin && go1.12 +//go:build darwin package unix diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go index 64d1bb4d..2b57e0f7 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go @@ -13,6 +13,7 @@ package unix import ( + "errors" "sync" "unsafe" ) @@ -169,25 +170,26 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { func Uname(uname *Utsname) error { mib := []_C_int{CTL_KERN, KERN_OSTYPE} n := unsafe.Sizeof(uname.Sysname) - if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { + // Suppress ENOMEM errors to be compatible with the C library __xuname() implementation. + if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil && !errors.Is(err, ENOMEM) { return err } mib = []_C_int{CTL_KERN, KERN_HOSTNAME} n = unsafe.Sizeof(uname.Nodename) - if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { + if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil && !errors.Is(err, ENOMEM) { return err } mib = []_C_int{CTL_KERN, KERN_OSRELEASE} n = unsafe.Sizeof(uname.Release) - if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { + if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil && !errors.Is(err, ENOMEM) { return err } mib = []_C_int{CTL_KERN, KERN_VERSION} n = unsafe.Sizeof(uname.Version) - if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { + if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil && !errors.Is(err, ENOMEM) { return err } @@ -205,7 +207,7 @@ func Uname(uname *Utsname) error { mib = []_C_int{CTL_HW, HW_MACHINE} n = unsafe.Sizeof(uname.Machine) - if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { + if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil && !errors.Is(err, ENOMEM) { return err } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go index 0f85e29e..5682e262 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -1849,6 +1849,105 @@ func Dup2(oldfd, newfd int) error { //sys Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) //sys Fsopen(fsName string, flags int) (fd int, err error) //sys Fspick(dirfd int, pathName string, flags int) (fd int, err error) + +//sys fsconfig(fd int, cmd uint, key *byte, value *byte, aux int) (err error) + +func fsconfigCommon(fd int, cmd uint, key string, value *byte, aux int) (err error) { + var keyp *byte + if keyp, err = BytePtrFromString(key); err != nil { + return + } + return fsconfig(fd, cmd, keyp, value, aux) +} + +// FsconfigSetFlag is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_SET_FLAG. +// +// fd is the filesystem context to act upon. +// key the parameter key to set. +func FsconfigSetFlag(fd int, key string) (err error) { + return fsconfigCommon(fd, FSCONFIG_SET_FLAG, key, nil, 0) +} + +// FsconfigSetString is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_SET_STRING. +// +// fd is the filesystem context to act upon. +// key the parameter key to set. +// value is the parameter value to set. +func FsconfigSetString(fd int, key string, value string) (err error) { + var valuep *byte + if valuep, err = BytePtrFromString(value); err != nil { + return + } + return fsconfigCommon(fd, FSCONFIG_SET_STRING, key, valuep, 0) +} + +// FsconfigSetBinary is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_SET_BINARY. +// +// fd is the filesystem context to act upon. +// key the parameter key to set. +// value is the parameter value to set. +func FsconfigSetBinary(fd int, key string, value []byte) (err error) { + if len(value) == 0 { + return EINVAL + } + return fsconfigCommon(fd, FSCONFIG_SET_BINARY, key, &value[0], len(value)) +} + +// FsconfigSetPath is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_SET_PATH. +// +// fd is the filesystem context to act upon. +// key the parameter key to set. +// path is a non-empty path for specified key. +// atfd is a file descriptor at which to start lookup from or AT_FDCWD. +func FsconfigSetPath(fd int, key string, path string, atfd int) (err error) { + var valuep *byte + if valuep, err = BytePtrFromString(path); err != nil { + return + } + return fsconfigCommon(fd, FSCONFIG_SET_PATH, key, valuep, atfd) +} + +// FsconfigSetPathEmpty is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_SET_PATH_EMPTY. The same as +// FconfigSetPath but with AT_PATH_EMPTY implied. +func FsconfigSetPathEmpty(fd int, key string, path string, atfd int) (err error) { + var valuep *byte + if valuep, err = BytePtrFromString(path); err != nil { + return + } + return fsconfigCommon(fd, FSCONFIG_SET_PATH_EMPTY, key, valuep, atfd) +} + +// FsconfigSetFd is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_SET_FD. +// +// fd is the filesystem context to act upon. +// key the parameter key to set. +// value is a file descriptor to be assigned to specified key. +func FsconfigSetFd(fd int, key string, value int) (err error) { + return fsconfigCommon(fd, FSCONFIG_SET_FD, key, nil, value) +} + +// FsconfigCreate is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_CMD_CREATE. +// +// fd is the filesystem context to act upon. +func FsconfigCreate(fd int) (err error) { + return fsconfig(fd, FSCONFIG_CMD_CREATE, nil, nil, 0) +} + +// FsconfigReconfigure is equivalent to fsconfig(2) called +// with cmd == FSCONFIG_CMD_RECONFIGURE. +// +// fd is the filesystem context to act upon. +func FsconfigReconfigure(fd int) (err error) { + return fsconfig(fd, FSCONFIG_CMD_RECONFIGURE, nil, nil, 0) +} + //sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64 //sysnb Getpgid(pid int) (pgid int, err error) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go index c73cfe2f..36bf8399 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -1785,6 +1785,8 @@ const ( LANDLOCK_ACCESS_FS_REMOVE_FILE = 0x20 LANDLOCK_ACCESS_FS_TRUNCATE = 0x4000 LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2 + LANDLOCK_ACCESS_NET_BIND_TCP = 0x1 + LANDLOCK_ACCESS_NET_CONNECT_TCP = 0x2 LANDLOCK_CREATE_RULESET_VERSION = 0x1 LINUX_REBOOT_CMD_CAD_OFF = 0x0 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef @@ -2127,6 +2129,60 @@ const ( NFNL_SUBSYS_QUEUE = 0x3 NFNL_SUBSYS_ULOG = 0x4 NFS_SUPER_MAGIC = 0x6969 + NFT_CHAIN_FLAGS = 0x7 + NFT_CHAIN_MAXNAMELEN = 0x100 + NFT_CT_MAX = 0x17 + NFT_DATA_RESERVED_MASK = 0xffffff00 + NFT_DATA_VALUE_MAXLEN = 0x40 + NFT_EXTHDR_OP_MAX = 0x4 + NFT_FIB_RESULT_MAX = 0x3 + NFT_INNER_MASK = 0xf + NFT_LOGLEVEL_MAX = 0x8 + NFT_NAME_MAXLEN = 0x100 + NFT_NG_MAX = 0x1 + NFT_OBJECT_CONNLIMIT = 0x5 + NFT_OBJECT_COUNTER = 0x1 + NFT_OBJECT_CT_EXPECT = 0x9 + NFT_OBJECT_CT_HELPER = 0x3 + NFT_OBJECT_CT_TIMEOUT = 0x7 + NFT_OBJECT_LIMIT = 0x4 + NFT_OBJECT_MAX = 0xa + NFT_OBJECT_QUOTA = 0x2 + NFT_OBJECT_SECMARK = 0x8 + NFT_OBJECT_SYNPROXY = 0xa + NFT_OBJECT_TUNNEL = 0x6 + NFT_OBJECT_UNSPEC = 0x0 + NFT_OBJ_MAXNAMELEN = 0x100 + NFT_OSF_MAXGENRELEN = 0x10 + NFT_QUEUE_FLAG_BYPASS = 0x1 + NFT_QUEUE_FLAG_CPU_FANOUT = 0x2 + NFT_QUEUE_FLAG_MASK = 0x3 + NFT_REG32_COUNT = 0x10 + NFT_REG32_SIZE = 0x4 + NFT_REG_MAX = 0x4 + NFT_REG_SIZE = 0x10 + NFT_REJECT_ICMPX_MAX = 0x3 + NFT_RT_MAX = 0x4 + NFT_SECMARK_CTX_MAXLEN = 0x100 + NFT_SET_MAXNAMELEN = 0x100 + NFT_SOCKET_MAX = 0x3 + NFT_TABLE_F_MASK = 0x3 + NFT_TABLE_MAXNAMELEN = 0x100 + NFT_TRACETYPE_MAX = 0x3 + NFT_TUNNEL_F_MASK = 0x7 + NFT_TUNNEL_MAX = 0x1 + NFT_TUNNEL_MODE_MAX = 0x2 + NFT_USERDATA_MAXLEN = 0x100 + NFT_XFRM_KEY_MAX = 0x6 + NF_NAT_RANGE_MAP_IPS = 0x1 + NF_NAT_RANGE_MASK = 0x7f + NF_NAT_RANGE_NETMAP = 0x40 + NF_NAT_RANGE_PERSISTENT = 0x8 + NF_NAT_RANGE_PROTO_OFFSET = 0x20 + NF_NAT_RANGE_PROTO_RANDOM = 0x4 + NF_NAT_RANGE_PROTO_RANDOM_ALL = 0x14 + NF_NAT_RANGE_PROTO_RANDOM_FULLY = 0x10 + NF_NAT_RANGE_PROTO_SPECIFIED = 0x2 NILFS_SUPER_MAGIC = 0x3434 NL0 = 0x0 NL1 = 0x100 @@ -2411,6 +2467,7 @@ const ( PR_MCE_KILL_GET = 0x22 PR_MCE_KILL_LATE = 0x0 PR_MCE_KILL_SET = 0x1 + PR_MDWE_NO_INHERIT = 0x2 PR_MDWE_REFUSE_EXEC_GAIN = 0x1 PR_MPX_DISABLE_MANAGEMENT = 0x2c PR_MPX_ENABLE_MANAGEMENT = 0x2b @@ -2615,8 +2672,9 @@ const ( RTAX_FEATURES = 0xc RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf + RTAX_FEATURE_MASK = 0x1f RTAX_FEATURE_SACK = 0x2 + RTAX_FEATURE_TCP_USEC_TS = 0x10 RTAX_FEATURE_TIMESTAMP = 0x4 RTAX_HOPLIMIT = 0xa RTAX_INITCWND = 0xb @@ -2859,9 +2917,38 @@ const ( SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x1d SC_LOG_FLUSH = 0x100000 + SECCOMP_ADDFD_FLAG_SEND = 0x2 + SECCOMP_ADDFD_FLAG_SETFD = 0x1 + SECCOMP_FILTER_FLAG_LOG = 0x2 + SECCOMP_FILTER_FLAG_NEW_LISTENER = 0x8 + SECCOMP_FILTER_FLAG_SPEC_ALLOW = 0x4 + SECCOMP_FILTER_FLAG_TSYNC = 0x1 + SECCOMP_FILTER_FLAG_TSYNC_ESRCH = 0x10 + SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV = 0x20 + SECCOMP_GET_ACTION_AVAIL = 0x2 + SECCOMP_GET_NOTIF_SIZES = 0x3 + SECCOMP_IOCTL_NOTIF_RECV = 0xc0502100 + SECCOMP_IOCTL_NOTIF_SEND = 0xc0182101 + SECCOMP_IOC_MAGIC = '!' SECCOMP_MODE_DISABLED = 0x0 SECCOMP_MODE_FILTER = 0x2 SECCOMP_MODE_STRICT = 0x1 + SECCOMP_RET_ACTION = 0x7fff0000 + SECCOMP_RET_ACTION_FULL = 0xffff0000 + SECCOMP_RET_ALLOW = 0x7fff0000 + SECCOMP_RET_DATA = 0xffff + SECCOMP_RET_ERRNO = 0x50000 + SECCOMP_RET_KILL = 0x0 + SECCOMP_RET_KILL_PROCESS = 0x80000000 + SECCOMP_RET_KILL_THREAD = 0x0 + SECCOMP_RET_LOG = 0x7ffc0000 + SECCOMP_RET_TRACE = 0x7ff00000 + SECCOMP_RET_TRAP = 0x30000 + SECCOMP_RET_USER_NOTIF = 0x7fc00000 + SECCOMP_SET_MODE_FILTER = 0x1 + SECCOMP_SET_MODE_STRICT = 0x0 + SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP = 0x1 + SECCOMP_USER_NOTIF_FLAG_CONTINUE = 0x1 SECRETMEM_MAGIC = 0x5345434d SECURITYFS_MAGIC = 0x73636673 SEEK_CUR = 0x1 @@ -3021,6 +3108,7 @@ const ( SOL_TIPC = 0x10f SOL_TLS = 0x11a SOL_UDP = 0x11 + SOL_VSOCK = 0x11f SOL_X25 = 0x106 SOL_XDP = 0x11b SOMAXCONN = 0x1000 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index 4920821c..42ff8c3c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -281,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index a0c1e411..dca43600 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -282,6 +282,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index c6398556..5cca668a 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -288,6 +288,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index 47cc62e2..d8cae6d1 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -278,6 +278,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go index 27ac4a09..28e39afd 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go @@ -275,6 +275,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index 54694642..cd66e92c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -281,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index 3adb81d7..c1595eba 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -281,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index 2dfe98f0..ee9456b0 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -281,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index f5398f84..8cfca81e 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -281,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go index c54f152d..60b0deb3 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go @@ -336,6 +336,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index 76057dc7..f90aa728 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -340,6 +340,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index e0c3725e..ba9e0150 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -340,6 +340,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go index 18f2813e..07cdfd6e 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -272,6 +272,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 11619d4e..2f1dd214 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -344,6 +344,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index 396d994d..f40519d9 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -335,6 +335,9 @@ const ( SCM_TIMESTAMPNS = 0x21 SCM_TXTIME = 0x3f SCM_WIFI_STATUS = 0x25 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x400000 SFD_NONBLOCK = 0x4000 SF_FP = 0x38 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vendor/golang.org/x/sys/unix/zsyscall_linux.go index 1488d271..87d8612a 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux.go @@ -906,6 +906,16 @@ func Fspick(dirfd int, pathName string, flags int) (fd int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fsconfig(fd int, cmd uint, key *byte, value *byte, aux int) (err error) { + _, _, e1 := Syscall6(SYS_FSCONFIG, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(value)), uintptr(aux), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Getdents(fd int, buf []byte) (n int, err error) { var _p0 unsafe.Pointer if len(buf) > 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go index a1d06159..9dc42410 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go index 5b2a7409..0d3a0751 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go index f6eda134..c39f7776 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go index 55df20ae..57571d07 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go index 8c1155cb..e62963e6 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go index 7cc80c58..00831354 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go index 0688737f..79029ed5 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index fcf3ecbd..0cc3ce49 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -448,4 +448,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index f56dc250..856d92d6 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -371,4 +371,7 @@ const ( SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index 974bf246..8d467094 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -412,4 +412,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index 39a2739e..edc17324 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -315,4 +315,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go index cf9c9d77..445eba20 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go @@ -309,4 +309,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index 10b7362e..adba01bc 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -432,4 +432,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 4450 SYS_CACHESTAT = 4451 SYS_FCHMODAT2 = 4452 + SYS_MAP_SHADOW_STACK = 4453 + SYS_FUTEX_WAKE = 4454 + SYS_FUTEX_WAIT = 4455 + SYS_FUTEX_REQUEUE = 4456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index cd4d8b4f..014c4e9c 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -362,4 +362,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 5450 SYS_CACHESTAT = 5451 SYS_FCHMODAT2 = 5452 + SYS_MAP_SHADOW_STACK = 5453 + SYS_FUTEX_WAKE = 5454 + SYS_FUTEX_WAIT = 5455 + SYS_FUTEX_REQUEUE = 5456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index 2c0efca8..ccc97d74 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -362,4 +362,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 5450 SYS_CACHESTAT = 5451 SYS_FCHMODAT2 = 5452 + SYS_MAP_SHADOW_STACK = 5453 + SYS_FUTEX_WAKE = 5454 + SYS_FUTEX_WAIT = 5455 + SYS_FUTEX_REQUEUE = 5456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index a72e31d3..ec2b64a9 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -432,4 +432,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 4450 SYS_CACHESTAT = 4451 SYS_FCHMODAT2 = 4452 + SYS_MAP_SHADOW_STACK = 4453 + SYS_FUTEX_WAKE = 4454 + SYS_FUTEX_WAIT = 4455 + SYS_FUTEX_REQUEUE = 4456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go index c7d1e374..21a839e3 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go @@ -439,4 +439,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index f4d4838c..c11121ec 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -411,4 +411,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index b64f0e59..909b631f 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -411,4 +411,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go index 95711195..e49bed16 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -316,4 +316,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index f94e943b..66017d2d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -377,4 +377,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index ba0c2bc5..47bab18d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -390,4 +390,8 @@ const ( SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go index bbf8399f..eff6bcde 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -174,7 +174,8 @@ type FscryptPolicyV2 struct { Contents_encryption_mode uint8 Filenames_encryption_mode uint8 Flags uint8 - _ [4]uint8 + Log2_data_unit_size uint8 + _ [3]uint8 Master_key_identifier [16]uint8 } @@ -455,60 +456,63 @@ type Ucred struct { } type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 - Pacing_rate uint64 - Max_pacing_rate uint64 - Bytes_acked uint64 - Bytes_received uint64 - Segs_out uint32 - Segs_in uint32 - Notsent_bytes uint32 - Min_rtt uint32 - Data_segs_in uint32 - Data_segs_out uint32 - Delivery_rate uint64 - Busy_time uint64 - Rwnd_limited uint64 - Sndbuf_limited uint64 - Delivered uint32 - Delivered_ce uint32 - Bytes_sent uint64 - Bytes_retrans uint64 - Dsack_dups uint32 - Reord_seen uint32 - Rcv_ooopack uint32 - Snd_wnd uint32 - Rcv_wnd uint32 - Rehash uint32 + State uint8 + Ca_state uint8 + Retransmits uint8 + Probes uint8 + Backoff uint8 + Options uint8 + Rto uint32 + Ato uint32 + Snd_mss uint32 + Rcv_mss uint32 + Unacked uint32 + Sacked uint32 + Lost uint32 + Retrans uint32 + Fackets uint32 + Last_data_sent uint32 + Last_ack_sent uint32 + Last_data_recv uint32 + Last_ack_recv uint32 + Pmtu uint32 + Rcv_ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Snd_ssthresh uint32 + Snd_cwnd uint32 + Advmss uint32 + Reordering uint32 + Rcv_rtt uint32 + Rcv_space uint32 + Total_retrans uint32 + Pacing_rate uint64 + Max_pacing_rate uint64 + Bytes_acked uint64 + Bytes_received uint64 + Segs_out uint32 + Segs_in uint32 + Notsent_bytes uint32 + Min_rtt uint32 + Data_segs_in uint32 + Data_segs_out uint32 + Delivery_rate uint64 + Busy_time uint64 + Rwnd_limited uint64 + Sndbuf_limited uint64 + Delivered uint32 + Delivered_ce uint32 + Bytes_sent uint64 + Bytes_retrans uint64 + Dsack_dups uint32 + Reord_seen uint32 + Rcv_ooopack uint32 + Snd_wnd uint32 + Rcv_wnd uint32 + Rehash uint32 + Total_rto uint16 + Total_rto_recoveries uint16 + Total_rto_time uint32 } type CanFilter struct { @@ -551,7 +555,7 @@ const ( SizeofIPv6MTUInfo = 0x20 SizeofICMPv6Filter = 0x20 SizeofUcred = 0xc - SizeofTCPInfo = 0xf0 + SizeofTCPInfo = 0xf8 SizeofCanFilter = 0x8 SizeofTCPRepairOpt = 0x8 ) @@ -832,6 +836,15 @@ const ( FSPICK_EMPTY_PATH = 0x8 FSMOUNT_CLOEXEC = 0x1 + + FSCONFIG_SET_FLAG = 0x0 + FSCONFIG_SET_STRING = 0x1 + FSCONFIG_SET_BINARY = 0x2 + FSCONFIG_SET_PATH = 0x3 + FSCONFIG_SET_PATH_EMPTY = 0x4 + FSCONFIG_SET_FD = 0x5 + FSCONFIG_CMD_CREATE = 0x6 + FSCONFIG_CMD_RECONFIGURE = 0x7 ) type OpenHow struct { @@ -1546,6 +1559,7 @@ const ( IFLA_DEVLINK_PORT = 0x3e IFLA_GSO_IPV4_MAX_SIZE = 0x3f IFLA_GRO_IPV4_MAX_SIZE = 0x40 + IFLA_DPLL_PIN = 0x41 IFLA_PROTO_DOWN_REASON_UNSPEC = 0x0 IFLA_PROTO_DOWN_REASON_MASK = 0x1 IFLA_PROTO_DOWN_REASON_VALUE = 0x2 @@ -1561,6 +1575,7 @@ const ( IFLA_INET6_ICMP6STATS = 0x6 IFLA_INET6_TOKEN = 0x7 IFLA_INET6_ADDR_GEN_MODE = 0x8 + IFLA_INET6_RA_MTU = 0x9 IFLA_BR_UNSPEC = 0x0 IFLA_BR_FORWARD_DELAY = 0x1 IFLA_BR_HELLO_TIME = 0x2 @@ -1608,6 +1623,9 @@ const ( IFLA_BR_MCAST_MLD_VERSION = 0x2c IFLA_BR_VLAN_STATS_PER_PORT = 0x2d IFLA_BR_MULTI_BOOLOPT = 0x2e + IFLA_BR_MCAST_QUERIER_STATE = 0x2f + IFLA_BR_FDB_N_LEARNED = 0x30 + IFLA_BR_FDB_MAX_LEARNED = 0x31 IFLA_BRPORT_UNSPEC = 0x0 IFLA_BRPORT_STATE = 0x1 IFLA_BRPORT_PRIORITY = 0x2 @@ -1645,6 +1663,14 @@ const ( IFLA_BRPORT_BACKUP_PORT = 0x22 IFLA_BRPORT_MRP_RING_OPEN = 0x23 IFLA_BRPORT_MRP_IN_OPEN = 0x24 + IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 0x25 + IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 0x26 + IFLA_BRPORT_LOCKED = 0x27 + IFLA_BRPORT_MAB = 0x28 + IFLA_BRPORT_MCAST_N_GROUPS = 0x29 + IFLA_BRPORT_MCAST_MAX_GROUPS = 0x2a + IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 0x2b + IFLA_BRPORT_BACKUP_NHID = 0x2c IFLA_INFO_UNSPEC = 0x0 IFLA_INFO_KIND = 0x1 IFLA_INFO_DATA = 0x2 @@ -1666,6 +1692,9 @@ const ( IFLA_MACVLAN_MACADDR = 0x4 IFLA_MACVLAN_MACADDR_DATA = 0x5 IFLA_MACVLAN_MACADDR_COUNT = 0x6 + IFLA_MACVLAN_BC_QUEUE_LEN = 0x7 + IFLA_MACVLAN_BC_QUEUE_LEN_USED = 0x8 + IFLA_MACVLAN_BC_CUTOFF = 0x9 IFLA_VRF_UNSPEC = 0x0 IFLA_VRF_TABLE = 0x1 IFLA_VRF_PORT_UNSPEC = 0x0 @@ -1689,9 +1718,22 @@ const ( IFLA_XFRM_UNSPEC = 0x0 IFLA_XFRM_LINK = 0x1 IFLA_XFRM_IF_ID = 0x2 + IFLA_XFRM_COLLECT_METADATA = 0x3 IFLA_IPVLAN_UNSPEC = 0x0 IFLA_IPVLAN_MODE = 0x1 IFLA_IPVLAN_FLAGS = 0x2 + NETKIT_NEXT = -0x1 + NETKIT_PASS = 0x0 + NETKIT_DROP = 0x2 + NETKIT_REDIRECT = 0x7 + NETKIT_L2 = 0x0 + NETKIT_L3 = 0x1 + IFLA_NETKIT_UNSPEC = 0x0 + IFLA_NETKIT_PEER_INFO = 0x1 + IFLA_NETKIT_PRIMARY = 0x2 + IFLA_NETKIT_POLICY = 0x3 + IFLA_NETKIT_PEER_POLICY = 0x4 + IFLA_NETKIT_MODE = 0x5 IFLA_VXLAN_UNSPEC = 0x0 IFLA_VXLAN_ID = 0x1 IFLA_VXLAN_GROUP = 0x2 @@ -1722,6 +1764,8 @@ const ( IFLA_VXLAN_GPE = 0x1b IFLA_VXLAN_TTL_INHERIT = 0x1c IFLA_VXLAN_DF = 0x1d + IFLA_VXLAN_VNIFILTER = 0x1e + IFLA_VXLAN_LOCALBYPASS = 0x1f IFLA_GENEVE_UNSPEC = 0x0 IFLA_GENEVE_ID = 0x1 IFLA_GENEVE_REMOTE = 0x2 @@ -1736,6 +1780,7 @@ const ( IFLA_GENEVE_LABEL = 0xb IFLA_GENEVE_TTL_INHERIT = 0xc IFLA_GENEVE_DF = 0xd + IFLA_GENEVE_INNER_PROTO_INHERIT = 0xe IFLA_BAREUDP_UNSPEC = 0x0 IFLA_BAREUDP_PORT = 0x1 IFLA_BAREUDP_ETHERTYPE = 0x2 @@ -1748,6 +1793,8 @@ const ( IFLA_GTP_FD1 = 0x2 IFLA_GTP_PDP_HASHSIZE = 0x3 IFLA_GTP_ROLE = 0x4 + IFLA_GTP_CREATE_SOCKETS = 0x5 + IFLA_GTP_RESTART_COUNT = 0x6 IFLA_BOND_UNSPEC = 0x0 IFLA_BOND_MODE = 0x1 IFLA_BOND_ACTIVE_SLAVE = 0x2 @@ -1777,6 +1824,9 @@ const ( IFLA_BOND_AD_ACTOR_SYSTEM = 0x1a IFLA_BOND_TLB_DYNAMIC_LB = 0x1b IFLA_BOND_PEER_NOTIF_DELAY = 0x1c + IFLA_BOND_AD_LACP_ACTIVE = 0x1d + IFLA_BOND_MISSED_MAX = 0x1e + IFLA_BOND_NS_IP6_TARGET = 0x1f IFLA_BOND_AD_INFO_UNSPEC = 0x0 IFLA_BOND_AD_INFO_AGGREGATOR = 0x1 IFLA_BOND_AD_INFO_NUM_PORTS = 0x2 @@ -1792,6 +1842,7 @@ const ( IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 0x6 IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 0x7 IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 0x8 + IFLA_BOND_SLAVE_PRIO = 0x9 IFLA_VF_INFO_UNSPEC = 0x0 IFLA_VF_INFO = 0x1 IFLA_VF_UNSPEC = 0x0 @@ -1850,8 +1901,16 @@ const ( IFLA_STATS_LINK_XSTATS_SLAVE = 0x3 IFLA_STATS_LINK_OFFLOAD_XSTATS = 0x4 IFLA_STATS_AF_SPEC = 0x5 + IFLA_STATS_GETSET_UNSPEC = 0x0 + IFLA_STATS_GET_FILTERS = 0x1 + IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 0x2 IFLA_OFFLOAD_XSTATS_UNSPEC = 0x0 IFLA_OFFLOAD_XSTATS_CPU_HIT = 0x1 + IFLA_OFFLOAD_XSTATS_HW_S_INFO = 0x2 + IFLA_OFFLOAD_XSTATS_L3_STATS = 0x3 + IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0x0 + IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 0x1 + IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 0x2 IFLA_XDP_UNSPEC = 0x0 IFLA_XDP_FD = 0x1 IFLA_XDP_ATTACHED = 0x2 @@ -1881,6 +1940,11 @@ const ( IFLA_RMNET_UNSPEC = 0x0 IFLA_RMNET_MUX_ID = 0x1 IFLA_RMNET_FLAGS = 0x2 + IFLA_MCTP_UNSPEC = 0x0 + IFLA_MCTP_NET = 0x1 + IFLA_DSA_UNSPEC = 0x0 + IFLA_DSA_CONDUIT = 0x1 + IFLA_DSA_MASTER = 0x1 ) const ( @@ -3399,7 +3463,7 @@ const ( DEVLINK_PORT_FN_ATTR_STATE = 0x2 DEVLINK_PORT_FN_ATTR_OPSTATE = 0x3 DEVLINK_PORT_FN_ATTR_CAPS = 0x4 - DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x4 + DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x5 ) type FsverityDigest struct { @@ -4183,7 +4247,8 @@ const ( ) type LandlockRulesetAttr struct { - Access_fs uint64 + Access_fs uint64 + Access_net uint64 } type LandlockPathBeneathAttr struct { @@ -5134,7 +5199,7 @@ const ( NL80211_FREQUENCY_ATTR_GO_CONCURRENT = 0xf NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 0xe NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 0xf - NL80211_FREQUENCY_ATTR_MAX = 0x1b + NL80211_FREQUENCY_ATTR_MAX = 0x1c NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 0x6 NL80211_FREQUENCY_ATTR_NO_10MHZ = 0x11 NL80211_FREQUENCY_ATTR_NO_160MHZ = 0xc @@ -5547,7 +5612,7 @@ const ( NL80211_REGDOM_TYPE_CUSTOM_WORLD = 0x2 NL80211_REGDOM_TYPE_INTERSECTION = 0x3 NL80211_REGDOM_TYPE_WORLD = 0x1 - NL80211_REG_RULE_ATTR_MAX = 0x7 + NL80211_REG_RULE_ATTR_MAX = 0x8 NL80211_REKEY_DATA_AKM = 0x4 NL80211_REKEY_DATA_KCK = 0x2 NL80211_REKEY_DATA_KEK = 0x1 diff --git a/vendor/golang.org/x/sys/windows/env_windows.go b/vendor/golang.org/x/sys/windows/env_windows.go index b8ad1925..d4577a42 100644 --- a/vendor/golang.org/x/sys/windows/env_windows.go +++ b/vendor/golang.org/x/sys/windows/env_windows.go @@ -37,14 +37,17 @@ func (token Token) Environ(inheritExisting bool) (env []string, err error) { return nil, err } defer DestroyEnvironmentBlock(block) - blockp := unsafe.Pointer(block) - for { - entry := UTF16PtrToString((*uint16)(blockp)) - if len(entry) == 0 { - break + size := unsafe.Sizeof(*block) + for *block != 0 { + // find NUL terminator + end := unsafe.Pointer(block) + for *(*uint16)(end) != 0 { + end = unsafe.Add(end, size) } - env = append(env, entry) - blockp = unsafe.Add(blockp, 2*(len(entry)+1)) + + entry := unsafe.Slice(block, (uintptr(end)-uintptr(unsafe.Pointer(block)))/size) + env = append(env, UTF16ToString(entry)) + block = (*uint16)(unsafe.Add(end, size)) } return env, nil } diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go index 47dc5796..6395a031 100644 --- a/vendor/golang.org/x/sys/windows/syscall_windows.go +++ b/vendor/golang.org/x/sys/windows/syscall_windows.go @@ -125,8 +125,7 @@ func UTF16PtrToString(p *uint16) string { for ptr := unsafe.Pointer(p); *(*uint16)(ptr) != 0; n++ { ptr = unsafe.Pointer(uintptr(ptr) + unsafe.Sizeof(*p)) } - - return string(utf16.Decode(unsafe.Slice(p, n))) + return UTF16ToString(unsafe.Slice(p, n)) } func Getpagesize() int { return 4096 } @@ -194,6 +193,7 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW //sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW //sys SetEndOfFile(handle Handle) (err error) +//sys SetFileValidData(handle Handle, validDataLength int64) (err error) //sys GetSystemTimeAsFileTime(time *Filetime) //sys GetSystemTimePreciseAsFileTime(time *Filetime) //sys GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff] diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go index 146a1f01..e8791c82 100644 --- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go +++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go @@ -342,6 +342,7 @@ var ( procSetDefaultDllDirectories = modkernel32.NewProc("SetDefaultDllDirectories") procSetDllDirectoryW = modkernel32.NewProc("SetDllDirectoryW") procSetEndOfFile = modkernel32.NewProc("SetEndOfFile") + procSetFileValidData = modkernel32.NewProc("SetFileValidData") procSetEnvironmentVariableW = modkernel32.NewProc("SetEnvironmentVariableW") procSetErrorMode = modkernel32.NewProc("SetErrorMode") procSetEvent = modkernel32.NewProc("SetEvent") @@ -2988,6 +2989,14 @@ func SetEndOfFile(handle Handle) (err error) { return } +func SetFileValidData(handle Handle, validDataLength int64) (err error) { + r1, _, e1 := syscall.Syscall(procSetFileValidData.Addr(), 2, uintptr(handle), uintptr(validDataLength), 0) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func SetEnvironmentVariable(name *uint16, value *uint16) (err error) { r1, _, e1 := syscall.Syscall(procSetEnvironmentVariableW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(value)), 0) if r1 == 0 { diff --git a/vendor/modules.txt b/vendor/modules.txt index 5efddb88..7fac3044 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,4 +1,4 @@ -# github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0 +# github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/azcore github.com/Azure/azure-sdk-for-go/sdk/azcore/arm @@ -21,7 +21,7 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming github.com/Azure/azure-sdk-for-go/sdk/azcore/to github.com/Azure/azure-sdk-for-go/sdk/azcore/tracing -# github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0 +# github.com/Azure/azure-sdk-for-go/sdk/internal v1.6.0 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/internal/diag github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo @@ -36,6 +36,9 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalerts # github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement v1.1.1 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement +# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3 v3.0.0-beta.1 +## explicit; go 1.18 +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3 # github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights v1.1.1 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights @@ -54,15 +57,15 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice # github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn v1.1.1 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn -# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0 +# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 ## explicit; go 1.18 -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 # github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2 v2.0.0 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2 -# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory v1.3.0 +# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7 v7.0.0 ## explicit; go 1.18 -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v7 # github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection v1.0.0 ## explicit; go 1.18 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection @@ -187,7 +190,7 @@ github.com/google/go-cmp/cmp/internal/diff github.com/google/go-cmp/cmp/internal/flags github.com/google/go-cmp/cmp/internal/function github.com/google/go-cmp/cmp/internal/value -# github.com/google/uuid v1.3.1 +# github.com/google/uuid v1.5.0 ## explicit github.com/google/uuid # github.com/hashicorp/errwrap v1.1.0 @@ -275,7 +278,7 @@ github.com/imdario/mergo # github.com/magodo/armid v0.0.0-20230511151020-27880e5961c3 ## explicit; go 1.18 github.com/magodo/armid -# github.com/magodo/aztft v0.3.1-0.20240422020901-86b6f1d0d407 +# github.com/magodo/aztft v0.3.1-0.20240628052037-ea373ea89d48 ## explicit; go 1.19 github.com/magodo/aztft/aztft github.com/magodo/aztft/internal/client @@ -357,7 +360,7 @@ github.com/zclconf/go-cty/cty/function/stdlib github.com/zclconf/go-cty/cty/gocty github.com/zclconf/go-cty/cty/json github.com/zclconf/go-cty/cty/set -# golang.org/x/crypto v0.17.0 +# golang.org/x/crypto v0.21.0 ## explicit; go 1.18 golang.org/x/crypto/bcrypt golang.org/x/crypto/blowfish @@ -369,14 +372,14 @@ golang.org/x/mod/internal/lazyregexp golang.org/x/mod/modfile golang.org/x/mod/module golang.org/x/mod/semver -# golang.org/x/net v0.17.0 -## explicit; go 1.17 +# golang.org/x/net v0.22.0 +## explicit; go 1.18 golang.org/x/net/context golang.org/x/net/http/httpguts golang.org/x/net/http2 golang.org/x/net/http2/hpack golang.org/x/net/idna -# golang.org/x/sys v0.15.0 +# golang.org/x/sys v0.18.0 ## explicit; go 1.18 golang.org/x/sys/unix golang.org/x/sys/windows